/*
Theme Name: Incredible Peptides
Theme URI: https://incrediblepeptides.com
Author: KML Meridian Enterprises LLC
Description: Custom WooCommerce theme for Incredible Peptides, a research-peptide storefront.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: incredible-peptides
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  /* Color */
  --color-bg: #FFFFFF;
  --color-canvas: #FDFDFB;
  --color-surface: #FFFFFF;
  --color-ink: #1F2A22;
  --color-body: #4B5850;
  --color-muted: #889087;
  --color-brand: #285337;
  --color-lime: #B4E33F;
  --color-lime-ink: #4C7A22;
  --color-lime-tint: #F1F9DE;
  --color-coral: #F17247;
  --color-coral-dark: #DD5A2E;
  --color-coral-tint: #FDEBE3;
  --color-sage-tint: #F1F6EE;
  --color-line: #E7EAE4;
  --color-line-strong: #D9D9D9;

  /* Type */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --fs-hero: clamp(40px, 4.4vw, 60px);
  --fs-h1: clamp(32px, 3.2vw, 44px);
  --fs-h2: clamp(26px, 2.6vw, 34px);
  --fs-h3: clamp(20px, 1.6vw, 24px);
  --fs-body-lg: clamp(16px, 1.05vw, 17px);
  --fs-body: 14px;
  --fs-nav: 13px;
  --fs-price: clamp(24px, 2vw, 28px);
  --fs-stat: clamp(28px, 2.4vw, 34px);

  /* Layout */
  --container: 1360px;
  --pad-x: clamp(20px, 4.5vw, 72px);
  --pad-y-sm: 88px;
  --pad-y-lg: 104px;
  --gap-sm: clamp(8px, 1vw, 12px);
  --gap-md: clamp(12px, 1.6vw, 20px);
  --gap-lg: clamp(18px, 2.5vw, 28px);
  --gap-xl: clamp(28px, 5vw, 72px);

  /* Radius & shadow */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 34, .05), 0 1px 1px rgba(31, 42, 34, .04);
  --shadow-md: 0 12px 28px rgba(31, 42, 34, .08);
  --shadow-lg: 0 30px 70px rgba(31, 42, 34, .18);
}

/* ==========================================================================
   Fonts (self-hosted)
   ========================================================================== */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-variable.woff2') format('woff2-variations'), url('assets/fonts/space-grotesk-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-variable.woff2') format('woff2-variations'), url('assets/fonts/manrope-variable.woff2') format('woff2');
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* WooCommerce core templates (order details, tracking) wrap key values in
   <mark> — harmless with WC's own stylesheet, which neutralizes it, but we
   disable that stylesheet entirely (see functions.php), so without this the
   browser's native yellow highlight shows through unstyled. */
mark { background: none; color: inherit; font-weight: 600; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-canvas);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-coral-dark); }
::selection { background: var(--color-lime-tint); color: var(--color-ink); }
*:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  font-weight: 700;
  margin: 0 0 .5em;
  line-height: 1.15;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section {
  padding-top: var(--pad-y-sm);
  padding-bottom: var(--pad-y-sm);
}
.section--lg {
  padding-top: var(--pad-y-lg);
  padding-bottom: var(--pad-y-lg);
}
.grid { display: grid; gap: var(--gap-lg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--coral { background: var(--color-coral); color: #fff; }
.btn--coral:hover { background: var(--color-coral-dark); box-shadow: var(--shadow-md); color: #fff; }
.btn--outline { background: transparent; border-color: var(--color-brand); color: var(--color-ink); }
.btn--outline:hover { background: var(--color-lime-tint); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; border-color: var(--color-line); color: var(--color-ink); }
.btn--ghost:hover { background: var(--color-sage-tint); border-color: var(--color-brand); color: var(--color-brand); }
.btn--brand { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.btn--brand:hover { background: var(--color-coral); border-color: var(--color-coral); color: #fff; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 13px; }
.btn--icon { width: 46px; height: 46px; padding: 0; border-radius: 999px; }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--color-brand);
  background: none; border: none; padding: 8px 4px; cursor: pointer;
}
.btn-link:hover { color: var(--color-coral-dark); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
[data-hoverlift] { transition: transform .2s ease, box-shadow .2s ease; }
[data-hoverlift]:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Marquee
   ========================================================================== */
@keyframes ip-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee {
  background: var(--color-sage-tint);
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
  padding: 9px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: ip-marquee 44s linear infinite;
}
.marquee__set {
  flex: none;
  display: flex;
  gap: 10px;
  padding-right: 10px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-brand);
  font-weight: 700;
  white-space: nowrap;
}
.marquee__set span.dot { opacity: .4; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  [data-hoverlift]:hover { transform: none; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-brand);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__row {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 14px var(--pad-x);
}
.site-header__logo { margin-right: auto; display: flex; align-items: center; }
.site-header__logo img { height: 69px; width: auto; }

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--color-ink);
}
.primary-nav a, .primary-nav button {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.primary-nav a:hover, .primary-nav button:hover { color: var(--color-brand); }

.cat-menu { position: relative; }
.cat-menu__toggle svg { transition: transform .15s ease; }
.cat-menu.is-open .cat-menu__toggle svg { transform: rotate(180deg); }
.cat-menu__panel {
  position: absolute; top: 100%; left: 0; padding-top: 14px; z-index: 40;
  display: none;
}
.cat-menu.is-open .cat-menu__panel { display: block; }
.cat-menu__list {
  width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.cat-menu__list a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 12px; border-radius: 8px;
  font-weight: 600; font-size: 14px; color: var(--color-ink);
}
.cat-menu__list a:hover { background: var(--color-sage-tint); color: var(--color-brand); }
.cat-menu__count { font-size: 12px; font-weight: 600; color: var(--color-muted); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-search { position: relative; display: flex; align-items: center; }
.header-search__icon {
  position: absolute; left: 15px; color: var(--color-muted); pointer-events: none;
  display: inline-flex;
}
.header-search input {
  width: clamp(190px, 19vw, 280px);
  height: 46px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1.5px solid var(--color-line);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(40, 83, 55, .09);
}

.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--color-line);
  background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  white-space: nowrap; color: var(--color-ink);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.pill-btn:hover { background: var(--color-sage-tint); border-color: var(--color-brand); color: var(--color-brand); }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 999px; border: 1.5px solid var(--color-line);
  background: transparent; color: var(--color-ink); cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--color-sage-tint); border-color: var(--color-brand); color: var(--color-brand); }
.icon-btn__badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--color-coral); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-bg);
}

.nav-toggle { display: none; }
a.primary-nav__mobile-only { display: none; }
div.primary-nav__mobile-only { display: none; }
a.primary-nav__signup-mobile { display: none; }
.nav-scrim { display: none; }

