/**
 * reset.css — Modern opinionated CSS reset
 *
 * Builds on top of tokens.css.
 * Goals:
 *   - eliminate browser default inconsistencies
 *   - wire brand/font tokens to semantic HTML elements
 *   - establish focus-visible policy globally
 *   - respect prefers-reduced-motion
 */

/* ── Box model ───────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}


/* ── Root & body ─────────────────────────────────────────────────── */

html {
  /* Prevent font-size inflation on iOS when rotating to landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Smooth anchor scroll without JS on browsers that support it */
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--brand-text);
  background-color: var(--brand-bg);
  /* Subpixel antialiasing on macOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}


/* ── Headings ────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 700;
  line-height: 1.2;
}

/* H1–H3: display font (brand voice) */
h1, h2, h3 {
  font-family: var(--font-display);
}

/* H4–H6: UI font (functional, still elevated over body) */
h4, h5, h6 {
  font-family: var(--font-ui);
}

h1 { font-size: 40px;  line-height: 1.15; }
h2 { font-size: 32px;  line-height: 1.2;  }
h3 { font-size: 24px;  line-height: 1.25; }
h4 { font-size: 20px;  line-height: 1.3;  }
h5 { font-size: 18px;  line-height: 1.4;  }
h6 { font-size: 16px;  line-height: 1.4;  }


/* ── Paragraphs & text ───────────────────────────────────────────── */

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

small {
  font-size: 14px;
  line-height: 1.4;
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}


/* ── Links ───────────────────────────────────────────────────────── */

a {
  color: var(--brand-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Focus: visible only on keyboard navigation */
a:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ── Lists ───────────────────────────────────────────────────────── */

ul, ol {
  margin-top: 0;
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
}

li {
  margin-bottom: var(--space-1);
}

/* Navigation lists shed default list treatment */
nav ul,
nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* ── Buttons ─────────────────────────────────────────────────────── */

button {
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  /* Inherit color so SVG icon buttons adopt surrounding text color */
  color: inherit;
}

button:focus-visible {
  outline: 2px solid var(--brand-on-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}


/* ── Form elements ───────────────────────────────────────────────── */

input,
textarea,
select {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--brand-text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-placeholder);
  opacity: 1; /* Firefox reduces placeholder opacity by default */
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 0;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}

label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-text);
}


/* ── Media ───────────────────────────────────────────────────────── */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}


/* ── Tables ──────────────────────────────────────────────────────── */

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-3) var(--space-4);
}

th {
  font-weight: 600;
}


/* ── Horizontal rule ─────────────────────────────────────────────── */

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}


/* ── Code ────────────────────────────────────────────────────────── */

code, kbd, samp, pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
}

pre {
  overflow-x: auto;
  margin: 0 0 var(--space-4);
}


/* ── Focus visible policy ────────────────────────────────────────── */

/*
 * Remove browser default outline on :focus (shown for mouse clicks).
 * :focus-visible handles keyboard/AT navigation — never suppress that.
 * Minimum 3:1 contrast ratio for focus ring vs background (WCAG 2.1 AA).
 */
:focus:not(:focus-visible) {
  outline: none;
}

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


/* ── Reduced motion ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/**
 * tokens.css — Design system custom properties
 *
 * Three tiers:
 *   1. Brand  — editable per site via the settings panel (inc/settings.php outputs overrides)
 *   2. Semantic  — universal meaning colors; never changed by site operators
 *   3. Neutral   — structural surface/border/text ramp; fixed in code
 *
 * inc/settings.php emits a second :root{} block on wp_head containing only the brand +
 * typography overrides for the current site. Same specificity, later in cascade → always wins.
 */

:root {

  /* ──────────────────────────────────────────────────────────────────
     TIER 1 — BRAND  (defaults shown; overridden per-site by inc/settings.php)
     ────────────────────────────────────────────────────────────────── */

  --brand-primary:      #004d77;   /* main brand color: header bg, primary CTA buttons */
  --brand-on-primary:   #f6b62c;   /* text / icon readable ON a primary-colored surface */
  --brand-accent:       #f6b62c;   /* highlights: sale badges, hover underlines, featured labels */
  --brand-accent-2:     var(--brand-accent); /* optional 3rd color — override per site        */
                                             /* climasolis: #f1992a (orange section titles)    */
                                             /* fallback: inherits accent automatically        */
  --brand-bg:           #ffffff;   /* page background */
  --brand-text:         #1a1a1a;   /* primary body text — near-black, softer than #000 */
  --brand-text-muted:   #6b7280;   /* secondary text, captions, metadata, breadcrumb labels */
  --brand-footer-bg:    #111111;   /* footer background */
   --header-bg:          var(--brand-bg);      /* header background */
   --header-text:        var(--brand-text);    /* header text/icons */
   --header-highlight:   var(--brand-accent);  /* header hover/focus/active */
   --mobile-menu-bg:     var(--neutral-900);   /* mobile overlay background */
   --mobile-menu-text:   var(--neutral-50);    /* mobile overlay text */
   --mobile-menu-highlight: var(--brand-accent); /* mobile overlay hover/focus */

  /* ── Typography (also overridden per-site) ───────────────────────── */

  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-ui:      'Nunito',     system-ui, -apple-system, sans-serif;
  --max-width:    1600px;


  /* ──────────────────────────────────────────────────────────────────
     TIER 2 — SEMANTIC  (fixed — never overridden by site operators)
     ────────────────────────────────────────────────────────────────── */

  --color-success:    #2d8a4e;   /* in stock, order confirmed, positive action */
  --color-on-success: #ffffff;
  --color-warning:    #d97706;   /* low stock, attention needed */
  --color-on-warning: #1a1a1a;   /* dark text: amber has poor contrast with white */
  --color-error:      #c0392b;   /* form errors, out of stock, destructive actions */
  --color-on-error:   #ffffff;
  --color-info:       #1a73e8;   /* informational notices, help text */
  --color-on-info:    #ffffff;


  /* ──────────────────────────────────────────────────────────────────
     TIER 3 — NEUTRAL SCALE  (fixed — structural foundation)
     ────────────────────────────────────────────────────────────────── */

  --neutral-50:  #fafafa;   /* alternating row tints, very subtle bg */
  --neutral-100: #f5f5f5;   /* card & input backgrounds, disabled fills */
  --neutral-200: #e5e5e5;   /* borders, dividers, input outlines */
  --neutral-300: #d4d4d4;   /* strong borders, separator lines */
  --neutral-400: #a3a3a3;   /* placeholder text, off-state icons */
  --neutral-500: #737373;   /* breadcrumb separators, secondary icons */
  --neutral-600: #525252;   /* muted labels */
  --neutral-700: #404040;   /* dark UI chrome */
  --neutral-800: #262626;   /* near-black surface text */
  --neutral-900: #171717;   /* maximum contrast */

  /* ── Component aliases (components reference these, not raw neutrals) */
  --surface:          var(--neutral-100);   /* card bg, input bg, aside panels */
  --border:           var(--neutral-200);   /* dividers, input outlines, card borders */
  --text-placeholder: var(--neutral-400);   /* placeholder text inside inputs */

  /* ── Surface context aliases — light-mode defaults
     Remapped to dark neutrals in [data-theme="dark"] below.
     Apply data-theme="dark" to any element for an automatic dark surface:
     overlays, footers, dark cards, etc. ─────────────────────────────── */
  --cs-bg:           var(--brand-bg);         /* main surface background     */
  --cs-text:         var(--brand-text);        /* primary text on surface     */
  --cs-text-muted:   var(--brand-text-muted);  /* secondary / caption text    */
  --cs-border:       var(--neutral-200);       /* dividers, input outlines    */
  --cs-border-faint: var(--neutral-100);       /* very subtle row separators  */
  --cs-hover:        var(--neutral-100);       /* hover background tint       */
  --cs-input-bg:     var(--neutral-100);       /* search / input field fill   */
  --cs-input-border: var(--neutral-300);       /* input outline               */
  --cs-placeholder:  var(--neutral-400);       /* placeholder text            */


  /* ──────────────────────────────────────────────────────────────────
     SPACING  (4 px base unit)
     ────────────────────────────────────────────────────────────────── */

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;


  /* ──────────────────────────────────────────────────────────────────
     SHADOW / ELEVATION
     ────────────────────────────────────────────────────────────────── */

  --shadow-1: 0 1px 4px rgba(0, 0, 0, 0.08);    /* cards resting */
  --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.14);   /* cards on hover, dropdowns */
  --shadow-3: 0 0 48px rgba(0, 0, 0, 0.20);     /* cart drawer, modals */


  /* ──────────────────────────────────────────────────────────────────
     Z-INDEX
     ────────────────────────────────────────────────────────────────── */

  --z-header:   100;    /* sticky header */
  --z-dropdown: 1000;   /* nav dropdowns, mega menu */
  --z-backdrop: 9998;   /* cart / modal backdrop */
  --z-drawer:   9999;   /* cart drawer, modals */
  /* WP admin bar: 99999 — set by WordPress, never conflict */


  /* ──────────────────────────────────────────────────────────────────
     MOTION
     ────────────────────────────────────────────────────────────────── */

  --transition-hover:  200ms ease-out;   /* button/card hover state changes */
  --transition-panel:  250ms ease-out;   /* drawer, dropdown open/close */


  /* ──────────────────────────────────────────────────────────────────
     SHAPE
     ────────────────────────────────────────────────────────────────── */

  --radius-sm:   4px;    /* buttons, inputs, tags */
  --radius-md:   6px;    /* cards, panels */
  --radius-lg:   12px;   /* drawers, modals (top corners) */
  --radius-full: 9999px; /* pills, avatar circles */

  /* ──────────────────────────────────────────────────────────────────
     LAYOUT GEOMETRY  (keep in sync with header.css)
     ────────────────────────────────────────────────────────────────── */

  --header-height:        68px;   /* sticky header — desktop (≥640px) */
  --header-height-mobile: 56px;   /* sticky header — mobile (<640px)  */
}

/* ── Dark theme context ────────────────────────────────────────────────────
   Apply data-theme="dark" to any element to flip its surface tokens.
   References only the neutral scale already defined above — no raw hex values.
   ──────────────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --cs-bg:           var(--neutral-900);   /* #171717 — near-black surface  */
  --cs-text:         var(--neutral-50);    /* #fafafa — warm white          */
  --cs-text-muted:   var(--neutral-400);   /* #a3a3a3 — muted white         */
  --cs-border:       var(--neutral-700);   /* #404040 — visible separator   */
  --cs-border-faint: var(--neutral-800);   /* #262626 — very subtle divider */
  --cs-hover:        var(--neutral-700);   /* #404040 — hover tint          */
  --cs-input-bg:     var(--neutral-800);   /* #262626 — input fill          */
  --cs-input-border: var(--neutral-600);   /* #525252 — input outline       */
  --cs-placeholder:  var(--neutral-500);   /* #737373 — placeholder         */
}


