/* ==========================================================================
   Design system layer
   --------------------------------------------------------------------------
   Geometry, elevation and type for the storefront. The colour tokens
   (--ink / --forest / --paper / --muted / --border / --accent and the derived
   --surface-*, --line*, --ink-*, --brand-* sets) are generated from the admin
   palette by theme.css.php, so every rule below re-tints when a merchant picks
   a different palette or the visitor switches to dark mode. Nothing here
   hard-codes a brand colour.

   Load order on customer pages:  theme.css.php -> store.css -> design-system.css
                                  -> page specific css (checkout-flow.css, ...)
   ========================================================================== */

:root {
  /* Radii: one card radius, one inner radius, one pill. */
  --r-pill: 999px;
  --r-card: 16px;
  --r-inner: 12px;
  --r-pixel: 3px;

  /* Elevation: resting card, hovered card, floating layer (drawer, dock, toast). */
  --shadow-1: 0 1px 2px rgb(17 27 40 / 0.06), 0 6px 18px rgb(17 27 40 / 0.05);
  --shadow-2: 0 2px 6px rgb(17 27 40 / 0.07), 0 18px 44px rgb(17 27 40 / 0.11);
  --shadow-pop: 0 24px 64px rgb(9 22 38 / 0.18), 0 2px 8px rgb(9 22 38 / 0.08);

  /* Motion. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout rhythm. */
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(2.75rem, 1.75rem + 3vw, 4.5rem);
  --header-h: 64px;

  /* A light plate placed on a drenched surface always carries dark ink, in
     both colour modes, so the pair is defined once. */
  --on-inverse: var(--forest-ink);

  /* Translucent header / dock surface. */
  --glass: color-mix(in srgb, var(--paper) 82%, transparent);
  --plate: var(--surface-2);

  /* Stacking order. */
  --z-raised: 10;
  --z-sticky: 60;
  --z-drawer: 200;
  --z-toast: 400;
}

html[data-theme="dark"] {
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 20px rgb(0 0 0 / 0.28);
  --shadow-2: 0 2px 8px rgb(0 0 0 / 0.42), 0 20px 48px rgb(0 0 0 / 0.4);
  --shadow-pop: 0 28px 70px rgb(0 0 0 / 0.55), 0 2px 10px rgb(0 0 0 / 0.4);
  --glass: color-mix(in srgb, var(--paper) 76%, transparent);
  --on-inverse: #0b1b2d;
}

@media (max-width: 720px) {
  :root { --header-h: 56px; }
}

/* --------------------------------------------------------------------------
   Type scale. Everything a shopper reads is 1rem or larger; only uppercase
   micro-labels and the smallest badges sit below it, and never under 0.8125rem.
   -------------------------------------------------------------------------- */
:root {
  --text-body: 1rem;
  --text-ui: 1rem;
  --text-sm: 0.9375rem;
  --text-micro: 0.8125rem;
}

body { font-size: var(--text-body); }

.main-nav a,
.header-shop,
.cart-toggle,
.account-card strong,
.breadcrumbs a,
.footer a,
.footer p,
.footer-about p,
.value-strip span,
.bag-item a,
.bag-item strong,
.order-summary,
.product-policy-summary p,
.promo-link,
.form-notice,
.field-note,
.detail-actions small,
.review-card p {
  font-size: var(--text-ui);
}

/* Micro-labels: uppercase, tracked, never below 13px. */
.eyebrow,
.overline,
.intro-kicker,
.hero-kicker,
.footer-eyebrow,
.intro-label,
.section-heading .eyebrow {
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
}

/* Editorial copy: comfortable measure and line height. */
.detail-description p,
.page-body p,
.page-body li,
.intro-copy > p:not(.intro-kicker),
.hero-content p,
.promotion-wrap p,
.review-card p,
.text-page p {
  font-size: var(--text-body);
  line-height: 1.7;
}

