input { color: inherit; font: inherit; }

.product-detail-nav .language-trigger { min-width: 72px; }

.product-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  padding-top: 82px;
  border-bottom: 2px solid var(--ink);
}
.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.gallery-card {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  background: var(--cream);
}
.gallery-main {
  grid-column: 1 / -1;
  min-height: calc(100vh - 84px);
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.95) 0 16%, transparent 44%),
    linear-gradient(135deg, #f7efd2 0%, #dff7ff 52%, #c8f3d0 100%);
}
.gallery-label {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 26px;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.gallery-main > img { position: relative; z-index: 2; width: min(36%, 330px); height: 75vh; object-fit: contain; filter: drop-shadow(0 35px 25px rgba(21,56,42,.18)); }
.gallery-orbit { position: absolute; width: 62%; aspect-ratio: 1; border: 2px solid rgba(21,56,42,.2); border-radius: 50%; transform: rotate(-18deg); }
.gallery-main > strong {
  position: absolute;
  right: 5%;
  bottom: 5%;
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: .8;
  letter-spacing: -.08em;
}
.gallery-main > strong small { display: block; margin-top: 15px; font-size: .58rem; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.gallery-lifestyle { background: var(--surface-green); }
.gallery-lifestyle > img, .gallery-detail > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-lifestyle figcaption, .gallery-detail figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  color: white;
  font-size: clamp(2rem, 3.3vw, 4rem);
  font-weight: 950;
  line-height: .84;
  letter-spacing: -.06em;
  text-transform: uppercase;
  text-shadow: 0 3px 20px rgba(0,0,0,.35);
}
.gallery-lifestyle figcaption em { font-family: "Playfair Display", serif; font-weight: 400; text-transform: none; }
.gallery-detail figcaption { display: flex; align-items: end; justify-content: space-between; font-size: 1.2rem; }
.gallery-detail figcaption span { font-size: .6rem; letter-spacing: .1em; }
.gallery-pagination { display: none; }

.product-purchase {
  position: sticky;
  top: 82px;
  min-height: calc(100vh - 82px);
  padding: clamp(38px, 5vw, 72px);
  background: var(--cream);
}
.product-lead { max-width: 520px; }
.purchase-divider { margin: 26px 0; border-top: 2px solid rgba(21,56,42,.25); }
.product-option { margin-top: 24px; }
fieldset.product-option { border: 0; padding: 0; }
fieldset.product-option legend { margin-bottom: 10px; font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.pack-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pack-options legend { grid-column: 1 / -1; }
.pack-options label { position: relative; cursor: pointer; }
.pack-options input { position: absolute; opacity: 0; }
.pack-options label > span {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 13px;
  border: 2px solid rgba(21,56,42,.25);
  border-radius: 7px;
  font-size: .73rem;
  font-weight: 850;
}
.pack-options small { margin-top: 3px; font-size: .52rem; font-weight: 600; opacity: .65; }
.pack-options input:checked + span { border-color: var(--ink); background: white; }
.purchase-actions { margin-top: 25px; }
.primary-buy-button { min-width: 0; padding-inline: 22px; }
.mobile-buy-bar { display: none; }

.benefit-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 2px solid var(--ink); background: var(--soft-yellow); }
.benefit-strip article { min-height: 190px; display: flex; flex-direction: column; justify-content: center; padding: 32px; border-right: 2px solid var(--ink); }
.benefit-strip article:last-child { border: 0; }
.benefit-strip strong { font-size: clamp(2rem, 3vw, 4rem); line-height: .9; text-transform: uppercase; }
.benefit-strip span { margin-top: 12px; font-size: .62rem; font-weight: 800; text-transform: uppercase; }

.flavor-story, .ingredients-section, .nutrition-section { min-height: 90vh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 2px solid var(--ink); }
.flavor-story-copy, .ingredients-intro, .nutrition-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-space-y) var(--section-space-x);
}
.flavor-story-copy { background: var(--cream); }
.flavor-story-copy > p:not(.section-kicker), .nutrition-copy > p:not(.section-kicker) { max-width: 510px; }
.flavor-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.flavor-tags span { padding: 10px 14px; border: 2px solid var(--ink); border-radius: 999px; font-size: .58rem; font-weight: 900; text-transform: uppercase; }
.product-recipe-showcase {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
  overflow: hidden;
  padding: clamp(34px, 4vw, 64px);
}
.product-recipe-heading {
  display: flex;
  align-items: center;
  gap: 20px;
}
.product-recipe-heading > span {
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.product-recipe-carousel { position: relative; min-width: 0; }
.product-recipe-arrows {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
}
.product-recipe-arrows button {
  position: absolute;
  top: 50%;
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  font-size: 1.35rem;
  pointer-events: auto;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .2s ease, background .2s ease, opacity .2s ease;
}
.product-recipe-prev { left: -29px; }
.product-recipe-next { right: -29px; }
.product-recipe-arrows button:hover,
.product-recipe-arrows button:focus-visible {
  color: white;
  background: var(--orange);
  outline: none;
}
.product-recipe-arrows button:disabled { opacity: .35; cursor: default; }
.product-recipe-arrows .ui-icon { width: 1em; height: 1em; }
.product-recipe-track {
  display: flex;
  gap: 16px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.product-recipe-track::-webkit-scrollbar { display: none; }
/* ── Recipe card – synced with recipes page layout ── */
.product-recipe-card {
  flex: 0 0 min(72%, 380px);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--soft-yellow);
}
.product-recipe-card:nth-child(2) { background: var(--surface-green); }
.product-recipe-card:nth-child(3) { background: var(--surface-mint); }

/* Media / play button */
.product-recipe-open {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 0;
  background: var(--ink);
  cursor: pointer;
}
.product-recipe-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.product-recipe-open::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4,15,10,.45));
  content: "";
}
.product-recipe-open:hover img { transform: scale(1.045); }
.product-recipe-open span {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
}
.product-recipe-open:hover span { color: var(--white); border-color: var(--orange); background: var(--orange); }

