/*
Theme Name: AG1 Store
Theme URI: https://driinkag1.shop
Author: AG1 Storefront Team
Description: Custom WooCommerce theme replicating the AG1 digital flagship storefront experience.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.2
License: proprietary
Text Domain: ag1
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */
@font-face {
  font-family: 'Diatype';
  src: url('assets/fonts/Diatype-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Diatype';
  src: url('assets/fonts/Diatype-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DiatypeMono';
  src: url('assets/fonts/DiatypeMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AGItems';
  src: url('assets/fonts/AGItems-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TimesNow';
  src: url('assets/fonts/TimesNow-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */
:root {
  --brand: #023d3d;
  --brand-soft: #105c5c;
  --go: #46de46;
  --go-dark: #001c0f;
  --dark: #0f2e2f;
  --mint: #f0f9f3;
  --cream: #f4f1ea;
  --off-white: #f6f5f1;
  --sand: #eee;
  --line: #cdd2cf;
  --line-soft: #e6e9e7;
  --ink: #292b29;
  --muted: #666766;
  --white: #fff;
  --error: #a22a2a;
  --sage: #5a9d71;

  --font-sans: 'Diatype', Arial, Helvetica, sans-serif;
  --font-serif: 'TimesNow', 'Times New Roman', Times, serif;
  --font-mono: 'DiatypeMono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-items: 'AGItems', var(--font-sans);

  --gutter: 24px;
  --max: 1440px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --header-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3. Reset / base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  margin: 0 0 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h1 { font-family: var(--font-serif); font-size: clamp(38px, 4.4vw, 64px); }
h2 { font-family: var(--font-serif); font-size: clamp(30px, 3.2vw, 48px); }
h3 { font-size: 24px; line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0 0 16px; }

ul, ol { margin: 0 0 16px; padding-left: 20px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  width: auto; height: auto; padding: 10px 16px;
  background: var(--brand); color: #fff; clip: auto;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ==========================================================================
   4. Layout helpers
   ========================================================================== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 900px) {
  :root { --gutter: 56px; --header-h: 90px; }
}
@media (min-width: 1680px) {
  :root { --gutter: 120px; }
}

.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

.section--mint { background: var(--mint); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.lede { font-size: 18px; line-height: 1.55; max-width: 62ch; }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--go);
  color: var(--go-dark);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: background var(--ease) 0.2s, color var(--ease) 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #2fce2f; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--go-dark); }

.btn--outline { background: transparent; border-color: currentColor; color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--mint); }

.btn--block { width: 100%; }

.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }

.btn [class^='icon'] { width: 18px; height: 18px; }

/* ==========================================================================
   6. Announcement bar
   ========================================================================== */
.announcement {
  background: var(--go);
  color: var(--go-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  white-space: nowrap;
}
.announcement__track {
  display: inline-flex;
  gap: 48px;
  padding: 10px 0;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.announcement__item { display: inline-flex; align-items: center; gap: 10px; }
.announcement__item::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement__track { animation: none; }
}

/* ==========================================================================
   7. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.site-header__logo { flex: none; }
.site-header__logo img { width: 84px; }
@media (min-width: 900px) { .site-header__logo img { width: 118px; } }

.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }
}
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--header-h);
  padding: 0 16px;
  font-size: 18px;
  background: none;
  border: 0;
  color: var(--ink);
  position: relative;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 22px;
  height: 4px;
  border-radius: 4px;
  background: var(--go);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.site-nav__item:hover .site-nav__link::after,
.site-nav__link[aria-expanded='true']::after { opacity: 1; }

.site-nav__caret {
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s var(--ease);
}
.site-nav__item:hover .site-nav__caret { transform: rotate(225deg) translateY(-2px); }

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(1180px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 24px 48px rgba(2, 61, 61, 0.12);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 380px;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.site-nav__item:hover .mega,
.site-nav__item:focus-within .mega,
.site-nav__link[aria-expanded='true'] + .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list li + li { margin-top: 4px; }
.mega__link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius);
  transition: background 0.15s var(--ease);
}
.mega__link:hover { background: var(--mint); }
.mega__thumb {
  width: 56px; height: 56px;
  border-radius: 6px;
  background: var(--off-white);
  object-fit: contain;
  flex: none;
  padding: 4px;
}
.mega__name { font-weight: 700; font-size: 15px; }
.mega__desc { font-size: 13px; color: var(--muted); line-height: 1.35; }
.mega__banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 24px;
}
.mega__banner img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.mega__banner-body { position: relative; z-index: 1; }
.mega__banner .btn { margin-top: 12px; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.site-nav + .header-actions { margin-left: 0; }
@media (min-width: 1024px) { .header-actions { margin-left: 8px; } }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  border-radius: 50%;
  transition: background 0.15s var(--ease);
}
.icon-btn:hover { background: var(--off-white); }
.icon-btn svg { width: 22px; height: 22px; }

.cart-count {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: var(--go);
  color: var(--go-dark);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; margin-left: 8px; min-height: 46px; } }

.burger { display: inline-flex; }
@media (min-width: 1024px) { .burger { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.drawer[data-open='true'] { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(2, 61, 61, 0.45);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.drawer[data-open='true'] .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer[data-open='true'] .drawer__panel { transform: translateX(0); }
.drawer--left .drawer__panel { right: auto; left: 0; transform: translateX(-100%); width: min(390px, 90vw); }
.drawer--left[data-open='true'] .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.drawer__title { font-size: 18px; font-weight: 700; margin: 0; }
.drawer__body { padding: 8px 20px 24px; }

.mobile-nav { list-style: none; margin: 0; padding: 0; }
.mobile-nav > li { border-bottom: 1px solid var(--line-soft); }
.mobile-nav > li > a,
.mobile-nav > li > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.mobile-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  display: none;
}
.mobile-nav__sub a {
  display: block;
  min-height: 44px;
  line-height: 44px;
  font-size: 15px;
  color: var(--ink);
}
.mobile-nav li[data-open='true'] > .mobile-nav__sub { display: block; }
.mobile-nav .plus { width: 14px; height: 14px; position: relative; flex: none; }
.mobile-nav .plus::before,
.mobile-nav .plus::after {
  content: '';
  position: absolute;
  inset: 6px 0 auto 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.mobile-nav .plus::after { transform: rotate(90deg); }
.mobile-nav li[data-open='true'] .plus::after { transform: rotate(0); }

/* ==========================================================================
   8. Cart drawer
   ========================================================================== */
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-line__img {
  background: var(--off-white);
  border-radius: 8px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 8px;
}
.cart-line__img img { max-height: 100%; object-fit: contain; }
.cart-line__title { font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.cart-line__meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-line__price { font-weight: 700; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  height: 38px;
}
.qty button {
  width: 34px; height: 100%;
  border: 0; background: none;
  font-size: 16px; line-height: 1;
  color: var(--ink);
}
.qty input {
  width: 34px;
  border: 0;
  text-align: center;
  font-size: 15px;
  font-family: inherit;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.drawer__foot {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  position: sticky;
  bottom: 0;
}
.drawer__subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.drawer__note { font-size: 12px; color: var(--muted); margin: 0 0 14px; }

.cart-empty { text-align: center; padding: 48px 8px; }
.cart-empty p { color: var(--muted); }

/* Discount progress */
.discount-meter { margin: 0 0 16px; }
.discount-meter__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line-soft);
  overflow: hidden;
  margin-top: 8px;
}
.discount-meter__fill {
  height: 100%;
  background: var(--go);
  width: 0;
  transition: width 0.4s var(--ease);
}
.discount-meter__text { font-size: 13px; font-weight: 700; }
.discount-meter__text span { color: var(--brand-soft); }

/* ==========================================================================
   9. Hero
   ========================================================================== */
.hero {
  position: relative;
  background: #08120f;
  color: #fff;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 12, 10, 0.92) 0%, rgba(4, 12, 10, 0.72) 38%, rgba(4, 12, 10, 0.15) 70%, rgba(4, 12, 10, 0) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 64px 0 72px;
  max-width: 720px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { font-size: 18px; max-width: 46ch; color: rgba(255, 255, 255, 0.92); }
.hero .btn { margin-top: 12px; }

@media (min-width: 900px) {
  .hero { min-height: 640px; }
  .hero__inner { padding: 120px 0 96px; }
}

/* ==========================================================================
   10. Value props / trust strip
   ========================================================================== */
.trust {
  background: var(--dark);
  color: #fff;
  padding: 18px 0;
}
.trust__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  font-size: 13px;
}
@media (min-width: 900px) {
  .trust__row { grid-template-columns: repeat(4, 1fr); }
  .trust { padding: 22px 0; }
}
.trust__item { display: flex; align-items: center; gap: 10px; }
.trust__item svg { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   11. Product cards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { box-shadow: 0 12px 32px rgba(2, 61, 61, 0.1); transform: translateY(-2px); }

.card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--off-white);
  overflow: hidden;
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10%;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.card__media img.card__img--alt { opacity: 0; }
.card:hover .card__media img.card__img--primary { opacity: 0; }
.card:hover .card__media img.card__img--alt { opacity: 1; }
.card__media:hover img { transform: scale(1.03); }

.card__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--go);
  color: var(--go-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0; }
.card__desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.card__price { font-weight: 700; font-size: 15px; }
.card__price .from { font-weight: 400; color: var(--muted); font-size: 12px; }

.card__quick {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--brand);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.card__quick:hover { background: var(--brand); color: #fff; }
.card__quick svg { width: 16px; height: 16px; }

/* ==========================================================================
   12. Category tiles
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.cat-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: transform 0.3s var(--ease);
}
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s var(--ease);
}
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile__label {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.cat-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(2, 20, 18, 0.72) 100%);
}

/* ==========================================================================
   13. Editorial blocks
   ========================================================================== */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse .split__media { order: 2; }
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.benefit-list { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 768px) { .benefit-list { grid-template-columns: repeat(2, 1fr); } }
.benefit {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.benefit h4 { margin: 0 0 6px; }
.benefit p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }

.quote-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.quote-card__text { font-size: 16px; line-height: 1.5; margin: 0; }
.quote-card__who { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--font-serif); font-size: 40px; line-height: 1; }
.stat__label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 56px 0 32px;
  font-size: 14px;
}
.site-footer a { color: rgba(255, 255, 255, 0.86); }
.site-footer a:hover { color: var(--go); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; } }
.footer-col__title {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
  color: #fff;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-newsletter { grid-column: span 2; }
@media (min-width: 900px) {
  .footer-newsletter { grid-column: auto; }
}
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
  padding: 0 18px;
  font-family: inherit;
  font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.6); }
.newsletter-form button {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--go);
  color: var(--go-dark);
  font-weight: 700;
}
.social-row { display: flex; gap: 14px; margin-top: 20px; }
.social-row a { display: grid; place-items: center; width: 32px; height: 32px; }
.social-row svg { width: 20px; height: 20px; }

.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-region { display: inline-flex; align-items: center; gap: 8px; }
.footer-region svg { width: 18px; height: 18px; }
.footer-disclaimer { margin-top: 24px; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); max-width: 100ch; }