/* ============================================================
   layout.css — page skeleton + container
   Provides .cs-container, body flow, page-template helpers.
   ============================================================ */

/* ── Page flow ─────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

/* Header + footer are fixed height; main grows to fill remaining space */
.cs-main { flex: 1; }

.cs-btn, .ce-btn, .ch-btn {
    background-color: var(--brand-button-bg);
    color: var(--brand-button-text);
}
.cs-btn:hover, .ce-btn:hover, .ch-btn:hover {
    background-color: var(--brand-button-hover-bg);
    color: var(--brand-button-hover-text);
}

.cs-logo__img {
    max-height: 44px;
    width: auto;
}

/* ── Container ──────────────────────────────────────────────── */
/* Uses --max-width from tokens; --space-5 (24px) side padding */
.cs-container {
    width: min(var(--max-width), 100% - 2 * var(--space-5));
    margin-inline: auto;
}

/* Narrow variant for single-column content (post body, checkout confirmation) */
.cs-container--narrow {
    width: min(760px, 100% - 2 * var(--space-5));
    margin-inline: auto;
}

/* Checkout/cart: wider than narrow but not full max-width */
.cs-container--checkout {
    width: min(960px, 100% - 2 * var(--space-5));
    margin-inline: auto;
}

/* Full-bleed: spans edge-to-edge (hero, announcement bar) */
.cs-container--full { width: 100%; }

/* ── Content area ───────────────────────────────────────────── */
.cs-main {
    padding-top: 0;
    padding-bottom: var(--space-7);
}

.cs-page__title {
    margin-bottom: var(--space-5);
}

/* WooCommerce pages already have the <main> wrapper from inc/woocommerce.php */
.cs-main.woocommerce-page {
    padding-top: 0;
    padding-bottom: var(--space-6);
}

/* Homepage: hero is flush with the header — remove main padding entirely */
.cs-main.cs-home { padding-block: 0; }

/* ── Notices wrapper ────────────────────────────────────────── */
.cs-notices {
    width: min(var(--max-width), 100% - 2 * var(--space-5));
    margin-inline: auto;
    margin-bottom: var(--space-5);
}
.cs-notices:empty { display: none; }

/* ── Two-column layouts ─────────────────────────────────────── */

/* Shop: sidebar + grid — sidebar managed by child theme if used */
.cs-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

/* Checkout: form + order review */
.cs-layout-checkout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

/* Product: gallery + summary */
.cs-layout-product {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

/* ── Desktop grid overrides (>= 1025px) ─────────────────────── */
@media (min-width: 1025px) {
    .cs-layout-checkout {
        grid-template-columns: 1fr 400px;
        align-items: start;
    }
    .cs-layout-product {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .cs-layout-sidebar {
        grid-template-columns: 240px 1fr;
        align-items: start;
    }
}

/* ── Skip link (accessibility) ──────────────────────────────── */
.cs-skip-link {
    position: absolute;
    left: -9999px;
    top: var(--space-2);
    z-index: calc(var(--z-header) + 1);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.cs-skip-link:focus-visible {
    left: var(--space-4);
}

/* ── Breadcrumbs (WC + Yoast) ───────────────────────────────── */
.woocommerce-breadcrumb,
.breadcrumb {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: var(--brand-text-muted);
    margin-bottom: var(--space-5);
}
.woocommerce-breadcrumb a,
.breadcrumb a { color: var(--brand-text-muted); }
.woocommerce-breadcrumb a:hover,
.breadcrumb a:hover { color: var(--brand-accent); }

/* ── Screen-reader utility ──────────────────────────────────── */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}

/* ============================================================
   header.css — sticky site header chrome
   Single-row: logo left · nav center · [search][account][cart] right
   Mobile: combo-toggle left · logo center (absolute) · cart right
   Selector prefix: .cs-header, .cs-overlay
   ============================================================ */

/* ── Header shell ───────────────────────────────────────────── */
.cs-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--header-bg, var(--brand-bg, #fff));
    color: var(--header-text, var(--brand-text, #1a1a1a));
    border-bottom: 1px solid var(--cs-border);
    will-change: transform;
}

.cs-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-width: 0;
    height: 68px;
    width: min(var(--max-width), 100% - 2 * var(--space-6));
    margin-inline: auto;
}

/* ── Logo ───────────────────────────────────────────────────── */
.cs-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.cs-logo__img {
    height: 44px;
    width: auto;
    display: block;
}

.cs-logo__text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--header-text, var(--brand-text, #1a1a1a));
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* ── Actions group ──────────────────────────────────────────── */
.cs-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
    flex-shrink: 0;
    justify-content: flex-end;
}

/* ── Inline search bar (desktop) ────────────────────────────── */
.cs-header__search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 220ms ease, opacity 180ms ease;
    pointer-events: none;
}

.cs-header--search-open .cs-header__search {
    width: 280px;
    opacity: 1;
    pointer-events: auto;
}

.cs-header__search .mrk-srch-search-wrapp {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1;
}

.cs-header__search .mrk-srch-search-form {
    width: 100%;
}

.cs-header__search .mrk-srch-sf-wrapp {
    display: flex;
    align-items: center;
    border: 1px solid var(--cs-input-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--cs-input-bg);
    height: 38px;
}

.cs-header__search .mrk-srch-search-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 var(--space-2) 0 40px !important;
    font-family: var(--font-ui) !important;
    font-size: 0.875rem !important;
    color: var(--brand-text) !important;
    height: 38px !important;
    width: 100% !important;
    outline: none !important;
}

.cs-header__search .mrk-srch-search-input::placeholder {
    color: var(--cs-placeholder) !important;
}

/* Search close button */
.cs-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: var(--radius-full);
    color: var(--header-text, var(--brand-text));
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-hover);
}
.cs-search-close:hover { background: var(--cs-hover); }
.cs-search-close:focus-visible {
    outline: 2px solid var(--header-highlight, var(--brand-accent));
    outline-offset: 2px;
}

/* ── Desktop search-toggle ──────────────────────────────────── */
.cs-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: var(--radius-full);
    color: var(--header-text, var(--brand-text));
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-hover);
}
.cs-search-toggle:hover { background: var(--cs-hover); }
.cs-search-toggle:focus-visible {
    outline: 2px solid var(--header-highlight, var(--brand-accent));
    outline-offset: 2px;
}
.cs-header--search-open .cs-search-toggle { display: none; }

/* ── Account indicator ──────────────────────────────────────── */
.cs-account {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--header-text, var(--brand-text));
    transition: background var(--transition-hover);
}
.cs-account:hover { background: var(--cs-hover); }
.cs-account:focus-visible {
    outline: 2px solid var(--header-highlight, var(--brand-accent));
    outline-offset: 2px;
}
.cs-account--avatar .cs-account__photo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    display: block;
}
.cs-account--initials { background: var(--cs-border); }
.cs-account__initials {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--header-text, var(--brand-text));
    letter-spacing: 0.03em;
    user-select: none;
}

/* ── Mini-cart badge ────────────────────────────────────────── */
.cs-minicart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--header-text, var(--brand-text));
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: background var(--transition-hover);
}
.cs-minicart:hover { background: var(--cs-hover); }
.cs-minicart:focus-visible {
    outline: 2px solid var(--header-highlight, var(--brand-accent));
    outline-offset: 2px;
}
.cs-minicart__count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 17px;
    height: 17px;
    padding-inline: 3px;
    background: var(--header-highlight, var(--brand-accent));
    color: var(--header-bg, var(--brand-bg));
    font-family: var(--font-ui);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border-radius: var(--radius-full);
    transition: transform var(--transition-hover), opacity var(--transition-hover);
}
.cs-minicart__count[data-hidden] {
    transform: scale(0);
    opacity: 0;
}

.cs-minicart__count.is-animating {
    animation: cs-badge-bump 0.4s ease-out;
}

@keyframes cs-badge-bump {
    0%   { transform: scale(0.8); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ── Mobile/tablet combo toggle (hidden on desktop) ─────────── */
.cs-combo-toggle {
    display: none; /* shown via responsive.css at ≤1024px */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--header-text, var(--brand-text));
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-hover);
}
.cs-combo-toggle:hover { background: var(--cs-hover); }
.cs-combo-toggle:focus-visible {
    outline: 2px solid var(--header-highlight, var(--brand-accent));
    outline-offset: 2px;
}

/* ── Mobile overlay ─────────────────────────────────────────── */
.cs-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    background: var(--mobile-menu-bg, var(--cs-bg));
    color: var(--mobile-menu-text, var(--cs-text));
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
        transform var(--transition-panel),
        visibility 0s var(--transition-panel);
}
.cs-overlay.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--transition-panel), visibility 0s;
}

.cs-overlay__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    max-width: 480px;
    margin-inline: auto;
    padding: 0 var(--space-5) var(--space-7);
}

.cs-overlay__head {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-block: var(--space-6);
}

.cs-overlay__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.cs-overlay__logo-img {
    height: 40px;
    width: auto;
    display: block;
    filter: invert(1) brightness(2); /* fallback: inverts a dark logo to white */
}

/* When a dedicated dark/light logo is uploaded, skip the invert filter */
.cs-overlay__logo-img--custom {
    filter: none;
}

.cs-overlay__logo-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--mobile-menu-text, var(--cs-text));
    letter-spacing: -0.02em;
}

.cs-overlay__close {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--mobile-menu-text, var(--cs-text));
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition-hover);
}
.cs-overlay__close:hover { background: var(--cs-hover); }
.cs-overlay__close:focus-visible {
    outline: 2px solid var(--cs-text-muted);
    outline-offset: 2px;
}

/* Overlay search bar */
.cs-overlay__search {
    margin-bottom: var(--space-5);
}
.cs-overlay__search .mrk-srch-search-wrapp {
    min-width: 0 !important;
    width: 100% !important;
}
.cs-overlay__search .mrk-srch-sf-wrapp {
    display: flex;
    align-items: center;
    border: 1px solid var(--cs-input-border);
    border-radius: var(--radius-full);
    background: var(--cs-input-bg);
    height: 48px;
}
.cs-overlay__search .mrk-srch-search-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 var(--space-3) 0 40px !important;
    font-family: var(--font-ui) !important;
    font-size: 1rem !important;
    color: var(--mobile-menu-text, var(--cs-text)) !important;
    height: 48px !important;
    width: 100% !important;
    outline: none !important;
}
.cs-overlay__search .mrk-srch-search-input::placeholder {
    color: var(--cs-placeholder) !important;
}