@media (max-width: 860px) {
  .site-header__row { position: relative; gap: 8px; }
  .primary-nav { display: none; }
  .header-search { display: none; }
  .header-actions .pill-btn,
  .header-signup-cta,
  .header-signin-icon { display: none; }
  .header-actions { gap: 8px; }
  .nav-toggle { display: inline-flex; }

  a.primary-nav__mobile-only { display: inline-flex; }
  div.primary-nav__mobile-only { display: flex; }
  .primary-nav__signin-mobile {
    align-items: center;
    color: var(--color-brand);
  }
  .primary-nav__auth-row {
    gap: 10px;
    margin-top: 14px;
  }

  body.nav-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 39;
  }

  body.nav-open .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
    padding: 10px var(--pad-x) 16px;
    z-index: 45;
  }
  body.nav-open .primary-nav a,
  body.nav-open .primary-nav button {
    width: 100%;
    padding: 12px 4px;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-line);
  }
  body.nav-open .cat-menu { width: 100%; }
  body.nav-open .cat-menu__panel { position: static; padding-top: 6px; width: 100%; }
  body.nav-open .cat-menu__list { width: 100%; box-shadow: none; border: none; padding: 0 0 0 12px; }

  a.primary-nav__signup-mobile { display: inline-flex; }
  body.nav-open a.primary-nav__signup-mobile {
    width: auto;
    flex: 1 1 0;
    justify-content: center;
    border-bottom: none;
    height: 48px;
    background: var(--color-coral);
    color: #fff;
    border-radius: 999px;
    padding: 0 16px;
    font-weight: 700;
  }
  body.nav-open a.primary-nav__signup-mobile:hover {
    background: var(--color-coral-dark);
    color: #fff;
  }

  body.nav-open a.primary-nav__signin-mobile {
    width: auto;
    flex: 1 1 0;
    justify-content: center;
    border-bottom: none;
    height: 48px;
    border: 1.5px solid var(--color-lime);
    border-radius: 999px;
    padding: 0 16px;
  }
  body.nav-open a.primary-nav__signin-mobile:hover { background: var(--color-lime-tint); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #22302A 0%, #1B2620 52%, #1F3327 100%);
  color: rgba(255, 255, 255, .72);
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 227, 63, .5), transparent);
}
.site-footer__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(44px, 5.5vw, 72px) var(--pad-x) 0;
}
.footer-newsletter {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.2vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.footer-newsletter__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-lime); margin-bottom: 14px;
}
.footer-newsletter__label::before { content: ''; width: 18px; height: 1px; background: var(--color-lime); display: inline-block; }
.footer-newsletter h2 { color: #fff; font-size: clamp(26px, 2.4vw, 34px); }
.footer-newsletter p { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .68); max-width: 50ch; margin: 0; }
.footer-newsletter form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.footer-newsletter__field { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-newsletter__field label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.footer-newsletter__field input {
  width: 100%; padding: 14px 16px; min-height: 50px; border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  font-family: var(--font-body); font-size: 15px; color: #fff; outline: none;
}
.footer-newsletter__field input:focus { border-color: var(--color-lime); background: rgba(255, 255, 255, .09); }
.footer-newsletter__submit {
  flex: 0 0 auto; font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 28px; min-height: 50px; border-radius: 12px; border: none;
  background: var(--color-coral); color: #fff; cursor: pointer;
}
.footer-newsletter__submit:hover { background: var(--color-coral-dark); }
.footer-newsletter__note { flex: 1 1 100%; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .45); margin: 4px 0 0; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(28px, 3vw, 48px);
  padding: clamp(40px, 4.5vw, 64px) 0 clamp(34px, 4vw, 52px);
}
.footer-col__title {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-lime); padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-col__list { display: flex; flex-direction: column; gap: 2px; }
.footer-col__list a {
  font-size: 14px; color: rgba(255, 255, 255, .74); padding: 7px 0;
  min-height: 34px; display: flex; align-items: center;
}
.footer-col__list a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact a {
  display: flex; align-items: center; gap: 11px; font-size: 13px;
  color: rgba(255, 255, 255, .86); min-height: 34px; word-break: break-word;
}
.footer-contact a:hover { color: var(--color-lime); }
.footer-contact svg { flex: none; color: var(--color-lime); }
.footer-contact__address {
  display: flex; align-items: flex-start; gap: 11px; font-size: 13px;
  color: rgba(255, 255, 255, .86); line-height: 1.5;
}
.footer-contact__address svg { margin-top: 2px; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 26px 0 0; margin-bottom: 22px; max-width: 110ch;
}
.footer-legal__title {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); margin-bottom: 10px;
}
.footer-legal p { font-size: 11.5px; line-height: 1.75; color: rgba(255, 255, 255, .4); margin: 0 0 12px; }
.footer-legal p:last-child { margin-bottom: 0; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0 34px; font-size: 11.5px; color: rgba(255, 255, 255, .45);
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-bottom__links a:hover { color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(241,249,222,.75) 0%, rgba(253,253,251,0) 62%),
    radial-gradient(90% 80% at 8% 92%, rgba(253,235,227,.55) 0%, rgba(253,253,251,0) 60%),
    var(--color-canvas);
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: radial-gradient(rgba(40,83,55,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(120% 80% at 70% 30%, #000 0%, transparent 70%);
}
.hero__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: var(--gap-xl);
  align-items: center;
  padding: clamp(38px, 4.8vw, 67px) var(--pad-x) var(--pad-y-lg);
  max-width: var(--container);
  margin: 0 auto;
}
.hero h1 { font-weight: 600; font-size: var(--fs-hero); line-height: 1.06; letter-spacing: -.02em; max-width: 18ch; margin-bottom: 18px; }
.hero__lede { font-size: var(--fs-body-lg); line-height: 1.75; max-width: 46ch; margin-bottom: 18px; }
.hero__ruo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-brand); background: var(--color-sage-tint);
  border: 1px solid var(--color-line); border-radius: 999px;
  padding: 7px 14px; margin-bottom: 28px;
}
.hero__ruo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__ctas .btn--coral:hover { box-shadow: 0 14px 28px rgba(221,90,46,.26); }

.hero__feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  padding-top: 8px;
  border-top: 1px solid var(--color-line);
}
.hero__feat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 18px 16px 16px; border-radius: 14px;
  border-left: 1px solid var(--color-line);
  transition: transform .28s cubic-bezier(.22,.61,.36,1), background .28s ease;
}
.hero__feat:first-child { border-left-color: transparent; }
.hero__feat:hover { background: var(--color-sage-tint); transform: translateY(-3px); }
.hero__feat-icon {
  display: inline-flex; width: 34px; height: 34px; border-radius: 10px;
  background: var(--color-lime-tint); color: var(--color-brand);
  align-items: center; justify-content: center;
}
.hero__feat-title { font-family: var(--font-heading); font-weight: 700; font-size: 15.5px; line-height: 1.3; color: var(--color-ink); }
.hero__feat-copy { font-size: 12.5px; line-height: 1.55; color: var(--color-muted); }

.hero__art { position: relative; }
.hero__art-ring {
  position: absolute; top: 4%; left: 50%; transform: translateX(-50%);
  border-radius: 50%; border: 1px solid rgba(40,83,55,.09); z-index: 0;
}
.hero__art-glow {
  position: absolute; top: -6%; left: 50%; transform: translateX(-50%);
  width: 88%; aspect-ratio: 1/1; border-radius: 50%;
  background: radial-gradient(circle, rgba(241,249,222,.95) 0%, rgba(241,246,238,.55) 45%, rgba(253,253,251,0) 72%);
  z-index: 0;
}
.hero__art-blob {
  position: absolute; bottom: -6%; left: -8%; width: 52%; aspect-ratio: 1/1;
  border-radius: 50%; background: var(--color-coral-tint); filter: blur(54px); opacity: .5; z-index: 0;
}
.hero__art-image { position: relative; z-index: 1; aspect-ratio: 15/16; }
.hero__art-image img { width: 100%; height: 100%; object-fit: contain; }
.hero__art-shadow {
  position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%);
  width: 52%; height: 22px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(31,42,34,.16) 0%, rgba(31,42,34,0) 70%); z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__art-image { animation: ip-float 9s ease-in-out infinite; }
  .hero__art-blob { animation: ip-float-slow 13s ease-in-out infinite; }
}
@keyframes ip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ip-float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ==========================================================================
   Section headers + product grid (shared: home preview + shop)
   ========================================================================== */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--gap-md); margin-bottom: 32px;
}
.section-head h2 { margin: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-md);
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); color: inherit;
  transition: box-shadow .3s ease, transform .3s cubic-bezier(.22,.61,.36,1), border-color .3s ease, background .3s ease;
}
.product-card:hover {
  box-shadow: 0 18px 38px rgba(31,42,34,.11); border-color: var(--color-brand); background: var(--color-sage-tint); color: inherit;
}
.product-card__media { position: relative; width: 100%; aspect-ratio: 1/1; background: #fff; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.product-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.product-card__name { font-family: var(--font-heading); font-weight: 600; font-size: 16.5px; line-height: 1.3; color: var(--color-ink); min-height: 2.6em; }
.product-card__variants { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 5px 11px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--color-line); background: var(--color-canvas); color: var(--color-ink);
}
.product-card__more { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--color-muted); }
.product-card__price { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--color-ink); margin-top: auto; padding-top: 4px; }
.product-card__price del { font-size: 13px; color: var(--color-muted); font-weight: 400; margin-right: 6px; }
.product-card__price ins { text-decoration: none; }
.product-card__cta { width: 100%; }

/* ==========================================================================
   COA teaser
   ========================================================================== */
