/* RC5 v37 — article commerce cards, bestseller media fit and white product concept. */

/* Product cards referenced by an article: complete purchase information. */
.article-master-page .article-product-card {
  color: inherit;
}

.article-master-page .article-product-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f7f9f6;
}

.article-master-page .article-product-media img {
  width: auto !important;
  height: auto !important;
  max-width: 76% !important;
  max-height: 76% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.article-master-page .article-product-title {
  color: #173322;
  text-decoration: none;
}

.article-master-page .article-product-title:hover {
  color: #2f7d3a;
}

.article-master-page .article-product-description {
  display: -webkit-box;
  overflow: hidden;
  color: #5b665f;
  font-size: .9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-master-page .article-product-price {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e4e9e3;
}

.article-master-page .article-product-price-main {
  color: #173322;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.2;
}

.article-master-page .article-product-price-member {
  color: #2f7d3a;
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.35;
}

.article-master-page .article-product-status {
  margin-top: auto;
  padding: 11px 12px;
  border: 1px solid #dfe5de;
  border-radius: 11px;
  background: #f7f8f6;
  color: #59645d;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.4;
}

.article-master-page .article-product-actions {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 8px;
  margin-top: 3px;
}

.article-master-page .article-product-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.article-master-page .article-product-action--detail {
  border: 1px solid #bcd3bc;
  background: #fff;
  color: #286f34;
}

.article-master-page .article-product-action--buy {
  border: 1px solid #2f7d3a;
  background: #2f7d3a;
  color: #fff;
  box-shadow: 0 7px 18px rgba(47, 125, 58, .16);
}

.article-master-page .article-product-action--detail:hover {
  border-color: #2f7d3a;
  background: #f5f9f4;
}

.article-master-page .article-product-action--buy:hover {
  background: #25672f;
  color: #fff;
}

/* Stronger inline CTA for a specific product mentioned in the article. */
.article-master-page .cta-box--product {
  display: grid !important;
  grid-template-columns: minmax(132px, 170px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 36px);
  padding: clamp(22px, 4vw, 34px) !important;
  border-color: #d5e2d3;
  background: #fff !important;
  box-shadow: 0 14px 36px rgba(31, 72, 41, .075);
}

.article-master-page .cta-box__media {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e8e1;
  border-radius: 16px;
  background: #f7f9f6;
}

.article-master-page .cta-box__media img {
  width: auto !important;
  height: auto !important;
  max-width: 78% !important;
  max-height: 78% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.article-master-page .cta-box__content {
  min-width: 0;
}

.article-master-page .cta-box__eyebrow {
  margin-bottom: 7px;
  color: #2f7d3a;
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-master-page .cta-box__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.article-master-page .cta-box__price-main {
  color: #173322;
  font-size: 1.35rem;
  font-weight: 850;
}

.article-master-page .cta-box__price-member {
  color: #2f7d3a;
  font-size: .84rem;
  font-weight: 750;
}

.article-master-page .cta-box__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 17px;
}

.article-master-page .cta-box__detail,
.article-master-page .cta-box__buy {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border-radius: 11px;
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.article-master-page .cta-box__detail {
  border: 1px solid #bcd3bc;
  background: #fff;
  color: #286f34;
}

.article-master-page .cta-box__buy {
  border: 1px solid #2f7d3a;
  background: #2f7d3a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 125, 58, .18);
}

/* "Oblíbené produkty": four-card desktop rows and homepage-style packshots. */
.bestsellers-master-page .products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px;
}

.bestsellers-master-page .prod-media {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.bestsellers-master-page .prod-media img,
.bestsellers-master-page .prod-media img.auto-hero {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: clamp(12px, 1.4vw, 20px) !important;
  box-sizing: border-box;
  object-fit: contain !important;
  object-position: center !important;
}

.bestsellers-master-page .prod-media .prod-badge,
.bestsellers-master-page .prod-media .prod-rank {
  position: absolute;
}

@media (max-width: 768px) {
  .bestsellers-master-page .products-grid {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 16px) / 3) !important;
    gap: 8px !important;
    align-items: stretch;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .bestsellers-master-page .products-grid::-webkit-scrollbar {
    display: none;
  }

  .bestsellers-master-page .products-grid > .prod-card {
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .bestsellers-master-page .prod-media img,
  .bestsellers-master-page .prod-media img.auto-hero {
    padding: 12px !important;
  }

  .bestsellers-master-page .prod-body {
    padding: 10px !important;
    gap: 5px;
  }

  .bestsellers-master-page .prod-cat,
  .bestsellers-master-page .prod-desc,
  .bestsellers-master-page .prod-tags,
  .bestsellers-master-page .prod-price-reg {
    display: none !important;
  }

  .bestsellers-master-page .prod-name {
    display: -webkit-box;
    min-height: 2.5em;
    margin: 0;
    overflow: hidden;
    font-size: .82rem !important;
    line-height: 1.25;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .bestsellers-master-page .prod-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin-top: auto;
    padding-top: 8px;
  }

  .bestsellers-master-page .prod-price {
    font-size: .78rem !important;
    line-height: 1.25;
    text-align: center;
  }

  .bestsellers-master-page .prod-cta {
    width: 100% !important;
    min-height: 30px;
    justify-content: center;
    padding: 5px 4px !important;
    font-size: .72rem !important;
  }

  .bestsellers-master-page .prod-badge {
    top: 6px;
    right: 6px;
    padding: 2px 5px;
    font-size: .58rem;
  }
}

/* Sources sit above the footer without a full-width green band. */
.sources-section {
  background: #fff !important;
  border-top-color: #e3e8e2 !important;
}

/* Shared lighter, mostly white treatment for every product detail. */
body.product-detail-white-concept {
  background: #fff !important;
}

body.product-detail-white-concept .product-card-visual {
  border-color: #e2e7e1 !important;
  background: #f8f9f7 !important;
  box-shadow: 0 14px 34px rgba(32, 50, 37, .07) !important;
}

body.product-detail-white-concept .gallery-main,
body.product-detail-white-concept .gallery-thumb {
  background: #fff !important;
}

body.product-detail-white-concept .price-block {
  border-color: #dfe5de !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(32, 50, 37, .045);
}

body.product-detail-white-concept .product-key-facts {
  border-block-color: #e4e9e3 !important;
  background: #fff !important;
}

body.product-detail-white-concept .product-key-facts .info-card {
  border-color: #dfe5de !important;
  background: #fafbf9 !important;
  box-shadow: none !important;
}

body.product-detail-white-concept .product-key-facts .info-card::after {
  height: 3px;
}

body.product-detail-white-concept main > .section,
body.product-detail-white-concept main > section.section {
  background: #fff !important;
}

body.product-detail-white-concept main > #jak-uzivat,
body.product-detail-white-concept main > .inline-74816df3cb86,
body.product-detail-white-concept main > .product-section-green-restored {
  border-block: 1px solid #e8ebe7;
  background: #f8f9f7 !important;
}

body.product-detail-white-concept .step-card,
body.product-detail-white-concept .audience-card-v2,
body.product-detail-white-concept .lux-card {
  border: 1px solid #e1e6e0;
  background: #fff !important;
  box-shadow: 0 7px 20px rgba(32, 50, 37, .045) !important;
}

body.product-detail-white-concept .usage-note {
  border-color: #e1e6e0;
  background: #fff !important;
}

body.product-detail-white-concept .product-image-panel,
body.product-detail-white-concept .related-thumb,
body.product-detail-white-concept .product-article-card,
body.product-detail-white-concept .related-product {
  border-color: #e0e5df !important;
  background: #fff !important;
}

body.product-detail-white-concept .product-articles {
  text-align: center;
}

body.product-detail-white-concept .product-articles > .section-label {
  display: flex;
  width: fit-content;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}

body.product-detail-white-concept .product-articles > h3 {
  text-align: center !important;
}

body.product-detail-white-concept .product-article-card {
  text-align: left;
}

@media (max-width: 560px) {
  .article-master-page .article-product-media img {
    max-width: 78% !important;
    max-height: 78% !important;
  }

  .article-master-page .article-product-description {
    -webkit-line-clamp: 2;
  }

  .article-master-page .article-product-actions {
    grid-template-columns: 1fr;
  }

  .article-master-page .cta-box--product {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 15px;
    padding: 17px !important;
  }

  .article-master-page .cta-box__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article-master-page .cta-box__detail,
  .article-master-page .cta-box__buy {
    width: 100%;
  }

}

@media (max-width: 390px) {
  .article-master-page .cta-box--product {
    grid-template-columns: 1fr;
  }

  .article-master-page .cta-box__media {
    width: min(150px, 100%);
    margin-inline: auto;
  }
}
