/* ================= WHITE & GOLD MODE =================
   Scoped to html[data-theme="light"]; the dark site is untouched without it. White surfaces, soft
   grey page, gold as the accent (buttons, active states, logo, rules) in place of the dark theme's
   white-on-black. Most of it is the tokens below — the page is token-driven — plus the spots that
   have a dark colour written straight into the rule (the header, footer, a few overlays). */
html[data-theme="light"]{
  color-scheme:light;
  --gold:#f2b300;          /* gold text / rules / icons on white */
  --gold-deep:#b88100;
  --gold-fill:linear-gradient(#fcc419,#fcc419);   /* ONE flat gold, exactly the department bar's hover fill (--btn-bg) — no gradient / 3D shading anywhere */
  --header-black:#ffffff;  /* "the header colour" — white here; everything keyed to it follows */
  --brand-navy:#1d1a12;
  --brand-gold:#f2b300;
  --brand-gold-light:#ffd54a;
  --bg:#f4f4f4;            /* neutral: the old cream (#f6f4ee) read as a yellow tint */
  --bg-deep:#ebebeb;
  /* The page backdrop: white at both edges, slightly darker grey in the middle (behind the product grid). Plain greys, no warm tint. */
  --page-bg:linear-gradient(90deg, #ffffff 0%, #f7f7f7 22%, #f0f0f0 50%, #f7f7f7 78%, #ffffff 100%);
  --bg-alt:#ffffff;
  --ink:#1b1a17;
  --muted:#6b675c;
  --line:#e6e6e6;
  --line-strong:#e0d2a0;
  --btn-bg:#fcc419;
  --btn-bg-hover:#f0aa00;
  --btn-ink:#1f1500;
  --shadow:0 1px 2px rgba(60,48,20,.08), 0 1px 3px rgba(60,48,20,.10);
  --shadow-lg:0 10px 26px rgba(60,48,20,.16), 0 2px 6px rgba(60,48,20,.10);
}
/* The document behind everything is plain WHITE (the header's and department bar's white), not the grey-centred backdrop: the products panel paints
   its own copy of --page-bg (.panel-shop), so the page body's copy was only ever visible mid-swipe, where the fading slideshow and the clear strip
   under the header let it through as a grey band, darker in the middle. */
html[data-theme="light"] body{ background-color:#ffffff; background-image:none; color:var(--ink); }

/* ---- Header: white with a fine gold rule, dark ink. Like the dark header it is SEE-THROUGH on the main page (top of the page, over the
   slideshow) and turns solid as the product page comes up under it: --hdr-solid is 0 -> 1, written on the header by wireHeaderSolid() in app.js.
   (It used to be a flat #fff !important, so it stayed solid over the slideshow.) The gold rule and the shadow fade in with it. ---- */
html[data-theme="light"] .header-wrap{
  /* --hdr-w (0 -> 1, set by paint() in app.js) is how far the slideshow has washed out: it fades over white at opacity 1 - w. The slideshow
     BEHIND the header is washed too, so painting the header white on top of it whitened that strip TWICE and left a step (a line) against the
     hero below. So the header's own white fill (--hdr-a) only comes in once the slideshow is gone (w from .85 to 1), at the --hdr-solid level.
     --hdr-ia is how light the header's surroundings are: the header TEXT (and the logo, in app.js) follow that, so they turn dark with the
     wash instead of staying white on a white strip. */
  --hdr-a:calc(var(--hdr-solid, 1) * clamp(0, calc((var(--hdr-w, 1) - .85) / .15), 1));
  --hdr-ia:max(var(--hdr-w, 0), var(--hdr-solid, 0));
  --hdr-line:clamp(0, calc((var(--hdr-a) - .85) / .15), 1);     /* the gold rule and shadow appear only as the header becomes fully white */
  background:rgba(255,255,255,var(--hdr-a)) !important;
  box-shadow:0 1px 0 rgba(242,179,0,calc(.55 * var(--hdr-line))), 0 6px 18px -10px rgba(60,48,20,calc(.25 * var(--hdr-line)));
  /* The text is WHITE while the header is see-through (it sits on the dark slideshow, same as dark mode) and moves to dark ink as the
     white fills in (--hdr-tk, below). */
  --hdr-ink:color-mix(in srgb, #1b1a17 calc(var(--hdr-tk) * 100%), #ffffff);
  /* The text colour is EASED IN TIME as well as following the scroll (--hdr-tk is a registered number, see @property below). The margin-left transition is the header's own (styles.css). */
  transition:margin-left .28s cubic-bezier(.4,0,.2,1), --hdr-tk .3s ease;
}
/* Two eased (smoothstep) values from --hdr-solid, which runs 0 (main page, header see-through) to 1 (products up); the header and the hero panel
   each get their own copy from wireHeaderSolid() (app.js):
   --hdr-tk  the header's TEXT, white (0) to dark ink (1): between 30% and 70% solid. It cannot be wider: both the text and the bar behind it
             pass through mid-grey at the same moment, and the longer they are both grey together, the harder the text is to read.
   The GOLD items (logo, cart badge, slide button) are NOT scroll-proportional: they flip once, between white and gold, with a timed .45s fade,
   when --hdr-solid crosses a threshold (class .hdr-gold on the header and the hero panel, set by wireHeaderSolid() in app.js: gold from 75%
   on the way down, back to white below 60% on the way up). Do NOT drive them from --tuck (flips on the first 8px of scroll, untucks only at the top). */
@property --hdr-tk{ syntax:'<number>'; inherits:true; initial-value:1; }
html[data-theme="light"] :is(.header-wrap, .panel-hero){
  --hdr-t:clamp(0, calc((var(--hdr-ia, var(--hdr-solid,1)) - .3) / .4), 1);
  --hdr-tk:calc(var(--hdr-t) * var(--hdr-t) * (3 - 2 * var(--hdr-t)));
}
/* The panels that live inside the header but have their own white background (search suggestions, the account menu, the side rail) keep dark
   text at all times: the header's text goes WHITE over the slideshow, and white on these panels was unreadable. */
html[data-theme="light"] .header-wrap :is(.tsearch-suggest, .acct-menu, .side-rail){ --hdr-ink:#1b1a17; }
html[data-theme="light"] .header-wrap,
html[data-theme="light"] .header-wrap :is(a, button, span, div, p, strong, b, label, input, svg){ color:var(--hdr-ink); }
html[data-theme="light"] .header-wrap .logo,
html[data-theme="light"] .header-wrap .logo *{ color:var(--gold); }
html[data-theme="light"] .header-wrap :is(.topbar-link, .topbar-a11y):hover{ color:var(--gold-deep); }
html[data-theme="light"] .cart-count{ background-image:none; background-color:#fcc419; transition:background-color .45s ease; color:#1b1405 !important; }
html[data-theme="light"] .header-wrap:not(.hdr-gold) .cart-count{ background-color:#ffffff; }   /* white on the main page, gold once the products are up */
/* The digits are spans INSIDE the badge (.cc-digits > .cc-wheel > .cc-strip > span). The header's own text rule reaches every span, and the header
   text is WHITE over the slideshow, so the number was white on the white badge on the main page. Dark ink for the badge and all of its parts. */
html[data-theme="light"] .cart-count *{ color:#1b1405 !important; }
/* search bar in the open header: frosted white glass instead of the dark one */
html[data-theme="light"] body:not(.topbar-hidden) .searchbar{
  background-color:rgba(242,179,0,.08);
  background-image:linear-gradient(135deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.1) 40%, rgba(255,255,255,0) 60%, rgba(242,179,0,.12) 100%);
  border-color:rgba(242,179,0,.45);
  box-shadow:inset 2px 2px 3px -1px rgba(255,255,255,.9), inset -2px -2px 3px -1px rgba(242,179,0,.25), 0 1px 2px rgba(60,48,20,.12), 0 6px 16px rgba(60,48,20,.14);
}
html[data-theme="light"] body:not(.topbar-hidden) .searchbar .tsearch-input{ color:var(--ink); }
html[data-theme="light"] body:not(.topbar-hidden) .searchbar .tsearch-input::placeholder{ color:rgba(27,26,23,.7); }

/* ---- Gold accents ---- */
html[data-theme="light"] .dept-chip.active,
html[data-theme="light"] .filter-pill.active{ background:var(--gold-fill); border-color:var(--gold); color:#1b1405; }
html[data-theme="light"] .add-btn{ --btn-bg:#fcc419; }
html[data-theme="light"] .filters-tab{ background:#fff !important; border-color:var(--gold) !important; color:var(--gold-deep) !important; }

/* ---- Footer: white ---- */
html[data-theme="light"] .footer{ background:#ffffff; color:#5a564a; border-top:1px solid var(--line-strong); }
html[data-theme="light"] .footer-col h4{ color:var(--ink); }
html[data-theme="light"] .flink{ color:#5a564a; }
html[data-theme="light"] .flink:hover{ color:var(--gold-deep); }
html[data-theme="light"] .foot-logo{ color:var(--gold-deep); }
html[data-theme="light"] .footer-brand p{ color:#7a7566; }
html[data-theme="light"] .footer-bottom{ border-top-color:var(--line); color:#8a8576; }

/* ---- Glass buttons (admin buttons, and the few shopper buttons that share them): champagne-gold glass ---- */
html[data-theme="light"] :is(.adm-btn, .kmadm-btn, .kmadm-iconbtn, .btn-admin-add, .dc-manage-btn, .ie-btn, .card-admin button, .tile-edit-btn, .tile-del-btn, .pf-tool, .pf-gallery-thumb [data-act]){
  --g-ink:#2a2110; --g-body:rgba(255,255,255,.18); --g-rim:rgba(242,179,0,.75);
  text-shadow:0 1px 0 rgba(255,255,255,.55);
}
html[data-theme="light"] :is(.adm-btn, .kmadm-btn, .kmadm-iconbtn, .btn-admin-add, .dc-manage-btn, .ie-btn, .card-admin button, .tile-edit-btn, .tile-del-btn, .pf-tool, .pf-gallery-thumb [data-act])::before{
  background-image:
    linear-gradient(var(--g-body), var(--g-body)),
    radial-gradient(ellipse 55% 90% at 8% 25%, rgba(255,236,150,.98), transparent 70%),
    radial-gradient(ellipse 50% 90% at 94% 30%, rgba(255,200,40,.9), transparent 70%),
    radial-gradient(ellipse 60% 70% at 50% 120%, rgba(240,168,0,.8), transparent 70%),
    radial-gradient(ellipse 35% 60% at 30% 0%, rgba(255,255,255,.9), transparent 70%);
  opacity:.95;
}
html[data-theme="light"] :is(.adm-btn-primary, .kmadm-btn-primary, .btn-admin-add, .dc-manage-btn, .ie-btn-primary){ --g-body:rgba(252,196,25,.55); --g-ink:#1f1707; --g-rim:rgba(184,129,0,.8); }
html[data-theme="light"] :is(.adm-btn-danger, .kmadm-btn-danger-solid, .ie-btn-danger){ --g-ink:#fff; --g-body:rgba(200,16,46,.7); text-shadow:0 1px 2px rgba(0,0,0,.4); }
html[data-theme="light"] :is(.adm-btn-quiet-danger, .kmadm-btn-danger-ghost){ --g-ink:#8f0d22; --g-body:rgba(200,16,46,.14); }
html[data-theme="light"] :is(.adm-btn-ghost, .kmadm-btn-ghost, .ie-btn-quiet){ --g-ink:#4a4435; --g-body:rgba(255,255,255,.4); }
/* small buttons over product photos keep white icons on a dark glass so they read on any photo */
html[data-theme="light"] :is(.card-admin button, .tile-edit-btn, .tile-del-btn, .pf-tool, .pf-gallery-thumb [data-act]){
  --g-ink:#fff; --g-body:rgba(20,16,6,.35); --g-rim:rgba(255,255,255,.6); text-shadow:0 0 3px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.85);
}
html[data-theme="light"] :is(.card-admin button, .tile-edit-btn, .tile-del-btn, .pf-tool, .pf-gallery-thumb [data-act])::before{ opacity:.35; }

/* ---- Settings panel (opened from the gear) ---- */
.km-settings{
  position:fixed; z-index:130; right:calc(var(--page-edge, 40px) / 2 + 24px); bottom:14px; width:min(300px, calc(100vw - 24px));
  background:var(--bg-alt); color:var(--ink); border:1px solid var(--line-strong); border-radius:14px;
  box-shadow:var(--shadow-lg); padding:14px; font:500 13.5px/1.35 Inter, system-ui, sans-serif;
}
.km-set-title{ font-weight:800; font-size:15px; margin:0 0 12px; }
.km-set-row{ margin:0 0 12px; }
.km-set-label{ font-size:11.5px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color:var(--muted); margin:0 0 8px; }
.km-seg{ display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; background:var(--line); border-radius:999px; }
.km-seg button{
  display:inline-flex; align-items:center; justify-content:center; gap:6px; border:0; background:transparent; color:var(--muted);
  font:700 12.5px/1 Inter, system-ui, sans-serif; padding:9px 8px; border-radius:999px; cursor:pointer; transition:background .15s, color .15s;
}
.km-seg button:hover{ color:var(--ink); }
.km-seg button.is-on{ background:var(--btn-bg); color:var(--btn-ink); }
.km-seg button:focus-visible, .km-set-action:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.km-set-action{
  display:block; width:100%; text-align:left; border:0; border-top:1px solid var(--line); background:transparent; color:var(--ink);
  font:700 13.5px/1 Inter, system-ui, sans-serif; padding:12px 2px 2px; cursor:pointer;
}
.km-set-action:hover{ color:var(--muted); }

/* ---- Floating icon column (Deals, package, settings): white, gold border, gold sweep — like the Filters tab ---- */
html[data-theme="light"] .side-rail-quick,
html[data-theme="light"] .settings-gear{
  background-color:#ffffff !important;
  background-image:var(--gold-fill);
  border-color:var(--gold); color:var(--gold-deep);
}
html[data-theme="light"] .side-rail-quick:hover .side-rail-icon,
html[data-theme="light"] .settings-gear:hover{ color:#1b1405; }

/* round icon buttons, white mode */
html[data-theme="light"] .side-rail-quick .side-rail-icon,
html[data-theme="light"] .settings-gear{
  background-color:#ffffff !important; background-image:var(--gold-fill);
  border-color:var(--gold); color:var(--gold-deep);
}
html[data-theme="light"] .side-rail-quick .side-rail-icon:hover,
html[data-theme="light"] .settings-gear:hover{ color:#1b1405; }
html[data-theme="light"] .side-rail-quick:hover .side-rail-icon:not(:hover){ color:var(--gold-deep); }

/* ---- The header's gold rule follows the department bar down ----
   Normally the rule is the header's bottom edge. When the dept bar is stuck under the header (scrolling) or
   hanging off it (Filters open) it is part of the header, so the rule moves to the bar's bottom edge instead of
   cutting across the top of it. */
html[data-theme="light"]:has(.dept-bar.is-stuck:not(.dept-bar-docked)) .header-wrap,
html[data-theme="light"] .header-wrap:has(.dept-dock:not([hidden])){
  box-shadow:none;
}
html[data-theme="light"] .dept-bar.is-stuck:not(.dept-bar-docked)::before{
  box-shadow:0 1px 0 rgba(242,179,0,.55), 0 6px 18px -10px rgba(60,48,20,.25);
}
html[data-theme="light"] .dept-dock:not([hidden]){
  box-shadow:0 1px 0 rgba(242,179,0,.55), 0 6px 18px -10px rgba(60,48,20,.25);
}

/* The curved connector between the docked dept bar and the filters drawer lives inside the header, so the
   header's dark-ink rule was turning its fill black — keep it the header colour. */
html[data-theme="light"] .header-wrap .filters-corner-round,
html[data-theme="light"] .header-wrap .filters-corner-round svg{ color:var(--header-black); }
/* The rounded-corner piece sits UNDER the docked bar (z-index 0, the bar is 1) in white mode. It used to be above it, and overlapped the bar's bottom edge by
   3px: white painted over the gold rule (a gap in the line) and over the bar's soft shadow (a hard cut where the shadow stops at the piece). Underneath,
   the rule and the shadow run unbroken across it and the piece only fills the corner. */
html[data-theme="light"] .header-wrap .filters-corner-round{ z-index:0; }

/* Bright gold, but a notch deeper where it is thin lines on white (logo, floating icons) so it stays readable. */
html[data-theme="light"] .header-wrap .logo, html[data-theme="light"] .header-wrap .logo *{ color:#d89c00; }
html[data-theme="light"] .header-wrap .logo *{ transition:color .45s ease; }   /* on the children only: .logo's own transform transition (search open) must stay */
html[data-theme="light"] .header-wrap:not(.hdr-gold) .logo, html[data-theme="light"] .header-wrap:not(.hdr-gold) .logo *{ color:#ffffff; }   /* white on the main page, gold once the products are up */
html[data-theme="light"] .side-rail-quick .side-rail-icon, html[data-theme="light"] .settings-gear,
html[data-theme="light"] .side-rail-quick .side-rail-icon:hover, html[data-theme="light"] .settings-gear:hover{ color:#c58a00; }

/* white mode: the card text area wipes to a warm grey */
html[data-theme="light"] .card-body{ --wipe-lo:#dddbd4; --wipe-hi:#f7f7f4; }   /* hover highlight on a product tile: a slight grey gradient, deeper at the bottom, nearly white at the top (it was a flat tan, then a flat grey) */
html[data-theme="light"] .flink-inline:hover{ color:var(--ink); }

/* ---- White-mode product photos (theme.js): a photo's white twin comes through srcset / --km-w; hold the dark one back until the list is known ---- */
html[data-theme="light"] img[data-km-wait]{ opacity:0 !important; }
html[data-theme="light"] [data-km-w]:not(img){ background-image:var(--km-w) !important; }

/* =====================================================================================================================
   WHOLE-SITE POLISH (white mode) — found with a contrast / dark-block audit of every screen; each block says what it fixes.
   ===================================================================================================================== */

/* The products page used to start on a black fill that fades in under the header (a hard-coded #000 gradient): in white mode that was a
   black slab behind every card. Same fade, in the page colour. */
html[data-theme="light"] .panel-shop{
  /* three layers: (1) the strip under the header (--fade-h tall) is CLEAR (the slideshow shows through) until the swipe is 75% done
     (--hdr-solid .75, where the logo is mid-change: the point the user marked) and then fades to white by the end: --strip-a is 0 at .75 and
     1 at 1. Its TOP edge is a soft multi-step gradient (clear at the header, full white at the department bar), not a flat rectangle, so no
     hard line or band shows under the header; the stops are eased (about a smoothstep) to avoid visible steps.
     (--hdr-solid is written on this panel by wireHeaderSolid() in app.js.)
     (2) a 48px blend from that white into the backdrop; (3) the page backdrop itself (white edges, slightly darker middle). */
  --strip-a:clamp(0, calc((var(--hdr-solid, 1) - .75) / .25), 1);
  background-color:transparent;
  background-image:
    linear-gradient(to bottom,
      rgba(255,255,255,0) 0,
      rgba(255,255,255,calc(var(--strip-a) * .03)) calc(var(--fade-h) * .12),
      rgba(255,255,255,calc(var(--strip-a) * .12)) calc(var(--fade-h) * .25),
      rgba(255,255,255,calc(var(--strip-a) * .30)) calc(var(--fade-h) * .4),
      rgba(255,255,255,calc(var(--strip-a) * .55)) calc(var(--fade-h) * .55),
      rgba(255,255,255,calc(var(--strip-a) * .80)) calc(var(--fade-h) * .72),
      rgba(255,255,255,calc(var(--strip-a) * .95)) calc(var(--fade-h) * .88),
      rgba(255,255,255,var(--strip-a)) var(--fade-h)),
    linear-gradient(to bottom, rgba(255,255,255,var(--strip-a)), rgba(255,255,255,0)),
    var(--page-bg);
  background-repeat:no-repeat;
  background-size:100% var(--fade-h), 100% 48px, 100% calc(100% - var(--fade-h));
  background-position:0 0, 0 var(--fade-h), 0 100%;}

/* ---- Department bar: ink text on soft white pills with a gold-tinted outline (the dark theme's #f2f3f5 text was invisible on white) ---- */
html[data-theme="light"] .dept-chip:not(.active):not(.dept-chip-blank){
  background-color:#ffffff; color:var(--ink); border-color:var(--line-strong); font-weight:800;
  box-shadow:0 1px 0 rgba(60,48,20,.05);
}
@media (hover:hover){
  html[data-theme="light"] .dept-chip:not(.active):not(.dept-chip-blank):hover{ color:#1b1405; border-color:var(--gold); }
}
html[data-theme="light"] .dept-chip.dept-chip-empty{ opacity:.75; }
html[data-theme="light"] .dept-chip-blank{ background:transparent; color:var(--muted); border-color:var(--line-strong); opacity:.8; }
html[data-theme="light"] .dept-chip.active{ background:var(--gold-fill); border-color:#fcc419; color:#1b1405; box-shadow:none; }

/* ---- Keyboard focus: the dark theme's white focus rings vanish on white; every ring becomes dark ink (only the colour — rings a rule turns off stay off) ---- */
html[data-theme="light"] :focus-visible{ outline-color:#1b1a17 !important; }
html[data-theme="light"] ::selection{ background:rgba(242,179,0,.35); color:#1b1a17; }

/* ---- Small tokens: stars and small gold text a notch deeper so they pass contrast on white ---- */
html[data-theme="light"]{ --gold-star:#c98300; --gold-text:#8a6200; }
html[data-theme="light"] .filters-tab, html[data-theme="light"] .filters-tab-chevron{ color:var(--gold-text) !important; }
html[data-theme="light"] .filters-tab-count{ background:var(--gold-text); color:#fff; }
html[data-theme="light"] .footer-bottom, html[data-theme="light"] .flink-inline{ color:#6f6a5c; }
html[data-theme="light"] .footer-bottom .flink-inline:hover{ color:var(--ink); }

/* ---- Cards: the "- 1 +" quantity control (white ring + white text in the dark theme) ---- */
html[data-theme="light"] .qty-row{ color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--gold-deep); }
html[data-theme="light"] .qty-row button{ color:var(--ink); }
@media (hover:hover){ html[data-theme="light"] .qty-row button:hover{ color:#1b1405; } }
html[data-theme="light"] .card-preview-dots i{ background:rgba(27,26,23,.28); }
html[data-theme="light"] .card-preview-dots i.on{ background:var(--gold-deep); }
html[data-theme="light"] .pm-dot{ background:rgba(27,26,23,.25); }
html[data-theme="light"] .pm-dot.active{ background:var(--gold-deep); }

/* ---- Page bar: the current page is gold like the active department ---- */
html[data-theme="light"] .pager-btn{ background:#fff; color:var(--ink); border-color:var(--line-strong); }
html[data-theme="light"] .pager-btn:hover:not(:disabled):not(.is-current){ background:#fff7da; border-color:var(--gold); }
html[data-theme="light"] .pager-btn.is-current{ background:var(--gold-fill); color:#1b1405; border-color:var(--gold); }
html[data-theme="light"] .pager-note, html[data-theme="light"] .pager-gap{ color:var(--muted); }

/* ---- Filters panel ---- */
html[data-theme="light"] .filter-more{ color:var(--gold-text); }
html[data-theme="light"] .filter-check:hover .filter-check-name{ color:var(--ink); }
html[data-theme="light"] .filter-check input{ accent-color:#c58a00; }
html[data-theme="light"] .filter-pill:hover{ border-color:var(--gold); }
html[data-theme="light"] .filter-chip{ background:#fff7da; border-color:var(--gold); color:var(--ink); }
@media (hover:hover){ html[data-theme="light"] .filter-chip:hover span{ color:var(--ink); } }
html[data-theme="light"] .filters-foot #filtersReset{ background-color:#fff; color:var(--ink); border-color:var(--line-strong); }
html[data-theme="light"] .filters-foot #filtersReset:not(:disabled):hover{ color:#1b1405; }
html[data-theme="light"] .filters-body::-webkit-scrollbar, html[data-theme="light"] .filters-body::-webkit-scrollbar-track{ background:#f3eedd; border-left-color:var(--line); }
html[data-theme="light"] .filters-body::-webkit-scrollbar-thumb{ background:#cdbf8f; border-color:#f3eedd; }
html[data-theme="light"] .filters-body::-webkit-scrollbar-thumb:hover{ background:#b9a766; }
html[data-theme="light"] .sort-menu-btn:hover{ background:#fff; border-color:var(--gold); }
html[data-theme="light"] .sort-menu-list{ background:#fff; border-color:var(--line-strong); box-shadow:var(--shadow-lg); }
html[data-theme="light"] .sort-menu-list li{ color:var(--ink); }
html[data-theme="light"] .sort-menu-list li:hover{ background:#fff7da; color:var(--ink); }
html[data-theme="light"] .sort-menu-list li[aria-selected="true"]{ background:var(--gold-fill); color:#1b1405; }

/* ---- Search suggestions ---- */
html[data-theme="light"] .sg-chip:hover{ border-color:var(--gold); color:#1b1405; background:#fff7da; }
html[data-theme="light"] .sg-view:hover{ color:#1b1405; background:var(--gold-fill); }
html[data-theme="light"] .sg-peek{ background:#fff; border-color:var(--line-strong); box-shadow:var(--shadow-lg); }
html[data-theme="light"] .sg-peek img{ background:#fff; }

/* ---- Nutrition facts: the classic printed label (black on white) instead of the dark theme's inverted one ---- */
html[data-theme="light"] .nutrition-label{ background:#fff; color:#111; border-color:#111; }
html[data-theme="light"] .nutrition-label h4{ border-bottom-color:#111; }
html[data-theme="light"] .nl-size{ border-top-color:#111; border-bottom-color:#111; }
html[data-theme="light"] .nl-head{ border-bottom-color:#111; }
html[data-theme="light"] .nl-row{ border-bottom-color:#a39f92; }
html[data-theme="light"] .nl-micro-first{ border-top-color:#111; }
html[data-theme="light"] .nl-note, html[data-theme="light"] .nl-more{ color:#3a372f; }
html[data-theme="light"] .nl-more{ border-top-color:#a39f92; }
html[data-theme="light"] .nl-cert-pill{ border-color:#a39f92; color:#2a2720; }

/* ---- Orders & tracking ---- */
html[data-theme="light"] .kmo-select option{ background:#fff; color:var(--ink); }
html[data-theme="light"] .kmo-card:hover{ background:#fff7da; }
html[data-theme="light"] .kmo-seg-btn:hover{ color:var(--ink); }

/* ---- Marks / flags ---- */
html[data-theme="light"] .mk-row:hover, html[data-theme="light"] .mk-fchip:hover{ background:rgba(242,179,0,.12); }

/* ---- Search suggestions: the dark theme's see-through glass over the slideshow is unreadable with dark text — frosted white instead
   (still turns fully solid with the scroll, through the same --k) ---- */
html[data-theme="light"] body .tsearch-suggest{
  background-color:color-mix(in srgb, #ffffff calc(var(--k) * 100%), rgba(255,255,255,.95));
  background-image:linear-gradient(135deg, rgba(255,255,255,calc(.6 * var(--g))) 0%, rgba(255,255,255,0) 62%);
  -webkit-backdrop-filter:blur(24px) saturate(1.5); backdrop-filter:blur(24px) saturate(1.5);
  border-color:rgba(242,179,0,.5);
  box-shadow:var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.6);
}

/* ---- Dropdown lists (the browser paints <option> on the select's own background): dark lists with dark text were unreadable ---- */
html[data-theme="light"] select option, html[data-theme="light"] .adm-form option{ background:#ffffff; color:var(--ink); }
/* admin: the form's warning list was pale orange on white */
html[data-theme="light"] .adm-warns li{ color:#8a5200; }

/* ---- Add to Cart / Choose Size (white mode): a golden outline on a clear button; on hover the gold wipes in from the left and the label darkens ---- */
html[data-theme="light"] .add-btn{
  background-color:transparent; background-image:var(--gold-fill);
  background-repeat:no-repeat; background-position:left center; background-size:0% 100%;
  color:var(--gold-text); box-shadow:inset 0 0 0 1.5px var(--gold);
  transition:background-size .7s cubic-bezier(.4,0,.2,1), color .5s ease .1s, box-shadow .5s ease .1s;
}
@media (hover:hover){
  html[data-theme="light"] .add-btn:hover{
    background-color:transparent; background-image:var(--gold-fill);
    background-repeat:no-repeat; background-position:left center; background-size:100% 100%;
    color:#1b1405; box-shadow:inset 0 0 0 1.5px var(--gold);
  }
}

/* ===== GOLD ITEMS ON THE MAIN PAGE ARE WHITE, THEN FADE TO GOLD AS THE PRODUCTS COME UP (2026-11-23) =====
   One timed fade between white and gold (class .hdr-gold, see above). The logo and the cart badge are handled where they are
   defined; this is the slide button in the middle of the screen. */
html[data-theme="light"] .hero-cta{ background-color:#fcc419; color:#1b1405; transition:background-color .45s ease; }
html[data-theme="light"] .panel-hero:not(.hdr-gold) .hero-cta{ background-color:#ffffff; }
@media (hover:hover){
  html[data-theme="light"] .hero-cta:hover{ background-color:#f0aa00; color:#1b1405; }
  html[data-theme="light"] .panel-hero:not(.hdr-gold) .hero-cta:hover{ background-color:#ececec; }
}
/* ===== END GOLD ITEMS ON THE MAIN PAGE ===== */

/* ===== THE SLIDESHOW FADES THROUGH BLACK, AS IN DARK MODE (2026-11-23) =====
   A slide change fades the old slide out to nothing and then the new one in (animateHeroSlide, app.js), so what shows in between is the
   slideshow's own backdrop. That is the header colour token, which is WHITE in white mode: every change flashed a white wash. The backdrop is
   black again, and a copy of it one header-height up (the slides reach up behind the see-through header) so that strip does not flash either.
   The thin vignette on the slideshow's left edge used the same token. */
html[data-theme="light"] .dc-root{ background:#000; box-shadow:0 calc(-1 * var(--header-wrap-h, 90px)) 0 0 #000; }
html[data-theme="light"] .dc-edge-fade{
  background:linear-gradient(90deg, #000 0, rgba(0,0,0,.72) 3px, rgba(0,0,0,.38) 7px, rgba(0,0,0,.12) 11px, rgba(0,0,0,0) 16px);
}
/* ===== END SLIDESHOW BLACK ===== */

/* ===== THE SLIDESHOW STAYS PUT WHILE THE HEADER TUCKS AND UNTUCKS (2026-11-24) =====
   paintShift() (app.js) slides the header up and down with the mini bar and used to slide the hero panel with it, by the same amount. That
   moved the slideshow's bottom edge up off the screen for ~0.5s when coming back to the main page (a white slit in white mode) and, after
   the first fix, opened a gap at the top. The slideshow now simply stays where it is at rest: it already reaches up behind the see-through
   header, so nothing is exposed when the header moves. (An inline transform loses to !important.) */
html[data-theme="light"] .panel-hero{ transform:none !important; }
/* ===== END SLIDESHOW STAYS PUT ===== */

/* ===== WHITE MODE: ONE PILL BEHIND THE THREE BOTTOM-RIGHT BUTTONS (2026-11-24) =====
   Deals, package and settings are plain gold icons (no outline, no per-button padding) on ONE white pill that holds all three. Sizes and positions are
   EXACTLY dark mode's (styles.css: 34px buttons, 8px gaps, pair 56px up, gear 14px up, centred in the 40px page-edge gutter); white mode only recolours.
   The pill is the rail's ::before, as wide as that gutter (40px: the 34px buttons with 3px each side, so it ends at the screen edge instead of running
   off it) and stretched down over the settings gear (a separate fixed button 42px lower: 8px gap + 34px), with the same 3px above and below.
   HOVER changes nothing about the box: the Deals icon gets bolder (the shared rule in styles.css, stroke 2.1px) and the gear fills in, in gold. */
html[data-theme="light"] .side-rail-quick .side-rail-icon,
html[data-theme="light"] .side-rail-quick .side-rail-icon:hover,
html[data-theme="light"] .side-rail-quick:hover .side-rail-icon,
html[data-theme="light"] .side-rail-quick:hover .side-rail-icon:hover,
html[data-theme="light"] .side-rail-quick:hover .side-rail-icon:not(:hover),
html[data-theme="light"] .settings-gear,
html[data-theme="light"] .settings-gear:hover{
  background:transparent !important; background-image:none !important; border:0 !important; box-shadow:none !important;
  color:var(--gold-deep); transition:color .25s ease;
}
html[data-theme="light"] .settings-gear:hover{ color:#fcc419; }          /* the gear fill (styles.css: .gear-fill / .gear-dot take currentColor) fills in the ALL button's gold (--btn-bg) */
html[data-theme="light"] .side-rail-quick .side-rail-icon svg, html[data-theme="light"] .settings-gear svg{ filter:none; }
html[data-theme="light"] .side-rail-quick::before{
  content:""; position:absolute; z-index:-1; left:50%; transform:translateX(-50%); top:-3px;
  width:40px; height:calc(100% + 42px + 6px);           /* the rail's own height, down over the gear (42px = the 8px gap + the 34px gear), plus 3px at each end */
  background:#ffffff; border-radius:999px; pointer-events:none;
}
/* The column fades in and out WITHOUT the 12px sideways slide (styles.css parks it 12px to the right while hidden, like the Filters tab does to the left).
   The pill is flush with the screen edge, so while it slid the screen edge clipped it: a half pill with a squared-off side, visible mid-fade over the
   slideshow. In white mode it is an opacity-only fade, same .3s timing as the Filters tab. */
html[data-theme="light"] .side-rail-quick,
html[data-theme="light"] #settingsRailBtn.settings-gear{ transform:none !important; }
/* THE SQUARE UNDER THE PILL: the old "white, gold border" rule for the column (above, ~line 153) still gave the rail ITSELF a white background and the
   gold sweep image — a 34x76 square with square corners, sitting under the rounded pill and showing at its ends and mid-fade. The pill (::before) is the
   only white shape now; the rail and the gear paint nothing of their own. */
html[data-theme="light"] .side-rail-quick,
html[data-theme="light"] .side-rail-quick:hover,
html[data-theme="light"] #settingsRailBtn.settings-gear,
html[data-theme="light"] #settingsRailBtn.settings-gear:hover{ background:transparent !important; background-color:transparent !important; background-image:none !important; border-color:transparent !important; box-shadow:none !important; }
/* THE ICONS are a touch darker than the ALL button's gold (#fcc419 -> #eeb10a, asked for after the first pass at an exact match), still well short of the dark text gold (--gold-deep #b88100). */
html[data-theme="light"] .side-rail-quick .side-rail-icon,
html[data-theme="light"] .side-rail-quick .side-rail-icon:hover,
html[data-theme="light"] .side-rail-quick:hover .side-rail-icon,
html[data-theme="light"] .side-rail-quick:hover .side-rail-icon:hover,
html[data-theme="light"] .side-rail-quick:hover .side-rail-icon:not(:hover),
html[data-theme="light"] .settings-gear,
html[data-theme="light"] .settings-gear:hover{ color:#eeb10a !important; }
/* ===== END WHITE MODE PILL =====

/* ===== THE BOUNCE AT THE TOP OF THE PRODUCTS SHOWS MORE OF THE DEPARTMENT BAR, NOT AN EMPTY BAND (2026-11-24) =====
   Pulling past the top of the products (the bump stop) slides the sticky department bar down with the grid, and the gap that opens between the
   header and the bar showed the panel behind them (a grey fade). The bar's own white strip (.dept-bar::before, the one with the gold rule under
   it) now reaches 400px up, so the gap is simply more of the bar, and the gold rule stays at its bottom. It sits behind the header and the
   panel's own scroll box clips it at the top of the screen. */
html[data-theme="light"] body:not(.is-swiping) .dept-bar.is-stuck:not(.dept-bar-docked)::before{ top:-400px; }
/* Only while the page is resting on the products: body.is-swiping is on for the whole trip between the main page and the products, and the
   extension was faintly visible over the slideshow on the way back to main. */
/* ===== END BOUNCE ===== */

/* ===== PULLING THE MAIN PAGE DOWN SHOWS BLACK ABOVE THE SLIDESHOW, NOT WHITE (2026-11-24) =====
   A swipe up on the main page stretches the page (the browser's elastic bounce, which is left alone: it is also what gives the products their bump
   stop) and the colour BEHIND the page shows above the slideshow. In white mode that is <html>'s background, white, so it read as a gap. While the
   main page is showing (not at the products) <html> is black, the slideshow's own backdrop, so the stretch just looks like more of the slideshow's
   dark edge behind the see-through header. At the products it is white again, so their bump stop is exactly as before. */
html[data-theme="light"]:has(body:not(.at-shop)){ background:#000; }
/* ===== END PULL BLACK ===== */

/* ===== THE DEPARTMENT BAR KEEPS ITS WHITE PADDING THROUGH THE WHOLE SWIPE (2026-11-24) =====
   The white strip behind the chips (.dept-bar::before, with the gold rule under it) only came on once the bar counted as "stuck", which is
   late in the swipe, so mid-swipe the chips floated with no padding. Held on for the whole trip (body.is-swiping), the same look as when stuck. */
html[data-theme="light"] body.is-swiping .dept-bar:not(.dept-bar-docked)::before{
  opacity:1; box-shadow:0 1px 0 rgba(242,179,0,.55), 0 6px 18px -10px rgba(60,48,20,.25);
}
/* ===== END DEPT BAR PADDING ===== */

/* ===== NO GREY GHOST OF THE SLIDESHOW'S BACKDROP DURING THE SWIPE (2026-11-24) =====
   The slideshow's black backdrop (.dc-root, there so a SLIDE CHANGE fades through black) is part of what fades out when you swipe to the products, so
   in the last stretch (opacity under ~10%) it showed as a faint grey rectangle above the products. A swipe never changes slides, so the backdrop is
   simply off while the page is mid-swipe (body.is-swiping); the slides have their own backgrounds, so nothing shows through at the start. */
html[data-theme="light"] body.is-swiping .dc-root{ background:transparent; box-shadow:none; }
/* ===== END NO GREY GHOST ===== */

/* ===== THE FILTERS TAB'S CLOSE ARROW WAS WHITE ON WHITE (2026-11-24) =====
   With the panel open the tab shrinks to an arrow-only tab. Its arrow is an SVG chevron drawn in white (styles.css) for the black tab of dark mode;
   white mode paints the tab white, so only the gold outline was left, a bare bracket beside "Clear all". Same shape, drawn in gold here, and the
   hover inversion (which turned it dark-on-dark) is off. */
html[data-theme="light"] .filters-tab.open .filters-tab-chevron{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12'%3E%3Cpath d='M5.75 1 1.25 6 5.75 11' fill='none' stroke='%23d89c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-theme="light"] .filters-tab.open:hover .filters-tab-chevron{ filter:none; }
/* ===== END FILTERS TAB ARROW ===== */

/* ===== THE PRODUCTS BESIDE THE OPEN FILTERS PANEL SIT ON A FLAT GREY, NOT THE WHITE-EDGED BACKDROP (2026-11-24) =====
   With the panel open only a sliver of the products shows (about 80px on a phone). The page backdrop is a horizontal gradient that is WHITE at both
   edges, so across that sliver it was white against the white panel and the white cards, and the first card's rounded corner showed up as a hazy
   white blob with a curved edge right beside the panel. A flat grey (the backdrop's middle) gives the cards their normal edge. */
html[data-theme="light"]:has(.page-shift.filters-open) #panelShop{
  --page-bg:linear-gradient(#f0f0f0, #f0f0f0);
  /* No 48px white-to-grey blend under the strip: against the grey it read as a haze with a curved edge. And the white strip stops 2px short of --fade-h:
     the docked bar's gold rule is drawn just BELOW the bar (its box-shadow), and --fade-h reaches 2px past the bar, so the strip showed as a 1px white
     line under the rule. Ending it at the bar, the rule sits straight on the grey. */
  background-size:100% calc(var(--fade-h) - 2px), 100% 0, 100% calc(100% - var(--fade-h) + 2px);
}
/* ===== END FILTERS-OPEN BACKDROP ===== */

/* ===== CLEAR ALL AND THE CLOSE TAB ARE ONE BAR (2026-11-24) =====
   The footer's Clear all button runs the whole way to the panel's right edge, where the small close tab starts (the tab has no left edge), so the two read as
   one piece: Clear all's right edge and right corners are open, its top and bottom outline run straight into the tab's.
   - Nothing filtered (button disabled, dimmed): the outline is the pale resting line and turns gold only over its last 22px, the stretch that meets the tab.
   - Any filter on (button enabled): the outline is plain gold all the way, like the tab's.
   The dim is done with colours, not opacity (opacity would dim the gold end too).
   - The tab's fill runs from grey at the seam with Clear all to white on its far side (an edge between the two buttons). */
/* --cr-a is the outline's PALE colour. Gradients cannot be transitioned, but a registered colour variable can: ONE gradient is built from --cr-a, and clicking a
   filter (button enabled) takes --cr-a from the faded beige to gold over .4s, so the whole outline (the ramp collapses into plain gold) and the label colour fade
   together instead of jumping. */
@property --cr-a{ syntax:'<color>'; inherits:false; initial-value:#ece4c6; }
html[data-theme="light"] .filters-foot{ padding-right:0; }
html[data-theme="light"] .filters-foot #filtersReset,
html[data-theme="light"] .filters-foot #filtersReset:not(:disabled):hover,
html[data-theme="light"] .filters-foot #filtersReset:disabled{
  --cr-a:#f2b300;                                   /* enabled: plain gold all the way */
  border:2px solid transparent; border-right-width:0; border-radius:8px 0 0 8px;
  background-color:transparent;
  background-image:linear-gradient(#ffffff, #ffffff), linear-gradient(90deg,
    var(--cr-a) 0, var(--cr-a) calc(100% - 48px),
    color-mix(in srgb, #f2b300 15%, var(--cr-a)) calc(100% - 38px),
    color-mix(in srgb, #f2b300 50%, var(--cr-a)) calc(100% - 26px),
    color-mix(in srgb, #f2b300 85%, var(--cr-a)) calc(100% - 14px),
    #f2b300 calc(100% - 4px));                      /* disabled: a soft 48px ramp, finished 4px before the edge so the last stretch is plain gold like the tab's line */
  background-origin:padding-box, border-box; background-clip:padding-box, border-box;
  background-repeat:no-repeat; background-position:0 0, 0 0; background-size:100% 100%, 100% 100%;
  opacity:1;
  transition:--cr-a .4s ease, color .4s ease;
}
html[data-theme="light"] .filters-foot #filtersReset:disabled{
  --cr-a:#ece4c6;   /* faded while nothing is filtered */
  color:#b6b6b6;
}
/* The close tab is ONE smooth gradient (the ramp takes its left 25%, the bright white the right 75%): the page backdrop's darker white (#f0f0f0, the same as the grey beside it) on its LEFT, at the seam
   with Clear all, to the panel's bright white (#ffffff) on its RIGHT. Nothing else: no shadow, no short grey strip (that read as a smudge at the seam). */
html[data-theme="light"] .filters-tab.open{ background:linear-gradient(90deg, #f0f0f0 0%, #ffffff 25%, #ffffff 100%) !important; box-shadow:none !important; }   /* one smooth ramp over the left 25%, then plain bright white for the right 75% */
/* ===== END CLEAR ALL + TAB ===== */