.coa-teaser { background: var(--color-sage-tint); padding: var(--pad-y-lg) 0; }
.coa-teaser__row {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: var(--gap-xl); align-items: center;
}
.coa-teaser__copy p { max-width: 46ch; }
.coa-teaser__note { font-size: 14.5px; color: var(--color-muted); max-width: 44ch; }
.coa-teaser__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.coa-panel { background: var(--color-surface); border-radius: var(--radius-lg); padding: clamp(18px, 2.5vw, 26px); box-shadow: var(--shadow-md); }
.coa-panel__label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 10px; }
.coa-panel__search { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.coa-panel__search-field { position: relative; flex: 1 1 200px; min-width: 0; }
.coa-panel__search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-muted); }
.coa-panel__search-field input {
  width: 100%; min-height: 46px; padding: 0 14px 0 40px; border-radius: 12px;
  border: 1.5px solid var(--color-line); background: var(--color-canvas);
  font-family: var(--font-body); font-size: 14px; color: var(--color-ink); outline: none;
}
.coa-panel__search-field input:focus { border-color: var(--color-brand); }
.coa-panel__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.coa-panel__cats a {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px;
  padding: 9px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--color-line);
  background: var(--color-surface); color: var(--color-ink);
}
.coa-panel__cats a:hover { border-color: var(--color-brand); transform: translateY(-2px); color: var(--color-ink); }
.coa-panel__cats .dot { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.coa-panel__rows { display: flex; flex-direction: column; gap: 8px; }
.coa-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--color-canvas); border: 1px solid var(--color-line); border-left: 3px solid var(--color-brand);
  border-radius: 12px; padding: 11px 14px;
}
.coa-row__lot { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 600; color: var(--color-ink); }
.coa-row__status {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--color-lime-tint); color: var(--color-lime-ink);
}
.coa-row__meta { font-size: 12px; color: var(--color-muted); }
.coa-row__btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px;
  font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--color-line); background: var(--color-surface); color: var(--color-brand);
}
.coa-row__btn:hover { border-color: var(--color-brand); background: var(--color-sage-tint); color: var(--color-brand); }

/* ==========================================================================
   Standards 3-up
   ========================================================================== */
.standards {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 60% at 16% 22%, rgba(241,249,222,.7) 0%, rgba(252,251,247,0) 60%),
    radial-gradient(60% 55% at 52% 88%, rgba(253,235,227,.55) 0%, rgba(252,251,247,0) 60%),
    radial-gradient(60% 60% at 88% 20%, rgba(233,243,241,.8) 0%, rgba(252,251,247,0) 62%),
    #FCFBF7;
  border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line);
}
.standards__inner { position: relative; padding: var(--pad-y-lg) var(--pad-x); max-width: var(--container); margin: 0 auto; }
.standards__head { max-width: 58ch; margin-bottom: 32px; }
.standards__head h2 { max-width: 24ch; }
.standards__rule { height: 1px; background: linear-gradient(90deg, #4C7A22, #DD5A2E, #276B66); opacity: .24; margin-bottom: var(--gap-lg); }
.standards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--gap-lg); }
.standard-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px 26px; background: var(--color-surface); border: 1px solid var(--color-line);
  border-top: 3px solid var(--accent); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.standard-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(31,42,34,.11); border-color: var(--accent); }
.standard-card__num {
  position: absolute; top: 14px; right: 20px; font-family: var(--font-heading); font-weight: 700;
  font-size: 56px; line-height: 1; letter-spacing: -.03em; color: var(--accent); opacity: .13;
}
.standard-card__icon {
  display: inline-flex; width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-tint); color: var(--accent); align-items: center; justify-content: center;
}
.standard-card p { font-size: 14.5px; line-height: 1.75; margin: 0; }
.standard-card a { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--accent); transition: gap .22s ease; }
.standard-card a:hover { gap: 12px; color: var(--accent); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-section { padding: var(--pad-y-lg) var(--pad-x); max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: var(--gap-xl); }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--color-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 16px; height: 16px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23285337' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { margin: 0 0 20px; font-size: var(--fs-body-lg); line-height: 1.7; max-width: 70ch; color: var(--color-body); }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb { font-size: 13px; color: var(--color-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-brand); }

/* ==========================================================================
   Product detail
   ========================================================================== */
.pdp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: var(--gap-xl); align-items: start; }
.pdp__gallery-main {
  position: relative; width: 100%; aspect-ratio: 1/1; background: #fff;
  border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden;
}
.pdp__gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 10px; margin-top: 10px; }
.pdp__thumb {
  cursor: pointer; position: relative; width: 100%; aspect-ratio: 1/1; background: #fff;
  border: 1.5px solid var(--color-line); border-radius: var(--radius-sm); overflow: hidden; padding: 0;
}
.pdp__thumb.is-active { border-color: var(--color-brand); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.pdp__badges { display: flex; gap: 8px; margin-bottom: 16px; }
.badge--outline { background: transparent; border: 1px solid var(--color-line-strong); color: var(--color-muted); }
.pdp h1 { font-size: var(--fs-h1); margin-bottom: 12px; }
.pdp__desc { font-size: var(--fs-body-lg); line-height: 1.7; color: var(--color-body); max-width: 52ch; margin-bottom: 26px; }

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px;
  background: var(--color-line); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 28px;
}
.stat-grid__cell { background: var(--color-surface); padding: 15px 17px; }
.stat-grid__value { font-family: var(--font-heading); font-weight: 600; font-size: 22px; color: var(--color-ink); }
.stat-grid__value--mono { font-size: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 400; white-space: nowrap; }
.stat-grid__label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); margin-top: 4px; }

.pdp__field-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 10px; }
.size-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.size-pill {
  cursor: pointer; padding: 12px 17px; border-radius: var(--radius-md);
  border: 1.5px solid var(--color-line); background: var(--color-surface); min-width: 112px;
  font: inherit; text-align: left;
}
.size-pill.is-active { border-color: var(--color-brand); background: var(--color-sage-tint); }
.size-pill__label { font-size: 14px; font-weight: 600; color: var(--color-ink); }
.size-pill__price { font-size: 13px; color: var(--color-muted); margin-top: 2px; }

.pdp__price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.pdp__price { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-price); letter-spacing: -.01em; color: var(--color-ink); }
.pdp__price del { font-size: 16px; color: var(--color-muted); font-weight: 400; }
.pdp__price ins { text-decoration: none; }

.coa-callout {
  background: var(--color-sage-tint); border-radius: var(--radius-md); padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px;
}
.coa-callout[hidden] { display: none; }
.coa-callout__copy { max-width: 34ch; }
.coa-callout__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-brand); margin-bottom: 5px; }
.coa-callout p { font-size: 13px; line-height: 1.6; color: var(--color-body); margin: 0; }
.coa-callout .btn { flex: none; border-color: var(--color-lime-ink); color: var(--color-lime-ink); }
.coa-callout .btn:hover { background: #fff; color: var(--color-lime-ink); }

.pdp__buy-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; }
.qty-stepper button { width: 42px; height: 46px; border: none; background: transparent; color: var(--color-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.qty-stepper button:hover { background: var(--color-sage-tint); }
.qty-stepper input { width: 40px; text-align: center; font-size: 16px; font-weight: 600; color: var(--color-ink); border: none; background: transparent; }
.pdp__buy-row .btn { flex: 1; min-width: 180px; height: 46px; border-radius: var(--radius-md); }

.pdp__meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--color-muted); margin-bottom: 8px; }
.pdp__meta a { color: var(--color-brand); font-weight: 600; }

.pdp-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--color-line); margin-top: 30px; margin-bottom: 22px; }
.pdp-tabs button {
  cursor: pointer; padding-bottom: 12px; font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  color: var(--color-muted); border: none; border-bottom: 2px solid transparent; background: none;
}
.pdp-tabs button.is-active { color: var(--color-ink); border-bottom-color: var(--color-brand); }
.pdp-panel { display: none; }
.pdp-panel.is-active { display: block; }
.pdp-panel h4 { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-ink); margin-bottom: 8px; }
.pdp-panel p { font-size: 14px; line-height: 1.75; color: var(--color-body); margin: 0 0 22px; }
.pdp-panel ul { margin: -8px 0 22px; padding-left: 20px; }
.pdp-panel ul li { font-size: 14px; line-height: 1.75; color: var(--color-body); margin-bottom: 6px; }

.related-products { margin-top: 64px; }
.related-products h2 { margin-bottom: 22px; }

/* ==========================================================================
   Shop / archive
   ========================================================================== */
