/* ============================================================
   Components
   ============================================================ */

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: var(--bone);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn:hover {
  background: color-mix(in srgb, var(--accent) 80%, var(--bone));
  border-color: color-mix(in srgb, var(--accent) 80%, var(--bone));
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
}
.btn--ghost:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.btn--text {
  background: transparent;
  color: var(--accent);
  border: 0;
  padding: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--text-sm);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.btn--text:hover {
  background: transparent;
  color: var(--bone);
  border-bottom-color: var(--bone);
}

/* ----- Site header / nav ----- */
:root {
  --header-h: 76px; /* mobile: 16+44+16; the mobile-nav top sheet anchors to this */
}
@media (min-width: 768px) {
  :root { --header-h: 80px; }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: var(--rule-width) solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 1rem;
  min-height: var(--header-h);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--text-sm);
}
.site-header__brand:hover { text-decoration: none; }
.site-header__brand svg,
.site-header__brand img {
  height: 28px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.site-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-muted);
  transition: color var(--transition);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--bone);
}

/* Mobile nav: popover-based */
.site-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 767px) {
  .site-nav__toggle { display: inline-flex; }

  /* Hide the inline desktop nav, show a popover-targeted version */
  .site-nav--desktop { display: none; }

  /* Compact top-sheet: anchored below the header, auto-height, only
   * as tall as the links need. Same uppercase Inter caps as desktop
   * nav so the type voice stays consistent across breakpoints. */
  .site-nav--mobile[popover] {
    position: fixed;
    top: var(--header-h, 64px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - var(--header-h, 64px));
    margin: 0;
    padding: var(--space-3) var(--gutter) var(--space-4);
    background: var(--ink-elevated);
    border: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    color: var(--bone);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    /* Drop-in animation when opening */
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 180ms ease-out, opacity 180ms ease-out;
  }
  .site-nav--mobile[popover]:popover-open,
  .site-nav--mobile[popover].is-open-debug {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
  .site-nav--mobile[popover]::backdrop {
    background: rgba(13, 12, 10, 0.5);
  }
  .site-nav--mobile a {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--bone);
    padding-block: 1rem;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav--mobile a:last-of-type {
    border-bottom: 0;
  }
  /* Close button is invisible but still present for keyboard a11y;
   * users dismiss by tapping the backdrop or pressing Esc. The
   * toggle button itself doubles as a close trigger when popover
   * is open (browsers handle this natively via popovertarget). */
  .site-nav__close {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
}

@media (min-width: 768px) {
  .site-nav--mobile { display: none !important; }
  .site-nav__close { display: none; }
}

/* ----- Hero ----- */
.hero {
  padding-block: var(--space-6) var(--space-7);
}
@media (min-width: 768px) {
  .hero { padding-block: var(--space-7); }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-6);
  }
}

.hero__can {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__can img {
  width: auto;
  max-width: 100%;
  max-height: clamp(360px, 60vh, 640px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}

.hero__copy h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  margin-bottom: var(--space-4);
}
.hero__copy .lede { margin-bottom: var(--space-4); color: var(--bone); }
.hero__copy .spec { margin-bottom: var(--space-4); }
.hero__copy .cluster .btn + .btn { margin-left: 0; }

/* ----- Strip / banner -----
 * A quiet line of context under the hero. Static, centered, with a
 * small bone-glyph divider between phrases as a brand flourish.
 */
.strip {
  background: var(--ink-elevated);
  border-block: var(--rule-width) solid var(--rule);
  padding-block: 0.875rem;
  padding-inline: var(--gutter);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.strip strong { color: var(--bone); font-weight: 600; }
.strip a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(244, 236, 224, 0.25);
  text-underline-offset: 3px;
}
.strip a:hover { text-decoration-color: var(--bone); }

.strip__inner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}
.strip__sep {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--rule);
  vertical-align: middle;
}
.strip strong { color: var(--bone); font-weight: 600; }
.strip a { color: inherit; text-decoration: underline; text-decoration-color: rgba(244, 236, 224, 0.25); text-underline-offset: 3px; }
.strip a:hover { text-decoration-color: var(--bone); }