/* Overlay nav links */
.cs-overlay__nav { flex: 1; }
.cs-overlay__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cs-overlay__nav-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--cs-border-faint);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mobile-menu-text, var(--cs-text));
    text-decoration: none;
    transition: color var(--transition-hover);
}
.cs-overlay__nav-list > li > a:hover { color: var(--mobile-menu-highlight, var(--cs-text-muted)); }

.cs-overlay__nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 var(--space-2) var(--space-4);
}
.cs-overlay__nav-list .sub-menu li a {
    display: block;
    padding-block: var(--space-3);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mobile-menu-text, var(--cs-text));
    text-decoration: none;
    border-bottom: 1px solid var(--cs-border-faint);
    transition: color var(--transition-hover);
}
.cs-overlay__nav-list .sub-menu li a:hover { color: var(--mobile-menu-highlight, var(--mobile-menu-text, var(--cs-text))); }

/* Overlay utility links */
.cs-overlay__utility {
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--cs-border);
}
.cs-overlay__utility ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.cs-overlay__utility a {
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--mobile-menu-text, var(--cs-text));
    text-decoration: none;
    transition: color var(--transition-hover);
}
.cs-overlay__utility a:hover { color: var(--mobile-menu-highlight, var(--mobile-menu-text, var(--cs-text))); }

/* Overlay backdrop */
.cs-overlay-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-drawer) - 1);
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity var(--transition-panel);
    pointer-events: none;
}
.cs-overlay-backdrop.is-visible {
    display: block;
    pointer-events: auto;
}
.cs-overlay-backdrop.is-active { opacity: 1; }

/* ============================================================
   nav.css — primary navigation
   Desktop: horizontal list in header. Mobile: drawer overlay.
   Selector prefix: .cs-nav
   ============================================================ */

/* ── Nav container ──────────────────────────────────────────── */
.cs-nav {
    display: flex;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
}

/* ── Top-level list ─────────────────────────────────────────── */
.cs-nav__list {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.cs-nav__list::-webkit-scrollbar {
    display: none;
}

/* ── Top-level items ────────────────────────────────────────── */
.cs-nav__list > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.cs-nav__list > li > a {
    display: flex;
    align-items: center;
    padding-inline: var(--space-3);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--header-text, var(--brand-text, #1a1a1a));
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-hover);
    border-bottom: 2px solid transparent;
}

.cs-nav__list > li > a:hover,
.cs-nav__list > li > a:focus-visible {
    color: var(--header-highlight, var(--brand-accent));
    outline: none;
}

.cs-nav__list > li.current-menu-item > a,
.cs-nav__list > li.current-menu-parent > a,
.cs-nav__list > li.current-menu-ancestor > a {
    border-bottom-color: var(--header-highlight, var(--brand-accent));
    color: var(--header-text, var(--brand-text));
}

/* ── Dropdown submenu ───────────────────────────────────────── */
.cs-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--header-bg, var(--brand-bg, #fff));
    box-shadow: var(--shadow-2);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: var(--z-dropdown);
    list-style: none;
    margin: 0;
    padding: var(--space-2) 0;
    /* Hidden by default; revealed on hover/focus */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity var(--transition-hover),
        transform var(--transition-hover),
        visibility 0s var(--transition-hover);
}

.cs-nav__list > li:hover > .sub-menu,
.cs-nav__list > li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity var(--transition-hover),
        transform var(--transition-hover),
        visibility 0s;
}

.cs-nav__list .sub-menu li a {
    display: block;
    padding: var(--space-2) var(--space-5);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--header-text, var(--brand-text, #1a1a1a));
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-hover);
}
.cs-nav__list .sub-menu li a:hover {
    background: var(--header-highlight, var(--neutral-100));
}

/* Dropdown arrow indicator */
.cs-nav__list > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: var(--space-2);
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.5;
}

/* ── Mobile nav (managed by cs-overlay — see header.css) ────── */
/* Desktop only: .cs-nav shown; .cs-combo-toggle hidden — set in responsive.css */


/* ============================================================
   footer.css — site footer chrome
   Selector prefix: .cs-footer
   ============================================================ */

.cs-footer {
    position: relative;
    overflow: clip;
    background: var(--brand-footer-bg);
    color: var(--neutral-400);
    margin-top: auto; /* sticks to bottom of flex body */
}

.cs-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-accent) 70%, white), transparent);
}

/* ── Top grid ────────────────────────────────────────────────────── */
.cs-footer__top {
    width: min(var(--max-width), 100% - 2 * var(--space-5));
    margin-inline: auto;
    padding-block: var(--space-7) var(--space-6);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-6) var(--space-7);
    align-items: start;
}

/* ── Columns ─────────────────────────────────────────────────────── */
.cs-footer__col {
    display: flex;
    flex-direction: column;
}

.cs-footer__col--brand {
    gap: var(--space-3);
}

/* Brand column */
.cs-footer__logo-link {
    display: inline-block;
    line-height: 0;
}

.cs-footer__logo {
    max-height: 44px;
    width: auto;
    /* Invert to white on dark footer bg if logo is dark */
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.cs-footer__logo--custom {
    filter: none;
    opacity: 1;
}

.cs-footer__site-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-200);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.cs-footer__tagline {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--neutral-500);
    line-height: 1.5;
    max-width: 34ch;
}

.cs-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.cs-footer__action {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 var(--space-4);
    border: 1px solid color-mix(in srgb, var(--neutral-400) 25%, transparent);
    border-radius: 999px;
    color: var(--neutral-200);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: border-color var(--transition-hover), background var(--transition-hover), color var(--transition-hover);
}

.cs-footer__action:hover {
    background: color-mix(in srgb, var(--brand-accent) 14%, transparent);
    border-color: color-mix(in srgb, var(--brand-accent) 45%, transparent);
    color: var(--brand-on-primary);
    text-decoration: none;
}

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

/* Column heading */
.cs-footer__heading {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neutral-400);
    margin: 0 0 var(--space-4);
}

/* ── Footer nav (column variant) ─────────────────────────────────── */
.cs-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
}

.cs-footer-nav--col {
    flex-direction: column;
    gap: var(--space-3);
}

.cs-footer-nav a {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--neutral-400);
    text-decoration: none;
    transition: color var(--transition-hover);
}
.cs-footer-nav a:hover { color: var(--neutral-200); }
.cs-footer-nav a:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Contact list ────────────────────────────────────────────────── */
.cs-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.cs-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--neutral-400);
    line-height: 1.5;
}

.cs-footer__contact-icon {
    flex-shrink: 0;
    color: var(--neutral-500);
    margin-top: 2px;
}

.cs-footer__contact-item a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color var(--transition-hover);
}
.cs-footer__contact-item a:hover { color: var(--neutral-200); }

/* ── Social icons ────────────────────────────────────────────────── */
.cs-footer__social-links {
    display: flex;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
    flex-wrap: wrap;
}

.cs-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--neutral-800, #1f1f1f);
    color: var(--neutral-400);
    text-decoration: none;
    transition: background var(--transition-hover), color var(--transition-hover), transform var(--transition-hover);
}

.cs-footer__social-link:hover {
    background: var(--brand-accent);
    color: var(--brand-on-primary);
    transform: translateY(-2px);
}

.cs-footer__social-link:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* ── WhatsApp VIP button ─────────────────────────────────────────── */
.cs-footer__vip-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--brand-accent);
    color: var(--brand-on-primary);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    text-decoration: none;
    transition: filter var(--transition-hover), transform var(--transition-hover);
    white-space: nowrap;
    width: fit-content;
}

.cs-footer__vip-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.cs-footer__vip-btn:focus-visible {
    outline: 2px solid var(--neutral-200);
    outline-offset: 3px;
}

.cs-footer__vip-icon {
    flex-shrink: 0;
}

/* ── Bottom bar ──────────────────────────────────────────────────── */
.cs-footer__bottom {
    width: min(var(--max-width), 100% - 2 * var(--space-5));
    margin-inline: auto;
    padding-block: var(--space-4);
    border-top: 1px solid color-mix(in srgb, var(--neutral-700, #333) 60%, transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.cs-footer__copy {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: var(--neutral-600, #444);
    margin: 0;
}

.cs-footer-nav--bottom {
    flex-direction: row;
    gap: var(--space-2) var(--space-4);
}

.cs-footer-nav--bottom a {
    font-size: 0.8125rem;
    color: var(--neutral-600, #444);
}
.cs-footer-nav--bottom a:hover { color: var(--neutral-300); }

/* ── Responsive: 2×2 tablet ──────────────────────────────────────── */
@media (max-width: 767px) {
    .cs-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
        padding-block: var(--space-6);
    }

    .cs-footer__col--brand {
        grid-column: 1 / -1;
    }

    .cs-footer__tagline {
        max-width: none;
    }

    .cs-footer__actions {
        width: 100%;
    }
}

/* ── Responsive: 1-col mobile ────────────────────────────────────── */
@media (max-width: 479px) {
    .cs-footer__top {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding-block: var(--space-5);
    }

    .cs-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .cs-footer__social-links {
        gap: var(--space-2);
    }

    .cs-footer__action {
        flex: 1 1 100%;
        justify-content: center;
    }
}


/* ============================================================
   cart-drawer.css — slide-in cart panel + backdrop
   JS manages: [hidden] attr, [inert] on main, open/close animation.
   Selector prefixes: .cs-cart-drawer, .cs-cart-backdrop
   ============================================================ */

/* ── Backdrop ───────────────────────────────────────────────── */
.cs-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-backdrop);
    background: rgba(0, 0, 0, 0.5);
    /* Hidden state: fade out */
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-panel),
        visibility 0s var(--transition-panel);
}
.cs-cart-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition:
        opacity var(--transition-panel),
        visibility 0s;
}

/* ── Drawer shell ───────────────────────────────────────────── */
.cs-cart-drawer {
    position: fixed;
    inset-inline-end: 0;    /* right edge */
    top: 0;
    z-index: var(--z-drawer);
    width: min(420px, 100%);
    height: 100dvh;
    background: var(--brand-bg);
    box-shadow: var(--shadow-3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Hidden state: slide right off-screen */
    transform: translateX(100%);
    visibility: hidden;
    transition:
        transform var(--transition-panel),
        visibility 0s var(--transition-panel);
}
/* [hidden] attr toggled by JS — keep [hidden] respected */
.cs-cart-drawer[hidden] {
    display: flex; /* override browser [hidden] so CSS animation still plays */
}
.cs-cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition:
        transform var(--transition-panel),
        visibility 0s;
}

/* ── Drawer header ──────────────────────────────────────────── */
.cs-cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cs-cart-drawer__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-text);
    margin: 0;
}

