/* =============================================
   TeaShop Main Stylesheet
   ============================================= */

/* =============================================
   DESIGN TOKENS

   One source of truth for colour, type, space, radius and elevation.
   Component rules below must reference these rather than raw values.
   ============================================= */
:root {
  /* ============================================================
     TEASHOP V2 — "Night valley" editorial palette.
     The whole theme is token-driven, so redefining this block is
     what carries the dark treatment across every template,
     WooCommerce included. Names are kept from v1 so the 4,000
     lines below need no further edits; the three tokens added
     here split meanings that v1 had overloaded:

       --color-surface   the card / panel / input ground
                         (v1 used --color-white for this)
       --color-contrast  an emphasis block that must out-darken
                         the page (v1 used --color-dark)
       --color-accent    brand green as *text* on a dark ground;
                         --color-primary stays the fill colour

     Note --color-primary-dark is the *hover* step. On a dark
     theme hovering brightens, so it is lighter than the base.
     ============================================================ */

  /* --- Neutral ramp (warm, light -> dark; used directly in a
         handful of places that genuinely want a dark ground) --- */
  --neutral-0:   #ffffff;
  --neutral-50:  #faf9f6;
  --neutral-100: #f4f2ec;
  --neutral-200: #e8e4da;
  --neutral-300: #d5cfc2;
  --neutral-400: #a8a296;
  --neutral-500: #7c766b;
  --neutral-600: #5c574e;
  --neutral-700: #423e38;
  --neutral-800: #121a14;
  --neutral-900: #0a100c;

  /* --- The two poles, after the reference's night/paper pair --- */
  --night:     #0e1611;
  --night-2:   #070c08;
  --paper:     #ece5d6;
  --ink:       #f4f0e4;

  /* --- Brand --- */
  --color-primary:      #43855a;   /* fill: paper text sits on this at 4.6:1 */
  --color-primary-dark: #4f9b69;   /* hover = brighter on a dark theme */
  --color-accent:       #9ec98a;   /* brand green as text on night, ~9:1 */
  --color-primary-050:  #111c15;   /* tints are now dark-green washes */
  --color-primary-100:  #16261a;
  --color-primary-200:  #24402a;
  --color-primary-rgb:  158, 201, 138;

  --color-secondary:      #d5a05e;
  --color-secondary-dark: #e2b478;
  --color-secondary-050:  #1e1810;

  /* --- Semantic (lifted for legibility on night) --- */
  --color-success: #6fb37f;
  --color-warning: #e0b45c;
  --color-info:    #6fae9d;
  --color-danger:  #e2705c;
  --color-danger-050: #221310;

  /* --- Surfaces & text --- */
  --color-bg:         var(--night);
  --color-bg-light:   #131d17;
  --color-bg-subtle:  #111a14;
  --color-surface:    #16211a;
  --color-surface-2:  #1b2820;
  --color-bg-hero:    #0c130e;
  --color-bg-dark:    var(--night-2);
  --color-contrast:   var(--night-2);
  --color-border:     #24332a;
  --color-border-strong: #35493b;
  --color-text:       #cbd3c7;
  --color-text-light: #98a698;
  --color-text-muted: #71806f;
  --color-dark:       var(--ink);      /* now the *strongest* text */
  --color-dark-2:     var(--paper);
  --color-white:      var(--paper);    /* the light ink, on brand fills */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;

  --text-xs:   0.75rem;    /* 12 */
  --text-sm:   0.875rem;   /* 14 */
  --text-base: 1rem;       /* 16 */
  --text-lg:   1.125rem;   /* 18 */
  --text-xl:   1.25rem;    /* 20 */
  --text-2xl:  1.5rem;     /* 24 */
  --text-3xl:  1.875rem;   /* 30 */
  --text-4xl:  2.25rem;    /* 36 */
  --text-5xl:  3rem;       /* 48 */

  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  /* --- Space (4px base) --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  /* --- Radius --- */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  /* --- Elevation --- */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.36);
  --shadow:    0 4px 16px rgba(0,0,0,0.42);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.50);
  --shadow-lg: 0 22px 60px rgba(0,0,0,0.58);
  --shadow-hover: var(--shadow-md);

  /* --- Motion --- */
  --transition: color 0.2s ease, background-color 0.2s ease,
                border-color 0.2s ease, box-shadow 0.2s ease,
                transform 0.2s ease, opacity 0.2s ease;

  /* --- Layout --- */
  --container-width: 1440px;
  --container-padding: var(--space-6);
  --focus-ring: 0 0 0 3px rgba(var(--color-primary-rgb), 0.35);

  /* Tells the UA to paint its own widgets dark — checkboxes, radios, native
     select panels, scrollbars, date pickers and the password-reveal eye.
     Without it those all render as light controls punched into a dark page. */
  color-scheme: dark;

  /* ---- WooCommerce's own variables ----
     WooCommerce 11 styles its forms as
       background: var(--wc-form-color-background, #fff);
       color:      var(--wc-form-color-text, #000);
     at a specificity the theme cannot beat without !important, which is why
     checkout fields rendered black-on-white even though the theme sets a
     dark background. Redefining WooCommerce's variables is the supported
     way in: this stylesheet loads after the plugin's, so these win, and
     they reach every control the plugin styles — including ones no
     component rule below has ever named. WooCommerce leaves the two
     form-colour variables undeclared (fallback only), so these introduce
     them rather than override them. */
  --wc-form-color-background: var(--color-surface);
  --wc-form-color-text:       var(--color-text);
  --wc-form-border-color:     var(--color-border);
  --wc-content-bg:            var(--color-surface);
  --wc-subtext:               var(--color-text-light);
  --wc-primary:               var(--color-primary);
  --wc-primary-text:          var(--color-white);
  --wc-secondary:             var(--color-surface-2);
  --wc-secondary-text:        var(--color-dark);
  --wc-highlight:             var(--color-primary);
  --wc-highligh-text:         var(--color-white);  /* WooCommerce's own typo */
  --wc-green:                 var(--color-success);
  --wc-red:                   var(--color-danger);
  --wc-orange:                var(--color-warning);
  --wc-blue:                  var(--color-info);
  --wc-destructive:           var(--color-danger);
}

@media (prefers-reduced-motion: reduce) {
  :root { --transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* `overflow-x: hidden` here and on body forces overflow-y to compute to
   `auto`, which turns both into scroll containers. That breaks
   `position: sticky` against the viewport — the journey stage sticks to the
   body's scroll box instead and simply scrolls away, leaving its tall track
   as blank space. `clip` clips exactly the same but creates no scroll
   container, so sticky keeps working. `hidden` is declared first as the
   fallback for browsers that do not support `clip`. */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

/* Form controls inherit nothing useful from the UA on a dark theme: the
   default text colour is black, which v1 got away with because every field
   sat on white. Set it once here so every input across the site — theme
   forms, WooCommerce checkout, comment forms, widgets — is legible, and
   let the component rules below override where they mean to. */
input,
select,
textarea,
button {
  font-family: inherit;
  color: var(--color-text);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

/* Checked state for the UA's own checkbox and radio glyphs. */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--color-primary);
}

/* WooCommerce's password-reveal button is an icon-font glyph with no colour
   of its own, so it inherits black and vanishes against the field. */
.woocommerce .show-password-input,
.woocommerce .show-password-input::after {
  color: var(--color-text-light);
}

/* Native option lists are painted by the OS, so they need the pair set
   explicitly or they render as dark-on-dark in some browsers. */
select option {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Chrome's autofill repaints the field with its own near-white background
   and black text. The inset shadow is the only way to hold the dark ground. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--color-text);
  -webkit-box-shadow: 0 0 0 1000px var(--color-surface) inset;
  caret-color: var(--color-text);
}

a { color: inherit; text-decoration: none !important; transition: var(--transition); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* --- Focus visibility -------------------------------------------------
   A single keyboard-only focus ring for every interactive element. Mouse
   users never see it; keyboard users always do.
   -------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
/* On dark surfaces the green ring has too little contrast — go white. */
.site-footer :focus-visible,
.hero-section :focus-visible,
.promo-split-card :focus-visible {
  outline-color: var(--color-white);
}

/* Visually hidden but available to screen readers. */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Themed search form (searchform.php) --- */
.teashop-searchform {
  display: flex;
  gap: var(--space-2);
  width: 100%;
}
.teashop-searchform-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
}
.teashop-searchform-input::placeholder { color: var(--color-text-muted); }
.teashop-searchform-input:focus {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}
.teashop-searchform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: var(--space-3) var(--space-4);
  color: var(--color-white);
  background: var(--color-primary);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.teashop-searchform-btn:hover { background: var(--color-primary-dark); }