.strip__track {
  display: flex;
  width: max-content;
  gap: 0;
  /* The track holds two copies of the same content; we translate
   * by 50% to scroll the first copy fully off, with the second copy
   * already rendered in its place \u2014 the loop is seamless. */
  animation: strip-scroll 38s linear infinite;
}
.strip__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 100vw;
  justify-content: center;
  padding-inline: 1.5rem;
}
.strip__group > * + *::before {
  content: "\00a0\00b7\00a0\00a0";
  color: var(--rule);
}

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .strip { text-align: center; }
  .strip__track { animation: none; width: auto; justify-content: center; }
  .strip__group:nth-child(n+2) { display: none; }
}

/* ----- Product card ----- */
.product-card {
  background: var(--ink-elevated);
  border-top: 2px solid var(--accent);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--transition), border-color var(--transition);
}
.product-card:hover {
  transform: translateY(-2px);
}
.product-card__image {
  aspect-ratio: 3/5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}
.product-card__image img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.4));
  transition: transform var(--transition);
}
.product-card:hover .product-card__image img {
  transform: translateY(-4px);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.1;
}
.product-card__desc {
  color: var(--bone-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.product-card__spec {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--bone-muted);
  text-transform: uppercase;
}
.product-card .btn--text {
  align-self: flex-start;
  margin-top: var(--space-2);
}

/* Per-product accent overrides */
.product-card[data-flavor="hibiscus-mint"]   { --accent: var(--oxblood);  }
.product-card[data-flavor="rose-black"]      { --accent: var(--rose-ash); }
.product-card[data-flavor="tangerine-green"] { --accent: var(--sage);     }

/* ----- Testimonial ----- */
.testimonial {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--ink-elevated);
  border-top: 1px solid var(--rule);
}
.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.testimonial__quote::before {
  content: "\201C";
  font-family: var(--font-display);
  display: block;
  font-size: 3rem;
  line-height: 0.5;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.testimonial__attribution {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--bone-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ----- FAQ ----- */
.faq {
  display: grid;
  gap: 0;
}
.faq details {
  border-top: 1px solid var(--rule);
  padding-block: var(--space-3);
  transition: background var(--transition);
}
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--bone-muted);
  transition: transform var(--transition);
  flex: 0 0 auto;
}
.faq details[open] summary::after {
  content: "\2013"; /* en dash */
  transform: rotate(0deg);
}
.faq details > p,
.faq details > div {
  margin-top: var(--space-3);
  color: var(--bone-muted);
  max-width: 65ch;
}

/* ----- Forms ----- */
.form { display: grid; gap: var(--space-3); max-width: 520px; }
.form .cf-turnstile { margin-block: 0; min-height: 65px; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  background: var(--ink-elevated);
  border: 1px solid var(--rule);
  color: var(--bone);
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--oxblood);
  outline-offset: 2px;
  border-color: var(--bone);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.field--error input,
.field--error textarea { border-color: var(--oxblood); }
.field__hint {
  font-size: var(--text-xs);
  color: var(--bone-muted);
}
.form__status {
  font-size: var(--text-sm);
  color: var(--bone-muted);
  min-height: 1.5em;
}
.form__status[data-state="success"] { color: var(--sage); }
.form__status[data-state="error"]   { color: var(--oxblood); }

/* ----- Popover modal (waitlist popup) ----- */
.popup {
  border: 1px solid var(--rule);
  background: var(--ink-elevated);
  color: var(--bone);
  padding: var(--space-5);
  max-width: 420px;
  width: calc(100% - 2rem);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.popup::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
.popup__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}
.popup__title em { font-style: italic; }
.popup__body {
  color: var(--bone-muted);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bone-muted);
  border-radius: var(--radius);
}
.popup__close:hover { color: var(--bone); }
.popup .form { gap: var(--space-2); }

/* ----- Footer ----- */
.site-footer {
  border-top: var(--rule-width) solid var(--rule);
  padding-block: var(--space-5);
  background: var(--ink);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-6);
  }
}
.site-footer__brand p {
  color: var(--bone-muted);
  margin-top: var(--space-3);
  max-width: 36ch;
  font-size: var(--text-sm);
}
.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-muted);
  margin-bottom: var(--space-3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer a {
  color: var(--bone);
  text-decoration: none;
  font-size: var(--text-sm);
}
.site-footer a:hover { color: var(--bone-muted); }
.site-footer__legal {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: var(--rule-width) solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--bone-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}

/* ----- Social icon row ----- */
.social {
  display: inline-flex;
  gap: var(--space-3);
  align-items: center;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--bone-muted);
  border-radius: var(--radius);
  transition: color var(--transition);
}
.social a:hover { color: var(--bone); }
.social svg { width: 20px; height: 20px; }