.cs-cart-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--brand-text-muted);
    cursor: pointer;
    transition: background var(--transition-hover), color var(--transition-hover);
}
.cs-cart-drawer__close:hover {
    background: var(--surface);
    color: var(--brand-text);
}
.cs-cart-drawer__close:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* ── Drawer body (scrollable item list) ─────────────────────── */
.cs-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) var(--space-5);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Empty state */
.cs-cart-empty {
    color: var(--brand-text-muted);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    text-align: center;
    padding-top: var(--space-7);
}

/* ── Cart line items ────────────────────────────────────────── */
.cs-cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: var(--space-3);
    align-items: start;
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--border);
}
.cs-cart-item:last-child { border-bottom: none; }

.cs-cart-item--flash {
    animation: cs-cart-item-flash 900ms ease-out;
}

@keyframes cs-cart-item-flash {
    0% {
        background-color: rgba(246, 182, 44, 0.32);
        box-shadow: inset 0 0 0 1px rgba(246, 182, 44, 0.45);
    }
    100% {
        background-color: transparent;
        box-shadow: inset 0 0 0 1px transparent;
    }
}

.cs-cart-item__image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.cs-cart-item__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.cs-cart-item__name {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

.cs-cart-item__meta {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: var(--brand-text-muted);
    margin: 0;
    line-height: 1.25;
}

.cs-cart-item__qty {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}
.cs-cart-item__qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--brand-text);
    transition: background var(--transition-hover);
}
.cs-cart-item__qty-btn:hover { background: var(--surface); }
.cs-cart-item__qty-val {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cs-cart-item__price {
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand-text);
    white-space: nowrap;
}

.cs-cart-item__remove {
    background: none;
    border: none;
    color: var(--brand-text-muted);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    transition: color var(--transition-hover);
}
.cs-cart-item__remove:hover { color: var(--color-error); }

/* ── Drawer footer ──────────────────────────────────────────── */
.cs-cart-drawer__footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.cs-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-ui);
}
.cs-cart-subtotal__label {
    font-size: 0.875rem;
    color: var(--brand-text-muted);
}
.cs-cart-subtotal__price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--brand-text);
}

.cs-cart-checkout-btn {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-5);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--transition-hover);
}
.cs-cart-checkout-btn:hover { opacity: 0.88; }
.cs-cart-checkout-btn:focus-visible {
    outline: 2px solid var(--brand-on-primary);
    outline-offset: 2px;
}

.cs-cart-footer-note {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: var(--brand-text-muted);
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

.cs-cart-view-link {
    display: block;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--brand-accent);
    text-decoration: none;
}
.cs-cart-view-link:hover { text-decoration: underline; }

/* ── Item: OOS (out-of-stock) state ─────────────────────────── */
.cs-cart-item--oos {
    opacity: 0.7;
}
.cs-cart-item--oos .cs-cart-item__qty-btn {
    pointer-events: none;
    opacity: 0.4;
}
.cs-cart-item__oos-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-error);
    background: color-mix(in srgb, var(--color-error) 12%, transparent);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
}

/* Image placeholder */
.cs-cart-item__image--placeholder {
    background: var(--surface);
    border-radius: var(--radius-sm);
}

/* ── Variation modal ────────────────────────────────────────── */
.cs-variation-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal-backdrop, 500);
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-panel),
        visibility 0s var(--transition-panel);
}
.cs-variation-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-panel), visibility 0s;
}

.cs-variation-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 600);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.cs-variation-modal.is-open {
    pointer-events: auto;
}
.cs-variation-modal[hidden] {
    display: flex;
    pointer-events: none;
    visibility: hidden;
}

.cs-variation-modal__panel {
    background: var(--brand-bg);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-3);
    padding: var(--space-6) var(--space-7);
    width: min(460px, 92vw);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.cs-variation-modal.is-open .cs-variation-modal__panel {
    transform: scale(1);
    opacity: 1;
}

.cs-variation-modal__panel h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--brand-text);
}
.cs-variation-modal__subtitle {
    margin: var(--space-2) 0 var(--space-4);
    font-family: var(--font-ui);
    color: var(--brand-text-muted);
    font-size: 0.875rem;
}
.cs-variation-modal__label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: var(--space-2);
}
/* ── Modal head row: title + X close ─────────────────────────── */
.cs-variation-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.cs-variation-modal__head > div { flex: 1; min-width: 0; }
.cs-variation-modal__head .cs-variation-modal__subtitle { margin-bottom: 0; }
.cs-variation-modal__close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--brand-text-muted);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
    margin-top: -0.25rem;
}
.cs-variation-modal__close:hover {
    color: var(--brand-text);
    background: var(--surface);
}
/* ── Variation option cards ──────────────────────────────────── */
.cs-variation-modal__list--cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 2px;
}
.cs-var-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--brand-bg);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-ui);
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
}
.cs-var-option:not([disabled]):hover {
    border-color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 5%, transparent);
}
.cs-var-option.is-selected {
    border-color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
    box-shadow: 0 0 0 1px var(--brand-primary);
}
.cs-var-option--oos,
.cs-var-option[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}
.cs-var-option__label {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--brand-text);
    font-weight: 500;
}
.cs-var-option__price {
    font-size: 0.875rem;
    color: var(--brand-text);
    white-space: nowrap;
}
.cs-var-option__oos {
    font-size: 0.75rem;
    color: var(--color-error, #b91c1c);
    white-space: nowrap;
}
.cs-variation-modal__actions {
    margin-top: var(--space-4);
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
}

/* ── Inventory modal list ───────────────────────────────────── */
.cs-inventory-modal__list {
    margin-top: var(--space-3);
}

/* Simple radio pick mode */
.cs-inventory-modal__list--pick {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.cs-inv-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    color: var(--brand-text);
    transition: border-color 0.15s, background 0.15s;
}
.cs-inv-option:has(input:checked) {
    border-color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
}
.cs-inv-option input[type="radio"] {
    accent-color: var(--brand-primary);
    flex-shrink: 0;
}
.cs-inv-option__label {
    flex: 1;
}
.cs-inv-option__stock {
    color: var(--brand-text-muted);
    font-size: 0.8125rem;
}

/* Cart item PDP link — image and name */
.cs-cart-item__img-link {
    display: block;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    line-height: 0;
    text-decoration: none;
}
.cs-cart-item__img-link:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}
.cs-cart-item__name--link {
    display: block;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.cs-cart-item__name--link:hover { color: var(--brand-primary); }

/* Cart inventory location tag */
.cs-cart-item__inv-location {
    color: var(--brand-text-muted);
    font-size: 0.75rem;
    font-style: italic;
}

/* Qty split mode */
.cs-inventory-modal__list--split {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.cs-inv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
}
.cs-inv-row__name {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--brand-text);
}
.cs-inv-row__avail {
    color: var(--brand-text-muted);
    font-size: 0.8125rem;
}
.cs-inv-row__qty {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-shrink: 0;
}
.cs-inv-row__qty-input {
    width: 3.5rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--brand-text);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    padding: var(--space-1) var(--space-2);
}

/* Total counter */
.cs-inventory-modal__total {
    margin-top: var(--space-3);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
}
.cs-inventory-modal__total--valid {
    color: #166534;
    background: #dcfce7;
}
.cs-inventory-modal__total--invalid {
    color: #991b1b;
    background: #fee2e2;
}

/* ── Checkout modal ─────────────────────────────────────────── */
.cs-checkout-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal-backdrop, 500);
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-panel),
        visibility 0s var(--transition-panel);
}
.cs-checkout-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-panel), visibility 0s;
}

.cs-checkout-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 600);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.cs-checkout-modal.is-open {
    pointer-events: auto;
}
.cs-checkout-modal[hidden] {
    display: flex; /* keep for transition */
    pointer-events: none;
    visibility: hidden;
}

.cs-checkout-modal__panel {
    background: var(--brand-bg);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-3);
    padding: var(--space-6) var(--space-7);
    width: min(420px, 90vw);
    text-align: center;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.cs-checkout-modal.is-open .cs-checkout-modal__panel {
    transform: scale(1);
    opacity: 1;
}

/* Spinner state */
.cs-checkout-modal__spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) 0;
}
.cs-checkout-modal__spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: cs-spin 0.7s linear infinite;
}
@keyframes cs-spin {
    to { transform: rotate(360deg); }
}
.cs-checkout-modal__spinner p {
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    color: var(--brand-text-muted);
    margin: 0;
}

/* OOS error state */
.cs-checkout-modal__oos {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.cs-checkout-modal__oos h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-text);
    margin: 0;
}
.cs-checkout-modal__oos p {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--brand-text-muted);
    margin: 0;
}
.cs-checkout-modal__oos-list {
    font-weight: 600;
    color: var(--color-error);
}
.cs-checkout-modal__oos-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
}
.cs-checkout-modal__oos-actions button {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity var(--transition-hover);
}
.cs-checkout-modal__oos-actions button:hover { opacity: 0.85; }
#modal-remove-oos {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
}
#modal-cancel {
    background: var(--surface);
    color: var(--brand-text);
}

/* Redirect state */
.cs-checkout-modal__redirect {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) 0;
}
.cs-checkout-modal__redirect p {
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    color: var(--brand-text-muted);
    margin: 0;
}