.teashop-searchform-btn svg { width: 18px; height: 18px; }

/* Skip link — visually hidden until focused. */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10000;
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--space-4);
  color: var(--color-white);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-dark);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2vw, var(--text-2xl)); }
h4 { font-size: var(--text-lg); line-height: var(--leading-snug); }
h5 { font-size: var(--text-base); line-height: var(--leading-snug); }
h6 { font-size: var(--text-sm); line-height: var(--leading-snug); }

p { margin-bottom: var(--space-4); color: var(--color-text-light); }

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* --- Buttons ----------------------------------------------------------
   Sentence case, not uppercase; pill-adjacent radius; shadow instead of a
   2px border ring. The uppercase + letterspaced treatment was the single
   most dated signature in the old sheet.
   -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-xs); }

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border-strong);
}
.btn-outline:hover {
  background: var(--color-contrast);
  border-color: var(--color-contrast);
  color: var(--color-white);
}
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--night);
}
.btn-ghost {
  background: var(--color-primary-050);
  color: var(--color-primary-dark);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--color-primary-100); color: var(--color-primary-dark); }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-block { width: 100%; }
.btn-icon { padding: var(--space-3); }
.btn[disabled], .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* --- Section titles --- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}
/* The old underline bar sat under a heading that already has a rule under
   it — two lines doing one job. Dropped. */
.section-title::after { content: none; }
.section-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-top: var(--space-1);
}
.section-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.section-link:hover { color: var(--color-primary-dark); }

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}
.badge-sale { background: var(--color-danger); color: var(--color-white); }
.badge-new  { background: var(--color-primary); color: var(--color-white); }
.badge-hot  { background: var(--color-secondary); color: var(--color-white); }
.badge-out  { background: var(--neutral-500); color: var(--color-white); }

/* --- Star ratings --- */
.star-rating {
  display: flex;
  gap: 2px;
  align-items: center;
}
.star-rating .star { color: var(--color-secondary); font-size: var(--text-sm); }
/* Empty stars have to read as an outline against the card, not vanish
   into the border colour. */
.star-rating .star.empty { color: var(--color-text-muted); }
.rating-count { font-size: var(--text-xs); color: var(--color-text-muted); margin-left: var(--space-1); }

/* =============================================
   ANNOUNCEMENT BAR
   ============================================= */
.announcement-bar {
  background: var(--color-contrast);
  color: var(--color-white);
  text-align: center;
  padding: 9px 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 100;
}
.announcement-bar a { color: var(--color-secondary); font-weight: 700; }
.announcement-bar .close-bar {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.7;
}
.announcement-bar .close-bar:hover { opacity: 1; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  max-width: 100%;
  overflow: hidden;
}

/* Top bar */
.header-top {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  padding: 7px 0;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-top-left, .header-top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-top-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  transition: var(--transition);
}
.header-top-link:hover { color: var(--color-accent); }
.header-top-link svg { width: 13px; height: 13px; }
.header-top-social { display: flex; align-items: center; gap: 10px; padding-left: 10px; border-left: 1px solid var(--color-border); margin-left: 4px; }
.header-top-select {
  background: none;
  border: none;
  border-right: 1px solid var(--color-border);
  padding: 0 8px 0 4px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  cursor: pointer;
  height: 20px;
  outline: none;
  font-family: inherit;
}

/* Main header */
.header-main {
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
}
.header-main .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 10px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo img { max-height: 55px; width: auto; }
.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.1;
}
.site-logo-text span { color: var(--color-accent); }
.site-logo-subtitle { font-size: 0.72rem; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }

/* Search */
.header-search {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.header-search-form {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  transition: var(--transition);
}
.header-search-form:focus-within { border-color: var(--color-primary); }
.header-search-category {
  background: var(--color-bg-light);
  border: none;
  border-right: 1px solid var(--color-border);
  padding: 0 12px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  cursor: pointer;
  min-width: 100px;
}
.header-search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  background: transparent;
}
.header-search-btn {
  background: var(--color-primary);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  color: var(--color-white);
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.header-search-btn:hover { background: var(--color-primary-dark); }
.header-search-btn svg { width: 18px; height: 18px; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-action-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-text);
  position: relative;
  transition: var(--transition);
  text-decoration: none;
}
.header-action-btn:hover { color: var(--color-accent); background: var(--color-bg-light); }
.header-action-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.header-action-icon-wrap { position: relative; flex-shrink: 0; }
.header-action-icon-wrap svg { width: 24px; height: 24px; display: block; }
.header-action-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-action-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}
.header-action-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
.header-action-main {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  white-space: nowrap;
}
.header-action-btn.cart-btn { position: static; }
.cart-total { font-weight: 700; font-size: 0.82rem; color: var(--color-dark); }

/* Navigation */
.header-nav { background: var(--color-bg); overflow: hidden; border-bottom: 1px solid var(--color-border); }
.header-nav .container { display: flex; align-items: center; overflow: hidden; }
.nav-categories-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  color: var(--color-dark);
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  white-space: nowrap;
  height: 46px;
  margin-right: 8px;
  transition: var(--transition);
}
.nav-categories-toggle:hover { color: var(--color-accent); }
.nav-categories-toggle svg { width: 18px; height: 18px; }

.primary-nav { flex: 1; }
.primary-nav ul { display: flex; align-items: center; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: 58px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-dark);
  transition: var(--transition);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a { color: var(--color-accent); }
.primary-nav > ul > li > a .nav-arrow { width: 12px; height: 12px; transition: var(--transition); }

/* Dropdown */
.primary-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1000;
}
.primary-nav li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.85rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--color-bg-light); color: var(--color-accent); padding-left: 24px; }

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 0 0 0 16px;
}
.nav-offer-badge {
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-dark);
}
.mobile-menu-toggle svg { width: 24px; height: 24px; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: var(--color-surface);
  z-index: 9999;
  box-shadow: 5px 0 30px rgba(0,0,0,0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  background: var(--color-contrast);
  color: var(--color-white);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav-close { background: none; border: none; color: var(--color-white); cursor: pointer; font-size: 1.3rem; }
.mobile-nav-menu { padding: 10px 0; }
.mobile-nav-menu a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
  color: var(--color-dark);
}
.mobile-nav-menu a:hover { color: var(--color-accent); background: var(--color-bg-light); }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}

/* =============================================
   HERO / SLIDER
   ============================================= */
.hero-section {
  position: relative;
  width: 100%;
}
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-slide {
  display: none;
  position: relative;
  width: 100%;
  min-height: 560px;
  align-items: center;
  background: var(--color-bg-hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-slide.active {
  display: flex;
  animation: heroFadeIn 0.4s ease;
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-slide-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
/* Directional scrim on top of the flat overlay.
   The hero copy is white and left-aligned, so its legibility otherwise
   depends entirely on whatever happens to be in the left of the photo.
   This darkens the left third and the base, keeping text readable on any
   image — including bright ones — without muddying the whole picture. */
.hero-slide-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,16,12,0.72) 0%, rgba(12,16,12,0.45) 38%, rgba(12,16,12,0) 68%),
    linear-gradient(0deg,  rgba(12,16,12,0.35) 0%, rgba(12,16,12,0) 45%);
}
@media (max-width: 768px) {
  /* Copy is centred at small sizes, so scrim the whole frame evenly. */
  .hero-slide-overlay::after {
    background: linear-gradient(0deg, rgba(12,16,12,0.6) 0%, rgba(12,16,12,0.3) 60%, rgba(12,16,12,0.35) 100%);
  }
}

/* Full-bleed hero layout */
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-inner {
  display: block;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-inner.no-image { max-width: 600px; }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-title span { color: var(--color-accent); }
.hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 420px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.hero-dot.active { background: var(--color-primary); transform: scale(1.3); }

/* Hero + Sidebar layout */
/* Categories dropdown */
.categories-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 1000;
  padding: 6px 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.categories-dropdown.open { display: block; animation: fadeIn 0.2s ease; }
.cat-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.875rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
  text-decoration: none;
}
.cat-dropdown-item:last-child { border-bottom: none; }
.cat-dropdown-item:hover { background: var(--color-bg-light); color: var(--color-accent); padding-left: 20px; }
.cat-dropdown-item span:nth-child(2) { flex: 1; }
.cat-dropdown-item svg { width: 11px; height: 11px; color: var(--color-text-muted); flex-shrink: 0; }
.cat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-primary); flex-shrink: 0;
}
.nav-categories-toggle svg:last-child { transition: transform 0.2s ease; }
.nav-categories-toggle.active svg:last-child { transform: rotate(180deg); }