.shop-layout { display: flex; flex-wrap: wrap; gap: var(--gap-xl); }
.shop-sidebar { flex: 1 1 200px; max-width: 260px; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 28px; align-self: flex-start; }
.shop-sidebar__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 12px; }
.shop-sidebar__cats { display: flex; flex-direction: column; gap: 2px; }
.shop-sidebar__cats a {
  display: flex; justify-content: space-between; font-size: 14px; font-weight: 600;
  padding: 8px 10px; border-radius: 10px; color: var(--color-ink);
}
.shop-sidebar__cats a:hover { background: var(--color-sage-tint); }
.shop-sidebar__cats a.is-active { color: var(--color-brand); }
.shop-sidebar__cats span.count { opacity: .5; font-weight: 500; }
.shop-sidebar__avail { display: flex; flex-direction: column; gap: 10px; }
.shop-sidebar__avail label { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; color: var(--color-ink); }
.shop-sidebar__avail input { accent-color: var(--color-brand); width: 16px; height: 16px; }
.shop-sidebar__rule { height: 1px; background: var(--color-line); }
.shop-sidebar__note { font-size: 13px; line-height: 1.6; color: var(--color-muted); margin: 0; }

.shop-main { flex: 3 1 480px; min-width: 0; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-md); justify-content: space-between; margin-bottom: 20px; }
.sort-tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--color-sage-tint); padding: 5px; border-radius: 999px; }
.sort-tabs a { font-size: 13px; padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--color-body); }
.sort-tabs a.is-active { background: var(--color-surface); color: var(--color-ink); font-weight: 700; box-shadow: var(--shadow-sm); }
.shop-toolbar__count { font-size: 13px; color: var(--color-muted); }
.shop-empty { grid-column: 1/-1; background: var(--color-surface); border: 1px dashed var(--color-line); border-radius: var(--radius-lg); padding: 56px 32px; text-align: center; }
.shop-empty h3 { margin-bottom: 8px; }
.shop-empty p { font-size: var(--fs-body); line-height: 1.7; color: var(--color-muted); max-width: 52ch; margin: 0 auto 22px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid var(--color-line); font-size: 14px; font-weight: 600; color: var(--color-ink);
  padding: 0 10px;
}
.pagination a:hover { border-color: var(--color-brand); color: var(--color-brand); }
.pagination .current { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }

@media (max-width: 860px) {
  .shop-sidebar { position: static; max-width: none; }
}

/* ==========================================================================
   WooCommerce notices (shared: cart, checkout, my-account, single-product)
   ========================================================================== */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
  list-style: none; margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--color-sage-tint); border: 1px solid var(--color-line); color: var(--color-ink);
  font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.woocommerce-error { background: var(--color-coral-tint); border-color: var(--color-coral); }
.woocommerce-message .button, .woocommerce-notice .button {
  order: 2; background: var(--color-brand); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.woocommerce-error ul, .woocommerce-message ul, .woocommerce-notice ul { list-style: disc; padding-left: 18px; margin: 0; }

/* ==========================================================================
   Cart (classic WooCommerce markup, restyled)
   ========================================================================== */
.woocommerce-cart-form table.cart,
table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 0; }
.woocommerce-cart-form table.cart thead { display: none; }
.woocommerce-cart-form table.cart tr.cart_item {
  display: grid; grid-template-columns: 32px 92px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--color-line);
}
.woocommerce-cart-form table.cart td { border: none; padding: 0; }
.product-remove { grid-row: 1; }
.product-remove a.remove {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; color: var(--color-muted); font-size: 18px; line-height: 1; text-decoration: none;
}
.product-remove a.remove:hover { background: var(--color-coral-tint); color: var(--color-coral-dark); }
.product-thumbnail img {
  width: 92px; height: 92px; object-fit: contain; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--color-line); padding: 6px;
}
.product-name { min-width: 0; }
.product-name a { font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--color-ink); }
.product-name .variation { font-size: 13px; color: var(--color-muted); margin: 4px 0 10px; display: block; }
.product-name dl.variation { display: block; margin: 4px 0 10px; }
.product-name dl.variation dt, .product-name dl.variation dd { display: inline; font-size: 13px; color: var(--color-muted); margin: 0; }
.product-name dl.variation dt::after { content: ': '; }
.product-name dl.variation dd p { margin: 0; display: inline; }
.product-price { display: none; }
.product-quantity { grid-column: 3; grid-row: 2; margin-top: -6px; }
.quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--color-line); border-radius: var(--radius-sm); overflow: hidden; }
.quantity .qty { width: 50px; height: 34px; text-align: center; border: none; font-size: 13px; color: var(--color-ink); background: transparent; }
.product-subtotal { grid-column: 4; grid-row: 1 / span 2; font-size: 16px; font-weight: 700; color: var(--color-ink); align-self: center; text-align: right; }

tr:has(td.actions) { display: block; border: none; padding: 24px 0 0; }
td.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.coupon { display: flex; gap: 8px; flex-wrap: wrap; }
#coupon_code { height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--color-line); font-size: 14px; }
td.actions .button, button[name="update_cart"], button[name="apply_coupon"] {
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--color-brand);
  background: transparent; color: var(--color-brand); font-weight: 700; font-size: 13px; cursor: pointer;
}
td.actions .button:hover { background: var(--color-sage-tint); }

.cart-collaterals { display: flex; flex-wrap: wrap; gap: var(--gap-xl); margin-top: 32px; }
.cart-collaterals .cross-sells { flex: 2 1 460px; min-width: 0; }
.cart-collaterals .cross-sells h2 { font-size: var(--fs-h3); }
.cart-collaterals .cross-sells ul.products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap-md); list-style: none; padding: 0;
}
.cart-collaterals .cross-sells .product { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 16px; text-align: center; }
.cart-collaterals .cross-sells img { border-radius: var(--radius-sm); margin-bottom: 10px; }
.cart_totals {
  flex: 1 1 300px; max-width: 360px; background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 100px; align-self: flex-start;
}
.cart_totals h2 { font-size: 18px; margin-bottom: 18px; }
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals table th, .cart_totals table td { padding: 10px 0; border-bottom: 1px solid var(--color-line); font-size: 14px; text-align: left; }
.cart_totals table th { color: var(--color-muted); font-weight: 400; }
.cart_totals table tr:last-child th, .cart_totals table tr:last-child td { border-bottom: none; font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--color-ink); }
.wc-proceed-to-checkout { margin-top: 18px; }
.wc-proceed-to-checkout .checkout-button {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 46px;
  border-radius: 999px; border: 1.5px solid var(--color-coral); background: var(--color-coral); color: #fff;
  font-weight: 700; font-size: 14px; text-decoration: none;
}
.wc-proceed-to-checkout .checkout-button:hover { background: var(--color-coral-dark); border-color: var(--color-coral-dark); }

.cart-empty { font-size: 14px; color: var(--color-muted); }
.return-to-shop .button {
  display: inline-flex; margin-top: 14px; height: 46px; padding: 0 22px; align-items: center;
  border-radius: 999px; border: 1.5px solid var(--color-coral); background: var(--color-coral); color: #fff; font-weight: 700; font-size: 14px;
}

@media (max-width: 700px) {
  .woocommerce-cart-form table.cart tr.cart_item { grid-template-columns: 24px 70px 1fr; }
  .product-subtotal { grid-column: 1/-1; grid-row: 3; text-align: left; margin-top: 6px; }
}

/* ==========================================================================
   Checkout (classic WooCommerce markup, restyled)
   ========================================================================== */
.woocommerce-checkout .col2-set,
.woocommerce-checkout form.checkout { display: flex; flex-wrap: wrap; gap: var(--gap-xl); align-items: flex-start; }
.woocommerce-checkout #customer_details { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.woocommerce-checkout .col-1, .woocommerce-checkout .col-2 { width: 100%; }

.checkout h3 {
  font-size: 18px; margin: 24px 0 16px; padding-top: 16px; border-top: 1px solid var(--color-line);
}
.checkout > h3:first-of-type, #customer_details > h3:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px;
}
.form-row { margin: 0 0 4px; }
.form-row.form-row-wide, .form-row-first.address-field, .form-row.notes { grid-column: 1/-1; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--color-muted); margin-bottom: 6px; }
.form-row .required { color: var(--color-coral); text-decoration: none; }
.form-row input.input-text, .form-row select, .form-row textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--color-line); background: #fff; font-family: var(--font-body); font-size: 14px; color: var(--color-ink); outline: none;
}
.form-row input.input-text:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--color-brand); }
.select2-container .select2-selection--single { height: 48px; border-radius: 12px; border: 1.5px solid var(--color-line); display: flex; align-items: center; padding: 0 14px; }
.select2-container .select2-selection__arrow { height: 46px; }

#ship-to-different-address { margin: 8px 0 16px; }
#ship-to-different-address label { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--color-ink); cursor: pointer; }
.woocommerce-shipping-fields__field-wrapper { margin-top: 14px; }