/* ── Toast notification ─────────────────────────────────────── */
.cs-toast {
    position: fixed;
    bottom: var(--space-5);
    inset-inline-start: var(--space-5);
    z-index: calc(var(--z-drawer, 9999) + 2);
    background: var(--brand-text);
    color: var(--brand-bg);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2);
    transform: translateY(calc(100% + var(--space-5)));
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    max-width: 300px;
}
.cs-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cs-toast--success {
    background: var(--color-success, #2d8a4e);
    color: var(--color-on-success, #ffffff);
}

.cs-toast--error {
    background: var(--color-error, #c0392b);
    color: var(--color-on-error, #ffffff);
}
.cs-toast--info {
    background: var(--brand-primary);
    color: var(--brand-on-primary, #ffffff);
}

@media (max-width: 639px) {
    .cs-toast {
        /* Keep toast above the mobile drawer footer/checkout button area */
        bottom: calc(env(safe-area-inset-bottom, 0px) + 120px);
        inset-inline-start: var(--space-4);
        inset-inline-end: var(--space-4);
        max-width: none;
    }
}


/* ============================================================
   search.css — full-modal autocomplete search
   #cs-search-modal created dynamically by search-client.js
   Class prefix: .cs-sm-*
   ============================================================ */

/* ── Modal overlay ─────────────────────────────────────────── */
#cs-search-modal {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-overlay, 400) + 60);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(3rem, 8vh, 5.5rem) var(--space-4) var(--space-4);
    pointer-events: none;           /* backdrop handles clicks */
}

#cs-search-modal[hidden] { display: none !important; }

/* ── Backdrop ──────────────────────────────────────────────── */
.cs-sm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 18, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.22s ease;
}

#cs-search-modal.is-open .cs-sm-backdrop { opacity: 1; }

/* ── Box ───────────────────────────────────────────────────── */
.cs-sm-box {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - clamp(3rem, 8vh, 5.5rem) - var(--space-4));
    background: var(--brand-bg);
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Entry animation */
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

#cs-search-modal.is-open .cs-sm-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Input row ─────────────────────────────────────────────── */
.cs-sm-head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cs-sm-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.cs-sm-icon {
    flex-shrink: 0;
    color: var(--brand-text-muted);
    pointer-events: none;
}

.cs-sm-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--brand-text);
    font-family: var(--font-ui, inherit);
    font-size: 1.1rem;
    line-height: 1.4;
    padding: var(--space-1) 0;
    min-width: 0;
}
.cs-sm-input::placeholder { color: var(--brand-text-muted); }
.cs-sm-input::-webkit-search-cancel-button { cursor: pointer; }
.cs-sm-input:focus{
    outline: none;
    border: none;
    box-shadow: none;
}

/* ── Spinner ───────────────────────────────────────────────── */
.cs-sm-spinner {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2.5px solid var(--border);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: cs-sm-spin 0.65s linear infinite;
}

@keyframes cs-sm-spin { to { transform: rotate(360deg); } }

/* ── Close button ──────────────────────────────────────────── */
.cs-sm-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-text-muted);
    cursor: pointer;
    transition: background 0.14s, color 0.14s;
}
.cs-sm-close:hover  { background: var(--surface); color: var(--brand-text); }
.cs-sm-close:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }

/* ── Results body ──────────────────────────────────────────── */
.cs-sm-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.cs-sm-body[hidden] { display: none; }

/* ── Term pills ────────────────────────────────────────────── */
.cs-sm-terms {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border-bottom: 1px solid var(--border);
}

.cs-sm-term {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 0.825rem;
    color: var(--brand-text);
    text-decoration: none;
    transition: border-color 0.14s, color 0.14s, background 0.14s;
}
.cs-sm-term:hover,
.cs-sm-term:focus {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    outline: none;
}

.cs-sm-term__badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-text-muted);
}
.cs-sm-term--brand .cs-sm-term__badge { color: var(--brand-primary); }
.cs-sm-term--category .cs-sm-term__badge { color: var(--brand-accent, var(--brand-primary)); }

/* ── Product list ──────────────────────────────────────────── */
.cs-sm-products { display: flex; flex-direction: column; }

.cs-sm-product {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px var(--space-5);
    text-decoration: none;
    color: var(--brand-text);
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}
.cs-sm-product:last-of-type { border-bottom: 0; }
.cs-sm-product:hover,
.cs-sm-product:focus { background: var(--surface); outline: none; }
.cs-sm-product--oos { opacity: 0.72; }

.cs-sm-product__img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--surface);
}

.cs-sm-product__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-sm-product__name {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-sm-product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cs-sm-badge {
    display: inline-block;
    padding: 1px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.7rem;
    color: var(--brand-text-muted);
    line-height: 1.7;
    white-space: nowrap;
}
.cs-sm-badge--brand { border-color: var(--brand-primary); color: var(--brand-primary); }

.cs-sm-product__right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cs-sm-product__price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand-text);
    white-space: nowrap;
}
/* WC price HTML contains ins/del */
.cs-sm-product__price del {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--brand-text-muted);
    opacity: 0.8;
}

/* ── PIX payment price (pix_main_price / annotation modes) ── */
/* Price container may now hold multiple stacked lines */
.cs-sm-price-ref,
.cs-sm-price-pix,
.cs-sm-price-note {
    display: block;
    white-space: nowrap;
}

/* Reference price (struck-through, shown above pix price) */
.cs-sm-price-ref {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--brand-text-muted);
    text-decoration: line-through;
    opacity: 0.8;
    /* reference_html comes from wc_price() which wraps in <span class="woocommerce-Price-amount"> */
}

/* Pix main price */
.cs-sm-price-pix {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand-accent, var(--brand-primary));
}

/* Annotation / installment note */
.cs-sm-price-note {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--brand-text-muted);
    white-space: normal;
    text-align: right;
    max-width: 120px;
}

.cs-sm-product__oos-label {
    font-size: 0.7rem;
    color: var(--color-error, #b91c1c);
}

/* ── Empty state ───────────────────────────────────────────── */
.cs-sm-empty {
    padding: var(--space-8) var(--space-5);
    text-align: center;
    font-size: 0.9375rem;
    color: var(--brand-text-muted);
    margin: 0;
}
.cs-sm-empty strong { color: var(--brand-text); }

/* ── Footer (see all) ──────────────────────────────────────── */
.cs-sm-footer {
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.cs-sm-footer__link {
    display: block;
    padding: 12px var(--space-5);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    text-align: center;
    transition: background 0.1s;
}
.cs-sm-footer__link:hover,
.cs-sm-footer__link:focus { background: var(--surface); text-decoration: underline; outline: none; }

/* ── body scroll lock ──────────────────────────────────────── */
body.cs-search-modal-open { overflow: hidden; }

/* ── Overlay search-trigger (inside mobile nav overlay) ───── */
.cs-search-overlay-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: 10px var(--space-4);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--brand-text-muted);
    font-family: var(--font-ui, inherit);
    font-size: 0.9375rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.14s, color 0.14s;
}
.cs-search-overlay-trigger:hover,
.cs-search-overlay-trigger:focus { border-color: var(--brand-primary); color: var(--brand-text); outline: none; }
.cs-search-overlay-trigger svg { flex-shrink: 0; }

/* ── Mobile: slide-up sheet ────────────────────────────────── */
@media (max-width: 639px) {
    #cs-search-modal {
        align-items: flex-end;
        padding: 0;
    }

    .cs-sm-box {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: 92vh;
        transform: translateY(24px) scale(1); /* slide up instead of scale */
    }

    #cs-search-modal.is-open .cs-sm-box {
        transform: translateY(0) scale(1);
    }

    .cs-sm-product__img { width: 52px; height: 52px; }
    .cs-sm-product__name { font-size: 0.875rem; }
    .cs-sm-product__price { font-size: 0.875rem; }
}

/* ============================================================
   announcement-bar.css — dismissible info bar above header
   Server-rendered if mark_announcement_items has active items.
   Selector prefix: .cs-announcement
   ============================================================ */

.cs-announcement {
    position: relative;
    background: var(--brand-accent);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding-inline: calc(var(--space-7) + var(--space-3)); /* space for close btn */
    overflow: hidden;
}

/* ── Scrolling text track ───────────────────────────────────── */
.cs-announcement__track {
    display: flex;
    align-items: center;
    gap: var(--space-7);
    overflow: hidden;
}

.cs-announcement__item {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    display: none;
}
.cs-announcement__item.is-active { display: block; }

/* ── Close button ───────────────────────────────────────────── */
.cs-announcement__close {
    position: absolute;
    inset-inline-end: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--brand-primary);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-hover), background var(--transition-hover);
}
.cs-announcement__close:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
}
.cs-announcement__close:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* ── Dismissed state (JS adds .is-dismissed) ────────────────── */
.cs-announcement.is-dismissed {
    display: none;
}


/* ============================================================
   woocommerce-shop.css — archive-product + shop page
   Selector prefixes: .woocommerce-page, .products (WC default)
   ============================================================ */

/* ── Page title ─────────────────────────────────────────────── */
.woocommerce-products-header__title,
.page-title.woocommerce-products-header__title,
h1.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: var(--space-6);
}

/* ── Shop container ─────────────────────────────────────────── */
.cs-main.woocommerce-page .cs-notices + .woocommerce {
    /* WC injects .woocommerce wrapper — reset its margin */
    margin: 0;
}

/* ── Results count + ordering ───────────────────────────────── */
.woocommerce-result-count,
.woocommerce-ordering {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--brand-text-muted);
    margin-bottom: var(--space-4);
}
.woocommerce-ordering select {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--brand-text);
    cursor: pointer;
}

/* ── Product grid ───────────────────────────────────────────── */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Product card ───────────────────────────────────────────── */
ul.products li.product {
    display: flex;
    flex-direction: column;
    background: var(--brand-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-hover), transform var(--transition-hover);
}
ul.products li.product:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}

ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: var(--surface);
}

/* Card body */
ul.products li.product .cs-card-body,
ul.products li.product .woocommerce-loop-product__title {
    padding-inline: var(--space-4);
}

ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-top: var(--space-3);
    margin-bottom: var(--space-1);
    /* Two lines max with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

ul.products li.product .price {
    display: block;
    padding-inline: var(--space-4);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: var(--space-3);
}
ul.products li.product .price del {
    color: var(--brand-text-muted);
    font-weight: 400;
    font-size: 0.8125rem;
    margin-inline-end: var(--space-2);
}

/* ATC button */
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
    display: block;
    margin: 0 var(--space-4) var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--transition-hover);
    margin-top: auto;
}
ul.products li.product .button:hover { opacity: 0.88; }
ul.products li.product .button.loading { opacity: 0.6; cursor: wait; }
ul.products li.product .button.added { background: var(--color-success); }

/* ── Sale badge ─────────────────────────────────────────────── */
.onsale {
    display: inline-block;
    background: var(--color-error);
    color: var(--color-on-error);
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: absolute;
    top: var(--space-2);
    inset-inline-start: var(--space-2);
    z-index: 1;
}

/* ── Pagination ─────────────────────────────────────────────── */
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--space-7);
}
.woocommerce-pagination ul {
    display: flex;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-text);
    text-decoration: none;
    transition: background var(--transition-hover), color var(--transition-hover);
}
.woocommerce-pagination ul li a:hover {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-color: var(--brand-primary);
}
.woocommerce-pagination ul li span.current {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-color: var(--brand-primary);
}

/* ══════════════════════════════════════════════════════════════
   API-only PLP — grid, cards, pagination
   ══════════════════════════════════════════════════════════════ */

/* Grid container */
#cs-product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
}
#cs-product-list:empty {
    min-height: 55vh;
}
@media (min-width: 640px) {
    #cs-product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    #cs-product-list {
        grid-template-columns: repeat(4, 1fr);
    }
}
#cs-product-list.is-loading {
    pointer-events: none;
}

.cs-product-card--skeleton {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}

.cs-product-card--skeleton:hover {
    box-shadow: none;
    transform: none;
}

.cs-skeleton {
    background: linear-gradient(
        100deg,
        rgba(0, 0, 0, 0.05) 20%,
        rgba(0, 0, 0, 0.09) 40%,
        rgba(0, 0, 0, 0.05) 60%
    );
    background-size: 200% 100%;
    animation: cs-plp-shimmer 1.15s linear infinite;
    border-radius: var(--radius-sm);
}