/* =============================================
   FEATURES STRIP
   ============================================= */
.features-strip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 28px 0;
  margin-top: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-right: 1px solid var(--color-border);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-text h4 { font-size: 0.9rem; font-weight: 700; color: var(--color-dark); margin-bottom: 2px; }
.feature-text p { font-size: 0.78rem; color: var(--color-text-light); margin: 0; }

/* =============================================
   PRODUCT SECTIONS
   ============================================= */
.products-section { padding: 50px 0; background: var(--color-bg-light); }
.products-section-header { margin-bottom: 24px; }
.products-section-header .section-title::after { display: none; }
.products-section-subtitle { font-size: 0.875rem; color: var(--color-text-light); margin-top: 4px; margin-bottom: 0; }

/* White card wrapper */
.products-section-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* Pill filter tabs */
.products-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.products-filter-tab {
  padding: 7px 20px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}
.products-filter-tab.active { border-color: var(--color-primary); color: var(--color-accent); }
.products-filter-tab:hover { border-color: var(--color-primary); color: var(--color-accent); }

/* Carousel */
.products-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}
.products-carousel {
  overflow: hidden;
  flex: 1;
}
.products-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
}
.product-carousel-item {
  flex: 0 0 calc((100% - 80px) / 6);
  min-width: 0;
  display: block;
}
.product-carousel-item.ts-hidden { display: none; }
.products-carousel-btn {
  flex-shrink: 0;
  width: 32px;
  height: 60px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: var(--transition);
}
.products-carousel-btn svg { width: 16px; height: 16px; }
.products-carousel-prev { border-radius: 3px 0 0 3px; }
.products-carousel-next { border-radius: 0 3px 3px 0; }
.products-carousel-btn:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* Carousel product card */
.product-carousel-card {
  display: block;
  text-align: center;
  color: inherit;
  padding: 8px 4px 12px;
}
.product-carousel-img {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.product-carousel-img img {
  max-height: 160px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-carousel-card:hover .product-carousel-img img { transform: scale(1.05); }
.product-carousel-cats {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}
.product-carousel-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-carousel-card:hover .product-carousel-name { color: var(--color-accent); }
.product-carousel-rating { display: flex; justify-content: center; gap: 2px; margin-bottom: 6px; }
.product-carousel-price { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.product-carousel-price .price-original { font-size: 0.78rem; color: var(--color-text-muted); text-decoration: line-through; }
.product-carousel-price .price-current { font-size: 0.95rem; font-weight: 700; color: var(--color-dark); }

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.products-grid-4 { grid-template-columns: repeat(4, 1fr); }
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }
.products-grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Product card */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: visible;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-2px); }
.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.product-card-actions {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  z-index: 2;
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.product-action-btn:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.product-action-btn svg { width: 15px; height: 15px; }
.product-card-body {
  padding: 12px 4px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}
.product-card-category {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  font-weight: 600;
}
.product-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-title a:hover { color: var(--color-accent); }
.product-card-rating { display: flex; align-items: center; justify-content: center; gap: 3px; }
.product-card-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.price-current { font-size: 1rem; font-weight: 700; color: var(--color-dark); }
.price-original { font-size: 0.82rem; color: var(--color-text-muted); text-decoration: line-through; }
.product-card-footer {
  padding: 0 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
}
.product-card:hover .product-card-footer {
  max-height: 80px;
  padding: 0 4px 10px;
  opacity: 1;
  transform: translateY(0);
}
.add-to-cart-btn {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.add-to-cart-btn:hover { color: var(--color-accent); }
.add-to-cart-btn[disabled] { color: var(--color-text-muted); cursor: not-allowed; }
.add-to-cart-btn svg { width: 15px; height: 15px; }

/* Quick view overlay */
.product-quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(34,34,34,0.85);
  color: var(--color-white);
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(100%);
  transition: var(--transition);
  cursor: pointer;
  z-index: 2;
}
.product-card:hover .product-quick-view { opacity: 1; transform: translateY(0); }

/* =============================================
   CATEGORY TILES
   ============================================= */
.categories-section { padding: 50px 0; background: var(--color-bg-light); }
.categories-section .section-header { border-bottom: none; margin-bottom: 6px; padding-bottom: 0; }
.categories-section .section-title::after { display: none; }
.categories-section-subtitle { font-size: 0.875rem; color: var(--color-text-light); margin-bottom: 28px; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  min-height: 110px;
  position: relative;
}
.category-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-hover); }
.category-card-info { flex: 1; }
.category-card-name { font-size: 1rem; font-weight: 700; color: var(--color-dark); margin-bottom: 4px; }
.category-card-count { font-size: 0.8rem; color: var(--color-text-muted); }
/* Square thumbnail rather than a `contain` box. The category images are
   square product shots on dark backgrounds, which would float as an odd
   dark tile if letterboxed into a 120x90 area. */
.category-card-icon {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-light);
}
.category-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}
.category-card:hover .category-card-icon img { transform: scale(1.06); }
.category-card-icon .cat-initial {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.28;
}

/* =============================================
   BANNER ADS
   ============================================= */
/* =============================================
   PROMO SPLIT BANNERS
   ============================================= */
.promo-split-section { padding: 30px 0 40px; background: var(--color-bg-light); }
.promo-split-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.promo-split-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  padding: 30px 36px;
  gap: 24px;
  transition: var(--transition);
}
.promo-split-card:hover { box-shadow: var(--shadow-hover); }
.promo-split-img {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: flex-end;
}
.promo-split-card--2 .promo-split-img { width: 140px; }
.promo-split-img img {
  max-height: 190px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.promo-split-content {
  flex: 1;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}
.promo-split-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-bottom: 6px;
}
.promo-split-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 4px;
}
.promo-split-card--2 .promo-split-title { font-size: 1.35rem; }
.promo-split-subtitle {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 4px;
}
.promo-split-accent {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.promo-split-card--2 .promo-split-accent { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.promo-split-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
  opacity: 0.9;
  transition: var(--transition);
}
.promo-split-link:hover { opacity: 1; }

/* =============================================
   FLASH DEALS / COUNTDOWN
   ============================================= */
.flash-deals-section {
  padding: 50px 0;
  background: var(--color-bg-light);
}
.flash-deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-border);
}
.flash-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash-timer-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  margin-right: 8px;
}
.timer-block {
  background: var(--color-contrast);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 6px 10px;
  text-align: center;
  min-width: 44px;
}
.timer-block .time { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.timer-block .label { font-size: 0.6rem; text-transform: uppercase; opacity: 0.7; margin-top: 2px; }
.timer-sep { font-size: 1.2rem; font-weight: 700; color: var(--color-dark); }

/* =============================================
   BRANDS
   ============================================= */
.brands-section { padding: 40px 0; border-top: 1px solid var(--color-border); }
.brands-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 0;
}
@media (max-width: 768px) {
  .brands-track { gap: 12px; justify-content: center; }
}
.brand-logo {
  flex-shrink: 0;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
  min-width: 120px;
  background: var(--color-surface);
}
.brand-logo img { max-height: 35px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: var(--transition); }
.brand-logo:hover img { filter: grayscale(0%); opacity: 1; }
.brand-logo:hover { border-color: var(--color-primary); }

/* =============================================
   BLOG SECTION
   ============================================= */
.blog-section { padding: 50px 0; background: var(--color-bg-light); }
.blog-section-header { margin-bottom: 24px; }
.blog-section-header .section-title::after { display: none; }
.blog-section-subtitle { font-size: 0.875rem; color: var(--color-text-light); margin-top: 4px; margin-bottom: 0; }
.blog-section-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.blog-card {
  display: block;
  color: inherit;
  overflow: hidden;
  border-right: 1px solid var(--color-border);
  transition: var(--transition);
}
.blog-card:last-child { border-right: none; }
.blog-card:hover { color: inherit; }
.blog-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-light);
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-body { padding: 20px 24px 28px; }
.blog-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.blog-card:hover .blog-card-title { color: var(--color-accent); }
.blog-card-excerpt { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.6; margin: 0; }
.blog-section-footer { padding: 16px 24px; border-top: 1px solid var(--color-border); text-align: right; }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-section {
  background: var(--color-contrast);
  padding: 50px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.newsletter-text { flex: 1; }
.newsletter-text h2 { color: var(--color-white); font-size: 1.6rem; }
.newsletter-text p { color: rgba(255,255,255,0.7); margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 450px; }
.newsletter-input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { border-color: var(--color-secondary); }
.newsletter-social { display: flex; gap: 10px; align-items: center; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.social-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.social-btn svg { width: 16px; height: 16px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--neutral-900); color: rgba(255,255,255,0.72); }
.footer-top { padding: 55px 0 40px; }
/* Four tracks, matching the four columns footer.php actually renders.
   The old fifth track was for a newsletter block that was never built and
   left a large empty gap on the right of every page. */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
.footer-brand { }
.footer-brand .site-logo-text { color: var(--color-white); font-size: 1.6rem; }
.footer-brand p { font-size: 0.85rem; margin: 14px 0 20px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--color-accent); }

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--color-accent); }
.footer-links a:hover { color: var(--color-white); padding-left: 4px; }