/* Info block – mirrors .recipe-card-info in recipes.css */
.product-recipe-showcase .recipe-card-info {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-recipe-showcase .recipe-card-info h3 {
  margin: 0;
  font-size: clamp(.88rem, 1.05vw, 1.1rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-recipe-showcase .recipe-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.product-recipe-showcase .recipe-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  background: transparent;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-recipe-showcase .recipe-card-duration {
  margin: 0;
  color: var(--ink);
  font-size: .58rem;
  font-weight: 700;
  opacity: .55;
}
.product-recipe-showcase .recipe-card-desc {
  margin: 0;
  font-size: .7rem;
  line-height: 1.5;
  opacity: .75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-recipe-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.product-recipe-pagination button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}
.product-recipe-pagination button.is-active { width: 30px; border-radius: 999px; background: var(--orange); }
.recipe-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 20px; }
.recipe-detail-meta span {
  padding: 8px 11px;
  border: 2px solid rgba(21, 56, 42, .3);
  border-radius: 999px;
  font-size: .56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.floating-buy-button {
  position: fixed;
  z-index: 850;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  min-width: 190px;
  box-shadow: 0 14px 36px rgba(21, 56, 42, .24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .3s ease, visibility .25s;
}
.floating-buy-button.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
body.drawer-open .floating-buy-button,
body.reel-open .floating-buy-button { opacity: 0; pointer-events: none; transform: translateY(20px); }

.ingredients-section { background: var(--light-orange); }
.ingredients-intro { background: var(--light-orange); }
.ingredients-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-space-y) var(--section-space-x);
  background: var(--light-orange);
}
.ingredients-content details { border-top: 2px solid var(--ink); padding: 24px 0; }
.ingredients-content details:last-child { border-bottom: 2px solid var(--ink); }
.ingredients-content summary { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 900; text-transform: uppercase; cursor: pointer; list-style: none; }
.ingredients-content details p { max-width: 650px; margin: 18px 0 0; }

.nutrition-section { background: var(--surface-green); }
.nutrition-copy { background: var(--surface-green); }
.nutrition-card { align-self: center; width: min(600px, 84%); margin: 60px auto; padding: 28px; border: 3px solid var(--ink); background: var(--cream); }
.nutrition-title { display: flex; align-items: end; justify-content: space-between; padding-bottom: 14px; border-bottom: 8px solid var(--ink); }
.nutrition-title strong { font-size: 1.5rem; text-transform: uppercase; }
.nutrition-title span { font-size: .58rem; font-weight: 800; }
.nutrition-calories { display: flex; align-items: end; justify-content: space-between; padding: 16px 0; border-bottom: 4px solid var(--ink); }
.nutrition-calories strong { font-size: 2rem; }
.nutrition-card dl { margin: 0; }
.nutrition-card dl div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 2px solid var(--ink); font-size: .75rem; font-weight: 800; }
.nutrition-card small { display: block; margin-top: 16px; font-size: .52rem; line-height: 1.5; }

.certifications-section {
  padding: clamp(80px, 9vw, 150px) 0 clamp(55px, 6vw, 90px);
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--white);
}
.certifications-heading {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto clamp(45px, 6vw, 80px);
  text-align: center;
}
.certifications-heading > p:last-child {
  max-width: 580px;
  margin: 0 auto;
}
.certifications-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.certifications-track::-webkit-scrollbar { display: none; }
.certification-slide {
  display: grid;
  min-width: 100%;
  flex: 0 0 100%;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(24px, 5vw, 90px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.certification-slide article {
  min-height: 240px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 26px;
  border-right: 2px solid rgba(21, 56, 42, .16);
}
.certification-slide article:last-child { border-right: 0; }
.certification-slide img {
  width: min(100%, 260px);
  height: 160px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.certification-slide span {
  margin-top: 16px;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.certifications-pagination {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 38px;
}
.certifications-pagination button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  transition: width .2s ease, background .2s ease;
}
.certifications-pagination button.is-active {
  width: 34px;
  border-radius: 999px;
  background: var(--orange);
}

.product-faq {
  display: grid;
  /* Match the 50/50 split of .flavor-story / .ingredients-section above */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 2px solid var(--ink);
  background: var(--soft-yellow);
}
.product-faq-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-space-y) var(--section-space-x);
}
.product-faq-heading > p:last-child { max-width: 520px; margin-bottom: 0; }
.product-faq-list {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-space-y) var(--section-space-x);
  background: var(--soft-yellow);
}
.product-faq-list details {
  border-top: 2px solid var(--ink);
  padding: 24px 0;
}
.product-faq-list details:last-child { border-bottom: 2px solid var(--ink); }
.product-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: clamp(.92rem, 1.2vw, 1.12rem);
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.product-faq-list summary::-webkit-details-marker { display: none; }
.product-faq-list summary span {
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: 400;
}
.product-faq-list details p { max-width: 680px; margin: 18px 46px 0 0; }