.cs-skeleton--img {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.cs-skeleton--title {
    height: 14px;
    width: 92%;
    margin-bottom: var(--space-2);
}

.cs-skeleton--title-short {
    width: 66%;
}

.cs-skeleton--price {
    margin-top: var(--space-3);
    width: 42%;
    height: 16px;
}

.cs-product-card__cta--skeleton {
    min-height: 38px;
    border: none;
    cursor: default;
}

@keyframes cs-plp-shimmer {
    0% {
        background-position: 180% 0;
    }
    100% {
        background-position: -20% 0;
    }
}

/* Card shell */
.cs-product-card {
    display: flex;
    flex-direction: column;
    background: var(--brand-bg, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-hover), transform var(--transition-hover);
}
.cs-product-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}

/* Image area */
.cs-product-card__img-link {
    display: block;
    text-decoration: none;
}
.cs-product-card__img-wrap {
    position: relative;
    background: var(--surface);
    aspect-ratio: 1;
    overflow: hidden;
}
.cs-product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-hover);
}
.cs-product-card:hover .cs-product-card__img-wrap img {
    transform: scale(1.04);
}
.cs-product-card__img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--surface-soft, #f3f4f6);
}

/* Badges */
.cs-product-card__badge {
    position: absolute;
    top: var(--space-2);
    inset-inline-start: var(--space-2);
    display: inline-flex;
    align-items: center;
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 1;
}
.cs-product-card__badge--oos {
    background: var(--color-error, #dc2626);
    color: #fff;
}
.cs-product-card__badge--sale {
    background: var(--offer-badge-bg, var(--brand-accent));
    color: var(--brand-text);
}

/* Text body */
.cs-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-3) var(--space-4) var(--space-4);
}
.cs-product-card__title {
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0 0 var(--space-2);
    display: block;
    overflow: visible;
}
.cs-product-card__title a {
    color: inherit;
    text-decoration: none;
}
.cs-product-card__title a:hover { color: var(--brand-primary); }
.cs-product-card__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0 0 var(--space-3);
}
.cs-product-card__price-main {
    font-weight: 800;
    color: var(--brand-primary);
}
.cs-product-card__price-reference {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--brand-text-muted);
    text-decoration: line-through;
}
.cs-product-card__price-note {
    font-size: 0.78rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--brand-text-muted);
}
.cs-product-card.is-oos .cs-product-card__price { color: var(--brand-text-muted); }

/* CTA button */
.cs-product-card__cta {
    display: block;
    margin-top: auto;
    border: none;
    cursor: pointer;
    padding: var(--space-2) var(--space-4);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition-hover);
    margin-top: auto;
}
.cs-product-card__cta:hover { opacity: 0.88; }
.cs-product-card.is-oos .cs-product-card__cta {
    background: var(--brand-text-muted);
    pointer-events: none;
    opacity: 0.7;
    cursor: default;
}

/* ── Variation selection modal ──────────────────────────────── */
.cs-var-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer, 9999);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}
.cs-var-modal[hidden] { display: none; }
.cs-var-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.cs-var-modal__box {
    position: relative;
    background: var(--brand-bg, #fff);
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-3);
    width: min(560px, 100%);
    max-height: 90dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
}
@media (min-width: 640px) {
    .cs-var-modal__box {
        flex-direction: row;
        align-items: flex-start;
    }
}
.cs-var-modal__close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.375rem;
    line-height: 1;
    color: var(--brand-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm, 4px);
    padding: 0;
}
.cs-var-modal__close:hover { background: var(--surface); color: var(--brand-text); }
.cs-var-modal__img-wrap {
    flex-shrink: 0;
    width: 120px;
    aspect-ratio: 1;
    background: var(--surface);
    border-radius: var(--radius-sm, 4px);
    overflow: hidden;
    align-self: flex-start;
}
.cs-var-modal__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cs-var-modal__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}
.cs-var-modal__title {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-text);
    margin: 0;
    padding-right: var(--space-6);
}
.cs-var-modal__price {
    font-family: var(--font-ui);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0;
}
.cs-var-modal__attrs {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.cs-var-modal__attr-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.cs-var-modal__attr-label {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cs-var-modal__attr-select {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 4px);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    background: var(--brand-bg, #fff);
    color: var(--brand-text);
    cursor: pointer;
    width: 100%;
}
.cs-var-modal__attr-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0,77,119,.12);
}
.cs-var-modal__stock {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-error, #c0392b);
    margin: 0;
    min-height: 1.2em;
}
.cs-var-modal__add {
    width: 100%;
    margin: 0;
    padding: var(--space-3) var(--space-4);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    transition: opacity var(--transition-hover);
}
.cs-var-modal__add:hover:not(:disabled) { opacity: 0.88; }
.cs-var-modal__add:disabled {
    background: var(--brand-text-muted);
    cursor: not-allowed;
    opacity: 0.65;
}
body.cs-var-modal-open { overflow: hidden;
}

/* Pagination */
.cs-pagination { margin-top: var(--space-7); }
.cs-pagination__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
}
.cs-pagination__prev,
.cs-pagination__next,
.cs-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-text);
    text-decoration: none;
    transition: background var(--transition-hover), color var(--transition-hover), border-color var(--transition-hover);
}
.cs-pagination__prev:hover,
.cs-pagination__next:hover,
.cs-pagination__page:hover {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-color: var(--brand-primary);
}
.cs-pagination__page.is-current {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border-color: var(--brand-primary);
}

/* Empty / error states */
.cs-plp-empty,
.cs-plp-error {
    grid-column: 1 / -1;
    padding: var(--space-7) 0;
    text-align: center;
    color: var(--brand-text-muted);
    font-family: var(--font-ui);
}


/* ============================================================
   woocommerce-product.css — single product page
   Selector prefixes: .single-product, .product
   ============================================================ */

/* Page atmosphere */
.single-product .cs-main {
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand-primary) 10%, transparent), transparent 45%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 70%, white), var(--surface));
}

.single-product .cs-container {
    max-width: 1200px;
}

.single-product .cs-product {
    display: grid;
    gap: var(--space-8);
}

.single-product .cs-layout-product {
    gap: var(--space-6);
    align-items: start;
}

/* Gallery */
.single-product .cs-product__gallery {
    border-radius: 26px;
    background: var(--surface-soft);
    padding: clamp(var(--space-3), 2vw, var(--space-5));
    box-shadow: 0 28px 46px rgba(12, 18, 28, 0.08);
}

.woocommerce-product-gallery {
    position: relative;
    opacity: 1 !important;
}

.woocommerce-product-gallery figure.woocommerce-product-gallery__wrapper {
    margin: 0;
}

.woocommerce-product-gallery__image {
    border-radius: 20px;
    overflow: hidden;
}

.woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: color-mix(in srgb, var(--surface-soft) 80%, white);
}

.flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
    list-style: none;
    padding: 0;
}

.flex-control-thumbs li {
    min-width: 0;
}

.flex-control-thumbs li img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition-hover), transform var(--transition-hover);
}

.flex-control-thumbs li img:hover {
    transform: translateY(-2px);
}

.flex-control-thumbs li img.flex-active {
    border-color: var(--brand-primary);
}

.single-product .woocommerce-product-gallery.cs-pdp-gallery {
    display: grid;
    gap: var(--space-3);
}

.cs-pdp-gallery__stage {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand-accent) 12%, transparent), transparent 42%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 82%, white), var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, var(--border));
}

.cs-pdp-gallery__slide {
    display: none;
    text-decoration: none;
}

.cs-pdp-gallery__slide.is-active {
    display: block;
}

.cs-pdp-gallery__main {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.cs-pdp-gallery__count {
    position: absolute;
    inset: var(--space-3) var(--space-3) auto auto;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(18, 24, 33, 0.78);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
}

.cs-pdp-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-primary);
    box-shadow: 0 10px 22px rgba(12, 18, 28, 0.16);
    font-size: 1.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-hover), background var(--transition-hover), color var(--transition-hover);
}

.cs-pdp-gallery__nav:hover {
    transform: translateY(-50%) scale(1.04);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
}

.cs-pdp-gallery__nav--prev {
    left: var(--space-3);
}

.cs-pdp-gallery__nav--next {
    right: var(--space-3);
}

.cs-pdp-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: var(--space-2);
}

.cs-pdp-gallery__thumb {
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px transparent;
    transition: transform var(--transition-hover), box-shadow var(--transition-hover), opacity var(--transition-hover);
}

.cs-pdp-gallery__thumb:hover {
    transform: translateY(-2px);
}

.cs-pdp-gallery__thumb.is-active {
    box-shadow: inset 0 0 0 2px var(--brand-primary), 0 10px 20px rgba(12, 18, 28, 0.12);
}

.cs-pdp-gallery__thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.cs-pdp-gallery__thumb:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 3px;
}

/* Summary panel */
.single-product .cs-product__summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, var(--border));
    box-shadow: 0 24px 42px rgba(9, 19, 37, 0.08);
    padding: clamp(var(--space-4), 2.4vw, var(--space-7));
}

.single-product .summary .product_title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.8vw, 2.7rem);
    line-height: 1.12;
    margin: 0;
    color: var(--brand-text);
    letter-spacing: -0.01em;
}

.single-product .product .price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-ui);
    font-size: clamp(1.6rem, 3.3vw, 2.15rem);
    font-weight: 800;
    color: color-mix(in srgb, var(--brand-primary) 82%, #001727);
    margin: 0;
}

.single-product .product .price.cs-pdp-price {
    font-size: 1rem;
}

.cs-pdp-price-main {
    font-size: clamp(1.6rem, 3.3vw, 2.15rem);
    font-weight: 800;
    color: color-mix(in srgb, var(--brand-primary) 82%, #001727);
}

.cs-pdp-price-reference {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--brand-text-muted);
    text-decoration: line-through;
}

.cs-pdp-price-note {
    display: block;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--brand-text-muted);
    font-weight: 500;
}

.single-product .product .price del {
    font-size: 1rem;
    opacity: 0.58;
    margin-right: var(--space-2);
}

.single-product .woocommerce-product-details__short-description {
    color: var(--brand-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Variation forms */
.single-product .variations {
    border: none;
    margin: 0;
    padding: 0;
}

.single-product .variations tr {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.single-product .variations td,
.single-product .variations th {
    padding: 0;
}

.single-product .variations label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--brand-text-muted);
}

.single-product .variations select {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, var(--border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface-soft) 82%, white);
    padding: var(--space-3) var(--space-4);
    font-size: 0.95rem;
}