.footer-newsletter-text { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.footer-newsletter-form { display: flex; margin-bottom: 16px; }
.footer-newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--color-white);
  font-size: 0.85rem;
  outline: none;
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter-btn {
  background: var(--color-primary);
  border: none;
  padding: 10px 16px;
  color: var(--color-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  transition: var(--transition);
}
.footer-newsletter-btn:hover { background: var(--color-primary-dark); }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom-text { font-size: var(--text-xs); color: rgba(255,255,255,0.55); }

/* Accepted-payment marks. Brand-coloured chips rather than the grey text
   placeholders ("VISA", "MC", "AMEX") that read as unfinished. */
.footer-payments {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.footer-payments-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  margin-right: var(--space-1);
}
.payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 42px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  /* Card marks are fixed brand colours — Visa navy, PayPal navy, GPay grey —
     so the chip has to stay light or they disappear into the footer. */
  background: var(--paper);
  color: var(--night);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}
.payment-icon svg { height: 16px; width: auto; display: block; }
.payment-icon--visa   { color: #1a1f71; font-style: italic; }
.payment-icon--amex   { background: #006fcf; color: var(--color-white); }
.payment-icon--paypal { color: #003087; }
.payment-icon--apple  { background: var(--night-2); color: var(--paper); }
.payment-icon--gpay   { color: #5f6368; }

/* =============================================
   SHOP / ARCHIVE PAGE
   ============================================= */
.shop-page { padding: 40px 0; }
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

/* Sidebar */
.shop-sidebar { position: sticky; top: 120px; }
.shop-filter-btn {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.shop-filter-btn svg { width: 15px; height: 15px; }
.shop-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
}
.shop-sidebar-overlay.open { display: block; }
.shop-sidebar-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-dark);
  line-height: 1;
}
.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-widget-title {
  background: var(--color-bg-light);
  padding: 13px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-widget-title svg { width: 14px; height: 14px; transition: var(--transition); }
.sidebar-widget-body { padding: var(--space-4); }

/* --- Default page template (About, Contact, FAQs, policies…) ----------
   A single readable measure rather than the old full-bleed content dump.
   -------------------------------------------------------------------- */
.page-content-section { padding: var(--space-9) 0 var(--space-11); }
.page-article {
  max-width: 72ch;
  margin: 0 auto;
}
.page-article .post-content > h2 {
  margin-top: var(--space-9);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.page-article .post-content > h2:first-child { margin-top: 0; }
.page-article .post-content > h3 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.page-article .post-content > p { font-size: var(--text-base); line-height: var(--leading-relaxed); }
.page-article .post-content > ul,
.page-article .post-content > ol {
  margin: 0 0 var(--space-5) var(--space-5);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}
.page-article .post-content > ul { list-style: disc; }
.page-article .post-content > ol { list-style: decimal; }
.page-article .post-content li { margin-bottom: var(--space-2); }
/* Cart, checkout and any block content render through page.php, so this
   rule also lands on WooCommerce block buttons and recolours their label
   to the link green. Buttons carry their own colour — exclude them. */
.page-article .post-content a:not(.wp-block-button__link):not(.button):not(.wp-element-button) { color: var(--color-accent); font-weight: 500; }
.page-article .post-content a:hover { color: var(--color-primary-dark); }
.page-article .post-content blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid var(--color-primary);
  background: var(--color-bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-lg);
}
.page-article .post-content img { border-radius: var(--radius-md); margin: var(--space-6) 0; }
.page-comments { max-width: 72ch; margin: var(--space-9) auto 0; }

/* --- Comments --- */
.comments-area { margin-top: var(--space-9); }
.comments-title { font-size: var(--text-xl); margin-bottom: var(--space-6); }
.comment-list { list-style: none; margin: 0 0 var(--space-8); padding: 0; }
.comment-list ol.children { list-style: none; margin: var(--space-5) 0 0 var(--space-7); padding: 0; }
.comment-list .comment-body {
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.comment-list .comment-author { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); font-weight: 600; }
.comment-list .comment-author img { border-radius: var(--radius-pill); }
.comment-list .comment-meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.comment-list .comment-content { font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.comment-list .reply { margin-top: var(--space-3); font-size: var(--text-sm); font-weight: 600; }
.comment-list .reply a { color: var(--color-accent); }
.comment-respond { padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.comment-reply-title { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.comment-form label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); color: var(--color-dark); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-primary); box-shadow: var(--focus-ring); }
.comment-form p { margin-bottom: var(--space-4); }
.comment-form .form-submit { margin-bottom: 0; }

/* --- 404 --- */
.error-404 { padding: var(--space-11) 0 var(--space-12); text-align: center; }
.error-404-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 600;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.error-404-title { margin-bottom: var(--space-3); }
.error-404-text { max-width: 46ch; margin: 0 auto var(--space-7); }
.error-404-search { max-width: 420px; margin: 0 auto var(--space-7); }
.error-404-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Wishlist page --- */
.wishlist-page { padding: var(--space-9) 0 var(--space-11); }
.wishlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.wishlist-summary { margin: 0; font-size: var(--text-sm); color: var(--color-text-light); }
.wishlist-empty { text-align: center; padding: var(--space-11) var(--space-5); }
.wishlist-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--color-primary-050);
  color: var(--color-accent);
}
.wishlist-empty-icon svg { width: 30px; height: 30px; }
.wishlist-empty h2 { margin-bottom: var(--space-3); }
.wishlist-empty p { max-width: 42ch; margin: 0 auto var(--space-6); }

/* --- Search results page --- */
.search-results-page { padding: var(--space-8) 0 var(--space-11); }
.search-results-form { max-width: 560px; margin: 0 auto var(--space-8); }
.search-results-count { font-size: var(--text-sm); color: var(--color-text-light); margin-bottom: var(--space-7); }
.search-results-group { margin-bottom: var(--space-10); }
.search-empty { text-align: center; padding: var(--space-11) var(--space-5); }
.search-empty h2 { margin-bottom: var(--space-3); }
.search-empty p { margin-bottom: var(--space-6); }

/* --- Toast / live region --------------------------------------------
   Feedback for AJAX actions (add to cart, wishlist). Doubles as an ARIA
   live region so screen readers hear the same confirmation.
   -------------------------------------------------------------------- */
.teashop-toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-7);
  transform: translate(-50%, 16px);
  z-index: 9999;
  max-width: min(90vw, 420px);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-white);
  background: var(--neutral-900);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.teashop-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.teashop-toast.is-error { background: var(--color-danger); }

/* --- Wishlist state --- */
.js-wishlist-toggle.is-active { color: var(--color-danger); border-color: currentColor; }
.js-wishlist-toggle.is-active svg { fill: currentColor; }
.js-wishlist-toggle[disabled] { opacity: 0.6; cursor: progress; }
.wishlist-count[hidden] { display: none; }