/* ==========================================================================
   15. WooCommerce: shop / archive
   ========================================================================== */
.page-head { padding: 32px 0 24px; border-bottom: 1px solid var(--line-soft); }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); margin: 0; max-width: 70ch; }

.breadcrumbs { font-size: 12px; color: var(--muted); padding: 16px 0 0; }
.breadcrumbs a:hover { text-decoration: underline; }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.filter-pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.woocommerce-result-count { margin: 0; font-size: 14px; color: var(--muted); }
.woocommerce-ordering select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0 36px 0 16px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

/* ==========================================================================
   16. PDP
   ========================================================================== */
.pdp { display: grid; gap: 32px; padding: 24px 0 56px; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; padding: 40px 0 80px; }
}

.pdp__gallery { position: relative; }
@media (min-width: 900px) { .pdp__gallery { position: sticky; top: calc(var(--header-h) + 24px); } }

.pdp__stage {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pdp__stage img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pdp__thumb {
  width: 72px; height: 72px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--off-white);
  padding: 4px;
  overflow: hidden;
}
.pdp__thumb.is-active { border-color: var(--brand); border-width: 2px; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; }

.pdp__title { font-family: var(--font-serif); font-size: clamp(30px, 3vw, 44px); margin-bottom: 8px; }
.pdp__price { font-size: 24px; font-weight: 700; margin: 12px 0 4px; }
.pdp__price del { color: var(--muted); font-weight: 400; font-size: 18px; margin-left: 8px; }
.pdp__sub { color: var(--muted); font-size: 14px; }