/* Commerce specifics get a step up so names and prices carry the card. */
.product-info h3,
.detail-content h1,
.bag-item strong {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.product-info p,
.card-stock,
.product-count,
.carousel-controls,
.intro-product span,
.intro-product strong {
  font-size: var(--text-sm);
}

.card-price,
.detail-price,
.bag-subtotal strong,
.checkout-summary strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.card-price { font-size: 1.0625rem; }

/* Badges and stock chips. */
.product-badge,
.stock-label,
.stock-green,
.bag-count,
.coupon-code-preview,
.announcement,
.announcement-item,
.footer-bottom {
  font-size: var(--text-micro);
}

.product-badge { padding: 5px 10px; letter-spacing: 0.01em; }
.stock-label { padding: 5px 10px; }

/* Buttons and inputs read at body size. */
.button,
.hero-button,
.intro-button,
.category-chip,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="url"],
select,
textarea {
  font-size: var(--text-ui);
}

.header {
  --brand-size: 1.125rem;
}
.brand { font-size: var(--brand-size); }

/* --------------------------------------------------------------------------
   Base type: neutral grotesk, tight display tracking, comfortable body copy.
   Display type is set with weight + tracking rather than a width axis, so it
   stays correct with the bundled variable faces (they carry weight, not width).
   -------------------------------------------------------------------------- */
body {
  background: var(--paper);
  color: var(--ink-1);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.section-heading h2,
.brand-showcase h2,
.promotion-wrap h2,
.hero-content h1,
.intro-copy h1,
.not-found-copy h1 {
  letter-spacing: -0.028em;
  font-weight: 800;
  line-height: 1.08;
}

/* Small caps label used above section headings and inside cards. */
.eyebrow,
.overline,
.intro-kicker,
.footer-eyebrow,
.hero-kicker {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Decorative pixel mark (three squares) used as the brand accent. */
.px-mark {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
  margin-right: 8px;
}
.px-mark i {
  display: block;
  width: var(--r-pixel);
  height: var(--r-pixel);
  background: currentColor;
  opacity: 0.85;
}
.px-mark i:nth-child(2) { opacity: 0.5; }
.px-mark i:nth-child(3) { opacity: 0.25; }

/* --------------------------------------------------------------------------
   Buttons: pill, one height, one hover. Behaviour classes (.light, .outline)
   are kept so existing markup and JS keep working. The plain `.button` base
   rule is deliberately low specificity: variants and drench-scoped overrides
   below simply out-rank it.
   -------------------------------------------------------------------------- */
.button,
.hero-button,
.intro-button {
  min-height: 46px;
  border-radius: var(--r-pill);
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: -0.005em;
  transition:background 0.18s var(--ease-out), color 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out), transform 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out);
}