.single-product .reset_variations {
    font-size: 0.82rem;
    color: var(--brand-text-muted);
}

.single-product .cart.cs-pdp-form--swatches .variations,
.single-product .cart.cs-pdp-form--swatches .reset_variations {
    display: none !important;
}

.cs-pdp-swatches {
    display: grid;
    gap: var(--space-3);
    width: 100%;
}

.cs-pdp-swatch-group {
    display: grid;
    gap: var(--space-2);
}

.cs-pdp-swatch-group__label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-text-muted);
}

.cs-pdp-swatch-group__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cs-pdp-swatch {
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-soft) 86%, white);
    color: var(--brand-text);
    border-radius: 999px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color var(--transition-hover), background-color var(--transition-hover), color var(--transition-hover);
}

.cs-pdp-swatch:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border));
}

.cs-pdp-swatch.is-selected {
    border-color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 12%, white);
    color: color-mix(in srgb, var(--brand-primary) 84%, #000);
}

.cs-pdp-swatch.is-disabled,
.cs-pdp-swatch:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cs-pdp-form-msg {
    width: 100%;
    margin: var(--space-2) 0 0;
    font-size: 0.87rem;
    font-weight: 600;
}

.cs-pdp-form-msg.is-error {
    color: #8f1f2f;
}

.cs-pdp-form-msg.is-success {
    color: #156a42;
}

.single-product .cart {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-2);
}

.single-product .quantity.cs-qty {
    display: inline-grid;
    grid-template-columns: 44px 68px 44px;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}

.single-product .quantity.cs-qty .cs-qty__btn {
    border: 0;
    background: color-mix(in srgb, var(--surface-soft) 88%, white);
    color: var(--brand-text);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background-color var(--transition-hover);
}

.single-product .quantity.cs-qty .cs-qty__btn:hover {
    background: color-mix(in srgb, var(--brand-primary) 12%, white);
}

.single-product .quantity input[type=number] {
    width: 68px;
    border: 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: 0;
    padding: 10px 6px;
    text-align: center;
    font-weight: 700;
    background: transparent;
    -moz-appearance: textfield;
}

.single-product .quantity input::-webkit-inner-spin-button,
.single-product .quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.single-product .single_add_to_cart_button {
    flex: 1;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--brand-primary) 20%, transparent);
    transition: transform var(--transition-hover), background-color var(--transition-hover), box-shadow var(--transition-hover);
}

.single-product .single_add_to_cart_button:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--brand-primary) 88%, black);
}

.single-product .single_add_to_cart_button:active {
    transform: translateY(0);
}

.single-product .stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    width: fit-content;
}

.single-product .stock.in-stock {
    color: #13633c;
    background: #daf6e9;
}

.single-product .stock.out-of-stock {
    color: #872129;
    background: #fbe5e8;
}

/* API hydrated trust cards */
.cs-pdp-usp {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
}

.cs-pdp-usp__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    background: color-mix(in srgb, var(--surface-soft) 82%, white);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 10%, var(--border));
    border-radius: 12px;
    padding: 10px 11px;
}

.cs-pdp-usp__item p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--brand-text);
}

.cs-pdp-usp__icon {
    width: 18px;
    height: 18px;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.cs-pdp-usp__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* API hydrated specs */
.cs-pdp-specs {
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 86%, white), var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, var(--border));
    border-radius: 20px;
    padding: clamp(var(--space-4), 2.4vw, var(--space-6));
}

.cs-pdp-specs__title {
    margin: 0 0 var(--space-4);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
    color: var(--brand-text);
}

.cs-pdp-specs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--space-3);
}

.cs-pdp-spec {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}

.cs-pdp-spec h3 {
    margin: 0 0 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-text-muted);
}

.cs-pdp-spec p {
    margin: 0;
    color: var(--brand-text);
    font-size: 0.92rem;
}

/* Secondary product sections */
.cs-pdp-secondary {
    display: grid;
    gap: var(--space-7);
}

.woocommerce-tabs {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(var(--space-4), 2vw, var(--space-6));
}

.wc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
    border: 0;
    margin: 0 0 var(--space-4);
    padding: 0;
}

.wc-tabs li {
    margin: 0;
}

.wc-tabs li a {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--brand-text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    transition: border-color var(--transition-hover), color var(--transition-hover), background var(--transition-hover);
}

.wc-tabs li.active a,
.wc-tabs li a:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 28%, var(--border));
    color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

.woocommerce-Tabs-panel {
    color: var(--brand-text);
    line-height: 1.75;
}

/* Prevent mobile overflow from editor-inserted fixed-width media */
.woocommerce-Tabs-panel img,
.woocommerce-Tabs-panel video,
.woocommerce-Tabs-panel iframe,
.woocommerce-Tabs-panel embed,
.woocommerce-Tabs-panel object {
    max-width: 100%;
    height: auto;
}

.woocommerce-Tabs-panel .wp-video,
.woocommerce-Tabs-panel .wp-video-shortcode,
.woocommerce-Tabs-panel .wp-video-shortcode video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.woocommerce-Tabs-panel table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

.woocommerce-Tabs-panel--description.cs-desc-collapsible .cs-desc-content {
    position: relative;
    overflow: hidden;
    max-height: 240px;
    transition: max-height 0.38s ease;
}

.woocommerce-Tabs-panel--description.cs-desc-collapsible .cs-desc-content::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 76px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface) 72%);
    transition: opacity 0.28s ease;
}

.woocommerce-Tabs-panel--description.cs-desc-collapsible.is-expanded .cs-desc-content {
    max-height: 9999px;
}

.woocommerce-Tabs-panel--description.cs-desc-collapsible.is-expanded .cs-desc-content::after {
    opacity: 0;
}

.cs-desc-toggle {
    margin-top: var(--space-3);
    border: 1px solid var(--border);
    background: var(--brand-bg);
    color: var(--brand-primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color var(--transition-hover), color var(--transition-hover), background var(--transition-hover);
}

.cs-desc-toggle:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--border));
    background: color-mix(in srgb, var(--brand-primary) 6%, transparent);
}

.related.products,
.upsells.products {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(var(--space-4), 2vw, var(--space-6));
}

.related.products > h2,
.upsells.products > h2 {
    margin: 0 0 var(--space-4);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.6vw, 1.8rem);
    letter-spacing: -0.01em;
}

.related .products,
.upsells .products {
    margin: 0;
}

/* Mobile */
@media (max-width: 1024px) {
    .single-product .cs-layout-product {
        gap: var(--space-4);
    }

    .single-product .cs-product__summary {
        border-radius: 18px;
    }

    .cs-pdp-usp {
        grid-template-columns: 1fr;
    }

    /* Prevent viewport overflow on tablets — same containment as ≤768px */
    .single-product .cs-main,
    .single-product .cs-container,
    .single-product .cs-product,
    .single-product .cs-layout-product,
    .single-product .cs-product__gallery,
    .single-product .cs-product__summary {
        min-width: 0;
        max-width: 100%;
    }

    .single-product .cs-main {
        overflow-x: clip;
    }

    .single-product .woocommerce-product-details__short-description,
    .single-product .cs-pdp-summary {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 768px) {
    .single-product .cs-container {
        width: min(var(--max-width), 100% - 2 * var(--space-3));
    }

    .single-product .cs-product__gallery,
    .single-product .cs-product__summary,
    .woocommerce-tabs,
    .related.products,
    .upsells.products,
    .cs-pdp-specs {
        border-radius: 16px;
        padding: var(--space-3);
    }

    .single-product .summary .product_title {
        font-size: clamp(1.25rem, 7vw, 1.7rem);
        line-height: 1.18;
    }

    .single-product .product .price,
    .cs-pdp-price-main {
        font-size: clamp(1.3rem, 6vw, 1.7rem);
    }

    .cs-pdp-gallery__nav {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .cs-pdp-gallery__count {
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    .single-product .cart {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .single-product .quantity,
    .single-product .quantity.cs-qty {
        width: 100%;
    }

    .single-product .quantity.cs-qty {
        grid-template-columns: 44px 1fr 44px;
    }

    .single-product .quantity input[type=number],
    .single-product .quantity .qty {
        width: 100%;
        max-width: 100%;
    }

    .single-product .single_add_to_cart_button {
        width: 100%;
        min-height: 50px;
    }

    .wc-tabs li a {
        font-size: 0.82rem;
        padding: 7px 12px;
    }

    .woocommerce-breadcrumb,
    .woocommerce-Tabs-panel,
    .single-product .woocommerce-product-details__short-description,
    .cs-pdp-summary {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .woocommerce-Tabs-panel .wp-video,
    .woocommerce-Tabs-panel .wp-video-shortcode,
    .woocommerce-Tabs-panel .wp-video-shortcode video {
        display: block !important;
    }

    /* Keep all PDP wrappers shrinkable so dynamic content cannot widen the viewport */
    .single-product .cs-main,
    .single-product .cs-container,
    .single-product .cs-product,
    .single-product .cs-layout-product,
    .single-product .cs-product__gallery,
    .single-product .cs-product__summary,
    .single-product .cs-pdp-secondary,
    .single-product .woocommerce-tabs,
    .single-product .woocommerce-Tabs-panel {
        min-width: 0;
        max-width: 100%;
    }

    .single-product .cs-main,
    .single-product .cs-container,
    .single-product .cs-product,
    .single-product .cs-pdp-secondary {
        overflow-x: clip;
    }

    .single-product .woocommerce-Tabs-panel table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .single-product .woocommerce-Tabs-panel pre,
    .single-product .woocommerce-Tabs-panel code {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .single-product .cs-pdp-secondary {
        width: 100%;
        overflow-x: hidden;
    }
}


/* ============================================================
   woocommerce-cart.css — /carrinho/ page
   This page is never CDN-cached (woocommerce_items_in_cart cookie).
   ============================================================ */

/* ── Cart table ─────────────────────────────────────────────── */
.woocommerce-cart-form table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: 0.9375rem;
}

.woocommerce-cart-form table.shop_table thead th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-weight: 700;
    color: var(--brand-text);
    border-bottom: 2px solid var(--border);
}

.woocommerce-cart-form table.shop_table td {
    padding: var(--space-4);
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: var(--brand-text);
}

.woocommerce-cart-form .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.woocommerce-cart-form .product-name a {
    font-weight: 600;
    color: var(--brand-text);
    text-decoration: none;
}
.woocommerce-cart-form .product-name a:hover { color: var(--brand-accent); }

.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal {
    font-weight: 700;
    color: var(--brand-primary);
}

/* Quantity in table */
.woocommerce-cart-form .quantity input[type=number] {
    width: 68px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    text-align: center;
    -moz-appearance: textfield;
}
.woocommerce-cart-form .quantity input::-webkit-inner-spin-button,
.woocommerce-cart-form .quantity input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Remove button */
.woocommerce-cart-form a.remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    color: var(--brand-text-muted);
    font-size: 1.25rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-hover), background var(--transition-hover);
}
.woocommerce-cart-form a.remove:hover {
    color: var(--color-error);
    background: var(--surface);
}

/* Update cart button */
.woocommerce-cart-form button[name=update_cart] {
    padding: var(--space-2) var(--space-5);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--brand-text);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-hover);
}
.woocommerce-cart-form button[name=update_cart]:hover { background: var(--neutral-200); }

