/* ============================================================
   Supplemental layout CSS for the static export.
   Uses the theme's own CSS variables (colors/fonts/spacing) from
   theme-variables.css + theme-color-schemes.css so the look matches
   the live Evita Blood Health storefront. Standalone (file://) safe.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body--family);
  font-weight: var(--font-body--weight);
  font-size: var(--font-paragraph--size);
  line-height: var(--line-height--body-normal);
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; }
.rte h1, .rte h2, .rte h3, .rte h4, .rte h5, .rte h6, .rte p { margin: 0 0 0.5em; }
.rte > *:last-child { margin-bottom: 0; }

h1, .h1 { font-family: var(--font-h1--family); font-weight: var(--font-h1--weight); font-size: var(--font-h1--size); line-height: var(--font-h1--line-height); letter-spacing: var(--font-h1--letter-spacing); color: var(--color-foreground-heading); }
h2, .h2 { font-family: var(--font-h2--family); font-weight: var(--font-h2--weight); font-size: var(--font-h2--size); line-height: var(--font-h2--line-height); letter-spacing: var(--font-h2--letter-spacing); color: var(--color-foreground-heading); }
h3, .h3 { font-family: var(--font-h3--family); font-weight: var(--font-h3--weight); font-size: var(--font-h3--size); line-height: var(--font-h3--line-height); letter-spacing: var(--font-h3--letter-spacing); color: var(--color-foreground-heading); }
h4, .h4 { font-family: var(--font-h4--family); font-weight: var(--font-h4--weight); font-size: var(--font-h4--size); line-height: var(--font-h4--line-height); color: var(--color-foreground-heading); }
h5, .h5 { font-family: var(--font-h5--family); font-weight: var(--font-h5--weight); font-size: var(--font-h5--size); line-height: var(--font-h5--line-height); color: var(--color-foreground-heading); }
h6, .h6 { font-family: var(--font-h6--family); font-weight: var(--font-h6--weight); font-size: var(--font-h6--size); color: var(--color-foreground-heading); }

/* ---------- Layout helpers ---------- */
.page-width { width: 100%; max-width: var(--page-width); margin-inline: auto; padding-inline: var(--page-margin); }
.section-spacing { padding-block: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.button, .button-secondary, button.button, a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--button-font-family-primary); font-weight: 500; font-size: 1rem;
  text-transform: var(--button-text-case); text-decoration: none; cursor: pointer;
  padding: var(--button-padding-block) var(--button-padding-inline);
  min-height: var(--minimum-touch-target); line-height: 1; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button {
  background: var(--color-primary-button-background); color: var(--color-primary-button-text);
  border: var(--style-border-width-primary) solid var(--color-primary-button-border);
  border-radius: var(--style-border-radius-buttons-primary);
}
.button:hover { background: var(--color-primary-button-hover-background); color: var(--color-primary-button-hover-text); border-color: var(--color-primary-button-hover-border); }
.button-secondary {
  background: var(--color-secondary-button-background); color: var(--color-secondary-button-text);
  border: var(--style-border-width-secondary) solid var(--color-secondary-button-border);
  border-radius: var(--style-border-radius-buttons-secondary);
}
.button-secondary:hover { background: var(--color-secondary-button-hover-background); color: var(--color-secondary-button-hover-text); border-color: var(--color-secondary-button-hover-border); }
.link { background: none; border: none; color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Header (green, sticky, scroll logo-swap) ---------- */
.site-header { position: sticky; top: 0; z-index: var(--layer-header-menu); background: #145c3e; color: #fff; transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding-block: 1rem; }
.header-left { display: flex; align-items: center; gap: 2rem; }
.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-left > .nav-home, .header-nav a { text-decoration: none; font-size: var(--menu-font-md--size); opacity: .9; color: #fff; }
.header-left > .nav-home:hover, .header-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-home { color: #fff; }
.header-logo-inline { display: none; align-items: center; }
.header-logo-inline img { height: auto; max-width: 150px;width: 100%; }
.header-logo-center { display: none; }
.header-logo-center img { height: 32px; width: auto; }
/* On scroll: logo replaces the "Home" link on the left */
.site-header.is-scrolled .nav-home { display: none; }
.site-header.is-scrolled .header-logo-inline { display: inline-flex; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; color: #fff; }
.header-actions button, .header-actions a { background: none; border: none; cursor: pointer; color: inherit; display: inline-flex; align-items: center; padding: 0; }
.header-actions .icon { width: 22px; height: 22px; }
.header-burger { display: none; background: none; border: none; cursor: pointer; color: #fff; }
.header-burger .icon { width: 26px; height: 26px; }
.cart-bump { animation: cartBump .45s ease; }
@keyframes cartBump { 0%,100% { transform: scale(1); } 35% { transform: scale(1.35); } }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  font-size: 11px; border-radius: 50%; background: #0a3828; color: #fff;
  position: absolute; top: -8px; right: -10px; padding: 0 4px;
}

/* ---------- Mobile menu drawer ---------- */
.mobile-menu { display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu { border-top: 1px solid var(--border-color); }
.mobile-menu a { display: block; padding: .9rem var(--page-margin); text-decoration: none; border-bottom: 1px solid var(--border-color); }

/* ---------- Generic section / group flex ---------- */
.section { position: relative; }
.section--page-width > .section-inner { max-width: var(--page-width); margin-inline: auto; padding-inline: var(--page-margin); }
.section--full-width > .section-inner { width: 100%; }
.layout-panel-flex { display: flex; gap: var(--gap, 1rem); }
.layout-panel-flex--column { flex-direction: column; }
.layout-panel-flex--row { flex-direction: row; }
.group-block-content { display: flex; gap: var(--gap, 1rem); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; overflow: hidden; }
.hero--full-screen { min-height: calc(100svh - var(--header-height, 64px)); }
.hero--large { min-height: 70svh; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; }
.hero__overlay--gradient-bottom { background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(6,0,0,.77)); }
.hero__inner {
  position: relative; z-index: 1; width: 100%; max-width: var(--page-width);
  margin-inline: auto; padding: 4rem var(--page-margin);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero--center .hero__inner,
.hero__inner.hero--center { justify-content: center; }
.hero__content { display: flex; flex-direction: column; gap: 1.5rem; max-width: 640px; }
.hero__content.hero__content--narrow { max-width: 520px; }
.hero__eyebrow { font-family: var(--font-heading--family); text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }

/* ---------- Editorial split (group with bg image + text) ---------- */
.editorial-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 60svh; }
.editorial-split__media { background-size: cover; background-position: center; min-height: 320px; }
.editorial-split__content { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 3rem clamp(1.5rem, 4vw, 4rem); }
.editorial-split__content h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

/* ---------- Pull quote ---------- */
.pull-quote { text-align: center; }
.pull-quote .stars { display: inline-flex; gap: .25rem; color: var(--color-foreground); }
.pull-quote .stars .icon { width: 24px; height: 24px; }
.pull-quote p { max-width: 40rem; margin-inline: auto; }

/* ---------- Icons with text ---------- */
.icons-with-text { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.icon-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.icon-col .icon { width: 58px; height: 58px; }
.icon-col h3 { font-size: 1.1rem; }
.icon-col p { color: var(--color-foreground); opacity: .9; }

/* ---------- Product list / grid ---------- */
.product-list-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 20px; }
.product-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--color-border); border-radius: 2px; overflow: hidden; background: var(--color-background); }
.product-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #d9d9d9; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out-cubic); }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__info { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 16px 12px 18px; text-align: center; }
.product-card__title { font-weight: 700 !important; }
.product-card__title { font-family: var(--font-body--family); font-weight: 600; font-size: 1.125rem; color: var(--color-foreground-heading); }
.product-card__price { font-size: 1.125rem; color: var(--color-foreground); }

/* ---------- Media with content ---------- */
.media-with-content { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.media-with-content--media-right .media-with-content__media { order: 2; }
.media-with-content__media { min-height: 60svh; }
.media-with-content__media img { width: 100%; height: 100%; object-fit: cover; }
.media-with-content__pic { display: block; width: 100%; height: 100%; }
.media-with-content__content { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: 3rem clamp(1.5rem, 5vw, 5rem); }
.media-with-content__content h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }

/* ---------- Email signup ---------- */
.email-signup { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.email-signup__form { display: flex; align-items: center; width: 100%; max-width: 460px; border: 1px solid var(--color-input-border); border-radius: 100px; overflow: hidden; background: var(--color-input-background); }
.email-signup__form input { flex: 1; border: none; outline: none; background: transparent; padding: 14px 20px; color: var(--color-input-text); font-size: 1rem; }
.email-signup__form button { border: none; background: none; padding: 0 18px; cursor: pointer; color: var(--color-input-text); display: flex; align-items: center; }
.email-signup__form button .icon { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-color); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; padding-block: 3.5rem; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-brand address { font-style: normal; line-height: 1.6; opacity: .9; }
.footer-col h4 { font-family: var(--font-heading--family); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { text-decoration: none; opacity: .9; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer { border-top: 1px solid var(--border-color); padding-block: 2rem; font-size: .85rem; opacity: .8; line-height: 1.6; }
.footer-disclaimer h4 { font-family: var(--font-heading--family); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; margin-bottom: .5rem; }
.footer-copyright { padding-block: 1.5rem; font-size: .85rem; opacity: .8; border-top: 1px solid var(--border-color); }

/* ============================================================
   Custom Footer (sections/custom-footer.liquid) — exact port
   ============================================================ */
.cf-wrapper { background-color: var(--cf-bg, #145c3e); color: var(--cf-text, #ffffff); font-family: var(--font-body--family); }
.cf-wrapper * { box-sizing: border-box; }
.cf-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.cf-main { padding: 56px 0 48px; }
.cf-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cf-col { margin: 0; }
.cf-brand-logo { max-width: 160px; height: auto; display: block; margin-bottom: 12px; }
.cf-brand-name { font-size: 22px; font-weight: 700; color: var(--cf-heading-color, #fff); margin: 0 0 10px; line-height: 1.3; }
.cf-brand-address { font-size: 13px; line-height: 1.7; opacity: .85; margin: 0; font-style: normal; }
.cf-col-heading { font-size: 13px; font-weight: 700; color: var(--cf-heading-color, #fff); margin: 0 0 16px; letter-spacing: .08em; text-transform: uppercase; }
.cf-link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cf-link { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cf-text, #fff); text-decoration: none; opacity: .88; transition: opacity .2s ease, color .2s ease; }
.cf-link:hover, .cf-link:focus-visible { opacity: 1; color: var(--cf-link-hover, #a8e6cf); text-decoration: underline; }
.cf-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: var(--cf-icon-size, 18px); line-height: 1; }
.cf-icon svg { width: 100%; height: auto; display: block; fill: currentColor; color: inherit; }
.cf-icon:empty { display: none; }
.cf-return-address { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; opacity: .88; line-height: 1.6; }
.cf-icon--top { margin-top: 3px; }
.cf-text-block { font-size: 13px; line-height: 1.7; opacity: .85; margin: 0; }
.cf-disclaimer { background-color: var(--cf-disclaimer-bg, rgba(0,0,0,.18)); padding: 24px 0; }
.cf-disclaimer-inner { text-align: center; }
.cf-disclaimer-heading { font-size: 13px; font-weight: 700; margin: 0 0 8px; letter-spacing: .04em; text-transform: uppercase; color: var(--cf-text, #fff); }
.cf-disclaimer-text { font-size: 12px; line-height: 1.7; opacity: .78; max-width: 860px; margin: 0 auto; }
.cf-bottom { background-color: var(--cf-bottom-bg, rgba(0,0,0,.28)); padding: 16px 24px; text-align: center; }
.cf-copyright { font-size: 13px; color: var(--cf-copyright-color, rgba(255,255,255,.65)); margin: 0; }
@media (max-width: 768px) { .cf-columns { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   Cart drawer (Shopify-style slide-out)
   ============================================================ */
.cart-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.cart-drawer.is-open { visibility: visible; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(10,10,10,.4); opacity: 0; transition: opacity .3s ease; }
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
  background: var(--color-background); color: var(--color-foreground);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -6px 0 30px rgba(0,0,0,.15);
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.5rem 1.25rem; }
.cart-drawer__head h2 { font-size: 1.75rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.cart-drawer__count { font-size: .8rem; font-weight: 600; background: rgb(var(--color-foreground-rgb)/.08); color: var(--color-foreground); min-width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.cart-drawer__close { background: none; border: none; cursor: pointer; color: inherit; display: inline-flex; padding: 4px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 0 1.5rem; }
.cart-drawer__empty { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; padding: 35vh 1rem 1rem; }
.cart-drawer__empty p { font-size: 1.6rem; font-weight: 600; color: var(--color-foreground-heading); margin: 0; }
.cart-drawer__empty .button { min-width: 220px; }
.cart-line { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); }
.cart-line__media { width: 60px; height: 60px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #d9d9d9; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.cart-line__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cart-line__title { font-weight: 600; font-size: .98rem; color: var(--color-foreground-heading); }
.cart-line__total { font-weight: 600; font-size: .95rem; color: var(--color-foreground-heading); white-space: nowrap; }
.cart-line__sub { font-size: .82rem; color: var(--color-foreground-muted); }
.cart-line__unit { font-size: .82rem; color: var(--color-foreground-muted); margin-bottom: .6rem; }
.cart-line__controls { display: flex; align-items: center; gap: 1rem; margin-top: auto; }
.cart-line__qty { display: inline-flex; align-items: center; border: 1px solid var(--color-foreground); border-radius: 8px; }
.cart-line__qty button { background: none; border: none; width: 34px; height: 36px; cursor: pointer; font-size: 1.05rem; color: inherit; }
.cart-line__qty span { min-width: 26px; text-align: center; font-size: .9rem; }
.cart-line__remove { background: none; border: none; cursor: pointer; color: var(--color-foreground); display: inline-flex; padding: 4px; }
.cart-line__remove svg { overflow: visible; }
.cart-line__remove .remove-icon-top { transform-box: fill-box; transform-origin: left center; transition: transform .2s ease; }
.cart-line__remove:hover { color: var(--color-error); }
.cart-line__remove:hover .remove-icon-top { transform: translateY(-2px) rotate(-18deg); }
.cart-drawer__foot { border-top: 1px solid var(--color-border); padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.cart-drawer__subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; color: var(--color-foreground-heading); }
.cart-drawer__note { font-size: .82rem; color: var(--color-foreground-muted); margin: 0 0 .5rem; }
.cart-drawer__foot .button { border-radius: 100px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 24px; animation: marquee 22s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Page templates: collection, product, cart, search, contact,
   ingredients, prose pages, blog, 404, password
   ============================================================ */

/* ---- Page hero / banner ---- */
.page-hero { position: relative; min-height: 42svh; display: flex; align-items: center; overflow: hidden; }
.page-hero .hero__media, .page-hero .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--page-width); margin-inline: auto; padding: 3rem var(--page-margin); }
.page-hero h1 { color: #fff; }
.page-title-block { text-align: center; padding-block: 3rem 1rem; }
.page-title-block .page-width { display: flex; flex-direction: column; gap: 1rem; align-items: center; }

/* ---- Collection ---- */
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; color: var(--color-foreground); }
.collection-toolbar select { padding: .5rem .8rem; border: 1px solid var(--color-border); border-radius: var(--style-border-radius-inputs); background: var(--color-input-background); color: var(--color-input-text); font: inherit; }

/* ---- Product page ---- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding-block: 3rem; align-items: start; }
.product-gallery { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }
.product-gallery__main { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: rgb(var(--color-foreground-rgb) / .04); }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: .75rem; flex-wrap: wrap; }
.product-gallery__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; background: rgb(var(--color-foreground-rgb) / .04); }
.product-gallery__thumbs img.is-active { border-color: var(--color-primary); }
.product-info { display: flex; flex-direction: column; gap: 1.25rem; }
.product-info__viewers { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--color-foreground-muted); }
.product-info__avatars { display: inline-flex; }
.product-info__avatars span { width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); color: var(--color-primary-button-text); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; margin-left: -8px; border: 2px solid var(--color-background); }
.product-info__avatars span:first-child { margin-left: 0; }
.product-price { font-size: 1.6rem; font-weight: 600; color: var(--color-foreground-heading); }
.product-price small { font-size: .8rem; font-weight: 400; color: var(--color-foreground-muted); margin-left: .5rem; }
.product-desc { color: var(--color-foreground); line-height: 1.6; }
.stock-warning { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: #b3541e; font-weight: 500; }
.purchase-toggle { display: flex; gap: .5rem; }
.purchase-toggle button { flex: 1; padding: .9rem; border: 1px solid var(--color-border); background: var(--color-background); border-radius: 10px; cursor: pointer; font: inherit; color: var(--color-foreground); }
.purchase-toggle button.is-selected { border-color: var(--color-primary); background: rgb(var(--color-primary-rgb) / .06); font-weight: 600; }
.variant-options { display: flex; flex-direction: column; gap: .6rem; }
.variant-options__label { font-size: .85rem; font-weight: 600; color: var(--color-foreground-heading); }
.variant-pills { display: flex; flex-direction: column; gap: .6rem; }
.variant-pill { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--color-border); border-radius: 10px; cursor: pointer; }
.variant-pill.is-selected { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.variant-pill .save-badge { font-size: .75rem; background: var(--color-primary); color: var(--color-primary-button-text); padding: 2px 8px; border-radius: 100px; }
.qty-row { display: flex; align-items: center; gap: 1rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 100px; overflow: hidden; }
.qty-stepper button { background: none; border: none; width: 42px; height: 44px; font-size: 1.1rem; cursor: pointer; color: var(--color-foreground); }
.qty-stepper input { width: 44px; text-align: center; border: none; background: transparent; font: inherit; color: var(--color-foreground); }
.product-cta { width: 100%; }
.product-fineprint { font-size: .78rem; color: var(--color-foreground-muted); line-height: 1.5; }

/* ---- Product page (subscription + dropdown) ---- */
.pdp { display:grid; grid-template-columns:1fr 1fr; gap:clamp(1.5rem,4vw,3.5rem); padding-block:2.5rem 3.5rem; align-items:start; }
.pdp-gallery { display:flex; flex-direction:column; gap:.75rem; }
.pdp-media { background:#d9d9d9; border-radius:4px; overflow:hidden; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; }
.pdp-media img { width:100%; height:100%; }
/* Collage of secondary images: 2 per row, lone trailing image spans full row */
.pdp-collage { display: flex;gap: 10px; }
.pdp-collage__item { padding:0; margin:0; border:1px solid var(--color-border); border-radius:4px; overflow:hidden; cursor:pointer; background:#d9d9d9; aspect-ratio:1/1; max-width: 120px;}
.pdp-collage__item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s var(--ease-out-cubic); }
.pdp-collage__item:hover img { transform:scale(1.04); }
.pdp-collage__item.is-active { outline:2px solid var(--color-primary); outline-offset:-2px; }
.pdp-collage > .pdp-collage__item:last-child:nth-child(odd) { grid-column:1 / -1; aspect-ratio:16/9; }
.pdp-info { display:flex; flex-direction:column; gap:1rem; }
.pdp-viewers { display:flex; align-items:center; gap:.5rem; font-size:.82rem; color:var(--color-foreground-muted); }
.pdp-dot { width:9px; height:9px; border-radius:50%; background:#3ED660; display:inline-block; }
.pdp-avatars { display:inline-flex; margin-right:.25rem; }
.pdp-avatars span { width:24px; height:24px; border-radius:50%; background:#caa37a; color:#3a2410; display:inline-flex; align-items:center; justify-content:center; font-size:.6rem; font-weight:600; margin-left:-7px; border:2px solid var(--color-background); }
.pdp-avatars span:first-child { margin-left:0; }
.pdp h1 { font-size:clamp(1.6rem,3vw,2rem); }
.pdp-price { display:flex; align-items:baseline; gap:.6rem; font-size:1.25rem; }
.pdp-price .now { font-weight:600; color:var(--color-foreground-heading); }
.pdp-price .was { font-size:1rem; color:var(--color-foreground-muted); text-decoration:line-through; }
.pdp-desc { color:var(--color-foreground); line-height:1.6; font-size:.95rem; }
.pdp-stock { display:flex; flex-direction:column; gap:.5rem; }
.pdp-stock__label { display:inline-flex; align-items:center; gap:.4rem; font-size:.85rem; color:#b3541e; font-weight:600; }
.pdp-stock__bar { height:5px; border-radius:100px; background:rgb(var(--color-foreground-rgb)/.12); overflow:hidden; }
.pdp-stock__bar > span { display:block; height:100%; width:28%; background:#b3541e; border-radius:100px; transition:width .6s ease; }
.pdp-divider { border:0; border-top:1px solid var(--color-border); margin:.25rem 0; }
.pdp-toggle { display:flex; gap:0; border:1px solid var(--color-border); border-radius:10px; overflow:hidden; }
.pdp-toggle button { flex:1; display:flex; align-items:center; justify-content:center; gap:.5rem; padding:.85rem 1rem; border:none; background:var(--color-background); cursor:pointer; font:inherit; font-size:.9rem; color:var(--color-foreground); }
.pdp-toggle button.is-selected { background:#604020; color:#fff; }
.pdp-toggle .save-pill { font-size:.7rem; background:rgba(255,255,255,.25); padding:2px 8px; border-radius:100px; }
.pdp-toggle button:not(.is-selected) .save-pill { background:#604020; color:#fff; }
.pdp-field-label { font-size:.85rem; font-weight:600; color:var(--color-foreground-heading); }
.pdp-select { position:relative; }
.pdp-select select { width:100%; -webkit-appearance:none; appearance:none; padding:.9rem 2.5rem .9rem 1rem; border:1px solid var(--color-border); border-radius:10px; background:var(--color-background); color:var(--color-foreground); font:inherit; font-size:.95rem; cursor:pointer; }
.pdp-select::after { content:""; position:absolute; right:1rem; top:50%; width:9px; height:9px; border-right:2px solid var(--color-foreground); border-bottom:2px solid var(--color-foreground); transform:translateY(-65%) rotate(45deg); pointer-events:none; }
.pdp-buy { display:flex; align-items:stretch; gap:.75rem; }
.pdp-qty { display:inline-flex; align-items:center; border:1px solid var(--color-border); border-radius:100px; }
.pdp-qty button { background:none; border:none; width:40px; height:48px; font-size:1.1rem; cursor:pointer; color:var(--color-foreground); }
.pdp-qty input { width:40px; text-align:center; border:none; background:transparent; font:inherit; color:var(--color-foreground); }
.pdp-addcart { flex:1; border-radius:100px; }
.pdp-fineprint { font-size:.78rem; color:var(--color-foreground-muted); line-height:1.55; }
.pdp-fineprint a { color:var(--color-primary); }

/* ---- Product FAQ (label left, list right) ---- */
.pdp-faq { display:grid; grid-template-columns:1fr 2fr; gap:2rem; padding-block:3rem; border-top:1px solid var(--color-border); align-items:center; }
.pdp-faq__title { font-size:clamp(1.3rem,2.2vw,1.6rem); }
.pdp-faq__list { display:flex; flex-direction:column; }
.pdp-faq__item { border-bottom:1px solid var(--color-border); }
.pdp-faq__item:first-child { border-top:1px solid var(--color-border); }
.pdp-faq__trigger { width:100%; display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.1rem 0; background:none; border:none; cursor:pointer; font:inherit; text-align:left; color:var(--color-foreground); }
.pdp-faq__trigger::after { content:"+"; font-size:1.3rem; color:var(--color-foreground); }
.pdp-faq__item.is-open .pdp-faq__trigger::after { content:"−"; }
.pdp-faq__panel { max-height:0; overflow:hidden; transition:max-height .25s ease; }
.pdp-faq__item.is-open .pdp-faq__panel { max-height:400px; }
.pdp-faq__panel p { padding:0 0 1.1rem; margin:0; color:var(--color-foreground); line-height:1.6; font-size:.9rem; }

/* ---- Related products ---- */
.related { padding-block:2.5rem 3.5rem; border-top:1px solid var(--color-border); }
.related h2 { font-size:clamp(1.3rem,2.2vw,1.6rem); margin-bottom:1.75rem; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; max-width:920px; }
.related-card { text-decoration:none; color:inherit; border:1px solid var(--color-border); border-radius:2px; overflow:hidden; background:var(--color-background); display:flex; flex-direction:column; }
.related-card__media { background:linear-gradient(135deg,#e9e9e9,#dcdcdc); aspect-ratio:1/1; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.related-card__media img { width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.related-card__title { margin-top:0; padding:.85rem 1rem 0; font-size:.95rem; color:var(--color-foreground-heading); }
.related-card__price { padding:.15rem 1rem 1rem; font-size:.95rem; color:var(--color-foreground); }

@media screen and (max-width:900px){
  .pdp { grid-template-columns:1fr; }
  .pdp-faq { grid-template-columns:1fr; gap:1rem; }
  .related-grid { grid-template-columns:1fr; max-width:420px; margin-inline:auto; }
}

/* ---- FAQ accordion ---- */
.faq { max-width: 820px; margin-inline: auto; }
.faq h2 { text-align: center; margin-bottom: 2rem; }
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; background: none; border: none; cursor: pointer; font: inherit; font-weight: 600; text-align: left; color: var(--color-foreground-heading); }
.accordion-trigger::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--color-primary); transition: transform .2s ease; }
.accordion-item.is-open .accordion-trigger::after { content: "−"; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-item.is-open .accordion-panel { max-height: 600px; }
.accordion-panel p { padding: 0 0 1.1rem; color: var(--color-foreground); line-height: 1.6; margin: 0; }

/* ---- Cart ---- */
.cart-empty { text-align: center; padding-block: 6rem; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.cart-empty h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cart-table { width: 100%; border-collapse: collapse; margin-block: 2rem; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--color-border); padding: .75rem 0; }
.cart-row td { padding: 1rem 0; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-row__product { display: flex; gap: 1rem; align-items: center; }
.cart-row__product img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-foot { display: flex; flex-direction: column; gap: 1rem; align-items: flex-end; padding-top: 1.5rem; }

/* ---- Search ---- */
.search-block { max-width: 760px; margin-inline: auto; padding-block: 3rem; }
.search-field { display: flex; align-items: center; border: 1px solid var(--color-input-border); border-radius: 100px; padding: .25rem .5rem .25rem 1.25rem; }
.search-field input { flex: 1; border: none; outline: none; background: transparent; padding: .9rem .5rem; font-size: 1.05rem; color: var(--color-input-text); }
.search-field button { background: none; border: none; cursor: pointer; padding: .5rem; color: var(--color-foreground); }

/* ---- Contact ---- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding-block: 2rem; }
.contact-card { border: 1px solid var(--color-border); border-radius: 14px; padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem; }
.contact-card h3 { font-size: 1.1rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-block: 2rem; align-items: start; }
.contact-grid iframe { width: 100%; min-height: 320px; border: 0; border-radius: 14px; }
.info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.info-list h4 { font-family: var(--font-heading--family); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; margin-bottom: .25rem; }

/* ---- Ingredients ---- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-block: 2rem; }
.feature-card { text-align: center; padding: 1.5rem; border: 1px solid var(--color-border); border-radius: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.ingredient-block { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-block: 2.5rem; align-items: center; }
.ingredient-block:nth-child(even) .ingredient-block__media { order: 2; }
.ingredient-block__media img { width: 100%; border-radius: 14px; border: 1px solid var(--color-border); }
.ingredient-block__content { display: flex; flex-direction: column; gap: .8rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-row span { font-size: .8rem; border: 1px solid var(--color-border); border-radius: 100px; padding: 4px 12px; }

/* ---- Prose pages (policy / generic page) ---- */
.prose { max-width: 780px; margin-inline: auto; padding-block: 3rem; color: var(--color-foreground); line-height: 1.7; }
.prose h1 { margin-bottom: 1.5rem; }
.prose h2 { margin: 2rem 0 .75rem; font-size: 1.4rem; }
.prose p, .prose li { margin-bottom: 1rem; }
.prose ul { padding-left: 1.25rem; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-block: 2rem; }
.blog-card { display: flex; flex-direction: column; gap: .75rem; text-decoration: none; color: inherit; }
.blog-card__media { aspect-ratio: 3/2; border-radius: 12px; overflow: hidden; background: rgb(var(--color-foreground-rgb) / .05); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__meta { font-size: .8rem; color: var(--color-foreground-muted); }
.blog-card h3 { font-size: 1.15rem; }
.article-body { max-width: 740px; margin-inline: auto; padding-block: 2rem 3rem; line-height: 1.8; }
.article-body img { border-radius: 12px; margin-block: 1.5rem; }

/* ---- 404 / password ---- */
.centered-state { min-height: 60svh; display: flex; flex-direction: column; gap: 1.25rem; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.password-wrap { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; background: #145c3e; color: #fff; }
.password-card { max-width: 420px; display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
.password-card img { height: 48px; }

@media screen and (max-width: 990px) {
  .product { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
}
@media screen and (max-width: 749px) {
  .contact-cards, .contact-grid, .ingredient-block, .blog-grid { grid-template-columns: 1fr; }
  .ingredient-block:nth-child(even) .ingredient-block__media { order: 0; }
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 990px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .icons-with-text { grid-template-columns: 1fr; gap: 2rem; }
}
@media screen and (max-width: 749px) {
  .header-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
  .header-left { display: none; }
  .header-burger { display: inline-flex; grid-column: 1; justify-self: start; }
  .header-logo-center { display: inline-flex; grid-column: 2; justify-self: center; }
  .header-actions { grid-column: 3; justify-self: end; }
  .editorial-split, .media-with-content { grid-template-columns: 1fr; }
  .media-with-content--media-right .media-with-content__media { order: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero__inner { padding-block: 3rem; }
}