.button {
  background: var(--forest);
  color: var(--on-brand);
  box-shadow: var(--shadow-1);
}
.button:hover {
  background: var(--brand-1);
  color: var(--on-brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.button.light {
  background: var(--surface-0);
  color: var(--ink-1);
  box-shadow: var(--shadow-1);
}
.button.light:hover {
  background: var(--surface-1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.button.outline {
  background: transparent;
  color: var(--ink-1);
  border-color: var(--line-2);
  box-shadow: none;
}
.button.outline:hover {
  border-color: var(--ink-3);
  background: var(--surface-1);
  transform: none;
  box-shadow: none;
}

.button:active,
.hero-button:active,
.intro-button:active { transform: translateY(0); }

/* Icon-only controls. */
.icon-button,
.theme-toggle,
.carousel-controls button,
.card-carousel-controls button {
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-0);
  color: var(--ink-1);
  transition:background 0.18s var(--ease-out), border-color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}
.icon-button:hover,
.theme-toggle:hover,
.carousel-controls button:hover {
  background: var(--surface-1);
  border-color: var(--line-2);
}

/* On a drenched (brand-filled) plate the primary action inverts: surface fill,
   brand ink. Applied to every drench surface we ship. */
.closing .button,
.hero .button,
.storefront-intro .intro-hero .button {
  background: var(--on-brand);
  color: var(--on-inverse);
  border-color: transparent;
  box-shadow: var(--shadow-1);
}
.closing .button:hover,
.hero .button:hover,
.storefront-intro .intro-hero .button:hover {
  background: var(--surface-0);
  color: var(--on-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* --------------------------------------------------------------------------
   Chips and tags.
   -------------------------------------------------------------------------- */
.category-chip,
.intro-categories a,
.product-badge,
.stock-label {
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface-0);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.category-chip {
  min-height: 38px;
  padding: 0.45rem 1rem;
  box-shadow: var(--shadow-1);
  transition:background 0.18s var(--ease-out), border-color 0.18s var(--ease-out),
    color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.category-chip:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.category-chip.active,
.category-chip[aria-current="page"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--on-brand);
}

.product-badge,
.stock-label {
  border-color: transparent;
  background: var(--accent);
  color: var(--forest-ink);
}

/* Scrim behind modal dialogs and drawers: brand-neutral, never a leftover hue. */
.share-dialog::backdrop,
.drawer::backdrop,
.drawer.is-visible::backdrop,
dialog::backdrop {
  background: color-mix(in srgb, var(--ink-1) 62%, transparent);
  
  
  transition:background 0.32s var(--ease-out);
}

/* Status chips keep their semantic colour, only the shape changes. */
.form-notice,
.form-error,
.store-toast {
  border-radius: var(--r-inner);
}

/* Stepper and small inline controls share the pill language. */
.quantity-controls,
.quantity-controls button {
  border-radius: var(--r-pill);
}
.quantity-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--surface-0);
  color: var(--ink-1);
  transition:background 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.quantity-controls button:hover {
  background: var(--surface-1);
  border-color: var(--line-2);
}

/* --------------------------------------------------------------------------
   Surfaces: cards sit on a slightly lighter plate than the page.
   -------------------------------------------------------------------------- */
.product-card,
.promotion-card,
.review-card,
.intro-feature,
.intro-categories,
.value-strip,
.checkout-summary,
.product-policy-summary,
.perfume-notes,
.detail-image,
.share-dialog,
.form-page form,
.account-panel {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}

.product-card {
  padding: 12px;
  transition:box-shadow 0.22s var(--ease-out), transform 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out);
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
}

/* Image plates. */
.product-image,
.card-media,
.detail-image,
.intro-product img {
  background: var(--plate);
  border-radius: var(--r-inner);
}
.detail-placeholder,
.image-placeholder {
  background: var(--plate);
  border-radius: var(--r-inner);
  color: var(--ink-3);
}

.promotion-card,
.intro-feature,
.intro-categories,
.value-strip { padding: clamp(16px, 2.2vw, 24px); }

/* --------------------------------------------------------------------------
   Form controls.
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="url"],
select,
textarea {
  border-radius: var(--r-inner);
  background: var(--surface-0);
  border: 1px solid var(--line);
  color: var(--ink-1);
  transition:border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 18%, transparent);
  outline: none;
}

/* Visible keyboard focus everywhere, including custom buttons. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  border-radius: var(--r-pixel);
}

/* --------------------------------------------------------------------------
   Header, announcement bar and mobile dock.
   -------------------------------------------------------------------------- */
.announcement {
  background: var(--forest);
  color: var(--on-brand);
  letter-spacing: 0.06em;
}
.announcement a { color: inherit; }
.announcement .announcement-sep { color: color-mix(in srgb, var(--on-brand) 55%, transparent); }

.header {
  background: var(--glass);
  
  
  border-bottom: 1px solid var(--line);
}
.header-sticky,
header.header { z-index: var(--z-sticky); }

.brand { letter-spacing: -0.045em; font-weight: 800; }
.brand-mark { color: var(--forest-ink); }

.header-shop,
.cart-toggle {
  border-radius: var(--r-pill);
  min-height: 42px;
  font-weight: 750;
  box-shadow: var(--shadow-1);
  transition:background 0.18s var(--ease-out), transform 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out);
}
.header-shop { background: var(--forest); color: var(--on-brand); }
.header-shop:hover { background: var(--brand-1); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.cart-toggle { background: var(--ink-1); color: var(--paper); }
.cart-toggle:hover { background: var(--brand-1); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.bag-count { background: var(--accent); color: var(--forest-ink); border-radius: var(--r-pill); font-weight: 800; }

.main-nav a { font-weight: 700; letter-spacing: -0.005em; }
.main-nav a[aria-current="page"] { color: var(--forest-ink); }

.mobile-dock {
  background: color-mix(in srgb, var(--ink-1) 94%, transparent);
  
  
  border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-pop);
  z-index: var(--z-sticky);
}
html[data-theme="dark"] .mobile-dock {
  background: color-mix(in srgb, var(--surface-2) 94%, transparent);
  border-color: var(--line-2);
}
.mobile-dock a,.mobile-dock button { color: var(--paper); font-weight: 700; letter-spacing: 0.01em; }

/* --------------------------------------------------------------------------
   Hero / storefront intro: the copy sits on a drenched brand plate with the
   product photograph fading in from the right.
   -------------------------------------------------------------------------- */
.storefront-intro .intro-hero {
  border-radius: var(--r-card);
  background-color: var(--forest);
  box-shadow: var(--shadow-2);
}
.storefront-intro .intro-hero::before {
  background:
    linear-gradient(96deg,
      var(--forest) 0%,
      color-mix(in srgb, var(--forest) 94%, transparent) 42%,
      color-mix(in srgb, var(--forest) 68%, transparent) 62%,
      color-mix(in srgb, var(--forest) 26%, transparent) 84%,
      transparent 100%);
}
.storefront-intro .intro-copy { color: var(--on-brand); }
.storefront-intro .intro-copy h1,
.storefront-intro .intro-copy h1 em { color: var(--on-brand); }
.storefront-intro .intro-copy > p:not(.intro-kicker) {
  color: color-mix(in srgb, var(--on-brand) 84%, transparent);
}
.storefront-intro .intro-kicker {
  color: color-mix(in srgb, var(--on-brand) 82%, transparent);
}
.storefront-intro .intro-bottom { color: color-mix(in srgb, var(--on-brand) 70%, transparent); }

/* The hero CTA inverts on the drench: surface fill, brand ink. */
.storefront-intro .intro-hero .intro-button,
.storefront-intro .intro-hero .intro-button:hover {
  background: var(--on-brand);
  color: var(--on-inverse);
}
.storefront-intro .intro-hero .intro-button:hover { box-shadow: var(--shadow-2); }

.hero {
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.hero-button { background: var(--forest); color: var(--on-brand); }

/* --------------------------------------------------------------------------
   Auth split panel (account sign-in / register): the drenched half keeps its
   secondary copy legible instead of falling back to the muted ink scale.
   -------------------------------------------------------------------------- */
.auth-layout {
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
}
.auth-intro {
  background: linear-gradient(152deg, var(--forest), var(--brand-1));
  color: var(--on-brand);
}
.auth-intro h1 { color: var(--on-brand); }
.auth-intro .eyebrow,
.auth-intro p:not(.eyebrow),
.auth-intro a {
  color: color-mix(in srgb, var(--on-brand) 84%, transparent);
}
.auth-intro h1 span {
  color: color-mix(in srgb, var(--on-brand) 52%, transparent);
}
.auth-intro .auth-star {
  border-color: color-mix(in srgb, var(--on-brand) 26%, transparent);
  color: var(--on-brand);
}

/* Leaflet map plate follows the card radius. */
.contact-map {
  border-radius: var(--r-card);
  border-color: var(--line);
  background: var(--surface-2);
}

/* Long-form copy keeps a readable measure on content pages and product prose. */
.text-page .page-body p,
.text-page .page-body li,
.detail-description p,
.detail-description li,
.checkout-form .field-note { max-width: 68ch; }

/* --------------------------------------------------------------------------
   Section furniture.
   -------------------------------------------------------------------------- */
.section-heading h2,
.brand-showcase h2,
.promotion-wrap h2 { letter-spacing: -0.032em; }

.value-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px clamp(18px, 3vw, 44px);
  color: var(--ink-2);
}

.breadcrumbs { font-size: 0.75rem; color: var(--muted); }
.breadcrumbs a { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Footer.
   -------------------------------------------------------------------------- */
.footer {
  background: var(--surface-1);
  border-top: 1px solid var(--line);
}
.footer-inner { gap: clamp(20px, 3vw, 40px); }
.footer-col h3,
.footer-about h3 { letter-spacing: -0.02em; }
.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Drawer, sheet, toast, dialog primitives.
   -------------------------------------------------------------------------- */
.drawer {
  background: var(--surface-0);
  border-left: 1px solid var(--line);
  border-radius: var(--r-card) 0 0 var(--r-card);
  box-shadow: var(--shadow-pop);
  z-index: var(--z-drawer);
}
@media (max-width: 720px) {
  .drawer {
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: var(--r-card) var(--r-card) 0 0;
  }
}
.drawer-header { border-bottom: 1px solid var(--line); }
.drawer-bottom { border-top: 1px solid var(--line); }

.store-toast {
  background: var(--ink-1);
  color: var(--paper);
  box-shadow: var(--shadow-pop);
  z-index: var(--z-toast);
}

.share-dialog { box-shadow: var(--shadow-pop); }
.share-grid a,
.share-grid button {
  border-radius: var(--r-inner);
  background: var(--surface-0);
}
.empty-bag,
.empty { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Motion preference: no transforms, no transitions.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .button,
  .header-shop,
  .cart-toggle,
  .category-chip,
  .product-card,
  .icon-button {
    transition:none;
  }
  .button:hover,
  .header-shop:hover,
  .cart-toggle:hover,
  .category-chip:hover,
  .product-card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Header fit: larger type must not wrap the navigation or the brand tagline.
   -------------------------------------------------------------------------- */
.main-nav { gap: clamp(14px, 1.8vw, 26px); }
.main-nav a { white-space: nowrap; }

.brand > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand small {
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--muted);
  font-weight: 500;
  max-width: 30ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Below this width the tagline is the first thing to go, not the navigation. */
@media (max-width: 1180px) {
  .brand small { display: none; }
}
@media (max-width: 900px) {
  .main-nav { gap: 14px; }
}

/* --------------------------------------------------------------------------
   Product card overlay: the stock chip sits one step above the price plate.
   At 1rem both would collide on a 3-up grid; stacking keeps every fact visible
   and keeps the two chips from ever overlapping at any card width.
   -------------------------------------------------------------------------- */
.card-media .card-stock {
  left: 12px;
  bottom: 58px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-media .card-price {
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: var(--r-inner);
  font-size: 1rem;
}
.card-price del { font-size: 0.875rem; }

@media (max-width: 480px) {
  .card-media .card-stock { bottom: 56px; }
}

/* ============================================================
   Collected offer ticket
   The bag holds one code, so it is shown once, as a ticket:
   label, code, what it saves, and a single way out.
   ============================================================ */
.bag-coupon{
  position:relative;display:grid;gap:6px;margin:0 0 18px;padding:16px 18px 14px;
  border:1px solid color-mix(in srgb,var(--forest) 38%,var(--line));border-radius:16px;
  background:linear-gradient(165deg,color-mix(in srgb,var(--forest) 16%,var(--surface-0)),color-mix(in srgb,var(--forest) 4%,var(--surface-0)) 70%);
  box-shadow:0 1px 0 #ffffffcc inset,0 12px 28px -24px color-mix(in srgb,var(--forest) 40%,transparent);
}
/* Ticket notches, so the card reads as a voucher rather than a panel. */
.bag-coupon::before,.bag-coupon::after{
  content:"";position:absolute;bottom:44px;width:14px;height:14px;border-radius:50%;
  background:var(--surface-0);border:1px solid color-mix(in srgb,var(--forest) 38%,var(--line));
}
.bag-coupon::before{left:-8px;clip-path:inset(0 0 0 50%)}
.bag-coupon::after{right:-8px;clip-path:inset(0 50% 0 0)}
.bag-coupon.is-invalid{border-color:var(--line-2);background:var(--surface-1);box-shadow:none}
.bag-coupon-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.bag-coupon .coupon-kicker{font-size:.8125rem;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:color-mix(in srgb,var(--forest-ink) 70%,var(--ink-3));margin:0}
.bag-coupon.is-invalid .coupon-kicker{color:var(--ink-3)}
.bag-coupon-save{font-size:1rem;font-weight:750;letter-spacing:-.01em;color:var(--forest-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.bag-coupon-code{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:2px 0 0}
.bag-coupon-code strong{font-size:1.25rem;font-weight:750;letter-spacing:.06em;color:var(--ink);line-height:1.2}
.bag-coupon-offer{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;background:color-mix(in srgb,var(--forest) 14%,var(--surface-0));color:var(--forest-ink);font-size:.8125rem;font-weight:700;white-space:nowrap}
.bag-coupon-note{margin:0;font-size:.9375rem;line-height:1.5;color:var(--ink-2)}
.bag-coupon.is-invalid .bag-coupon-note{color:var(--ink-3)}
.bag-coupon-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px;padding-top:12px;border-top:1px dashed color-mix(in srgb,var(--forest) 26%,var(--line))}
.bag-coupon.is-invalid .bag-coupon-foot{border-top-color:var(--line)}
.bag-coupon-foot small{font-size:.8125rem;line-height:1.4;color:var(--ink-3)}
.bag-coupon .coupon-remove{
  justify-self:end;flex:none;min-height:36px;padding:0 14px;border-radius:10px;
  border:1px solid color-mix(in srgb,var(--ink) 14%,transparent);background:var(--surface-0);
  color:var(--ink);font-size:.8125rem;font-weight:750;letter-spacing:.01em;cursor:pointer;
  transition:border-color .18s ease,background .18s ease,color .18s ease;
}
.bag-coupon .coupon-remove:hover{border-color:color-mix(in srgb,var(--error, #b42318) 40%,var(--line-2));background:color-mix(in srgb,var(--error, #b42318) 7%,var(--surface-0));color:color-mix(in srgb,var(--error, #b42318) 85%,var(--ink))}
.bag-coupon .coupon-remove:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
@media(max-width:420px){.bag-coupon-foot{flex-wrap:wrap}.bag-coupon .coupon-remove{width:100%}}


/* Category rail reads as a menu: one glyph per row, no chip border around each. */
.intro-categories a{
  border:0;border-radius:10px;background:transparent;padding:9px 8px;
  transition:background .18s ease,color .18s ease;
}
.intro-categories a:hover,.intro-categories a:focus-visible{background:var(--surface-0)}
.intro-categories a>span:last-child{color:var(--ink-4);font-size:.875rem;transition:color .18s ease}
.intro-categories a:hover>span:last-child{color:var(--forest-ink)}
.intro-categories a .intro-category-name{flex:1;min-width:0}
.intro-categories a .intro-category-count{
  display:inline-flex;flex:none;align-items:center;justify-content:center;min-width:1.9rem;min-height:1.45rem;padding:0 .4rem;
  border:1px solid var(--border);border-radius:999px;background:var(--paper);color:var(--muted);
  font-size:.6875rem;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;
}
.intro-categories a:hover .intro-category-count,.intro-categories a:focus-visible .intro-category-count{color:var(--forest-ink);border-color:var(--forest-ink)}

/* Mobile dock surfaces and labels derive from the active merchant/visitor theme. */
@media(max-width:800px){
  .mobile-dock{background:color-mix(in srgb,var(--paper) 92%,transparent);border-color:var(--border);color:var(--ink);}
  html[data-theme="dark"] .mobile-dock{background:color-mix(in srgb,var(--paper) 92%,transparent);border-color:var(--border)}
  .mobile-dock a,.mobile-dock a:hover,.mobile-dock a:focus-visible,.mobile-dock button,.mobile-dock button:hover,.mobile-dock button:focus-visible{color:var(--ink)}
  .mobile-dock svg,.mobile-dock .td-font-icon{color:currentColor}
  .mobile-dock .dock-count{background:var(--accent);color:var(--forest-ink);border:1px solid color-mix(in srgb,var(--ink) 12%,transparent)}
}