/* Sidebar promo card — brand green, not the old purple gradient. */
.sidebar-promo {
  background: linear-gradient(150deg, var(--color-primary-dark), var(--neutral-900));
  border: none;
}
.sidebar-promo-inner {
  padding: var(--space-6) var(--space-5);
  text-align: center;
  color: var(--color-white);
}
.sidebar-promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
}
.sidebar-promo-icon svg { width: 20px; height: 20px; }
.sidebar-promo-title {
  color: var(--color-white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.sidebar-promo-text {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

/* --- Block widgets inside a sidebar ------------------------------------
   Widgets added through the block widget editor render their own
   wp-block-* markup and carry their title inside the block, so the
   register_sidebar() before_title/after_title wrappers never fire and
   .sidebar-widget-body never opens. Without these rules they appear as
   unstyled default markup next to the theme's own panels.
   ---------------------------------------------------------------------- */
.sidebar-widget > .wp-block-group,
.sidebar-widget > form,
.sidebar-widget > .wp-block-heading,
.sidebar-widget > ul,
.sidebar-widget > ol,
.sidebar-widget > p,
.sidebar-widget > .wp-block-latest-comments,
.sidebar-widget > .wp-block-categories,
.sidebar-widget > .wp-block-archives {
  padding: var(--space-4);
}
.sidebar-widget .wp-block-group__inner-container { padding: 0; }

/* Block widget headings adopt the panel-title treatment. */
.sidebar-widget .wp-block-heading,
.sidebar-widget .wp-block-search__label {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: 0;
  color: var(--color-dark);
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

/* Lists: match the filter-list rhythm used by the hand-built panels. */
.sidebar-widget ul,
.sidebar-widget ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}
.sidebar-widget li { font-size: var(--text-sm); line-height: var(--leading-snug); }
.sidebar-widget li a { color: var(--color-text); }
.sidebar-widget li a:hover { color: var(--color-accent); }
.sidebar-widget .wp-block-latest-posts__post-date,
.sidebar-widget .wp-block-latest-comments__comment-meta {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}
.sidebar-widget .no-comments,
.sidebar-widget .wp-block-latest-comments {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* Search widget: match the themed inputs rather than browser defaults. */
.sidebar-widget .wp-block-search__inside-wrapper { display: flex; gap: var(--space-2); }
.sidebar-widget .wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.sidebar-widget .wp-block-search__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}
.sidebar-widget .wp-block-search__button {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-widget .wp-block-search__button:hover { background: var(--color-primary-dark); }

/* Filter items */
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
}
.filter-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--color-primary); cursor: pointer; }
.filter-item label { font-size: 0.85rem; color: var(--color-text); cursor: pointer; flex: 1; }
.filter-item .count { font-size: 0.78rem; color: var(--color-text-muted); background: var(--color-bg-light); padding: 1px 6px; border-radius: 10px; }

/* Price range */
.price-range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) 60%, var(--color-border) 60%);
  outline: none;
  margin: 12px 0;
}
.price-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-primary);
}
.price-range-display { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; color: var(--color-dark); }

/* Color swatches */
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.color-swatch:hover, .color-swatch.active { border-color: var(--color-accent); transform: scale(1.15); }

/* Shop toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  gap: 12px;
}
.shop-results { font-size: 0.85rem; color: var(--color-text-light); }
.shop-results strong { color: var(--color-dark); }
.shop-toolbar-right { display: flex; align-items: center; gap: 10px; }
.shop-toolbar-label { font-size: 0.85rem; color: var(--color-text-light); white-space: nowrap; }
.shop-per-page { max-width: 70px; }
.shop-sort {
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  outline: none;
}
.shop-sort-custom {
  position: relative;
}
.shop-sort-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.shop-sort-trigger:hover { border-color: var(--color-primary); }
.shop-sort-trigger svg { width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.2s; }
.shop-sort-custom.open .shop-sort-trigger svg { transform: rotate(180deg); }
.shop-sort-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  z-index: 100;
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
.shop-sort-custom.open .shop-sort-dropdown { display: block; }
.shop-sort-option {
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s;
}
.shop-sort-option:hover { background: var(--color-bg-light); color: var(--color-accent); }
.shop-sort-option.active { color: var(--color-accent); font-weight: 600; }

.shop-view-toggle { display: flex; gap: 4px; }
.view-toggle-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.view-toggle-btn.active, .view-toggle-btn:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.view-toggle-btn svg { width: 15px; height: 15px; }

/* Active filters */
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.active-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--color-text);
}
.active-filter-remove { cursor: pointer; color: var(--color-text-muted); transition: var(--transition); }
.active-filter-remove:hover { color: var(--color-accent); }
.clear-all-filters { font-size: 0.8rem; font-weight: 600; color: var(--color-accent); cursor: pointer; }

/* Pagination */
.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: var(--transition);
  text-decoration: none;
}
.page-btn.active, .page-btn:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* =============================================
   SINGLE PRODUCT PAGE
   ============================================= */
.sp-breadcrumb-bar { background: var(--color-bg-light); border-bottom: 1px solid var(--color-border); padding: 10px 0; }
.single-product-page { padding: 40px 0 60px; }

.single-product-layout {
  display: grid;
  grid-template-columns: 52% 1fr;
  gap: 50px;
  margin-bottom: 60px;
  align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 100px; }
.product-main-image {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-subtle);
  margin-bottom: 10px;
  position: relative;
}
.product-main-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; cursor: zoom-in; }
.product-main-image:hover img { transform: scale(1.04); }
.sp-gallery-badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.product-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.product-thumb {
  aspect-ratio: 1 / 1;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-subtle);
  transition: var(--transition);
}
.product-thumb.active, .product-thumb:hover { border-color: var(--color-primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Product Info */
.product-brand-link {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(var(--color-primary-rgb), 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.product-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: 14px;
}
.product-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.product-reviews-link { font-size: 0.82rem; color: var(--color-text-muted); text-decoration: underline; }
.product-reviews-link:hover { color: var(--color-accent); }
.sp-sku { font-size: 0.78rem; color: var(--color-text-muted); margin-left: auto; }
.sp-sku strong { color: var(--color-text); }

.product-price-block { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.product-price { font-size: 2rem; font-weight: 800; color: var(--color-accent); line-height: 1; }
.product-price-old { font-size: 1.05rem; color: var(--color-text-muted); text-decoration: line-through; }
.product-save { background: var(--color-primary); color: var(--color-white); padding: 3px 9px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }

.sp-availability { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }
.availability-in { color: var(--color-success); display: flex; align-items: center; gap: 5px; }
.availability-in svg { width: 16px; height: 16px; }
.availability-out { color: var(--color-accent); }

.product-short-desc { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.75; margin-bottom: 0; }

.sp-divider { height: 1px; background: var(--color-border); margin: 20px 0; }

/* Cart form */
.sp-cart-form { margin-bottom: 16px; }
.product-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 0; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.qty-btn {
  width: 40px; height: 46px;
  background: var(--color-bg-light);
  border: none; cursor: pointer;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text);
  transition: var(--transition);
}
.qty-btn:hover { background: var(--color-primary); color: var(--color-white); }
.qty-input {
  width: 56px; height: 46px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center; font-size: 1rem; font-weight: 700; outline: none;
}
.product-add-cart { flex: 1; min-width: 160px; height: 46px; font-size: 0.9rem; letter-spacing: 0.03em; }

/* Actions row */
.product-actions-row { display: flex; gap: 10px; margin: 14px 0 20px; flex-wrap: wrap; }
.product-wishlist-btn, .product-compare-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; color: var(--color-text);
  transition: var(--transition);
}
.product-wishlist-btn:hover, .product-compare-btn:hover { border-color: var(--color-primary); color: var(--color-accent); }
.product-wishlist-btn svg, .product-compare-btn svg { width: 15px; height: 15px; }

/* Trust badges */
.sp-trust-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.sp-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 500; color: var(--color-text-light);
  flex: 1; min-width: 130px;
}
.sp-trust-item svg { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; }

/* Share */
.sp-share { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 20px; }
.sp-share-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: var(--transition);
}
.sp-share-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.sp-share-btn svg { width: 14px; height: 14px; }

/* Meta */
.product-meta { border-top: 1px solid var(--color-border); padding-top: 16px; }
.product-meta-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.83rem; margin-bottom: 7px; flex-wrap: wrap; }
.product-meta-item strong { color: var(--color-dark); min-width: 80px; }
.product-meta-item a { color: var(--color-text); }
.product-meta-item a:hover { color: var(--color-accent); }

