/* Real product imagery — preserve package ratio on cards */
.product-card__image {
  background: #F7F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  width: auto;
  max-width: 82%;
  height: 80%;
  max-height: 80%;
  object-fit: contain;
  object-position: center;
}

.product-card--compact .product-card__image img {
  max-width: 88%;
  height: 82%;
  max-height: 82%;
}

/* Product detail — QR / mobile first */
.product-detail__image-wrap {
  background: #F7F9FA;
  aspect-ratio: auto;
  min-height: 280px;
  max-height: 520px;
  padding: 24px;
}

.product-detail__image-wrap img {
  max-height: min(78vh, 420px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
}

@media (min-width: 480px) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.package-grid__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.package-grid__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.package-grid__value {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
}

.product-caution-box {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: #FFF8E7;
  border: 1px solid rgba(212, 160, 23, 0.45);
  border-radius: var(--border-radius-sm);
}

.product-caution-box h2 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8A6D1B;
  margin-bottom: 10px;
}

.product-caution-box p,
.product-caution-box ul {
  font-size: 16px;
  line-height: 1.7;
  color: #5a4a20;
}

.product-caution-box ul {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
}

.product-caution-box li + li {
  margin-top: 6px;
}

.product-caution-box--global {
  margin-top: 16px;
  background: #F0F4F8;
  border-color: var(--color-border);
}

.product-caution-box--global h2 {
  color: var(--color-primary);
}

.product-caution-box--global p {
  color: var(--color-text);
}

.accordion__panel p,
.accordion__panel li {
  font-size: 16px;
  line-height: 1.7;
}

.accordion__panel ul {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
}

.accordion__panel li + li {
  margin-top: 6px;
}

.accordion__trigger {
  min-height: 48px;
}

@media (max-width: 430px) {
  .product-detail {
    padding-block: 16px 48px;
  }

  .product-detail-header {
    --header-height: 72px;
  }

  .product-detail-header .site-header .logo__img,
  .product-detail-header .logo__img,
  .product-detail-header .site-logo img {
    height: 52px;
    width: auto;
    max-width: 150px;
  }

  .product-detail__name {
    font-size: 1.375rem;
  }

  .product-detail__short {
    font-size: 1rem;
  }

  .breadcrumb {
    font-size: 14px;
    margin-bottom: 16px !important;
  }
}

/* Products listing page — visual corrections
   ========================================================================== */

body:has(.products-page) {
  --header-height: 86px;
}

body:has(.products-page) .logo__img,
body:has(.products-page) .site-logo img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 190px;
  object-fit: contain;
}

body:has(.products-page) .logo--footer .logo__img,
body:has(.products-page) .footer-logo img {
  width: auto;
  height: 72px;
  max-width: 180px;
}

body:has(.products-page) .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: #FFFFFF;
  backdrop-filter: none;
}

body:has(.products-page) .site-header__inner {
  height: var(--header-height);
}

.products-page {
  margin: 0;
  padding: 0;
}

/* Hero */
.products-hero {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: center;
  padding: 48px 0 56px;
  overflow: hidden;
  color: #FFFFFF;
  background:
    linear-gradient(
      110deg,
      #0B3D91 0%,
      #155CB8 50%,
      #176E73 100%
    );
}

.products-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.products-hero__mountains {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(45vw, 560px);
  height: auto;
  color: #FFFFFF;
  opacity: 0.11;
}

.products-hero__molecules {
  position: absolute;
  right: 8%;
  top: 20%;
  width: min(22vw, 220px);
  height: auto;
  color: #FFFFFF;
  opacity: 0.06;
}

.products-hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
}

.products-hero__crumb {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
}

.products-hero .breadcrumb a,
.products-hero .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.72);
}

.products-hero .breadcrumb__sep {
  margin: 0 8px;
}

.products-hero .breadcrumb a:hover {
  color: #FFFFFF;
}

.products-hero .breadcrumb__current {
  color: #F1C75B;
}