.detail-collection { min-height: 0; }
.detail-collection .collection-products article { grid-template-rows: auto 1fr auto; }


@media (max-width: 900px) {
  main,
  .site-footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  main { --detail-mobile-section-y: clamp(42px, 8vw, 54px); }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .mobile-buy-bar {
    position: fixed;
    z-index: 900;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 2px solid var(--ink);
    background: var(--white);
    box-shadow: 0 -10px 28px rgba(21, 56, 42, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(110%);
    transition: opacity .25s ease, transform .32s cubic-bezier(.2,.8,.2,1), visibility .25s;
  }
  .mobile-buy-bar.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  body.menu-open .mobile-buy-bar,
  body.drawer-open .mobile-buy-bar,
  body.reel-open .mobile-buy-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(110%);
  }
  .mobile-buy-bar .site-button { min-height: 52px; }
  .product-hero { grid-template-columns: 1fr; padding-top: 68px; }
  .product-gallery {
    display: flex;
    width: 100%;
    gap: 0;
    padding: 0;
    box-shadow: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: var(--cream);
  }
  .product-gallery::-webkit-scrollbar { display: none; }
  .gallery-card {
    min-width: 100%;
    min-height: 68svh;
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .gallery-main { min-height: 68svh; border-bottom: 0; }
  .gallery-main > img { width: 46%; height: 60svh; }
  .gallery-main > strong { font-size: 17vw; }
  .gallery-lifestyle, .gallery-detail { min-height: 68svh; }
  .gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    background: var(--white);
  }
  .gallery-pagination button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    transition: width .2s ease, background .2s ease;
  }
  .gallery-pagination button.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--orange);
  }
  .product-purchase { position: relative; top: 0; min-height: 0; padding: var(--detail-mobile-section-y) 22px; }
  .benefit-strip { grid-template-columns: 1fr 1fr; }
  /* All right-column (even) articles lose border-right in 2-col layout */
  .benefit-strip article:nth-child(even) { border-right: 0; }
  .benefit-strip article { border-bottom: 2px solid var(--ink); }
  .flavor-story, .ingredients-section, .nutrition-section { grid-template-columns: 1fr; }
  .flavor-story-copy,
  .ingredients-intro,
  .nutrition-copy {
    padding: var(--detail-mobile-section-y) var(--section-space-x-mobile);
  }
  .product-recipe-showcase { min-height: 76svh; padding: 32px 22px 36px; }
  .product-recipe-arrows button { width: 44px; }
  .product-recipe-prev { left: -22px; }
  .product-recipe-next { right: -22px; }
  .product-recipe-card { flex-basis: 86%; }
  .product-recipe-open { min-height: 52svh; }
  .floating-buy-button { display: none; }
  .ingredients-content {
    padding: var(--detail-mobile-section-y) var(--section-space-x-mobile);
  }
  .nutrition-card { width: calc(100% - 44px); margin: 48px auto 80px; }
  .certifications-section { padding: 60px 0 48px; }
  .certifications-heading { margin-bottom: 42px; }
  .certification-slide {
    grid-template-columns: 1fr 1fr;
    padding: 0 18px;
  }
  .certification-slide article {
    min-height: 205px;
    padding: 18px 10px;
    border-right: 0;
    border-bottom: 2px solid rgba(21, 56, 42, .16);
  }
  .certification-slide article:nth-child(odd) { border-right: 2px solid rgba(21, 56, 42, .16); }
  .certification-slide article:nth-child(n + 3) { border-bottom: 0; }
  .certification-slide img { height: 120px; }
  .certifications-pagination { margin-top: 30px; }
  .product-faq { grid-template-columns: 1fr; }
  .product-faq-heading {
    padding: var(--detail-mobile-section-y) var(--section-space-x-mobile) 32px;
  }
  .product-faq-list {
    padding: 26px var(--section-space-x-mobile) var(--detail-mobile-section-y);
  }
}