.woocommerce-checkout #order_review_heading { font-size: 18px; margin-bottom: 16px; }
.woocommerce-checkout-review-order {
  flex: 1 1 300px; max-width: 380px; background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 100px; align-self: flex-start;
}
table.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; }
table.woocommerce-checkout-review-order-table thead { display: none; }
table.woocommerce-checkout-review-order-table td, table.woocommerce-checkout-review-order-table th {
  padding: 9px 0; border-bottom: 1px solid var(--color-line); font-size: 13px; color: var(--color-ink); text-align: left;
}
table.woocommerce-checkout-review-order-table .product-name { font-size: 13px; }
table.woocommerce-checkout-review-order-table .product-total { text-align: right; }
table.woocommerce-checkout-review-order-table tfoot th, table.woocommerce-checkout-review-order-table tfoot td { text-align: left; }
table.woocommerce-checkout-review-order-table .order-total th, table.woocommerce-checkout-review-order-table .order-total td {
  font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--color-ink); border-bottom: none;
}

ul.wc_payment_methods { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
ul.wc_payment_methods li.payment_method {
  border: 1.5px solid var(--color-line); border-radius: var(--radius-md); padding: 14px 16px;
}
ul.wc_payment_methods li.payment_method label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--color-ink); cursor: pointer; }
ul.wc_payment_methods li.payment_method input[type="radio"] { accent-color: var(--color-brand); width: 16px; height: 16px; }
ul.wc_payment_methods li.payment_method:has(input:checked) { border-color: var(--color-brand); background: var(--color-sage-tint); }
.payment_box { padding: 14px 2px 2px; font-size: 13px; color: var(--color-body); line-height: 1.6; }
.payment_box p { margin: 0; }

.woocommerce-terms-and-conditions-wrapper { margin-bottom: 18px; font-size: 13px; color: var(--color-body); }
.woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.woocommerce-form__input-checkbox { margin-top: 3px; accent-color: var(--color-brand); width: 16px; height: 16px; }

#place_order {
  width: 100%; height: 46px; font-family: var(--font-body); font-weight: 700; font-size: 16px;
  border-radius: 999px; border: 1.5px solid var(--color-coral); background: var(--color-coral); color: #fff; cursor: pointer;
}
#place_order:hover { background: var(--color-coral-dark); border-color: var(--color-coral-dark); }
.woocommerce-checkout-payment { margin-top: 8px; }

/* ==========================================================================
   My Account
   ========================================================================== */
.woocommerce-account .u-columns,
.woocommerce-MyAccount-content, .woocommerce-account-fields { max-width: 100%; }

.woocommerce-account .woocommerce { display: flex; flex-wrap: wrap; gap: var(--gap-xl); }
.woocommerce-form-row--first, .woocommerce-form-row--last {}
.woocommerce-account form .woocommerce-form__label-for-checkbox { font-size: 13px; color: var(--color-body); margin: 10px 0 16px; }
.woocommerce-account .button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--color-brand);
  background: var(--color-brand); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.woocommerce-account .button:hover { background: var(--color-coral); border-color: var(--color-coral); }
.woocommerce-account .lost_password { margin-top: 4px; font-size: 13px; }
.woocommerce-account .lost_password a { color: var(--color-brand); font-weight: 600; }

/* ==========================================================================
   Login / Register (account-auth)
   ========================================================================== */
.account-auth { max-width: 980px; margin: 0 auto; }
.account-auth__intro { text-align: center; max-width: 56ch; margin: 0 auto 44px; }
.account-auth__intro h1 { font-size: var(--fs-h1); margin: 10px 0 12px; }
.account-auth__intro p { color: var(--color-body); font-size: var(--fs-body-lg); margin: 0; }

/* Mirrors the gate popup's own responsive width exactly, so the two feel
   like the same component: full-width on mobile, a fixed proportion of the
   viewport on desktop, never narrower than 600px. */
.account-auth--tabbed { width: 100%; max-width: none; margin: 0 auto; }
@media (min-width: 861px) {
  .account-auth--tabbed { width: 50%; min-width: 600px; }
}

.account-auth-tabs {
  display: flex; gap: 4px;
  background: var(--color-line);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}
.account-auth-tabs button {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-heading); font-size: 13.5px; font-weight: 600;
  color: var(--color-muted);
  padding: 10px 12px;
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.account-auth-tabs button.is-active {
  background: var(--color-surface); color: var(--color-ink); box-shadow: var(--shadow-sm);
}

.account-auth-tabpanel { display: none; }
.account-auth-tabpanel.is-active { display: block; animation: ip-fade-in .18s ease; }

@keyframes ip-fade-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-auth__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 3vw, 40px);
}
.account-auth__panel h2 { font-size: var(--fs-h3); margin-bottom: 6px; }
.account-auth__sub { color: var(--color-muted); font-size: 14px; margin: 0 0 26px; }

.account-auth__panel form.login,
.account-auth__panel form.register { display: flex; flex-direction: column; gap: 4px; }
.account-auth__panel .form-row { margin-bottom: 16px; }
.account-auth__panel .form-row label {
  display: block; font-size: 13px; font-weight: 600; color: var(--color-ink); margin-bottom: 6px;
}
.account-auth__panel .form-row .required { color: var(--color-coral); text-decoration: none; }
.account-auth__panel input.input-text, .account-auth__panel select.input-text {
  width: 100%; box-sizing: border-box; height: 48px; padding: 0 16px;
  border-radius: 12px; border: 1.5px solid var(--color-line); background: #fff;
  font-family: var(--font-body); font-size: 15px; color: var(--color-ink); outline: none;
  transition: border-color .2s ease;
}
.account-auth__panel input.input-text:focus, .account-auth__panel select.input-text:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(40, 83, 55, .09); }

.account-auth-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#password_strength { margin: 4px 0 0; display: block; font-size: 13px; }
.woocommerce-password-hint { display: block; margin: 4px 0 0; font-size: 13px; color: var(--color-muted); line-height: 1.6; }
@media (max-width: 480px) {
  .account-auth-row2 { grid-template-columns: 1fr; }
}

.password-field { position: relative; display: block; }
.password-field input.input-text { padding-right: 48px; }
/* We ship our own show/hide toggle, so suppress every browser's native
   password-reveal control (Chromium's injected "show-password-input"
   button, Edge's ::-ms-reveal, Safari/Chrome's credential-fill icons) —
   otherwise two overlapping toggles render on top of each other. */
.password-field .show-password-input,
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
}
input[type="password"]::-webkit-textfield-decoration-container,
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-strong-password-auto-fill-button {
  display: none !important;
  visibility: hidden !important;
}
.password-field__toggle {
  position: absolute; top: 0; right: 0; height: 48px; width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--color-muted); cursor: pointer;
}
.password-field__toggle:hover { color: var(--color-brand); }
.password-field__icon-hide { display: none; }
.password-field__toggle.is-visible .password-field__icon-show { display: none; }
.password-field__toggle.is-visible .password-field__icon-hide { display: inline-flex; }

.account-auth__submit-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 6px;
}
.account-auth__submit-row .woocommerce-form__label-for-checkbox { margin: 0; font-size: 13px; }
.account-auth__panel .btn { width: 100%; margin-top: 4px; }
.account-auth__submit-row .btn { width: auto; margin-top: 0; }
.account-auth__panel .btn.btn--coral { background: var(--color-coral); border-color: var(--color-coral); color: #fff; }
.account-auth__panel .btn.btn--coral:hover { background: var(--color-coral-dark); border-color: var(--color-coral-dark); }
.account-auth__panel .btn.btn--outline { background: transparent; border-color: var(--color-brand); color: var(--color-ink); }
.account-auth__panel .btn.btn--outline:hover { background: var(--color-lime-tint); }
.account-auth__panel .lost_password { text-align: center; margin-top: 18px; }
.account-auth__note { font-size: 13px; color: var(--color-muted); line-height: 1.6; margin: 0 0 18px; }
.account-auth__panel .woocommerce-privacy-policy-text { margin-top: 14px; }
.account-auth__panel .woocommerce-privacy-policy-text p {
  font-size: 9px; color: #b3b3b3; line-height: 1.5; margin: 0;
}
.account-auth__panel .woocommerce-privacy-policy-text a { color: inherit; text-decoration: underline; }

.account-auth__divider {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.account-auth__divider::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--color-line);
}
.account-auth__divider span {
  position: relative; background: var(--color-canvas); color: var(--color-muted);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 0; z-index: 1;
}