/* ----- Reveal on scroll (paired with reveal.js) -----
 * Progressive enhancement: content is visible by default. Only when JS
 * loads does it add `js-reveal-ready` to <html>, opting elements into
 * the fade-in animation. This way: no-JS visitors see all content,
 * static screenshots see all content, JS visitors get the animation.
 */
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Page-level patterns (used across shop, about, partners, faq, contact)
   ============================================================ */

/* ----- Product detail (Shop page hero per flavor) ----- */
.product-detail__grid {
  align-items: center;
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .product-detail__grid { gap: var(--space-7); }
}
.product-detail__image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-detail__image img {
  width: auto;
  max-width: 100%;
  max-height: clamp(360px, 60vh, 600px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}
/* Reverse pattern for asymmetric stacking — image goes right on desktop */
@media (min-width: 720px) {
  .product-detail__grid--reverse > :first-child { order: 2; }
  .product-detail__grid--reverse > :last-child  { order: 1; }
}
/* Per-flavor accent — match the .product-card pattern */
.product-detail[data-flavor="hibiscus-mint"]   { --accent: var(--oxblood);  }
.product-detail[data-flavor="rose-black"]      { --accent: var(--rose-ash); }
.product-detail[data-flavor="tangerine-green"] { --accent: var(--sage);     }
.product-detail .eyebrow { color: var(--accent, var(--bone-muted)); }
.product-detail h2 em { color: var(--accent, var(--bone)); }

/* ----- Spec list (definition list for product / case specs) ----- */
.spec-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.spec-list dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-muted);
  font-weight: 400;
  padding-top: 0.15em;
}
.spec-list dd {
  color: var(--bone);
  margin: 0;
}
.spec-list dt + dd { border-top: none; }
/* Wider variant for partners/at-a-glance — adds hairlines between rows */
.spec-list--wide {
  grid-template-columns: minmax(160px, max-content) 1fr;
  gap: 0;
}
.spec-list--wide dt,
.spec-list--wide dd {
  padding-block: 0.875rem;
  padding-right: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.spec-list--wide > :nth-last-child(-n+2) { border-bottom: 0; }

/* ----- Prose grid (long-form pages: about, faq sections, contact) -----
 * Two-column: a small uppercase aside on the left, generous body copy
 * on the right. Same .grid--2 substrate, just typographically tuned. */
.prose-grid {
  align-items: start;
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .prose-grid { gap: var(--space-7); }
}
.prose-grid__aside { padding-top: 0.25rem; }
.prose-grid__aside .eyebrow { display: block; }

.prose {
  color: var(--bone);
  max-width: 60ch;
}
.prose > * + * { margin-top: var(--space-3); }
.prose .lede { font-size: var(--text-lg); line-height: 1.55; color: var(--bone); }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--bone); }

/* ----- FAQ groups (FAQ page) ----- */
.faq-group + .faq-group {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
}

/* ----- Trade card (Partners page) ----- */
.trade-card {
  background: var(--ink-elevated);
  border-top: 2px solid var(--rule);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.trade-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.15;
  font-weight: 400;
}
.trade-card p {
  color: var(--bone-muted);
  margin: 0;
  flex: 1;
}
.trade-card .btn--text { align-self: flex-start; }

/* ----- 404 ----- */
.not-found {
  min-height: calc(100dvh - var(--header-h, 76px) - 200px);
  display: flex;
  align-items: center;
}
.not-found h1 {
  font-size: var(--text-4xl);
}

/* ============================================================
   Cart (fake-cart demand-capture flow)
   See public/assets/js/cart.js for behavior.
   ============================================================ */

/* ----- Header cart button ----- */
.site-header__cart {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--bone);
  cursor: pointer;
  transition: border-color var(--transition);
}
.site-header__cart:hover { border-color: var(--bone); }
.site-header__cart svg { width: 22px; height: 22px; }
.site-header__cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--oxblood);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.site-header__cart-badge[hidden] { display: none; }

/* ----- Shop page steppers ----- */
.shop-stepper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--bone-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shop-stepper [data-shop-qty] { color: var(--accent, var(--oxblood)); font-weight: 500; }