@media (max-width: 560px) {
  .gallery-main > img { width: 52%; }
  .gallery-main > strong { right: 18px; bottom: 22px; }
  .gallery-card,
  .gallery-main,
  .gallery-lifestyle,
  .gallery-detail { min-height: 58svh; }
  .pack-options { grid-template-columns: 1fr; }
  .benefit-strip article { min-height: 150px; padding: 22px 18px; }
  .benefit-strip strong { font-size: 1.8rem; }
  .product-recipe-showcase { padding-inline: 18px; }
  .product-recipe-arrows button { width: 40px; }
  .product-recipe-prev { left: -18px; }
  .product-recipe-next { right: -18px; }
  .product-recipe-card { flex-basis: 92%; }
  .product-recipe-open { min-height: 46svh; }
  .product-recipe-showcase .recipe-card-info { padding: 14px 16px 18px; gap: 6px; }
  .certification-slide img { height: 105px; }
  .certification-slide span { font-size: .55rem; }
  .flavor-story-copy,
  .ingredients-intro,
  .nutrition-copy,
  .ingredients-content,
  .product-faq-heading {
    padding-inline: var(--section-space-x-small);
  }
  .product-faq-list {
    padding-right: var(--section-space-x-small);
    padding-left: var(--section-space-x-small);
  }
}