@media (max-width: 860px) {
  .account-auth__grid { grid-template-columns: 1fr; }
  .account-auth__divider { padding: 8px 0; }
  .account-auth__divider::before { top: 50%; bottom: auto; left: 0; right: 0; width: 100%; height: 1px; }
  .account-auth__divider span { padding: 0 14px; }
}
.woocommerce-MyAccount-navigation {
  flex: 1 1 160px; max-width: 220px; position: sticky; top: 100px; align-self: flex-start;
}
.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 2px; list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation a {
  display: block; font-size: 14px; padding: 10px 14px; border-radius: 10px; color: var(--color-ink); font-weight: 600;
}
.woocommerce-MyAccount-navigation a:hover { background: var(--color-sage-tint); }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--color-brand); background: var(--color-sage-tint); }

.woocommerce-MyAccount-content { flex: 3 1 480px; min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { color: var(--color-muted); font-size: 14px; }

table.woocommerce-orders-table, table.shop_table_responsive { width: 100%; border-collapse: collapse; }
table.woocommerce-orders-table thead th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--color-muted); padding: 0 12px 10px; border-bottom: 2px solid var(--color-line);
}
table.woocommerce-orders-table td {
  padding: 13px 12px; font-size: 13px; color: var(--color-ink); border-bottom: 1px solid var(--color-line);
}
table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--color-ink); }
.woocommerce-orders-table__cell-order-status mark {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--color-lime-tint); color: var(--color-lime-ink);
}
.woocommerce-orders-table__cell-order-actions .button {
  display: inline-flex; align-items: center; font-weight: 700; font-size: 13px; color: var(--color-brand); background: none; border: none; padding: 0;
}

.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap-md); }
.woocommerce-Address { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 20px; }
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.woocommerce-Address-title h3 { font-size: 16px; margin: 0; }
.woocommerce-Address-title .edit {
  font-size: 13px; font-weight: 700; color: var(--color-brand);
}
.woocommerce-Address address { font-size: 14px; line-height: 1.7; color: var(--color-body); }

.woocommerce-EditAccountForm, .woocommerce-address-fields { max-width: 480px; }
.woocommerce-EditAccountForm .form-row, .woocommerce-address-fields .form-row { margin-bottom: 14px; }
.woocommerce-EditAccountForm fieldset { border: none; padding: 0; margin: 24px 0 0; }
.woocommerce-EditAccountForm legend { font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--color-ink); margin-bottom: 12px; }
.woocommerce-EditAccountForm button, .woocommerce-address-fields button, .woocommerce-Address-title .button {
  height: 46px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--color-brand);
  background: var(--color-brand); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; margin-top: 8px;
}

.account-certificates__intro { font-size: 13px; color: var(--color-muted); margin-bottom: 20px; max-width: 60ch; }
.account-certificates__actions { margin-bottom: 18px; }
.account-certificates__empty { font-size: 14px; color: var(--color-muted); }
.coa-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.coa-card { display: flex; flex-direction: column; gap: 16px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 20px; }
.coa-card__head { display: flex; align-items: center; gap: 14px; }
.coa-card__file {
  width: 34px; height: 42px; flex: none; border-radius: 4px; border: 1px solid var(--color-line-strong);
  display: grid; place-items: center; font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--color-brand);
}
.coa-card__title { flex: 1; min-width: 0; }
.coa-card__name { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-ink); }
.coa-card__meta { font-size: 12px; color: var(--color-muted); margin-top: 2px; }

.account-wholesale { max-width: 60ch; }
.account-wholesale p { color: var(--color-body); line-height: 1.7; margin-bottom: 20px; }

@media (max-width: 860px) {
  .woocommerce-MyAccount-navigation { position: static; max-width: none; }
}

/* ==========================================================================
   Static page hero band (About, Wholesale, Quality, FAQ, RUO, Refunds,
   Shipping, Contact) — one component, a few background modifiers
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--color-sage-tint);
  border-bottom: 1px solid var(--color-line);
  padding: clamp(46px, 6vw, 84px) 0;
}
.page-hero--dark { background: linear-gradient(160deg, var(--color-ink) 0%, var(--color-brand) 100%); border-bottom: none; }
.page-hero--wholesale { background: linear-gradient(165deg, #1F2A22 0%, #22302A 45%, #285337 100%); border-bottom: none; }
.page-hero--brand { background: var(--color-brand); border-bottom: none; }
.page-hero__inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--color-brand); margin-bottom: 14px;
}
.page-hero__eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--color-lime); display: inline-block; }
.page-hero--dark .page-hero__eyebrow, .page-hero--wholesale .page-hero__eyebrow, .page-hero--brand .page-hero__eyebrow { color: rgba(255,255,255,.65); }
.page-hero h1 { max-width: 22ch; letter-spacing: -.02em; }
.page-hero--dark h1, .page-hero--wholesale h1, .page-hero--brand h1 { color: #fff; }
.page-hero__lede { font-size: var(--fs-body-lg); line-height: 1.8; max-width: 60ch; color: var(--color-body); margin: 0 0 26px; }
.page-hero--dark .page-hero__lede, .page-hero--wholesale .page-hero__lede, .page-hero--brand .page-hero__lede { color: rgba(255,255,255,.78); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero__updated { font-size: 12.5px; font-weight: 600; color: var(--color-muted); margin-top: 8px; }
.page-hero--dark .page-hero__updated { color: rgba(255,255,255,.5); }

/* ==========================================================================
   Notice banners (form success/error, empty states)
   ========================================================================== */
.notice-banner {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px;
  border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 28px;
  background: var(--color-lime-tint); border: 1px solid #D6E9A8; color: var(--color-ink);
}
.notice-banner svg { flex: none; color: var(--color-lime-ink); margin-top: 1px; }
.notice-banner--error { background: var(--color-coral-tint); border-color: #F3C9B6; }
.notice-banner--error svg { color: var(--color-coral-dark); }
.notice-banner--warn {
  background: var(--color-coral-tint); border: 1px solid #F3C9B6; border-left: 5px solid var(--color-coral-dark);
}
.notice-banner--warn svg { color: var(--color-coral-dark); }
.notice-banner p { margin: 0; font-size: 15px; line-height: 1.7; }
.notice-banner__title { font-family: var(--font-heading); font-weight: 700; font-size: 15px; margin-bottom: 4px; }

/* ==========================================================================
   Simple application/contact forms (Wholesale, Contact)
   ========================================================================== */
.app-form { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-md); }
.app-form__title { font-size: 20px; margin-bottom: 6px; }
.app-form__lede { font-size: 13.5px; line-height: 1.6; color: var(--color-muted); margin: 0 0 22px; }
.app-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 4px; }
.app-form .form-row textarea { min-height: 90px; font-family: var(--font-body); resize: vertical; }
.app-form__consent { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.55; color: var(--color-body); margin: 14px 0 20px; }
.app-form__consent input { accent-color: var(--color-brand); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.app-form__submit { width: 100%; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.topic-pill {
  cursor: pointer; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--color-line); background: var(--color-canvas); color: var(--color-body);
}
.topic-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic-pill:has(input:checked) { border-color: var(--color-brand); background: var(--color-sage-tint); color: var(--color-ink); }

/* ==========================================================================
   Policy accordions (Terms, Privacy, Shipping, Refunds, RUO) — shared by
   ip_render_policy_sections() in inc/template-helpers.php
   ========================================================================== */
.policy-accordion { padding: 6px clamp(18px, 2.4vw, 28px); }
.policy-accordion__item summary { font-size: 16.5px; }
.policy-accordion__eyebrow { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 4px; }
.policy-accordion__bullets { margin: 0 0 20px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 74ch; }
.policy-accordion__bullets li { font-size: 15px; line-height: 1.7; color: var(--color-body); }

/* Flat legal document layout (Privacy, Terms) — plain heading-then-paragraph
   flow, no accordion, matching the handoff HTML exactly. */
.policy-flat h2 {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--color-ink);
  margin: 28px 0 10px;
  font-weight: 700;
}
.policy-flat > h2:first-child { margin-top: 0; }
.policy-flat p {
  margin: 0 0 10px;
  color: var(--color-body);
  line-height: 1.65;
}
.policy-flat ul {
  margin: 0 0 10px;
  padding-left: 20px;
  list-style: disc;
}
.policy-flat ul li {
  margin-bottom: 6px;
  color: var(--color-body);
  line-height: 1.65;
}
.policy-flat + .card {
  padding: 20px;
  margin-top: 36px;
  border-radius: var(--radius-md);
}
.policy-flat + .card strong {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  display: block;
}

