/* ==========================================================================
   otto-skin.css — the marketplace skin

   Loads AFTER shop.css and changes nothing on its own: every rule is scoped to
   [data-skin="v2"] on the <html> element. Remove that one attribute and the
   site is exactly as it was, without touching a stylesheet.

   Most of the work is done by redefining shop.css's own custom properties.
   That file is written in var(--ink), var(--leaf), var(--line) and so on
   throughout, so changing the tokens recolours pages this skin has never
   heard of — which is also what makes a dark theme possible across all 45
   pages rather than the two that were redrawn.

   The exceptions are the handful of places shop.css hard-codes #fff. Those
   are listed explicitly below, because a token cannot reach them.

   Colours are Otto's own: the logo green (#349c38) with the darker #237a28
   doing the UI work where white text has to sit on it, and the amber price
   flag. Nothing new was invented.
   ========================================================================== */

/* ------------------------------------------------------------ 1. tokens */

:root[data-skin="v2"] {
  /* The page is no longer white. Cards sit on a tint, which is what makes a
     dense grid read as a grid rather than as one undifferentiated sheet. */
  --paper:      #eef2ef;
  --wash:       #e5ebe6;
  --surface:    #ffffff;          /* cards, panels — new, see section 2 */
  --sunken:     #f4f7f4;          /* image wells inside cards */

  --ink:        #14201b;
  --ink-soft:   #3d4a44;
  --muted:      #5a6861;
  --faint:      #66736c;
  --line:       #dde4df;
  --line-firm:  #c7d0c9;

  --leaf-bright:#349c38;
  --leaf:       #237a28;
  --leaf-deep:  #17591c;
  --leaf-soft:  #e8f4e9;

  --flag:       #f2b705;
  --flag-deep:  #7a5c00;
  --flag-soft:  #fdf3d4;

  --alert:      #a32b2b;
  --alert-soft: #fbeceb;

  --head-bg:    #237a28;
  --head-ink:   #ffffff;
  --head-sub:   #cfe8d2;

  --shadow:     0 1px 2px rgba(20,32,27,.06);
  --shadow-lift:0 2px 10px rgba(20,32,27,.12);
}

:root[data-skin="v2"][data-theme="dark"] {
  color-scheme: dark;
  --paper:      #0d1511;
  --wash:       #111a15;
  --surface:    #161f1a;
  --sunken:     #121b16;

  --ink:        #e7efe9;
  --ink-soft:   #c2d0c7;
--muted:#a2b3a8;
--faint:#9aaca1;
  --line:       #25312a;
  --line-firm:  #324037;

  --leaf-bright:#4fd058;
  --leaf:       #58d861;
  --leaf-deep:  #7ee495;
  --leaf-soft:  #12301a;

  --flag:       #f2b705;
  --flag-deep:  #ffd979;
  --flag-soft:  #2d2410;

  --alert:      #ff7b7b;
  --alert-soft: #2e1618;

  --head-bg:    #0f2a16;
  --head-ink:   #e9f4ec;
  --head-sub:   #a9cfb3;

  --shadow:     0 1px 2px rgba(0,0,0,.5);
  --shadow-lift:0 2px 12px rgba(0,0,0,.6);
}

@media (prefers-color-scheme: dark) {
  :root[data-skin="v2"]:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0d1511; --wash: #111a15; --surface: #161f1a; --sunken: #121b16;
    --ink: #e7efe9; --ink-soft: #c2d0c7; --muted: #a2b3a8; --faint: #9aaca1;
    --line: #25312a; --line-firm: #324037;
    --leaf-bright: #4fd058; --leaf: #58d861; --leaf-deep: #7ee495; --leaf-soft: #12301a;
    --flag-deep: #ffd979; --flag-soft: #2d2410;
    --alert: #ff7b7b; --alert-soft: #2e1618;
    --head-bg: #0f2a16; --head-ink: #e9f4ec; --head-sub: #a9cfb3;
    --shadow: 0 1px 2px rgba(0,0,0,.5); --shadow-lift: 0 2px 12px rgba(0,0,0,.6);
  }
}

/* ----------------------------------- 2. the surfaces shop.css hard-codes */

[data-skin="v2"] .card,
[data-skin="v2"] .panel,
[data-skin="v2"] .grid,
[data-skin="v2"] .sheet,
[data-skin="v2"] .box,
[data-skin="v2"] .board,
[data-skin="v2"] .promises,
[data-skin="v2"] .rail,
[data-skin="v2"] .order-card,
[data-skin="v2"] .voucher-box,
[data-skin="v2"] .gallery-main,
[data-skin="v2"] .buy-dock,
[data-skin="v2"] .hunt-list { background: var(--surface); }