/* Tabs */
.product-tabs { margin-bottom: 60px; }
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 0;
  gap: 0;
}
.tab-btn {
  padding: 13px 28px;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; background: none; border: none;
  color: var(--color-text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.tab-btn.active { color: var(--color-accent); border-bottom-color: var(--color-primary); background: rgba(var(--color-primary-rgb), 0.04); }
.tab-btn:hover { color: var(--color-accent); }
.tab-count { font-size: 0.78rem; color: var(--color-text-muted); margin-left: 4px; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.sp-tab-body { padding: 28px 0; }

/* Additional info table */
.sp-info-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.sp-info-table tr { border-bottom: 1px solid var(--color-border); }
.sp-info-table tr:last-child { border-bottom: none; }
.sp-info-table td { padding: 12px 16px; vertical-align: middle; }
.sp-info-table td:first-child { font-weight: 700; color: var(--color-dark); background: var(--color-bg-light); width: 180px; }

/* Related */
.sp-related { padding-top: 0; margin-bottom: 20px; }

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}
.review-content { flex: 1; }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.reviewer-name { font-weight: 700; font-size: 0.9rem; }
.review-date { font-size: 0.78rem; color: var(--color-text-muted); }
.review-text { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.6; }
.review-form { margin-top: 30px; }
.review-form h4 { margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--color-dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
  background: var(--color-surface);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12); }
.form-group textarea { resize: vertical; min-height: 100px; }
/* Two-up row for the theme's own forms.
   Scoped away from .woocommerce, where `.form-row` is WooCommerce's wrapper
   for a *single* field — turning that into a 2-column grid put every label
   in one column and its input in the other. */
:not(.woocommerce) > .form-row,
.form-row:not(.woocommerce-form-row) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.woocommerce .form-row,
.woocommerce-page .form-row {
  display: block;
  grid-template-columns: none;
}

/* =============================================
   CART PAGE
   ============================================= */
.cart-page { padding: 40px 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 30px; align-items: start; }

.cart-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.cart-table thead { background: var(--color-bg-light); }
.cart-table thead th { padding: 13px 16px; font-size: 0.82rem; font-weight: 700; color: var(--color-dark); border-bottom: 1px solid var(--color-border); text-align: left; }
.cart-table thead th:last-child { text-align: right; }
.cart-table tbody tr { border-bottom: 1px solid var(--color-border); transition: var(--transition); }
.cart-table tbody tr:last-child { border-bottom: none; }
.cart-table tbody tr:hover { background: var(--color-bg-light); }
.cart-table td { padding: 16px; vertical-align: middle; }
.cart-product-cell { display: flex; align-items: center; gap: 14px; }
.cart-product-img { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); flex-shrink: 0; }
.cart-product-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-product-name { font-size: 0.9rem; font-weight: 600; color: var(--color-dark); }
.cart-product-variant { font-size: 0.78rem; color: var(--color-text-muted); }
.cart-remove-btn { background: none; border: none; cursor: pointer; color: var(--color-text-muted); padding: 4px; display: flex; align-items: center; transition: var(--transition); }
.cart-remove-btn:hover { color: var(--color-accent); }
.cart-remove-btn svg { width: 18px; height: 18px; }
.cart-price { font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.cart-total-price { font-size: 0.9rem; font-weight: 700; color: var(--color-dark); text-align: right; }

.cart-coupon {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.coupon-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}
.coupon-input:focus { border-color: var(--color-primary); }

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 120px;
}
.cart-summary h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--color-border); }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total { font-size: 1.05rem; font-weight: 700; color: var(--color-dark); padding: 14px 0; border-top: 2px solid var(--color-border); margin-top: 8px; }
.summary-row .price { font-weight: 700; color: var(--color-dark); }
.summary-row.discount .price { color: var(--color-success); }
.summary-row.total .price { font-size: 1.2rem; color: var(--color-accent); }

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-page { padding: 40px 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }

.checkout-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.checkout-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.checkout-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.checkout-section-header h3 { font-size: 1rem; font-weight: 700; }
.checkout-section-body { padding: 20px; }

.shipping-options { display: flex; flex-direction: column; gap: 10px; }
.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.shipping-option.active { border-color: var(--color-primary); background: rgba(var(--color-primary-rgb), 0.05); }
.shipping-option-left { display: flex; align-items: center; gap: 10px; }
.shipping-option-left input[type="radio"] { accent-color: var(--color-primary); width: 16px; height: 16px; }
.shipping-option-name { font-size: 0.875rem; font-weight: 600; }
.shipping-option-desc { font-size: 0.78rem; color: var(--color-text-muted); }
.shipping-option-price { font-size: 0.9rem; font-weight: 700; color: var(--color-accent); }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.payment-option.active { border-color: var(--color-primary); }
.payment-option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg-light);
}
.payment-option-header input[type="radio"] { accent-color: var(--color-primary); }
.payment-option-name { font-size: 0.875rem; font-weight: 600; flex: 1; }
.payment-icons { display: flex; gap: 5px; }
.payment-option-body { padding: 16px; border-top: 1px solid var(--color-border); display: none; }
.payment-option.active .payment-option-body { display: block; }

.order-summary-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 120px;
}
.order-summary-header {
  background: var(--color-contrast);
  color: var(--color-white);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.order-items { padding: 16px; border-bottom: 1px solid var(--color-border); max-height: 260px; overflow-y: auto; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 50px; height: 50px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); flex-shrink: 0; position: relative; }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.order-item-name { font-size: 0.82rem; font-weight: 600; flex: 1; }
.order-item-price { font-size: 0.85rem; font-weight: 700; color: var(--color-dark); }
.order-totals { padding: 16px; }

/* =============================================
   BLOG PAGE
   ============================================= */
.blog-page { padding: 40px 0; }
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: start; }
.blog-grid-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-card-full .blog-card-image { aspect-ratio: 16 / 9; }
.blog-card-full .blog-card-title { font-size: 1.15rem; }

/* Single blog post */
.single-post { padding: 40px 0; }
.single-post-layout { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: start; }
.post-header { margin-bottom: 28px; }
.post-category { display: inline-block; background: var(--color-primary); color: var(--color-white); padding: 4px 12px; border-radius: 3px; font-size: 0.78rem; font-weight: 700; margin-bottom: 12px; }
.post-title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 14px; }
.post-meta { display: flex; align-items: center; gap: 18px; font-size: 0.82rem; color: var(--color-text-muted); flex-wrap: wrap; }
.post-meta-item { display: flex; align-items: center; gap: 5px; }
.post-meta-item svg { width: 14px; height: 14px; }
.post-featured-image { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 28px; }
.post-featured-image img { width: 100%; height: auto; }
.post-content { font-size: 1rem; line-height: 1.8; color: var(--color-text-light); }
.post-content h2, .post-content h3 { color: var(--color-dark); margin: 28px 0 14px; }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 16px 0 16px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { border-left: 4px solid var(--color-primary); background: var(--color-bg-light); padding: 16px 20px; margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.post-content blockquote p { margin: 0; font-style: italic; color: var(--color-dark); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.post-tag { padding: 5px 12px; border: 1px solid var(--color-border); border-radius: 20px; font-size: 0.8rem; color: var(--color-text-light); transition: var(--transition); }
.post-tag:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.post-author-box {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  margin: 32px 0;
}
.post-author-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.post-author-bio { font-size: 0.85rem; color: var(--color-text-light); }

/* =============================================
   MY ACCOUNT PAGE
   ============================================= */
.account-page { padding: 40px 0; }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.account-sidebar { position: sticky; top: 120px; }
.account-user-card {
  background: var(--color-contrast);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-white);
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,0.2);
}
.account-name { font-size: 1rem; font-weight: 700; }
.account-email { font-size: 0.78rem; opacity: 0.7; margin-top: 4px; }
.account-nav {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}
.account-nav-item:last-child { border-bottom: none; }
.account-nav-item:hover, .account-nav-item.active { background: var(--color-primary); color: var(--color-white); }
.account-nav-item svg { width: 16px; height: 16px; }
.account-nav-item.active svg, .account-nav-item:hover svg { color: var(--color-white); }

.account-content { }
.account-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px; }
.account-panel h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--color-border); }

/* Orders table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  background: var(--color-bg-light);
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.orders-table td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); font-size: 0.875rem; }
.orders-table tr:last-child td { border-bottom: none; }
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-completed { background: rgba(40,167,69,0.1); color: var(--color-success); }
.status-processing { background: rgba(23,162,184,0.1); color: var(--color-info); }
.status-pending { background: var(--color-secondary-050); color: var(--color-warning); }
.status-cancelled { background: var(--color-danger-050); color: var(--color-danger); }

/* Address cards */
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.address-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  transition: var(--transition);
}
.address-card:hover { border-color: var(--color-primary); }
.address-card-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.address-card-edit { font-size: 0.78rem; font-weight: 600; color: var(--color-accent); }
.address-card p { font-size: 0.875rem; line-height: 1.7; margin: 0; }

/* Wishlist */
.wishlist-table { width: 100%; border-collapse: collapse; }
.wishlist-table th { padding: 10px 14px; background: var(--color-bg-light); font-size: 0.8rem; font-weight: 700; border-bottom: 1px solid var(--color-border); text-align: left; }
.wishlist-table td { padding: 14px; border-bottom: 1px solid var(--color-border); font-size: 0.875rem; vertical-align: middle; }