.rating-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 8px 0 20px; }
.stars { color: var(--go-dark); letter-spacing: 2px; font-size: 14px; }

.opt-group { margin: 20px 0; }
.opt-group__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  color: var(--muted);
}
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-value {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  background: #fff;
  font-size: 14px;
  min-height: 44px;
}
.opt-value.is-active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 700; }
.opt-value:disabled { opacity: 0.4; text-decoration: line-through; }

.pdp__buy { display: flex; gap: 12px; margin: 20px 0 12px; flex-wrap: wrap; }
.pdp__buy .qty { height: 52px; }
.pdp__buy .btn { flex: 1; min-width: 200px; }

.pdp__perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 14px; }
.pdp__perks li { display: flex; gap: 10px; align-items: flex-start; }
.pdp__perks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--sage); }

.accordion { margin-top: 28px; border-top: 1px solid var(--line-soft); }
.accordion__item { border-bottom: 1px solid var(--line-soft); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: 0;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}
.accordion__panel { display: none; padding: 0 0 20px; font-size: 15px; color: #444; }
.accordion__item[data-open='true'] .accordion__panel { display: block; }
.accordion__trigger .plus { width: 14px; height: 14px; position: relative; flex: none; }
.accordion__trigger .plus::before,
.accordion__trigger .plus::after {
  content: ''; position: absolute; inset: 6px 0 auto 0; height: 2px; background: currentColor; transition: transform 0.2s var(--ease);
}
.accordion__trigger .plus::after { transform: rotate(90deg); }
.accordion__item[data-open='true'] .plus::after { transform: rotate(0); }

/* Sticky add to cart (mobile) */
.sticky-buy {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid var(--line-soft);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(110%);
  transition: transform 0.25s var(--ease);
}
.sticky-buy.is-visible { transform: translateY(0); }
@media (min-width: 900px) { .sticky-buy { display: none; } }
.sticky-buy__name { font-size: 13px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy .btn { min-height: 46px; }

/* ==========================================================================
   17. Cart page & checkout
   ========================================================================== */
.cart-layout { display: grid; gap: 32px; padding: 32px 0 64px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.6fr 1fr; gap: 56px; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.cart-table .cart-item { display: flex; gap: 16px; align-items: center; }
.cart-table .cart-item img { width: 88px; height: 88px; object-fit: contain; background: var(--off-white); border-radius: 8px; padding: 6px; }
.cart-table .cart-item__name { font-weight: 700; }
.cart-table .cart-item__variant { font-size: 13px; color: var(--muted); }

.summary-box {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.summary-box h3 { font-size: 20px; margin-bottom: 16px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
}
.summary-row--total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
}
.summary-row--discount { color: var(--sage); font-weight: 700; }
.summary-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* WooCommerce form overrides */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.woocommerce form .form-row textarea { height: auto; padding: 14px 16px; }
.woocommerce form .form-row label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.woocommerce .woocommerce-billing-fields h3,
.woocommerce .woocommerce-shipping-fields h3 { font-size: 22px; }

.woocommerce #payment { background: transparent; }
.woocommerce #payment ul.payment_methods { padding: 0; border: 0; margin: 0 0 16px; }
.woocommerce #payment div.payment_box { background: var(--off-white); border-radius: var(--radius); }

.payment-icons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.payment-icons svg, .payment-icons img { height: 24px; width: auto; display: block; }

/* ==========================================================================
   18. Account / forms / misc pages
   ========================================================================== */
.page-body { padding: 32px 0 72px; max-width: 820px; }
.page-body h2 { margin-top: 32px; }
.page-body h3 { margin-top: 24px; }

.notice {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  background: var(--mint);
  border: 1px solid #cfe6d8;
}

.empty-state { text-align: center; padding: 80px 16px; }

/* ==========================================================================
   19. Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hide { display: none !important; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head__link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }

/* ==========================================================================
   21. Layout utilities
   ========================================================================== */
.grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.wrap--narrow { max-width: 860px; }
.section-head--light h2, .section-head--light .eyebrow { color: #fff; }
.section-head--light p { color: rgba(255, 255, 255, 0.7); }

.stat { display: flex; flex-direction: column; gap: 8px; }
.section--dark .stat__num { color: var(--go); }
.section--dark .stat__label { color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   22. Hero refinements
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3, 16, 15, 0.94) 0%, rgba(3, 16, 15, 0.82) 34%, rgba(3, 16, 15, 0.25) 62%, rgba(3, 16, 15, 0.1) 100%);
}
.hero__inner { position: relative; z-index: 1; color: #fff; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, 0.82); max-width: 34ch; }
.hero .eyebrow { color: var(--go); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero .btn--outline:hover { background: #fff; color: var(--brand); }
.hero .rating-row { margin-top: 24px; color: rgba(255, 255, 255, 0.85); }
.hero .stars { color: var(--go); }
@media (max-width: 767px) {
  .hero__media img { object-position: 62% 50%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(3, 16, 15, 0.55) 0%, rgba(3, 16, 15, 0.9) 58%, rgba(3, 16, 15, 0.96) 100%); }
}

/* ==========================================================================
   23. Category tiles with imagery
   ========================================================================== */
.cat-tile__label { display: flex; flex-direction: column; gap: 4px; }
.cat-tile__label span { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, 0.85); }
.cat-tile__arrow { position: absolute; top: 16px; right: 16px; z-index: 2; opacity: 0; transform: translateX(-6px); transition: all 0.3s var(--ease); }
.cat-tile:hover .cat-tile__arrow { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   24. Product card quick add
   ========================================================================== */
.card__quick {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 3;
  width: auto; height: auto;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  display: block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease);
}
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .card__quick { opacity: 1; transform: none; }
}
.card__img--hover { opacity: 0; }
.card:hover .card__img { opacity: 0; }
.card:hover .card__img--hover { opacity: 1; }
.card__rating { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.card__rating .stars { color: var(--brand); }

/* ==========================================================================
   25. Accordions: icon rotation + panels
   ========================================================================== */
.accordion__trigger { position: relative; }
.accordion__icon { transition: transform 0.25s var(--ease); display: inline-flex; }
.accordion__item[data-open="true"] .accordion__icon { transform: rotate(45deg); }

/* ==========================================================================
   26. Page head / breadcrumbs / pagination
   ========================================================================== */
.page-head { padding: 32px 0 8px; }
.page-head h1 { margin: 8px 0 10px; }
.page-head__desc { color: var(--muted); max-width: 62ch; font-size: 16px; }
.pagination { margin: 48px 0 8px; }
.pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span.current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none;
}
.pagination span.current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ==========================================================================
   27. PDP extras
   ========================================================================== */
.pdp__cats { font-size: 13px; color: var(--muted); margin-top: 20px; }
.pdp__cats a { color: var(--muted); text-decoration: underline; }
.opt-groups { display: grid; gap: 16px; margin: 20px 0; }
.opt-group__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-value {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.opt-value:hover { border-color: var(--brand); }
.opt-value.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pdp form.cart .variations { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   28. Cart page
   ========================================================================== */
.cart-layout { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 1000px) { .cart-layout { grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; } }
.cart-lines { display: grid; gap: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.cart-line__img img { width: 96px; height: 120px; object-fit: contain; background: var(--off-white); border-radius: var(--radius); }
.cart-line__meta { display: grid; gap: 6px; }
.cart-line__title { font-weight: 700; color: var(--brand); text-decoration: none; }
.cart-line__price { margin: 0; color: var(--muted); font-size: 14px; }
.cart-line__row { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.cart-line__remove { font-size: 13px; color: var(--muted); text-decoration: underline; }
.cart-line__total { font-weight: 700; white-space: nowrap; }
.cart-form__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 20px; }
.cart-coupon { display: flex; gap: 8px; }
.cart-summary { background: var(--mint); border-radius: var(--radius-lg); padding: 28px; position: relative; }
@media (min-width: 1000px) { .cart-summary { position: sticky; top: 96px; } }
.cart-summary__title { font-family: var(--font-sans); font-size: 18px; margin: 0 0 18px; }
.cart_totals .summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 15px; }
.summary-row--discount span:last-child { color: #1f7a3f; font-weight: 700; }
.summary-row--total { border-top: 1px solid rgba(2, 61, 61, 0.16); margin-top: 8px; padding-top: 16px !important; font-size: 18px !important; font-weight: 700; }
.cart-checkout { margin-top: 20px; }
.summary-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; line-height: 1.5; }

/* ==========================================================================
   29. Checkout
   ========================================================================== */
.checkout-layout { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 1000px) { .checkout-layout { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; } }
.checkout-section { margin-bottom: 32px; }
.checkout-section__title { font-size: 20px; margin: 0 0 16px; font-family: var(--font-sans); font-weight: 700; }
.checkout-section__subtitle { font-size: 15px; margin: 24px 0 12px; }
.checkout-section__body { display: block; }
.checkout-summary { background: var(--off-white); border-radius: var(--radius-lg); padding: 28px; }
@media (min-width: 1000px) { .checkout-summary { position: sticky; top: 96px; } }
.checkout-lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.checkout-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.checkout-line__img { position: relative; display: block; }
.checkout-line__img img { width: 56px; height: 70px; object-fit: contain; background: #fff; border-radius: 8px; }
.checkout-line__qty {
  position: absolute; top: -6px; right: -6px;
  background: var(--brand); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.checkout-line__name { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.checkout-line__total { font-size: 14px; font-weight: 700; }
.checkout #payment { background: transparent; }
.checkout .wc_payment_methods { list-style: none; margin: 0 0 16px; padding: 0; }
.checkout .wc_payment_method label { font-size: 14px; }
.checkout .form-row place-order { display: block; }
.checkout #place_order { margin-top: 16px; }
.checkout-donation { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* ==========================================================================
   30. Payment icons (real brand marks, equal optical height)
   ========================================================================== */
.payment-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.payment-icon {
  display: inline-block;
  width: 38px; height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.85;
}
.payment-icon--visa { background-image: url('assets/img/pay/visa.svg'); }
.payment-icon--mastercard { background-image: url('assets/img/pay/mastercard.svg'); }
.payment-icon--americanexpress { background-image: url('assets/img/pay/americanexpress.svg'); }
.payment-icon--paypal { background-image: url('assets/img/pay/paypal.svg'); }
.payment-icon--applepay { background-image: url('assets/img/pay/applepay.svg'); }
.payment-icon--googlepay { background-image: url('assets/img/pay/googlepay.svg'); }
.payment-icons--checkout { margin: 4px 0 20px; }

/* ==========================================================================
   31. Forms (checkout fields use Woo defaults)
   ========================================================================== */
.checkout .form-row input.input-text,
.checkout .form-row textarea,
.checkout .form-row select,
.cart-coupon input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
.checkout .form-row { margin-bottom: 14px; }
.checkout .form-row label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.checkout .form-row-first, .checkout .form-row-last { width: 100%; float: none; }
@media (min-width: 600px) {
  .checkout .form-row-first, .checkout .form-row-last { width: 48%; display: inline-block; }
  .checkout .form-row-first { margin-right: 3%; }
}
@media (max-width: 767px) {
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line__img img { width: 72px; height: 90px; }
  .cart-line__total { grid-column: 2; text-align: left; }
}

/* ==========================================================================
   32. Overflow guards
   ========================================================================== */
html, body { overflow-x: clip; }
.site-header { position: sticky; }
.mega[hidden] { display: none; }
@media (max-width: 1099px) {
  .mega { display: none; }
}

/* ==========================================================================
   33. Mega menu: full-width panel under the header (no horizontal overflow)
   ========================================================================== */
.site-nav { position: static; }
.site-nav__item { position: static; }
.mega {
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  transform: none;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  padding: 36px max(24px, calc((100vw - 1240px) / 2)) 40px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 380px;
  column-gap: 48px;
}
.mega__banner img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   34. PDP buy column + native Woo add-to-cart form
   ========================================================================== */
.pdp__buy { display: block; }
.pdp__buy > * + * { margin-top: 14px; }
.pdp__title { margin: 0; }
.pdp__price { font-family: var(--font-sans); letter-spacing: -0.01em; }
.pdp__price .woocommerce-Price-amount { font-weight: 700; }

.pdp form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0 4px;
}
.pdp form.cart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  height: 54px;
  overflow: hidden;
  background: #fff;
}
.pdp form.cart .quantity label { display: none; }
.pdp form.cart .quantity input[type="number"] {
  width: 48px;
  height: 100%;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
}
.pdp form.cart .quantity input[type="number"]::-webkit-outer-spin-button,
.pdp form.cart .quantity input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp form.cart .single_add_to_cart_button,
.pdp form.cart button[type="submit"] {
  flex: 1;
  min-width: 180px;
  height: 54px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--go);
  color: var(--go-dark);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.pdp form.cart .single_add_to_cart_button:hover { background: #3ecb3e; transform: translateY(-1px); }
.pdp form.cart .single_add_to_cart_button:disabled { opacity: 0.5; cursor: not-allowed; }

.opt-value { text-transform: none; }
.stock.in-stock, .pdp .stock { font-size: 13px; color: var(--sage); margin: 0; }
.pdp .woocommerce-variation-price { display: none; }
p.price { margin: 0; }

/* Accordion: aria-expanded driven open state */
.accordion__trigger[aria-expanded='true'] + .accordion__panel { display: block; }
.accordion__trigger[aria-expanded='true'] .accordion__icon { transform: rotate(45deg); }
.pdp__thumb { width: 76px; height: 76px; flex: none; }

/* ==========================================================================
   34. Checkout refinements + order received
   ========================================================================== */
.checkout .woocommerce-form-coupon-toggle {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
}
.checkout .woocommerce-form-coupon-toggle .woocommerce-info { margin: 0; }
.checkout .woocommerce-form-coupon {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 24px;
}
.checkout .woocommerce-form-coupon p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.checkout .form-row.checkout-section__title { display: none; }

/* single gateway: keep the radio in the DOM (still submitted) but visually hidden */
.checkout ul.wc_payment_methods {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.checkout .payment-icons--checkout { margin: 10px 0 22px; }
.checkout .checkout-pay-label { font-size: 14px; color: var(--muted); margin: 0 0 4px; }

.checkout .woocommerce-terms-and-conditions-wrapper { margin: 18px 0 6px; }
.checkout .woocommerce-form__label-for-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.45; color: var(--muted);
  cursor: pointer;
}
.checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 1px 0 0; flex: none;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.checkout .woocommerce-form__label-for-checkbox input[type="checkbox"]:checked {
  background: var(--brand); border-color: var(--brand);
}
.checkout .woocommerce-form__label-for-checkbox input[type="checkbox"]:checked::after {
  content: ''; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.checkout .woocommerce-form__label-for-checkbox a { color: var(--brand); text-decoration: underline; }

.checkout #place_order,
.checkout #place_order.button.alt {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; margin-top: 14px;
  background: var(--go); color: var(--text);
  border: 0; border-radius: 999px;
  font-family: var(--diatype); font-size: 16px; font-weight: 700;
  letter-spacing: 0.01em; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.checkout #place_order:hover { background: #3ecb3e; transform: translateY(-1px); }
.checkout #place_order:disabled { opacity: 0.55; transform: none; cursor: not-allowed; }
.checkout .woocommerce-privacy-policy-text p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.checkout .woocommerce-privacy-policy-text { margin-bottom: 10px; }

/* thank you */
.thanks { padding: 56px 0 72px; }
.thanks__head { max-width: 640px; margin-bottom: 40px; }
.thanks__head .eyebrow { color: var(--sage); }
.thanks__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; margin: 10px 0 14px; }
.thanks__lede { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; }
.thanks__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: start; }
.thanks__card {
  background: var(--mint);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}
.thanks__card-title { font-size: 17px; font-weight: 700; margin: 0 0 18px; letter-spacing: 0.01em; }
.thanks__steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.thanks__steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 40px;
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.thanks__steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.thanks__steps li span { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.thanks__steps li:last-child { padding-bottom: 0; }
.thanks__summary { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; }
.thanks__lines { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.thanks__line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.thanks__line img { width: 56px; height: 70px; object-fit: contain; background: var(--off-white); border-radius: 8px; }
.thanks__line-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.thanks__qty { color: var(--muted); font-weight: 500; }
.thanks__line-total { font-size: 14px; font-weight: 700; }
.thanks__summary .summary-row { font-size: 14px; padding: 8px 0; }
.thanks__summary .summary-row--total { font-size: 17px; font-weight: 700; }
.thanks__meta { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 860px) {
  .thanks__grid { grid-template-columns: 1fr; gap: 24px; }
  .thanks { padding: 36px 0 56px; }
}

/* Empty cart */
.cart-empty-state { text-align: center; padding: 56px 0 8px; }
.cart-empty-state .eyebrow { justify-content: center; display: flex; color: #2f7d52; }
.cart-empty-state__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 10px 0 12px; }
.cart-empty-state__lede { color: var(--muted); font-size: 15px; margin: 0 auto 26px; max-width: 460px; }
.cart-empty-state__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.section--tight { padding-top: 48px; }

/* Woo notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: var(--mint);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.woocommerce-error { border-left-color: #a22a2a; background: #fdf3f2; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
  margin-left: auto;
  background: transparent; border: 0; padding: 0;
  font-size: 13px; font-weight: 700; color: var(--brand);
  text-decoration: underline; cursor: pointer;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.cart .payment-icons { justify-content: space-between; gap: 6px; flex-wrap: nowrap; }
.cart .payment-icon { width: 34px; }

/* --------------------------------------------------------------------------
   Benefit list (light section) + trust strip on small screens
   -------------------------------------------------------------------------- */
.benefit-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 0; }
@media (min-width: 768px) { .benefit-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  border-bottom: 0;
}
.benefit svg { color: var(--sage); flex: none; margin-top: 3px; }
.benefit strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.benefit span { color: var(--muted); line-height: 1.5; }
.section--mint .benefit, .section--dark .benefit { border-top-color: rgba(255, 255, 255, 0.16); }
.section--mint .benefit { border-top-color: var(--line-soft); }

@media (max-width: 899px) {
  .trust { padding: 16px 0; }
  .trust__row { grid-template-columns: 1fr 1fr; gap: 12px 14px; font-size: 12px; line-height: 1.35; }
  .trust__item { align-items: flex-start; gap: 8px; }
  .trust__item svg { width: 18px; height: 18px; margin-top: 1px; }
}
@media (max-width: 520px) {
  .hero__inner { padding-top: 56px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero .lede { font-size: 15px; }
  .hero__actions .btn { min-height: 48px; }
}

/* Split media framing (avoid huge empty crops from tall editorial shots) */
.split__media { overflow: hidden; border-radius: var(--radius-lg); }
.split__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (max-width: 767px) {
  .split__media { aspect-ratio: 4 / 3; }
  .split__media img { object-position: 50% 18%; }
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -12px 32px rgba(3, 20, 17, 0.18);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.cookie-bar__text { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.8); max-width: 62ch; }
.cookie-bar__text a { color: #fff; text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: 10px; flex: none; }
.cookie-bar .btn--outline { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.cookie-bar .btn--outline:hover { background: #fff; color: var(--brand); }
body.has-cookie-bar { padding-bottom: 0; }
@media (max-width: 767px) {
  .cookie-bar__inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 0; }
  .cookie-bar__actions .btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   Picture elements must fill their frame (hero, split media)
   -------------------------------------------------------------------------- */
.split__media picture,
.hero__media picture { display: block; width: 100%; height: 100%; }
.split__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Hero outline button reads on photography */
.hero .btn--outline,
.hero .btn--outline:visited { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }

/* Category tiles: image + gradient + label */
.cat-tile img { opacity: 0.9; }
.cat-tile::after { z-index: 1; }
.cat-tile__label, .cat-tile__arrow { z-index: 2; }

/* ==========================================================================
   36. Hero polish — stronger copy scrim, tighter type
   ========================================================================== */
@media (min-width: 900px) {
  .hero { min-height: 620px; display: flex; align-items: center; }
  .hero__inner { max-width: 660px; padding: 96px 0; }
  .hero h1 { font-size: clamp(40px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -0.02em; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(3, 16, 15, 0.96) 0%, rgba(3, 16, 15, 0.9) 30%, rgba(3, 16, 15, 0.45) 55%, rgba(3, 16, 15, 0.05) 82%, rgba(3, 16, 15, 0) 100%),
      linear-gradient(0deg, rgba(3, 16, 15, 0.35) 0%, rgba(3, 16, 15, 0) 45%);
  }
  .hero .lede { max-width: 40ch; }
}
.hero .btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}
.hero .btn--outline:hover,
.hero .btn--outline:focus-visible { background: #fff; border-color: #fff; color: var(--brand); }
@media (min-width: 900px) {
  .hero > .wrap { width: 100%; }
}
@media (min-width: 900px) {
  .hero__inner { margin-inline: 0; }
}

/* ==========================================================================
   37. PDP mobile spacing
   ========================================================================== */
@media (max-width: 899px) {
  .pdp { gap: 16px; padding: 16px 0 40px; }
  .pdp__stage img { padding: 2%; }
  .pdp__perks { margin-top: 14px; }
  .pdp__cats { margin-top: 10px; }
  .pdp .accordion { margin: 12px 0 0; }
  .pdp .accordion__item { margin-bottom: 4px; }
}
@media (max-width: 899px) {
  .pdp { padding-bottom: 8px; }
  .pdp + .wrap--narrow { margin-top: 0; padding-top: 0; }
  .pdp + .wrap--narrow .accordion { margin-top: 8px; }
}

/* ==========================================================================
   38. Checkout terms row
   ========================================================================== */
.checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox,
.checkout .woocommerce-form__label-for-checkbox.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 6px 0 0;
}
.checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
  order: 0;
  flex: 0 0 18px;
  margin-top: 1px;
}
.checkout .woocommerce-terms-and-conditions-checkbox-text { order: 1; }

/* Mega stays full-bleed when open: the old translateX(-50%) must not return. */
.site-nav__item:hover .mega,
.site-nav__item:focus-within .mega,
.site-nav__link[aria-expanded='true'] + .mega {
  transform: none;
}
.checkout .woocommerce-terms-and-conditions-wrapper .required { order: 2; color: var(--brand); }
.checkout .woocommerce-terms-and-conditions-checkbox-text { order: 1; }

/* Mega banner: keep the promo copy readable over the packshot. */
.mega__banner { position: relative; overflow: hidden; }
.mega__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 15, 0) 28%, rgba(0, 20, 15, 0.72) 62%, rgba(0, 20, 15, 0.92) 100%);
  pointer-events: none;
}
.mega__banner-body { position: relative; z-index: 2; }

/* ==========================================================================
   39. My account
   ========================================================================== */
.account .page-body { max-width: 100%; }
#customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
@media (max-width: 899px) {
  #customer_login { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
#customer_login > div { min-width: 0; }
#customer_login h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0 0 16px;
}
#customer_login form.woocommerce-form-login,
#customer_login form.woocommerce-form-register,
.woocommerce-EditAccountForm {
  display: grid;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 0;
}
#customer_login form p,
.woocommerce-EditAccountForm p { margin: 0; display: grid; gap: 6px; }
#customer_login label,
.woocommerce-EditAccountForm label { font-size: 13px; font-weight: 700; color: var(--text); }
#customer_login .woocommerce-form-login__rememberme {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 400; color: var(--muted);
}
.account input[type="text"],
.account input[type="email"],
.account input[type="password"],
.account input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 15px;
}
.account input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.account button[name="login"],
.account button[name="register"],
.account button[name="save_account_details"],
.account .woocommerce-Button.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--go); color: var(--go-dark);
  border: 0; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.account button[name="login"]:hover,
.account button[name="register"]:hover,
.account .woocommerce-Button.button:hover { background: #3ecb3e; transform: translateY(-1px); }
.account .lost_password { margin-top: 4px; }
.account .lost_password a { font-size: 13px; color: var(--brand); text-decoration: underline; }

/* Logged-in account shell */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 899px) { .woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.woocommerce-MyAccount-navigation a {
  display: block; padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); text-decoration: none;
}
.woocommerce-MyAccount-navigation a:hover { background: var(--mint); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--brand); color: #fff; }
.woocommerce-MyAccount-content { font-size: 15px; line-height: 1.65; }

/* Account forms: final, selector-accurate pass (Woo renders them without a wrapper). */
.account .page-body form.woocommerce-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 540px;
  margin: 0;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.account .page-body form.woocommerce-form > p,
.account .page-body form.woocommerce-form .form-row {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account .page-body form.woocommerce-form .form-row:has(.woocommerce-form-login__submit),
.account .page-body form.woocommerce-form .form-row:has(.woocommerce-Button) {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.account .page-body form.woocommerce-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.account .page-body form.woocommerce-form input[type="text"],
.account .page-body form.woocommerce-form input[type="email"],
.account .page-body form.woocommerce-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 15px;
  font-weight: 400;
}
.account .page-body form.woocommerce-form .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.account .page-body form.woocommerce-form button.woocommerce-form-login__submit,
.account .page-body form.woocommerce-form button.woocommerce-Button,
.account .page-body form.woocommerce-form button[name="save_account_details"] {
  min-height: 52px;
  padding: 0 32px;
  background: var(--go);
  color: var(--go-dark);
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.account .page-body form.woocommerce-form button:hover { background: #3ecb3e; }

/* Only use the two-column account shell when the navigation actually exists. */
.woocommerce-account .woocommerce { display: block; }
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 899px) {
  .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Account password toggle + footer input isolation (earlier .account input rules leak). */
.account .password-input { position: relative; display: block; width: 100%; }
.account .show-password-input {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
}
.account .show-password-input::after { content: '\1F441'; }
.site-footer input[type="text"],
.site-footer input[type="email"],
.site-footer input[type="search"],
.site-footer input:not([type]) {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
  height: 52px;
}
.site-footer input::placeholder { color: rgba(255, 255, 255, 0.6); }

/* Hero: keep the gutters that .wrap provides (section 36 zeroed the horizontal padding). */
.hero__inner {
  padding-left: max(var(--gutter), calc((100vw - 1240px) / 2));
  padding-right: var(--gutter);
}
@media (min-width: 900px) {
  .hero__inner { padding-top: 96px; padding-bottom: 96px; }
}
@media (max-width: 899px) {
  .hero__inner { padding-top: 72px; padding-bottom: 64px; }
}

/* Accordion icons: fall back to a CSS +/− when the CMS did not keep an inline SVG. */
.accordion__icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.accordion__icon:not(:has(svg))::before { content: '+'; font-size: 20px; line-height: 1; font-weight: 400; }
.accordion__item[data-open='true'] .accordion__icon:not(:has(svg))::before { content: '\2212'; }
.accordion__item[data-open='true'] .accordion__panel { display: block; }
.page-body .accordion { margin-top: 8px; }
.accordion__item[data-open='true'] .accordion__icon:not(:has(svg)) { transform: none; }
@media (max-width: 767px) {
  .cookie-bar__inner { padding-left: var(--gutter); padding-right: var(--gutter); }
}
.drawer__subtotal--saving { color: var(--sage-dark, #2f7d52); margin-top: -6px; }
.drawer__subtotal--saving span:last-child { font-weight: 500; }
.drawer__subtotal--saving span { color: #2f7d52; }
/* Hero copy column: keep a readable measure at any viewport width.
   The inner wrapper carries the centring padding, so its max-width must
   include that padding or the text collapses on wide screens. */
@media (min-width: 900px) {
  .hero__inner {
    max-width: calc(max(var(--gutter), (100vw - 1240px) / 2) + 660px);
  }
}
/* .pdp is both the layout grid and a .wrap: keep the horizontal gutters that
   the shorthand padding used to wipe out (gallery was flush to the viewport). */
.pdp { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 900px) {
  .pdp { padding-left: var(--gutter); padding-right: var(--gutter); }
}
/* Keep page content reachable while the cookie bar is pinned to the bottom. */
body.has-cookie-bar { padding-bottom: 88px; }
@media (max-width: 767px) { body.has-cookie-bar { padding-bottom: 148px; } }
/* Product card: hover swap only when a second image exists, and the quick-add
   pill must sit over the media (not over the description). */
.card__top { position: relative; }
.card__media img.card__img--hover { opacity: 0; }
.card--has-hover:hover .card__media img.card__img:not(.card__img--hover) { opacity: 0; }
.card--has-hover:hover .card__media img.card__img--hover { opacity: 1; }
.card:not(.card--has-hover):hover .card__media img.card__img { opacity: 1; }
.card__top .card__quick { left: 12px; right: 12px; bottom: 12px; top: auto; }
.card__top .card__media { display: block; }
.card__top .card__quick { background: transparent; border: 0; padding: 0; box-shadow: none; }
.card__top .card__quick .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   38. Type scale aligned to the reference (drinkag1) tokens
   Reference: display 56/.95 serif, section headings 40/.95 sans tracking -.03em,
   headline 24/1, body 16/24, caption 14/18 & 12/16, mono eyebrows 12/16 .08em.
   ========================================================================== */
h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 20px;
}
h2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
h4 { font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.lede { font-size: 18px; line-height: 26px; }
.btn { font-size: 16px; line-height: 24px; font-weight: 700; }
.site-nav__link { font-size: 18px; }

@media (max-width: 899px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
}
.hero h1 {
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 0.95;
  letter-spacing: 0;
}
.hero .eyebrow,
.hero__eyebrow {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
}
@media (max-width: 899px) { .hero h1 { font-size: 36px; } }
/* 39. Audit fixes: 12px floor, 24px+ targets, no dead anchors ----------------- */
.mega__col-title, .card__badge, .footer__title { font-size: 12px; }

.site-footer__col a { display: inline-block; padding-block: 5px; }
.footer-legal a, .site-footer__legal a { display: inline-block; padding-block: 4px; }
.card__title a { display: inline-block; padding-block: 5px; }
.section-head__link, .pagination a, .pagination span { min-height: 26px; }

/* WooCommerce renders “Clear options” as <a href="#">; every product ships with
   a valid default variation, so the control is noise (and a dead anchor). */
.reset_variations { display: none !important; }

/* 40. Reference-aligned homepage sections ------------------------------------ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero carousel */
.hero-carousel { position: relative; background: #04110f; color: #fff; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; }
.hero-slide .hero__media { position: relative; }
.hero-slide .hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,16,15,.94) 0%, rgba(3,16,15,.72) 38%, rgba(3,16,15,0) 68%);
}
.hero-slide .hero__media img { display: block; width: 100%; height: clamp(320px, 62vw, 720px); object-fit: cover; }
.hero-slide .hero__inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  max-width: 1240px; margin-inline: auto; padding-block: 48px; z-index: 2;
}
.hero-carousel__controls {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.hero-carousel__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.28); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.hero-carousel__arrow:hover { background: rgba(0,0,0,.5); border-color: #fff; }
.hero-carousel__dots { display: flex; gap: 8px; }
.hero-carousel__dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.35); cursor: pointer; transition: width .25s ease, background .25s ease;
}
.hero-carousel__dot.is-active { width: 34px; border-radius: 6px; background: #fff; }

/* Benefits grid */
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head--split .lede { max-width: 620px; margin-top: 12px; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.benefit-card { background: #f4f4f2; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.benefit-card__media { position: relative; background: #ececeb; }
.benefit-card__media img { display: block; width: 100%; height: 300px; object-fit: cover; }
.benefit-card__toggle {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink); border: 0; border-radius: 2px; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.benefit-card__toggle:hover { background: var(--go); }
.benefit-card__toggle[aria-expanded='true'] { background: var(--go); }
.benefit-card__toggle[aria-expanded='true'] svg { transform: rotate(45deg); }
.benefit-card__toggle svg { transition: transform .2s ease; }
.benefit-card__title { font-family: var(--sans); font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; margin: 22px 24px 8px; }
.benefit-card__text { margin: 0 24px 24px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.benefit-card__more { list-style: none; margin: 0 24px 24px; padding: 16px 0 0; border-top: 1px solid rgba(0,0,0,.12); display: flex; flex-wrap: wrap; gap: 8px; }
.benefit-card__more li { font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 999px; background: #fff; }

/* Plan / bundle cards */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.plan-card { border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.plan-card--featured { border-color: var(--brand); background: var(--mint); }
.plan-card__flag { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0; }
.plan-card__title { font-size: 26px; line-height: 1.1; margin: 0; }
.plan-card__price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 0; }
.plan-card__amount { font-family: var(--font-serif); font-size: 40px; line-height: 1; }
.plan-card__unit { font-size: 14px; color: var(--muted); }
.plan-card__price s { font-size: 16px; color: var(--muted); }
.plan-card__note { font-size: 14px; color: var(--muted); margin: 0; }
.plan-card__list { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 10px; }
.plan-card__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.plan-card__list svg { flex: 0 0 auto; margin-top: 2px; color: var(--brand); }
.plan-card .btn { margin-top: auto; }

@media (max-width: 899px) {
  .hero-slide .hero__media img { height: auto; aspect-ratio: 4 / 3; }
  .hero-slide .hero__media::after { background: linear-gradient(0deg, rgba(3,16,15,.9) 0%, rgba(3,16,15,.1) 60%); }
  .hero-slide .hero__inner { position: static; padding: 24px var(--gutter) 72px; }
  .hero-slide .hero__media { margin-bottom: -28px; }
  .hero-slide .hero__inner h1 { color: #fff; }
  .hero-slide .hero__actions { flex-direction: column; align-items: stretch; }
  .hero-slide .hero__actions .btn { width: 100%; justify-content: center; }
  .hero-carousel__controls { bottom: 14px; }
  .benefit-grid, .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .benefit-card__media img { height: auto; aspect-ratio: 4 / 3; }
  .benefit-card__title { font-size: 21px; margin: 18px 18px 6px; }
  .benefit-card__text { margin: 0 18px 18px; font-size: 15px; }
  .plan-card { padding: 22px; }
  .section-head--split { align-items: flex-start; }
}
/* Carousel copy contrast + measure */
.hero-slide .btn--outline { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.hero-slide .btn--outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-slide .hero__inner h1 { max-width: 660px; }
.hero-slide .hero__inner .lede { max-width: 560px; }
@media (max-width: 899px) {
  .hero-slide .btn--outline { color: #fff; border-color: rgba(255,255,255,.6); }
  .hero-slide .hero__inner h1 { max-width: none; }
  .hero-slide .hero__inner .lede { max-width: none; }
}
/* Header on mobile: logo left, cart + menu on the right (matches the reference) */
@media (max-width: 1099px) {
  .site-header__inner { display: flex; align-items: center; gap: 8px; }
  .site-header__logo { order: 1; margin-right: auto; }
  .site-nav { order: 2; }
  .header-actions { order: 3; margin-left: 0; }
  .header-cta { display: none; }
  .header-actions .icon-btn[href*="my-account"] { display: none; }
  .burger { order: 4; }
  .site-header__logo img { width: 84px; height: auto; }
  .site-header__inner { min-height: 64px; }
  .burger, .header-actions .icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
.benefit-card__more[hidden] { display: none; }
/* Keep anchored sections clear of the sticky header */
section[id] { scroll-margin-top: 96px; }
@media (max-width: 767px) { section[id] { scroll-margin-top: 72px; } }
/* Tap targets: logo + breadcrumbs */
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs a, .breadcrumb a { display: inline-block; padding-block: 5px; }
.hero-slide h2.hero__title { font-family: var(--font-serif); font-size: clamp(34px, 3.9vw, 56px); line-height: 0.95; letter-spacing: 0; margin: 0; font-weight: 400; }
/* Announcement bar: mono, uppercase, reference weight */
.announcement__item { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
/* Carousel dots: 24px hit area with a 10px visual dot */
.hero-carousel__dot {
  width: 24px; height: 24px; background: transparent; border: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-carousel__dot::after {
  content: ""; display: block; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.45); transition: width .25s ease, background .25s ease, border-radius .25s ease;
}
.hero-carousel__dot.is-active { width: 42px; }
.hero-carousel__dot.is-active::after { width: 34px; border-radius: 6px; background: #fff; }

/* Type consistency: headings outside the homepage follow the same scale */
.cart-empty-state__title,
.thanks__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 0.95;
  letter-spacing: 0;
}
.section__title, .summary-box__title, .order-review__title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.card__price, .card .price, .card bdi { font-size: 16px; }

/* Generic disabled state */
.btn:disabled, .btn[aria-disabled='true'] { opacity: .55; transform: none; cursor: not-allowed; }