[data-skin="v2"] .form-control,
[data-skin="v2"] .form-select,
[data-skin="v2"] input[type="text"],
[data-skin="v2"] input[type="email"],
[data-skin="v2"] input[type="tel"],
[data-skin="v2"] input[type="search"],
[data-skin="v2"] input[type="password"],
[data-skin="v2"] input[type="number"],
[data-skin="v2"] textarea,
[data-skin="v2"] select {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-firm);
}
[data-skin="v2"] table { color: var(--ink); }

/* --------------------------------------------------------- 3. the strip */

[data-skin="v2"] .topline { background: #0a120d; color: #c5d4cb; font-size: 12.5px; }
[data-skin="v2"] .topline a { color: #e8f2ec; }
[data-skin="v2"] .topline a:hover { color: #fff; }

/* ------------------------------------------------------- 4. the masthead

   Solid green rather than white. It is the single change that makes the shop
   read as a shop from the first glance, and it gives the search box somewhere
   to sit.                                                                  */

[data-skin="v2"] .masthead {
  background: var(--head-bg);
  border-bottom: 0;
  color: var(--head-ink);
}
/* The logo is a PNG, so it cannot be recoloured — the white one ships in the
   same folder and is swapped in here. */
[data-skin="v2"] .masthead .brand img { content: url("../img/logo-white.png"); }

[data-skin="v2"] .masthead .hunt { background: none; border: 0; box-shadow: none; }
[data-skin="v2"] .masthead .hunt input {
  background: #fff;
  color: #14201b;
  border: 0;
  border-radius: 4px 0 0 4px;
  padding: .72rem .9rem;
}
[data-skin="v2"] .masthead .hunt input::placeholder { color: #7b877f; }
[data-skin="v2"] .masthead .hunt button {
  background: var(--leaf-bright);
  color: #06230a;
  border: 0;
  border-radius: 0 4px 4px 0;
  padding: 0 1.15rem;
}
[data-skin="v2"] .masthead .hunt button:hover { background: #41b346; }

[data-skin="v2"] .masthead .head-act { color: var(--head-ink); border-radius: 4px; }
[data-skin="v2"] .masthead .head-act:hover { background: rgba(255,255,255,.13); }
[data-skin="v2"] .masthead .head-act svg { color: var(--head-ink); }
[data-skin="v2"] .masthead .tally { background: var(--alert); color: #fff; }
[data-skin="v2"] .masthead .burger span { background: var(--head-ink); }

/* The theme switch, added to the masthead by the installer. */
[data-skin="v2"] .lamp {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 4px;
  background: none;
  color: var(--head-ink);
  cursor: pointer;
  margin-left: .35rem;
}
[data-skin="v2"] .lamp:hover { background: rgba(255,255,255,.13); }
[data-skin="v2"] .lamp svg { width: 17px; height: 17px; }
[data-skin="v2"] .lamp .moon { display: none; }
[data-skin="v2"][data-theme="dark"] .lamp .sun { display: none; }
[data-skin="v2"][data-theme="dark"] .lamp .moon { display: block; }
@media (prefers-color-scheme: dark) {
  [data-skin="v2"]:not([data-theme="light"]) .lamp .sun { display: none; }
  [data-skin="v2"]:not([data-theme="light"]) .lamp .moon { display: block; }
}

[data-skin="v2"] .aisles { background: var(--leaf-deep); }
[data-skin="v2"] .aisles a { color: #d6ecda; }
[data-skin="v2"] .aisles a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* -------------------------------------------------- 5. density: the grid

   Six a row on a laptop, three on a phone. This is the change the whole
   redesign turns on — the old grid auto-filled at 200px, which gave four
   large cards and a page that felt empty.                                  */

[data-skin="v2"] .grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  background: none;
  padding: 0;
}
@media (max-width: 1180px) { [data-skin="v2"] .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 980px)  { [data-skin="v2"] .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px)  { [data-skin="v2"] .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

[data-skin="v2"] .card {
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  transition: border-color .15s ease;
}
[data-skin="v2"] .card:hover { border-color: var(--leaf-bright); transform: none; box-shadow: var(--shadow-lift); }
[data-skin="v2"] .card-shot { background: var(--sunken); border-radius: 6px 6px 0 0; }
[data-skin="v2"] .card-body { padding: .55rem .6rem .6rem; }
[data-skin="v2"] .card-brand { font-size: 10.5px; letter-spacing: .05em; color: var(--faint); }
[data-skin="v2"] .card-name {
  font-size: 12.5px;
  line-height: 1.33;
  min-height: 2.66em;
  color: var(--ink);
}
[data-skin="v2"] .card-foot { margin-top: .3rem; gap: .45rem; align-items: baseline; }
[data-skin="v2"] .card .flag {
  background: none;
  color: var(--ink);
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}
[data-skin="v2"] .card .flag .cur { font-size: .66em; color: var(--muted); font-weight: 600; margin-right: .18em; }
[data-skin="v2"] .card .was { font-size: 11.5px; color: var(--faint); }
[data-skin="v2"] .card .ribbon { background: var(--alert); color: #fff; font-size: 11px; border-radius: 3px; }
[data-skin="v2"] .card .btn { font-size: 12px; padding: .42rem .5rem; }

@media (max-width: 760px) {
  [data-skin="v2"] .card-name { font-size: 11px; min-height: 2.6em; }
  [data-skin="v2"] .card .flag { font-size: 12.5px; }
  [data-skin="v2"] .card .was { font-size: 10px; }
  [data-skin="v2"] .card-body { padding: .45rem .45rem .5rem; }
  [data-skin="v2"] .card .btn { font-size: 10.5px; padding: .35rem .3rem; }
  [data-skin="v2"] .card-brand { font-size: 9.5px; }
}

/* ----------------------------------------------------------- 6. the band */

[data-skin="v2"] .band { padding-block: 1.1rem; }
[data-skin="v2"] .band.wash { background: var(--wash); }
[data-skin="v2"] .band-head { margin-bottom: .75rem; align-items: baseline; }
[data-skin="v2"] .band-head h2,
[data-skin="v2"] .band-head .h4 { font-size: 1.15rem; }

/* ----------------------------------------------------------- 7. buttons */

[data-skin="v2"] .btn { border-radius: 4px; }
[data-skin="v2"] .btn-leaf { background: var(--leaf-bright); border-color: var(--leaf-bright); color: #06230a; }
[data-skin="v2"] .btn-leaf:hover { background: var(--leaf); border-color: var(--leaf); color: #fff; }
[data-skin="v2"] .btn-line { border-color: var(--line-firm); color: var(--ink); background: none; }
[data-skin="v2"] .btn-line:hover { background: var(--leaf-soft); border-color: var(--leaf-bright); color: var(--ink); }

/* -------------------------------------------------- 8. the service strip

   Otto does not do free delivery and does not take cash on delivery, so
   neither is claimed anywhere in this skin.                                */

[data-skin="v2"] .promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
[data-skin="v2"] .promise { padding: .85rem 1rem; margin: 0; gap: .7rem; align-items: center; }
[data-skin="v2"] .promise + .promise { border-left: 1px solid var(--line); }
[data-skin="v2"] .promise svg { color: var(--leaf-bright); width: 22px; height: 22px; }
[data-skin="v2"] .promise strong { font-size: 13px; }
[data-skin="v2"] .promise span { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  [data-skin="v2"] .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-skin="v2"] .promise:nth-child(3) { border-left: 0; }
  [data-skin="v2"] .promise:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  [data-skin="v2"] .promises { grid-template-columns: minmax(0, 1fr); }
  [data-skin="v2"] .promise + .promise { border-left: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------- 9. board */

[data-skin="v2"] .board { border-radius: 8px; overflow: hidden; }
[data-skin="v2"] .board img { aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 760px) { [data-skin="v2"] .board img { aspect-ratio: 16 / 9; } }

/* ------------------------------------------------- 10. panels and forms */

[data-skin="v2"] .panel { border-radius: 8px; box-shadow: var(--shadow); }
[data-skin="v2"] .panel-head { background: var(--sunken); }
[data-skin="v2"] .notice { border-radius: 6px; }
[data-skin="v2"] .chip { border-color: var(--line-firm); color: var(--ink); }

/* ------------------------------------------------------- 11. the footer */

[data-skin="v2"] .foot { background: #0a120d; margin-top: 1.5rem; }
[data-skin="v2"] .foot .play-badge img { border-radius: 5px; }

/* ----------------------------------------------- 12. the product page */

[data-skin="v2"] .gallery-main { border: 1px solid var(--line); border-radius: 8px; }
[data-skin="v2"] .gallery-strip img,
[data-skin="v2"] .mini-shot { background: var(--sunken); border-radius: 5px; }
[data-skin="v2"] .spec-table th { color: var(--muted); }
[data-skin="v2"] .price-row .flag { background: none; color: var(--ink); padding: 0; font-size: 1.9rem; }
[data-skin="v2"] .price-row .flag .cur { font-size: .45em; color: var(--muted); vertical-align: .2em; }
[data-skin="v2"] .price-row .was { color: var(--faint); }

/* ------------------------------------------------------ 13. the deck

   The homepage's top block: the department list that is always there, the
   banner, and two standing offers beside it. The markup comes from
   index.php; this is only its shape.                                      */

[data-skin="v2"] .deck {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 246px;
  gap: 12px;
  align-items: start;
  padding-top: 1rem;
}
[data-skin="v2"] .deck-cats {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
}
[data-skin="v2"] .deck-cats a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: 4px; font-size: 13px; color: var(--ink);
}
[data-skin="v2"] .deck-cats a:hover { background: var(--leaf-soft); color: var(--leaf); }
[data-skin="v2"] .deck-cats em { font-style: normal; font-size: 11px; color: var(--faint); }
[data-skin="v2"] .deck-cats .all { color: var(--leaf); font-weight: 600; }

[data-skin="v2"] .deck-side { display: grid; gap: 12px; }
[data-skin="v2"] .deck-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: block;
  color: var(--ink);
}
[data-skin="v2"] .deck-tile:hover { border-color: var(--leaf-bright); }
[data-skin="v2"] .deck-tile b { display: block; font-size: 13.5px; margin-bottom: 2px; }
[data-skin="v2"] .deck-tile span { display: block; font-size: 12px; color: var(--muted); }
[data-skin="v2"] .deck-tile i {
  display: block; font-style: normal; margin-top: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--alert);
}

@media (max-width: 1180px) {
  [data-skin="v2"] .deck { grid-template-columns: 200px minmax(0, 1fr); }
  [data-skin="v2"] .deck-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  [data-skin="v2"] .deck { grid-template-columns: minmax(0, 1fr); }
  [data-skin="v2"] .deck-cats { display: none; }
}
@media (max-width: 520px) {
  [data-skin="v2"] .deck-side { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  [data-skin="v2"] * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------- 14. the badge and the heart

   At six cards a row there is not room for "BLACK NOVEMBER −17%" and the save
   button on the same line, so the badge is capped short of the heart and
   truncates rather than running underneath it. */

[data-skin="v2"] .card .bf-badge,
[data-skin="v2"] .card .ribbon {
  font-size: 9.5px;
  padding: 2px 6px;
  max-width: calc(100% - 44px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .03em;
}
[data-skin="v2"] .card .card-save { width: 28px; height: 28px; }
[data-skin="v2"] .card .card-save svg { width: 15px; height: 15px; }
@media (max-width: 760px) {
  [data-skin="v2"] .card .bf-badge,
  [data-skin="v2"] .card .ribbon { font-size: 8.5px; max-width: calc(100% - 36px); }
  [data-skin="v2"] .card .card-save { width: 24px; height: 24px; }
}

/* The department bar keeps a solid band of its own in dark mode; --leaf-deep
   is doing duty as a surface tint there and would make it vanish. */
[data-skin="v2"][data-theme="dark"] .aisles { background: #10291a; }
@media (prefers-color-scheme: dark) {
  [data-skin="v2"]:not([data-theme="light"]) .aisles { background: #10291a; }
}

/* ======================================================================
   15. EVERY surface shop.css paints white

   The first pass listed the obvious ones and missed two thirds. shop.css
   sets a light background in 27 rules, and in dark mode each of them keeps
   white while the text on it turns pale — which is why the category drawer
   read as "too faint". These are all of them.
   ====================================================================== */

[data-skin="v2"] .drawer,
[data-skin="v2"] .shelf,
[data-skin="v2"] .tile,
[data-skin="v2"] .promise,
[data-skin="v2"] .filters,
[data-skin="v2"] .order-card,
[data-skin="v2"] .buy-dock,
[data-skin="v2"] .share-btn,
[data-skin="v2"] .voucher-row button,
[data-skin="v2"] .btn-line { background: var(--surface); color: var(--ink); }

[data-skin="v2"] .card-shot,
[data-skin="v2"] .mini-shot,
[data-skin="v2"] .opt,
[data-skin="v2"] .gallery-strip button,
[data-skin="v2"] .hunt-opt img { background: var(--sunken); }

[data-skin="v2"] .input,
[data-skin="v2"] .field input,
[data-skin="v2"] .field select,
[data-skin="v2"] .field textarea,
[data-skin="v2"] .listing-bar select,
[data-skin="v2"] .station-find input[type="search"],
[data-skin="v2"] .station-find select,
[data-skin="v2"] .share-mail input,
[data-skin="v2"] .share-mail textarea {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-firm);
}
[data-skin="v2"] .hunt input:focus { background: #fff; color: #14201b; }

/* The drawer's own text. --leaf-deep is a dark surface tint in the dark
   theme, so the group headings had all but vanished. */
[data-skin="v2"] .drawer-group .eyebrow { color: var(--leaf); }
[data-skin="v2"] .drawer-group a { color: var(--ink-soft); }
[data-skin="v2"] .drawer-group a:hover { color: var(--leaf); text-decoration: underline; }
[data-skin="v2"] .drawer { border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
[data-skin="v2"] .drawer-foot { background: var(--flag); color: #14201b; }
[data-skin="v2"] .shelf-cat, [data-skin="v2"] .shelf-row, [data-skin="v2"] .shelf-subs { color: var(--ink); }
[data-skin="v2"] .shelf-subs a, [data-skin="v2"] .shelf-row a { color: var(--ink-soft); }
[data-skin="v2"] .shelf-title { color: var(--ink); }

/* ======================================================================
   16. The department list opens its subcategories on hover

   The flyout is a sibling of the link, not a child, so moving the pointer
   from one to the other does not pass over anything that would close it.
   :focus-within keeps it reachable from the keyboard.
   ====================================================================== */

[data-skin="v2"] .deck-cats { position: relative; }
[data-skin="v2"] .dc-item { position: static; }

[data-skin="v2"] .dc-flyout {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 6px;
  min-width: 420px;
  max-width: 560px;
  max-height: 440px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
  padding: 14px 16px;
  z-index: 60;
  display: none;
  columns: 2;
  column-gap: 22px;
}
[data-skin="v2"] .dc-item:hover .dc-flyout,
[data-skin="v2"] .dc-item:focus-within .dc-flyout { display: block; }

[data-skin="v2"] .dc-group { break-inside: avoid; margin-bottom: .85rem; }
[data-skin="v2"] .dc-group b {
  display: block;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: .25rem;
}
[data-skin="v2"] .dc-flyout a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: .16rem 0;
  font-size: 13px;
  color: var(--ink-soft);
}
[data-skin="v2"] .dc-flyout a:hover { color: var(--leaf); text-decoration: underline; }
[data-skin="v2"] .dc-flyout a em { font-style: normal; font-size: 11px; color: var(--faint); }

/* The item under the pointer should not be the faintest thing on screen. */
[data-skin="v2"] .deck-cats a:hover,
[data-skin="v2"] .dc-item:hover > a {
  background: var(--leaf-soft);
  color: var(--leaf);
  font-weight: 600;
}
[data-skin="v2"] .dc-item:hover > a em { color: var(--leaf); }

@media (max-width: 1180px) {
  [data-skin="v2"] .dc-flyout { min-width: 320px; columns: 1; }
}
@media (max-width: 860px) { [data-skin="v2"] .dc-flyout { display: none !important; } }

/* ======================================================================
   17. The greens that are backgrounds, not text

   shop.css uses --leaf as a text colour 15 times and as a background 10, and
   --leaf-deep as text 16 times and as a background twice. One value cannot
   serve both on a dark page: bright enough to read as a link is far too
   bright to put white text on.

   So in the dark theme both tokens are set bright, for their majority role,
   and the handful of rules that paint with them are listed here instead.
   That is what the washed-out links were: --leaf-deep had been set to a dark
   surface tint, which made .band-head a contrast 1.34 against the page.
   ====================================================================== */

[data-skin="v2"][data-theme="dark"] .pager .on,
[data-skin="v2"][data-theme="dark"] .shelf-top,
[data-skin="v2"][data-theme="dark"] .track-step.done .track-bar,
[data-skin="v2"][data-theme="dark"] .order-card-track span.on,
[data-skin="v2"][data-theme="dark"] .share-btn.s-email:hover,
[data-skin="v2"][data-theme="dark"] .share-btn.s-copy.ok {
  background: #1d7f2a;
  color: #ffffff;
  border-color: #1d7f2a;
}
@media (prefers-color-scheme: dark) {
  [data-skin="v2"]:not([data-theme="light"]) .pager .on,
  [data-skin="v2"]:not([data-theme="light"]) .shelf-top,
  [data-skin="v2"]:not([data-theme="light"]) .track-step.done .track-bar,
  [data-skin="v2"]:not([data-theme="light"]) .order-card-track span.on,
  [data-skin="v2"]:not([data-theme="light"]) .share-btn.s-email:hover,
  [data-skin="v2"]:not([data-theme="light"]) .share-btn.s-copy.ok {
    background: #1d7f2a;
    color: #ffffff;
    border-color: #1d7f2a;
  }
}

/* The amber button keeps dark text in both themes. --flag is a background,
   and the skin's dark --ink is nearly white, which left "Add to basket" at
   1.55 against its own amber. */
[data-skin="v2"] .btn-flag,
[data-skin="v2"] .btn-flag:hover { color: #14201b; }

/* Filter labels on the listing pages take --faint through a hard-coded grey
   in shop.css; this brings them back to the token. */
[data-skin="v2"] .filter-set > span,
[data-skin="v2"] .filters label > span,
[data-skin="v2"] .listing-bar span { color: var(--muted); }

/* The listing filter bar: another light background shop.css sets without a
   token, which left its labels at 2.20 in the dark theme. */
[data-skin="v2"] .filter-bar,
[data-skin="v2"] .fb-field,
[data-skin="v2"] .fb-clear { background: var(--surface); color: var(--ink); border-color: var(--line); }
[data-skin="v2"] .fb-field > span { color: var(--muted); }
[data-skin="v2"] .fb-field select,
[data-skin="v2"] .fb-field input { background: var(--surface); color: var(--ink); border-color: var(--line-firm); }

/* ======================================================================
   18. The basket on a phone

   cart.php writes its column widths inline — style="width:130px" on the
   quantity cell, 120px on the price. On a desktop table those are the
   column widths and they are right.

   On a phone shop.css turns the row into a grid of "shot detail" /
   "shot price" / "qty price", where the first column is 68px to match the
   photo. The inline widths survive that, so a 130px stepper is laid into a
   68px track and spills across the price beside it — which is the overlap
   in the screenshot, the quantity buttons sitting underneath the total.

   An inline style can only be beaten with !important, so that is what this
   does, and the stepper gets a row of its own rather than being squeezed
   under the photo.
   ====================================================================== */

@media (max-width: 767px) {
  [data-skin="v2"] .basket-rows tr {
    grid-template-areas:
      "shot detail"
      "shot price"
      "qty  qty";
    row-gap: .35rem;
  }
  [data-skin="v2"] .basket-rows td,
  [data-skin="v2"] .basket-rows .cell-shot,
  [data-skin="v2"] .basket-rows .cell-qty,
  [data-skin="v2"] .basket-rows .cell-price,
  [data-skin="v2"] .basket-rows .cell-bin { width: auto !important; }

  [data-skin="v2"] .basket-rows .cell-qty {
    justify-self: start;
    padding-top: .45rem;
  }
  [data-skin="v2"] .basket-rows .cell-price {
    justify-self: end;
    text-align: right !important;
  }
  /* The remove button is positioned over the row, so the name must stop
     short of it rather than run underneath. */
  [data-skin="v2"] .basket-rows .cell-detail { padding-right: 2.1rem; }
  [data-skin="v2"] .basket-rows .cell-bin { top: .35rem; }

  /* A long product name has to wrap, including one long unbroken word. */
  [data-skin="v2"] .basket-rows .cell-detail a,
  [data-skin="v2"] .basket-rows .cell-detail strong { overflow-wrap: anywhere; }
}

/* ======================================================================
   19. The footer's email form

   Not caused by the skin — it overflows with the skin switched off too —
   but it is 53px of horizontal scroll on the whole page at about 1024px,
   where the four-column footer squeezes the subscribe form and its button
   is pushed past the edge. A grid child defaults to min-width:auto, so it
   refuses to shrink below its contents.
   ====================================================================== */

[data-skin="v2"] .foot-cols > * { min-width: 0; }
[data-skin="v2"] .foot .subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  max-width: 100%;
}
[data-skin="v2"] .foot .subscribe input {
  flex: 1 1 130px;
  min-width: 0;
}
[data-skin="v2"] .foot .subscribe button { flex: 0 0 auto; }
[data-skin="v2"] .foot .play-badge img { max-width: 100%; height: auto; }