/* =============================================
   BRAND PAGE
   ============================================= */
.brands-page { padding: 40px 0; }
.brands-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.brand-page-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.brand-page-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.brand-page-logo { height: 60px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.brand-page-logo img { max-height: 50px; max-width: 120px; filter: grayscale(100%); opacity: 0.65; transition: var(--transition); }
.brand-page-card:hover .brand-page-logo img { filter: grayscale(0%); opacity: 1; }
.brand-page-name { font-size: 0.9rem; font-weight: 700; color: var(--color-dark); margin-bottom: 4px; }
.brand-page-count { font-size: 0.78rem; color: var(--color-text-muted); }

/* =============================================
   PAGE HEADER / BREADCRUMB
   ============================================= */
.page-banner {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.page-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.page-banner-title { font-size: 1.4rem; font-weight: 700; color: var(--color-dark); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { color: var(--color-text-muted); }
.breadcrumb .current { color: var(--color-dark); font-weight: 600; }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-hover);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* =============================================
   WOOCOMMERCE OVERRIDES
   ============================================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-left: 4px solid var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.04);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.woocommerce-info { border-left-color: var(--color-info); background: rgba(23,162,184,0.04); }
.woocommerce-error { border-left-color: var(--color-danger); background: var(--color-danger-050); }
.woocommerce-notices-wrapper { margin-bottom: 20px; }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-primary { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mt-auto { margin-top: auto; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }
.section-bg-light { background: var(--color-bg-light); }

/* =============================================
   RESPONSIVE
   ============================================= */

/* =============================================================
   V2 — CARD DESIGN PASS
   v1's cards were centred text floating on the page with a
   letterboxed image and an always-on empty star row. On a dark
   editorial ground that reads as unstructured. These give the
   cards a real surface, a uniform image plate and a left-aligned
   text block whose rows line up across the grid.
   ============================================================= */

/* --- Shared card shell --- */
.product-card,
.product-carousel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover,
.product-carousel-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

/* --- Image plate ---
   A square that the photograph fills. v1 used object-fit: contain with
   padding, which letterboxed every shot and left the grid looking sparse
   and ragged. These are lifestyle photographs, not cut-outs, so cover
   gives a uniform plate and a far denser page. */
.product-card-image,
.product-carousel-img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  height: auto;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--color-bg-light);
}

.product-card-image img,
.product-carousel-img img {
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  padding: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.product-card:hover .product-card-image img,
.product-carousel-card:hover .product-carousel-img img {
  transform: scale(1.05);
}

/* A hairline keeps the photo from bleeding into the card body. */
.product-card-image::after,
.product-carousel-img::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--color-border);
}

/* --- Text block ---
   Fixed rhythm so the title, price and footer line up across a row
   however long the product names run. */
.product-card-body,
.product-carousel-card > .product-carousel-cats {
  text-align: left;
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-3);
  text-align: left;
}

.product-carousel-card {
  padding: 0;
}

.product-carousel-cats,
.product-card-category {
  margin: var(--space-4) var(--space-4) 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: left;
}

.product-carousel-name,
.product-card-title {
  margin: var(--space-2) var(--space-4) 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-dark);
  text-align: left;
  /* Two lines for every card, so the price row never staggers. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* em, not rem: the 480px block drops this to 0.8rem, and a rem-based
     floor would then be taller than two lines and leak a clipped third
     line under the clamp. 1.4em tracks whatever the font-size resolves to. */
  min-height: calc(2 * 1.4em);
}

.product-card-title { margin-left: 0; margin-right: 0; }

.product-carousel-card:hover .product-carousel-name,
.product-card-title a:hover {
  color: var(--color-accent);
}

/* Ratings only render when a product actually has reviews, so the row
   collapses instead of leaving a gap. */
.product-carousel-rating,
.product-card-rating {
  justify-content: flex-start;
  margin: 0 var(--space-4);
}
.product-carousel-rating:empty,
.product-card-rating:empty { display: none; }

.product-carousel-price,
.product-card-price {
  justify-content: flex-start;
  align-items: baseline;
  gap: var(--space-2);
  margin: auto var(--space-4) var(--space-4);
  padding-top: var(--space-3);
}

.product-card-price { margin-left: 0; margin-right: 0; padding-top: var(--space-1); }

.product-carousel-price .price-current,
.product-card-price .price-current {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.product-carousel-price .price-original,
.product-card-price .price-original {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* Footer button sits flush to the card edge. */
.product-card-footer {
  padding: 0 var(--space-4) var(--space-4);
  margin-top: auto;
}

/* Carousel items must stretch so every card in the row is the same height. */
.products-carousel-track { align-items: stretch; }
.product-carousel-item { display: flex; }
.product-carousel-item > * { width: 100%; }

/* Badges and quick actions sit over the plate, which is now flush. */
.product-card-badges { top: var(--space-3); left: var(--space-3); }
.product-card-actions { top: var(--space-3); right: var(--space-3); }

/* =============================================================
   V2 — BLOG CARD DESIGN PASS
   v1 packed the posts into one bordered panel with gap: 0 and a
   divider rule between them, which reads as a table rather than
   editorial cards, and let a 16:9 image at half a 1440px page run
   to ~390px tall so the photograph swamped the writing.
   ============================================================= */

.blog-section-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-7);
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:last-child { border-right: 1px solid var(--color-border); }

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  /* Caps the photograph on wide screens so it frames the piece rather
     than becoming the piece. */
  max-height: 240px;
  border-bottom: 1px solid var(--color-border);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
}

.blog-card-category {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.blog-card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  transition: color 0.2s ease;
}

.blog-card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-section-footer {
  padding: var(--space-6) 0 0;
  border-top: 0;
  text-align: right;
}

/* =============================================================
   V2 — SINGLE PRODUCT DESIGN PASS
   The scraped descriptions are one long bracketed run; the
   formatter in functions.php splits them into these rows.
   ============================================================= */

.product-specs {
  margin: 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--color-border);
}

.product-spec {
  display: grid;
  grid-template-columns: minmax(140px, 10.5rem) 1fr;
  gap: var(--space-5);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.product-spec:last-of-type { border-bottom: 0; }

.product-spec dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.product-spec dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text);
}

/* Repeated labels — four sizes of the same cup, say — stack as rows
   under one heading instead of repeating the label four times. */
.product-spec dd span { display: block; }
.product-spec dd .product-spec-alt {
  margin-top: var(--space-1);
  padding-top: var(--space-1);
  border-top: 1px dashed var(--color-border);
  color: var(--color-text-light);
}

.product-spec-prose {
  margin: var(--space-5) 0 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-light);
}

/* SKU now sits on its own line rather than floating to the right of
   the rating. */