/* ----- Cart drawer (right slide-in) ----- */
.cart[popover] {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  height: 100dvh;
  width: min(420px, 100vw);
  max-width: 100vw;
  padding: 0;
  background: var(--ink-elevated);
  border: 0;
  border-left: 1px solid var(--rule);
  color: var(--bone);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  /* Off-screen by default; transition in on :popover-open */
  transform: translateX(100%);
  opacity: 0;
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}
.cart[popover]:popover-open {
  transform: translateX(0);
  opacity: 1;
}
.cart[popover]::backdrop {
  background: rgba(13, 12, 10, 0.55);
}
.cart__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-4);
}
.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}
.cart__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin: 0;
}
.cart__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--bone);
  cursor: pointer;
  transition: border-color var(--transition);
}
.cart__close:hover { border-color: var(--bone); }

.cart__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-5);
  color: var(--bone-muted);
  text-align: center;
  font-size: var(--text-sm);
}
.cart__empty[hidden] { display: none; }
.cart__empty a { color: var(--bone); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }

.cart__items {
  flex: 1;
  overflow-y: auto;
  padding-block: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cart__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.5rem 1rem;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule);
}
.cart__row:last-child { border-bottom: 0; }
.cart__row[data-flavor="hibiscus-mint"]   { --accent: var(--oxblood); }
.cart__row[data-flavor="rose-black"]      { --accent: var(--rose-ash); }
.cart__row[data-flavor="tangerine-green"] { --accent: var(--sage); }
.cart__row-name { display: flex; flex-direction: column; gap: 0.2rem; }
.cart__row-name strong { font-weight: 500; color: var(--bone); }
.cart__row-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.cart__row-controls {
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.cart__row-qty {
  font-family: var(--font-mono);
  min-width: 1.5em;
  text-align: center;
  color: var(--bone);
}
.cart__step {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--bone);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition);
}
.cart__step:hover { border-color: var(--accent, var(--bone)); }
.cart__row-price {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-mono);
  color: var(--bone);
  align-self: start;
}

.cart__summary {
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cart__summary[hidden] { display: none; }
.cart__totals {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--bone-muted);
}
.cart__totals strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--bone);
  font-weight: 400;
}
.cart__checkout {
  width: 100%;
  text-align: center;
}
.cart__checkout[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}
.cart__note {
  font-size: var(--text-xs);
  color: var(--bone-muted);
  line-height: 1.45;
  margin: 0;
}

/* Free-shipping nudge — small progress bar + dynamic copy. */
.cart__shipping-wrap {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--bone-muted);
  line-height: 1.5;
}
.cart__shipping {
  display: block;
}
.cart__shipping strong {
  color: var(--bone);
  font-weight: 500;
}
.cart__shipping--qualified {
  color: var(--sage);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.cart__shipping-bar {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.5rem;
  background: var(--rule);
  border-radius: 1px;
  overflow: hidden;
}
.cart__shipping-bar-fill {
  display: block;
  height: 100%;
  background: var(--oxblood);
  transition: width 220ms ease-out;
}

/* Checkout wall: shipping line in the cart summary */
.checkout-wall__shipping-line {
  border-top: 1px dashed var(--rule);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}
.checkout-wall__shipping-line--muted span:last-child {
  color: var(--bone-muted) !important;
  font-style: italic;
}

/* ----- "Temporarily unavailable" checkout wall ----- */
.checkout-wall[popover] {
  border: 1px solid var(--rule);
  background: var(--ink-elevated);
  color: var(--bone);
  padding: var(--space-5);
  max-width: 540px;
  width: calc(100% - 2rem);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.checkout-wall[popover]::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}
.checkout-wall__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--bone);
  cursor: pointer;
}
.checkout-wall__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.05;
  font-weight: 400;
  margin-block: var(--space-2) var(--space-3);
}
.checkout-wall__title em { color: var(--oxblood); font-style: italic; }
.checkout-wall__body {
  color: var(--bone-muted);
  margin-bottom: var(--space-4);
  max-width: 50ch;
}
.checkout-wall__summary {
  background: var(--ink);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.checkout-wall__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--bone-muted);
}
.checkout-wall__items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.checkout-wall__items li span:first-child { text-transform: uppercase; }
.checkout-wall__items li span:last-child { color: var(--bone); }
.checkout-wall__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: var(--space-3) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}
.checkout-wall__total span:first-child {
  text-transform: uppercase;
  color: var(--bone-muted);
}
.checkout-wall__total span:last-child {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--bone);
}