.policy-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.policy-toc { position: sticky; top: 100px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px 14px; max-height: min(64vh, 620px); overflow: auto; }
.policy-toc__label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); padding: 0 8px 10px; }
.policy-toc a { display: block; padding: 9px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--color-body); }
.policy-toc a:hover { background: var(--color-sage-tint); color: var(--color-brand); }
.policy-side-card { background: var(--color-brand); border-radius: var(--radius-lg); padding: 18px 20px; margin-top: 16px; }
.policy-side-card__label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.policy-side-card a { color: #fff; font-weight: 700; font-size: 14px; word-break: break-word; }
.policy-side-links { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 16px 18px; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.policy-side-links__label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 4px; }
.policy-side-links a { font-size: 13.5px; font-weight: 600; color: var(--color-brand); }

@media (max-width: 860px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; max-height: none; }
}

/* ==========================================================================
   FAQ page (category sidebar + searchable list)
   ========================================================================== */
.faq-layout { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 48px); align-items: flex-start; }
.faq-sidebar { flex: 1 1 250px; min-width: 250px; max-width: 300px; position: sticky; top: 100px; align-self: flex-start; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 14px; }
.faq-sidebar__label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); padding: 6px 10px 12px; }
.faq-cat-btn {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; font-weight: 600; font-size: 14px;
  padding: 12px 13px; min-height: 46px; border-radius: 12px; border: none; border-left: 3px solid transparent;
  background: transparent; color: var(--color-body); cursor: pointer;
}
.faq-cat-btn:hover { background: var(--color-sage-tint); }
.faq-cat-btn.is-active { background: var(--color-sage-tint); color: var(--color-ink); }
.faq-cat-dot { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.faq-main { flex: 6 1 min(620px, 100%); min-width: 0; }
.faq-search-box { position: relative; max-width: 440px; }
.faq-search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--color-muted); }
.faq-search-box input {
  width: 100%; box-sizing: border-box; padding: 14px 16px 14px 44px; min-height: 50px; border-radius: 12px;
  border: 1.5px solid var(--color-line); background: var(--color-surface); font-family: var(--font-body); font-size: 15px;
  color: var(--color-ink); outline: none; box-shadow: var(--shadow-sm);
}
.faq-search-box input:focus { border-color: var(--color-brand); }
.faq-result-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 20px; font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-h3); color: var(--color-ink); }
.faq-result-count a { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--color-brand); text-decoration: underline; }
.faq-cat-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.faq-cat-head__rail { flex: none; width: 6px; align-self: stretch; min-height: 52px; border-radius: 999px; }
.faq-cat-head h2 { font-size: var(--fs-h3); margin: 0 0 6px; }
.faq-cat-head p { font-size: 14.5px; line-height: 1.65; color: var(--color-muted); margin: 0; max-width: 60ch; }
.faq-list { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-list .faq-item { border-bottom: none; border-top: 1px solid var(--color-line); }
.faq-list .faq-item:first-child { border-top: none; }
.faq-list .faq-item summary { padding: 20px 24px; font-size: 16.5px; }
.faq-list .faq-item p { padding: 0 24px 22px 24px; margin: 0; max-width: 74ch; }
.faq-empty { padding: 44px 26px; text-align: center; }
.faq-empty h3 { margin-bottom: 6px; }
.faq-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: clamp(26px, 3vw, 38px); background: var(--color-sage-tint); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 30px); }
.faq-cta h3 { font-size: 19px; margin-bottom: 5px; }
.faq-cta p { font-size: 14px; line-height: 1.65; color: var(--color-body); margin: 0; max-width: 46ch; }

@media (max-width: 860px) {
  .faq-sidebar { position: static; max-width: none; }
}

/* ==========================================================================
   Reusable content blocks: numbered steps, tier cards, check-mark lists,
   media grids, pull quotes, dark info tiles (About, Wholesale, Quality,
   Refunds pages)
   ========================================================================== */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: var(--gap-md); }
.step-card { border-top: 2px solid var(--color-brand); padding: 20px 0 0; }
.step-card__num { font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--color-brand); margin-bottom: 12px; }
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; line-height: 1.7; color: var(--color-muted); margin: 0; }

.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--gap-md); }
.tier-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 28px; }
.tier-card__level { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 14px; }
.tier-card__name { font-family: var(--font-heading); font-weight: 700; font-size: 21px; letter-spacing: -.01em; color: var(--color-ink); margin-bottom: 9px; }
.tier-card p { font-size: 14.5px; line-height: 1.7; color: var(--color-body); margin: 0 0 18px; }
.tier-card__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--color-line); font-size: 13.5px; line-height: 1.6; color: var(--color-muted); }

.check-list { display: flex; flex-direction: column; gap: 1px; background: var(--color-line); border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; }
.check-item { display: flex; gap: 14px; align-items: flex-start; background: var(--color-surface); padding: 20px 22px; }
.check-item__icon { flex: none; display: inline-flex; width: 26px; height: 26px; border-radius: 8px; background: var(--color-lime-tint); color: var(--color-lime-ink); align-items: center; justify-content: center; }
.check-item__title { font-family: var(--font-heading); font-weight: 700; font-size: 15.5px; color: var(--color-ink); margin-bottom: 5px; }
.check-item p { font-size: 13.5px; line-height: 1.7; color: var(--color-body); margin: 0; }

.media-grid { display: flex; flex-direction: column; gap: var(--gap-md); }
.media-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-line); box-shadow: var(--shadow-sm); }
.media-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }

.pull-quote { border-left: 3px solid var(--color-lime); background: var(--color-sage-tint); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 22px 24px; }
.pull-quote p { font-family: var(--font-heading); font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--color-ink); margin: 0; }

.tile-band { background: var(--color-brand); color: #fff; padding: var(--pad-y-sm) 0; }
.tile-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); overflow: hidden; }
.tile-band__cell { background: var(--color-brand); padding: 20px 18px; }
.tile-band__icon { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: rgba(180,227,63,.14); color: var(--color-lime); align-items: center; justify-content: center; margin-bottom: 12px; }
.tile-band__title { font-family: var(--font-heading); font-weight: 700; font-size: 14.5px; color: #fff; margin-bottom: 6px; }
.tile-band__cell p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.7); margin: 0; }

.cta-band { position: relative; overflow: hidden; background: var(--color-brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 50px); }
.cta-band__row { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(22px, 3vw, 44px); align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 52ch; }

/* ==========================================================================
   COA Lookup page
   ========================================================================== */
.coa-lookup-hero__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--gap-md); max-width: 760px; margin-top: 24px; }
.coa-lookup-hero__option { display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.coa-lookup-hero__option:hover { border-color: var(--color-brand); transform: translateY(-4px); }
.coa-lookup-hero__option-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }
.coa-lookup-hero__option-title { font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--color-ink); }
.coa-lookup-hero__option-copy { font-size: 13.5px; line-height: 1.6; color: var(--color-muted); }
.coa-search-band { background: var(--color-brand); padding: clamp(34px, 4vw, 52px) 0; }
.coa-search-band__row { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(22px, 3vw, 48px); align-items: center; }
.coa-search-band h2 { color: #fff; margin-bottom: 10px; }
.coa-search-band p { color: rgba(255,255,255,.76); margin: 0; max-width: 44ch; }
.coa-search-band form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; }
.coa-search-band__field { position: relative; flex: 1 1 220px; min-width: 0; }
.coa-search-band__field svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--color-muted); }
.coa-search-band__field input {
  width: 100%; box-sizing: border-box; height: 52px; padding: 0 16px 0 42px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.28); background: #fff; font-family: var(--font-body); font-size: 15px; color: var(--color-ink); outline: none;
}
.coa-search-band__note { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 10px; }
.coa-search-band__note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255,255,255,.8); }
.coa-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: var(--gap-sm); }
.coa-cat-card { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 15px 16px; min-height: 78px; border-radius: var(--radius-md); border: 1px solid var(--color-line); background: var(--color-surface); }
.coa-cat-card__label { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; color: var(--color-ink); }
.coa-cat-card__dot { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.coa-cat-card__count { font-size: 12.5px; color: var(--color-muted); }
.coa-missing { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--color-muted); }
.coa-missing svg { flex: none; }

/* ==========================================================================
   Sitemap
   ========================================================================== */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap-lg); }