/* ── Coupon form ────────────────────────────────────────────── */
#coupon_code {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    background: var(--surface);
    width: 200px;
}

/* ── Cart totals ────────────────────────────────────────────── */
.cart_totals {
    margin-top: var(--space-6);
    max-width: 400px;
    margin-inline-start: auto;
}

.cart_totals h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--brand-text);
}

.cart_totals table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    margin-bottom: var(--space-5);
}
.cart_totals table.shop_table td,
.cart_totals table.shop_table th {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}
.cart_totals table.shop_table th { color: var(--brand-text-muted); font-weight: 400; }
.cart_totals table.shop_table .order-total th,
.cart_totals table.shop_table .order-total td {
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--brand-text);
}

.wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition-hover);
}
.wc-proceed-to-checkout a.checkout-button:hover { opacity: 0.88; }

/* ── API-only cart page shell ─────────────────────────────────── */
.cs-cart-page {
    max-width: 980px;
    margin: var(--space-7) auto;
}

.cs-cart-page__header {
    margin-bottom: var(--space-4);
}

.cs-cart-page__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--brand-text);
}

.cs-cart-page__subtitle {
    margin: var(--space-2) 0 0;
    color: var(--brand-text-muted);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
}

.cs-cart-page__panel {
    background: var(--brand-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.cs-cart-page__body {
    overflow: visible;
}

.cs-cart-page__footer {
    background: var(--brand-bg);
}

.cs-cart-page__noscript {
    margin-top: var(--space-4);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--brand-text-muted);
}

.cs-cart-page__noscript a {
    color: var(--brand-accent);
    text-decoration: none;
}

.cs-cart-page__noscript a:hover {
    text-decoration: underline;
}


/* ============================================================
   woocommerce-checkout.css — /finalizar-compra/ page
   Never CDN-cached. Uses cs-layout-checkout grid (1-col mobile,
   form + order-review 2-col desktop).
   ============================================================ */

/* ── Section headings ───────────────────────────────────────── */
#order_review_heading,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#payment > h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--brand-primary);
}

/* ── Field rows ─────────────────────────────────────────────── */
.woocommerce .form-row {
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.woocommerce .form-row label {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-text);
}

.woocommerce .form-row label .required {
    color: var(--color-error);
    margin-inline-start: 2px;
    text-decoration: none;
}

.woocommerce .form-row input,
.woocommerce .form-row select,
.woocommerce .form-row textarea {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    color: var(--brand-text);
    transition: border-color var(--transition-hover), box-shadow var(--transition-hover);
}
.woocommerce .form-row input:focus-visible,
.woocommerce .form-row select:focus-visible,
.woocommerce .form-row textarea:focus-visible {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 20%, transparent);
    outline: none;
}

/* Billing + ship-to-different: single column, full width */
.col2-set { display: block; }
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1,
.woocommerce-page .col2-set .col-2 {
    float: none;
    width: 100%;
    margin-bottom: var(--space-5);
}

/* ── Order review table ─────────────────────────────────────── */
#order_review table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    margin-bottom: var(--space-5);
}
#order_review table.shop_table th,
#order_review table.shop_table td {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
    color: var(--brand-text);
}
#order_review table.shop_table .order-total th,
#order_review table.shop_table .order-total td {
    font-weight: 700;
    font-size: 1rem;
    border-bottom: none;
    padding-top: var(--space-4);
}
#order_review table.shop_table .product-name { font-weight: 600; }

/* ── Payment methods ────────────────────────────────────────── */
#payment {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

#payment .payment_methods {
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Each method: input + label on the same row, payment_box below */
#payment .payment_methods li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}
#payment .payment_methods li:last-child { border-bottom: none; }

/* Native radio — use accent-color so it matches the brand */
#payment .payment_methods li input[type="radio"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

/* Label sits next to the radio; takes remaining row width */
#payment .payment_methods li > label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-text);
    cursor: pointer;
}

/* payment_box spans the full row below input+label */
#payment .payment_methods .payment_box {
    width: 100%;
}

#payment .payment_box {
    padding: var(--space-4);
    background: var(--brand-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--brand-text-muted);
}

/* ── Place order button ─────────────────────────────────────── */
#place_order {
    display: block;
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--transition-hover);
    margin-top: var(--space-4);
}
#place_order:hover { opacity: 0.88; }
#place_order:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Inline notices ─────────────────────────────────────────── */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: var(--space-3) var(--space-5);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    list-style: none;
}
.woocommerce-error  { background: color-mix(in srgb, var(--color-error) 10%, transparent);   color: var(--color-error); }
.woocommerce-message { background: color-mix(in srgb, var(--color-success) 10%, transparent); color: var(--color-success); }
.woocommerce-info    { background: color-mix(in srgb, var(--color-info) 10%, transparent);    color: var(--color-info); }


/* ============================================================
   woocommerce-account.css — /minha-conta/ and sub-pages
   Never CDN-cached (logged-in user session cookie).
   ============================================================ */

/* ── Account layout: sidebar nav + content ──────────────────── */
.woocommerce-account .woocommerce .cs-myaccount{
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-7);
    align-items: start;
}
@media (max-width: 767px) {
    .woocommerce-account .woocommerce .cs-myaccount{
        grid-template-columns: 1fr;
    }
}

/* ── Account nav (sidebar) ──────────────────────────────────── */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--brand-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background var(--transition-hover), color var(--transition-hover), border-color var(--transition-hover);
}
.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--neutral-200);
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--active a {
    background: var(--neutral-200);
    color: var(--brand-primary);
    font-weight: 700;
    border-left-color: var(--brand-primary);
}

/* ── Account content ────────────────────────────────────────── */
.woocommerce-MyAccount-content {
    min-width: 0; /* prevent grid blowout */
}

.woocommerce-MyAccount-content p {
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    color: var(--brand-text);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

/* ── Orders table ───────────────────────────────────────────── */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: 0.9375rem;
}
.woocommerce-orders-table thead th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-weight: 700;
    color: var(--brand-text);
    border-bottom: 2px solid var(--border);
}
.woocommerce-orders-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border);
    color: var(--brand-text);
    vertical-align: middle;
}
.woocommerce-orders-table .woocommerce-button {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition-hover);
}
.woocommerce-orders-table .woocommerce-button:hover { opacity: 0.88; }

/* ── Edit account / addresses forms ────────────────────────── */
.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.woocommerce-EditAccountForm .form-row label,
.woocommerce-address-fields .form-row label {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-text);
}
.woocommerce-EditAccountForm .form-row input,
.woocommerce-address-fields .form-row input,
.woocommerce-EditAccountForm .form-row select,
.woocommerce-address-fields .form-row select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    color: var(--brand-text);
}
.woocommerce-EditAccountForm .form-row input:focus-visible,
.woocommerce-address-fields .form-row input:focus-visible {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 20%, transparent);
    outline: none;
}

.woocommerce-EditAccountForm .button,
.woocommerce-address-fields .button {
    padding: var(--space-3) var(--space-6);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--transition-hover);
}
.woocommerce-EditAccountForm .button:hover,
.woocommerce-address-fields .button:hover { opacity: 0.88; }

/* ── Settings panel injection point ─────────────────────────── */
#mark-settings-app {
    min-height: 200px;
    background: var(--surface);
    border-radius: var(--radius-md);
    /* JS app mounts here — loading state handled by app */
}


/* ============================================================
   responsive.css — breakpoint overrides
   Mobile-first base in each component file.
   This file adds adjustments for tablet and desktop breakpoints.

   Breakpoints:
     < 640px   — mobile
     640–1024px — tablet
     1025px+   — desktop
     1281px+   — wide
   ============================================================ */

/* ── Mobile (< 640px) ───────────────────────────────────────── */
@media (max-width: 639px) {

    /* Reduced header height on small screens */
    .cs-header__inner { height: 56px; }

    /* Stack footer inner */
    .cs-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    /* Main padding tighter */
    .cs-main { padding-block: var(--space-5); }

    /* Product grid: 2 columns minimum */
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-3);
    }

    /* Cart drawer full width on mobile */
    .cs-cart-drawer { width: 100%; }

    /* Account layout: single column already set; tighten gaps */
    .woocommerce-account .woocommerce .cs-myaccount { gap: var(--space-4); }

    /* Account icon hidden on mobile — accessible via overlay utility links */
    .cs-account { display: none; }

    /* cs-search-toggle now triggers the modal — visible on all viewports */
}

/* ── Tablet (640px – 1024px) ────────────────────────────────── */
@media (min-width: 640px) and (max-width: 1024px) {

    /* Product grid: 3 columns */
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* ── Mobile + tablet (≤ 1024px): combo toggle + overlay layout ── */
@media (max-width: 1024px) {

    /* Hide desktop nav; search toggle stays visible to open modal */
    .cs-nav { display: none !important; }

    /* Show the combo (search + burger) toggle */
    .cs-combo-toggle { display: flex; }

    /* Switch from grid to flex on mobile */
    .cs-header__inner {
        display: flex;
        position: relative;
        justify-content: flex-end;
    }

    /* Logo: absolutely centered regardless of left/right content width */
    .cs-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Pin combo toggle to the far left (outside actions flow) */
    .cs-combo-toggle {
        position: absolute;
        left: var(--space-3, 12px);
    }

    /* Tighten action icon gap on narrow screens */
    .cs-header__actions { gap: var(--space-1); }
}

/* ── Desktop (>= 1025px) ────────────────────────────────────── */
@media (min-width: 1025px) {

    /* Show desktop nav, hide combo toggle + overlay */
    .cs-nav { display: flex; }
    .cs-combo-toggle { display: none !important; }
    .cs-overlay { display: none !important; }
    .cs-overlay-backdrop { display: none !important; }

    /* Wider product grids */
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ── Wide (>= 1281px) ──────────────────────────────────────── */
@media (min-width: 1281px) {
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
    .cs-header,
    .cs-footer,
    .cs-cart-drawer,
    .cs-cart-backdrop,
    .cs-announcement,
    .cs-combo-toggle,
    .cs-overlay { display: none !important; }

    .cs-main { padding: 0; }
    body { font-size: 12pt; }
}