.products-hero__title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.products-hero__vline {
  display: block;
  width: 4px;
  height: 42px;
  background: #D4A017;
  border-radius: 4px;
  flex-shrink: 0;
}

.products-hero__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.products-hero__gold-line {
  display: block;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, #D4A017, #F1C75B);
}

.products-hero__title {
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin: 0;
  text-transform: none;
}

.products-hero__desc {
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
  margin: 16px 0 0;
}

.products-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.products-hero__badge svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.products-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 22px;
  color: #FFFFFF;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}

.products-hero__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.products-hero__delay-1 {
  animation-delay: 80ms;
}

.products-hero__delay-2 {
  animation-delay: 140ms;
}

.products-hero__delay-3 {
  animation-delay: 200ms;
}

.products-hero__anim {
  opacity: 0;
  transform: translateY(14px);
  animation: products-hero-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes products-hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .products-hero {
    min-height: 250px;
  }

  .products-hero__title {
    font-size: 42px;
  }

  .products-hero__mountains {
    width: min(48vw, 420px);
    opacity: 0.09;
  }
}

@media (max-width: 576px) {
  .products-hero {
    padding: 42px 0 48px;
    min-height: auto;
  }

  .products-hero__title {
    font-size: 34px;
  }

  .products-hero__vline {
    height: 34px;
  }

  .products-hero__desc {
    font-size: 15px;
  }

  .products-hero__mountains {
    opacity: 0.05;
    width: min(70vw, 280px);
  }

  .products-hero__molecules {
    display: none;
  }

  .products-hero__wave {
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-hero__anim {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Grid section spacing */
.products-page__grid-section {
  padding-top: 68px;
  padding-bottom: 68px;
}

.products-page .product-grid {
  margin-bottom: 0;
}

/* Product cards — products page only */
.products-page .product-card {
  border-radius: 18px;
  border: 1px solid rgba(11, 61, 145, 0.08);
  border-top-width: 3px;
  border-top-color: var(--product-accent, #0B3D91);
  box-shadow: 0 12px 32px rgba(11, 61, 145, 0.07);
  min-height: 0;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.products-page .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(11, 61, 145, 0.12);
}

.products-page .product-card--royal-heat-tonic { --product-accent: #A82020; }
.products-page .product-card--sport-energy { --product-accent: #E39B15; }
.products-page .product-card--deep-sleep { --product-accent: #34368D; }
.products-page .product-card--sugar-balance { --product-accent: #1E6F3D; }
.products-page .product-card--pure-detox-moringa { --product-accent: #168447; }
.products-page .product-card--morning-energy { --product-accent: #4A9B3E; }

.products-page .product-card__image {
  height: 285px;
  padding: 14px 16px;
  background: #F7F9FA;
  overflow: visible;
}

.products-page .product-card__image img {
  width: auto;
  max-width: 88%;
  max-height: 255px;
  height: 86%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.12));
  transition: transform 0.45s ease;
}

.products-page .product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.products-page .product-card__body {
  padding: 22px 22px 24px;
  gap: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.products-page .product-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #0B3D91;
  margin-bottom: 0;
}

.products-page .product-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: #5F6368;
  min-height: 69px;
  flex: 1;
  margin-bottom: 0;
}

.products-page .text-link {
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
}

/* Disclaimer */
.products-page .disclaimer {
  margin-top: 52px;
  padding: 20px 24px;
  background: #F7F9FA;
  border-left: 4px solid #D4A017;
  border-radius: 8px;
}

/* Footer spacing */
body:has(.products-page) .site-footer {
  margin-top: 0;
}

@media (max-width: 576px) {
  body:has(.products-page) {
    --header-height: 72px;
  }

  body:has(.products-page) .site-header .logo__img,
  body:has(.products-page) .site-header .site-logo img {
    height: 52px;
    width: auto;
    max-width: 150px;
  }

  .products-page__grid-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .products-page .product-grid {
    grid-template-columns: 1fr;
  }

  .products-page .product-card__image {
    height: 240px;
  }

  .products-page .product-card__image img {
    max-height: 215px;
    height: 84%;
  }
}