.sitemap-col__title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--color-line); }
.sitemap-col__list { display: flex; flex-direction: column; gap: 12px; }
.sitemap-col__list a { font-size: 14.5px; color: var(--color-ink); }
.sitemap-col__list a:hover { color: var(--color-brand); }
.sitemap-col__note { font-size: 12.5px; color: var(--color-muted); margin-top: 4px; }

/* ==========================================================================
   Search overlay
   ========================================================================== */
[data-search-trigger] { cursor: pointer; }
.search-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 70;
  background: color-mix(in srgb, var(--color-ink) 45%, transparent);
  backdrop-filter: blur(3px);
  justify-content: center; align-items: flex-start;
  padding: clamp(16px, 8vh, 120px) var(--pad-x) 24px;
}
.search-overlay.is-open { display: flex; }
.search-overlay__dialog {
  width: min(720px, 100%); max-height: 78vh; display: flex; flex-direction: column;
  background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-overlay__head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--color-line); }
.search-overlay__icon { color: var(--color-muted); display: inline-flex; }
.search-overlay__input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--font-body); font-size: 18px; color: var(--color-ink); }
.search-overlay__esc {
  flex: none; font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 8px; border: 1.5px solid var(--color-line); background: transparent; color: var(--color-muted); cursor: pointer;
}
.search-overlay__esc:hover { border-color: var(--color-brand); color: var(--color-brand); }
.search-overlay__body { flex: 1; overflow-y: auto; padding: 8px 0 12px; }
.search-overlay__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); padding: 14px 20px 10px; }
.search-overlay__loading { padding: 40px 20px; text-align: center; color: var(--color-muted); font-size: 14px; }
.search-overlay__row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; text-decoration: none; color: inherit; }
.search-overlay__row:hover { background: var(--color-sage-tint); }
.search-overlay__thumb { position: relative; width: 52px; height: 52px; flex: none; border-radius: 10px; border: 1px solid var(--color-line); background: #fff; overflow: hidden; }
.search-overlay__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.search-overlay__row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.search-overlay__row-name { font-size: 16px; font-weight: 600; color: var(--color-ink); line-height: 1.3; }
.search-overlay__row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--color-muted); }
.search-overlay__row-meta .dot { color: var(--color-line-strong); }
.search-overlay__row-arrow { flex: none; color: var(--color-muted); }
.search-overlay__empty { padding: 44px 24px 40px; text-align: center; }
.search-overlay__empty-icon {
  width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 999px;
  background: var(--color-coral-tint); display: grid; place-items: center; color: var(--color-coral-dark);
}
.search-overlay__empty-title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--color-ink); margin-bottom: 8px; }
.search-overlay__empty p { font-size: 14px; line-height: 1.7; color: var(--color-body); margin: 0 auto; max-width: 44ch; }
.search-overlay__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--color-line); background: var(--color-canvas); font-size: 11px; color: var(--color-muted);
}
.search-overlay__foot a { font-size: 13px; font-weight: 700; color: var(--color-brand); }
body.search-open { overflow: hidden; }

/* ==========================================================================
   COA overlay — clicking "View the COA for This Lot" on a product page
   ========================================================================== */
.coa-card__note { font-size: 12.5px; color: var(--color-coral-dark); margin-top: 4px; line-height: 1.5; }
.coa-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 70;
  background: color-mix(in srgb, var(--color-ink) 45%, transparent);
  backdrop-filter: blur(3px);
  justify-content: center; align-items: center;
  padding: 24px var(--pad-x);
}
.coa-overlay.is-open { display: flex; }
.coa-overlay__dialog {
  position: relative; width: min(920px, 100%); max-height: 88vh;
  background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex;
}
.coa-overlay__close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--color-line); background: var(--color-bg); color: var(--color-muted); cursor: pointer;
}
.coa-overlay__close:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
.coa-overlay__body { display: flex; width: 100%; max-height: 88vh; }
.coa-overlay__pdf {
  flex: 1.3; min-width: 0; background: var(--color-canvas); border-right: 1px solid var(--color-line);
  display: flex; align-items: stretch;
}
.coa-overlay__pdf iframe { flex: 1; width: 100%; border: none; min-height: 60vh; }
.coa-overlay__pdf-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--color-muted); text-align: center; padding: 40px;
}
.coa-overlay__pdf-empty[hidden] { display: none; }
.coa-overlay__pdf-empty p { font-size: 14px; max-width: 26ch; margin: 0; }

/* ==========================================================================
   NMI checkout card-brand icons — plugin renders these as inline <img> tags
   inside the payment method's <label>; without this they wrap onto separate
   lines instead of sitting in a row next to "Credit Card".
   ========================================================================== */
label[for="payment_method_nmi-for-woocommerce"] {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
label[for="payment_method_nmi-for-woocommerce"] img {
  display: inline-block; height: 22px; width: auto; margin: 0;
}
.coa-overlay__details { flex: 1; min-width: 0; padding: 32px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.coa-overlay__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.coa-overlay__details h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--color-ink); margin: 0 0 4px; }
.coa-overlay__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-line); font-size: 14px; }
.coa-overlay__row-label { color: var(--color-muted); }
.coa-overlay__row span:last-child { color: var(--color-ink); font-weight: 600; text-align: right; }
.coa-overlay__note { font-size: 13px; color: var(--color-coral-dark); background: var(--color-coral-tint); border-radius: 10px; padding: 10px 12px; line-height: 1.6; margin: 0; }
.coa-overlay__details .btn { margin-top: 6px; align-self: flex-start; }
body.coa-open { overflow: hidden; }

@media (max-width: 760px) {
  .coa-overlay__body { flex-direction: column; overflow-y: auto; }
  .coa-overlay__pdf { border-right: none; border-bottom: 1px solid var(--color-line); }
  .coa-overlay__pdf iframe { min-height: 46vh; }
  .coa-overlay__dialog { max-height: 92vh; }
}

/* ==========================================================================
   Account notice popup — registration / verification / resend messages
   ========================================================================== */
.ip-notice-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 80;
  background: color-mix(in srgb, var(--color-ink) 45%, transparent);
  backdrop-filter: blur(3px);
  justify-content: center; align-items: center;
  padding: 24px var(--pad-x);
}
.ip-notice-overlay.is-open { display: flex; }
.ip-notice-overlay__dialog {
  position: relative; width: min(420px, 100%);
  background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 36px 28px 28px; text-align: center;
}
.ip-notice-overlay__close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--color-line); background: var(--color-bg); color: var(--color-muted); cursor: pointer;
}
.ip-notice-overlay__close:hover { color: var(--color-ink); border-color: var(--color-line-strong); }
.ip-notice-overlay__icon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 999px; display: grid; place-items: center;
}
.ip-notice-overlay__icon--success { background: var(--color-sage-tint); color: var(--color-brand); }
.ip-notice-overlay__icon--error { background: var(--color-coral-tint); color: var(--color-coral-dark); }
.ip-notice-overlay__dialog h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--color-ink); margin: 0 0 8px; }
.ip-notice-overlay__dialog p { font-size: 14.5px; line-height: 1.65; color: var(--color-body); margin: 0 0 22px; }
.ip-notice-overlay__dialog .btn { width: 100%; }
body.ip-notice-open { overflow: hidden; }

/* ==========================================================================
   Toasts — lightweight confirmations (added to cart, etc.). WooCommerce
   renders these as full-width inline banners by default; JS (main.js)
   relocates them here instead so they don't push page content down.
   Validation/checkout errors are deliberately left inline — see main.js.
   ========================================================================== */
.ip-toast-viewport {
  position: fixed; z-index: 90; top: 16px; right: 16px; left: 16px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.ip-toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  max-width: 420px; width: 100%;
  background: var(--color-bg); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--color-brand);
  padding: 14px 16px; font-size: 14px; color: var(--color-ink); line-height: 1.5;
  animation: ip-toast-in .25s ease-out;
}
.ip-toast.is-leaving { animation: ip-toast-out .2s ease-in forwards; }
.ip-toast__icon { flex: none; color: var(--color-brand); display: flex; }
.ip-toast__body { flex: 1; min-width: 0; }
.ip-toast__body a { color: var(--color-brand); font-weight: 600; text-decoration: underline; }
.ip-toast__close { flex: none; background: none; border: none; color: var(--color-muted); cursor: pointer; padding: 2px; line-height: 0; }
.ip-toast__close:hover { color: var(--color-ink); }
@keyframes ip-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ip-toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 480px) {
  .ip-toast-viewport { left: 12px; right: 12px; top: 12px; align-items: stretch; }
  .ip-toast { max-width: none; }
}