.sp-sku {
  margin: var(--space-3) 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.sp-sku span {
  margin-left: var(--space-2);
  color: var(--color-text-light);
  letter-spacing: 0.02em;
  text-transform: none;
}

.product-rating-row { gap: var(--space-3); }
.product-short-desc { margin-top: var(--space-6); }


@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid-6 { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* The hero image is an absolutely positioned, object-fit: cover layer, so
     it works at every width. Hiding it below 1024px left tablet and mobile
     visitors with a flat colour block where the photo should be. */
  .hero-image { display: block; }
  /* Favour the right of the frame, where these compositions put their
     subject, since the copy is centred over it at this size. */
  .hero-image img { object-position: 65% center; }
  .hero-with-sidebar { grid-template-columns: 1fr; }
  .hero-category-sidebar { display: none; }
  .single-product-layout { gap: 30px; grid-template-columns: 48% 1fr; }
  .shop-layout { grid-template-columns: 220px 1fr; gap: 20px; }
  .shop-sidebar { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .single-post-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(odd) { border-right: 1px solid var(--color-border); }
  .feature-item:last-child { border-right: none; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --container-padding: 15px; }
  .header-top { display: none; }
  .header-main .container { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
  .header-search { display: none; }
  .site-logo { flex-shrink: 0; }
  .site-logo-text { font-size: 1.2rem; }
  .site-logo-subtitle { display: none; }
  .header-actions { flex-shrink: 0; gap: 4px; }
  .header-search-category { display: none; }
  .primary-nav { display: none; }
  .nav-categories-toggle { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .header-actions .header-action-text { display: none; }
  .products-grid, .products-grid-4, .products-grid-6 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .banners-grid { grid-template-columns: 1fr; }
  .promo-split-grid { grid-template-columns: 1fr; }
  .promo-split-img { width: 140px; }
  .promo-split-card--2 .promo-split-img { width: 100px; }
  .blog-grid, .blog-grid-full { grid-template-columns: 1fr; }
  .blog-card { border-right: none; border-bottom: 1px solid var(--color-border); }
  .blog-card:last-child { border-bottom: none; }
  .single-product-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .address-grid { grid-template-columns: 1fr; }
  .brands-page-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .flash-deals-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-tabs { flex-wrap: wrap; gap: 6px; }
  .hero-section { display: block; }
  .hero-slide { min-height: 380px; width: 100%; }
  .hero-slide.active { display: flex; }
  .hero-inner { display: block; }
  .hero-content {
    padding: 36px 20px;
    max-width: 100%;
    width: 100%;
    text-align: center;
  }
  .hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.1em; margin-bottom: 8px; }
  .hero-title { font-size: clamp(1.4rem, 6vw, 2.2rem); margin-bottom: 10px; }
  .hero-subtitle { font-size: 0.85rem; margin-bottom: 20px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .hero-actions .btn { padding: 11px 24px; font-size: 0.85rem; flex: 1 1 auto; max-width: 160px; text-align: center; justify-content: center; }
  .page-banner-title { font-size: clamp(1.2rem, 4vw, 1.8rem); }
  /* Shop page mobile */
  .shop-page { overflow-x: hidden; }
  .shop-toolbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .shop-toolbar-label { display: none; }
  .shop-per-page { display: none; }
  .shop-view-toggle { display: none; }
  .shop-sort-trigger { font-size: 1rem; padding: 9px 12px; }
  .shop-sort-dropdown { font-size: 1rem; min-width: 180px; }
  .shop-sort-option { font-size: 1rem; padding: 12px 16px; }
  .shop-toolbar-right { gap: 6px; }

  /* Shop sidebar drawer */
  .shop-filter-btn { display: flex; }
  .shop-sidebar-close { display: block; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--color-surface);
    z-index: 999;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding: 50px 16px 24px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }
  .shop-sidebar.open { left: 0; }

  /* Products section mobile */
  .products-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 6px;
  }
  .products-filter-tabs::-webkit-scrollbar { display: none; }
  .products-filter-tab { flex-shrink: 0; font-size: 0.8rem; padding: 6px 14px; }
  .product-carousel-item { flex: 0 0 calc((100% - 16px) / 2); }
  .products-carousel-btn { width: 28px; height: 52px; }

  .categories-section { padding: 30px 0; }
  .category-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 10px;
    min-height: 90px;
    gap: 8px;
  }
  .category-card-info { flex: none; }
  .category-card-name { font-size: 0.82rem; margin-bottom: 2px; }
  .category-card-count { font-size: 0.72rem; }
  .category-card-icon { width: 68px; height: 68px; }
  .products-section { padding: 30px 0; }
}

@media (max-width: 480px) {
  :root { --container-padding: 12px; }
  .products-grid, .products-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .category-card { padding: 14px 8px; min-height: 80px; }
  .category-card-icon { width: 60px; height: 60px; }
  .product-carousel-item { flex: 0 0 calc((100% - 12px) / 1.6); }
  .features-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--color-border); padding: 16px; }
  .hero-slide { min-height: 280px; }
  .brands-page-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { flex-direction: column; }
  /* Product card mobile */
  .product-card { font-size: 0.85rem; }
  .product-card:hover { transform: none; }
  .product-card-image img { padding: 8px; }
  .product-card-body { padding: 8px 6px 6px; gap: 3px; }
  .product-card-category { font-size: 0.6rem; }
  .product-card-title { font-size: 0.8rem; -webkit-line-clamp: 2; }
  .product-card-rating svg { width: 10px; height: 10px; }
  .price-current { font-size: 0.88rem; }
  .price-original { font-size: 0.75rem; }
  /* Always show Add to Cart button on touch */
  .product-card-footer {
    max-height: 60px;
    padding: 0 6px 8px;
    opacity: 1;
    transform: none;
  }
  .add-to-cart-btn { padding: 7px 6px; font-size: 0.72rem; letter-spacing: 0; gap: 4px; }
  .add-to-cart-btn svg { width: 13px; height: 13px; }
  /* Hide hover-only actions on touch */
  .product-card-actions { display: none; }
  .product-quick-view { display: none; }
  .product-card-title { font-size: 0.75rem; }
  .add-to-cart-btn { font-size: 0.68rem; padding: 6px 4px; }
  .sp-trust-badges { flex-direction: column; gap: 8px; }
  .product-qty-row { flex-wrap: wrap; }
  .product-add-cart { width: 100%; }
}

/* =====================================================
   Botanical refinements — premium serif headings
   ===================================================== */
.hero-title { font-weight: 600; letter-spacing: -0.02em; }
.hero-eyebrow { color: var(--color-secondary-050); }  /* legible on the dark hero */
.site-logo-text { font-weight: 600; letter-spacing: -0.01em; }

/* Softer, warmer product cards */
.product-card-image { transition: var(--transition); }
.product-card:hover .product-card-image {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

/* =============================================================
   V2 — RESPONSIVE RULES FOR THE REDESIGNED COMPONENTS
   These must stay last in the file: the design pass above sets
   the base, and these are the breakpoint overrides for it.
   ============================================================= */

@media (max-width: 1024px) {
  /* Two wide blog cards beat three cramped ones on a tablet. */
  .blog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
  .blog-card-image { max-height: 200px; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .blog-card-image { max-height: 220px; }
  .blog-card-body { padding: var(--space-5); }
  .blog-card-title { font-size: 1.15rem; }

  /* The spec label column cannot hold a phrase like
     "Style/Capacity/Size" next to its value at this width. */
  .product-spec {
    grid-template-columns: 1fr;
    gap: var(--space-1);
    padding: var(--space-4) 0;
  }
  .product-spec dt { line-height: 1.4; }
}

@media (max-width: 480px) {
  /* Match the tighter card rhythm the 480 block sets for
     .product-card-body, so the carousel and grid stay in step. */
  .product-carousel-cats,
  .product-carousel-name,
  .product-carousel-price,
  .product-carousel-rating {
    margin-left: var(--space-3);
    margin-right: var(--space-3);
  }
  .product-carousel-name { font-size: 0.82rem; }
  .product-carousel-price { margin-bottom: var(--space-3); }
  .product-carousel-price .price-current,
  .product-card-price .price-current { font-size: 0.95rem; }
  .product-card-footer { padding: 0 var(--space-3) var(--space-3); }

  /* Hover lift is meaningless on touch and leaves cards stuck
     mid-transform after a tap. */
  .product-card:hover,
  .product-carousel-card:hover,
  .blog-card:hover { transform: none; box-shadow: none; }

  .blog-card-image { max-height: 180px; }
  .blog-card-body { padding: var(--space-4); }
  .blog-card-title { font-size: 1.05rem; }

  .product-specs { padding-top: var(--space-4); }
  .product-spec dd { font-size: 0.86rem; }
  .sp-sku { font-size: 0.7rem; }
  .sp-sku span { display: block; margin-left: 0; margin-top: 2px; word-break: break-all; }
}

/* Uppercase micro-labels need a floor: below ~11px, wide letter-spacing
   stops helping and starts hurting. */
@media (max-width: 768px) {
  .product-carousel-cats,
  .product-card-category,
  .blog-card-category,
  .site-logo-subtitle { font-size: 0.72rem; }
}

/* A 768px tablet is not a phone: two columns there makes every product
   image ~360px square. Three reads as a catalogue; two is for phones. */
@media (max-width: 768px) {
  .products-grid,
  .products-grid-4,
  .products-grid-6 { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}

@media (max-width: 560px) {
  .products-grid,
  .products-grid-4,
  .products-grid-6 { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}

/* A portrait tablet stacked the product layout, which gave the gallery the
   full 768px and pushed price and Add to cart a full screen below the fold.
   Two columns hold until the viewport is genuinely phone-width. */
@media (min-width: 620px) and (max-width: 768px) {
  .single-product-layout {
    grid-template-columns: 46% 1fr;
    gap: var(--space-6);
  }
  .cart-layout { grid-template-columns: 1fr; }
}

/* The archive card's meta row had no rule at all, so category, date and
   author ran together as one string ("TEA June 23, 2026 matthew"). */
.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.blog-card-meta > * + *::before {
  content: "·";
  margin-right: var(--space-2);
  color: var(--color-border-strong);
}
