/* ==========================================================================
   Ionix — OC integration bridge (global, loaded LAST).
   Principle: markup stays as the theme ships it (standard .st-* markup); the design
   look is delivered by the design stylesheet (ionix.css) styling the shared
   .st-* classes. This file holds only CSS-level reconciliations that can't
   live in the pristine design files — never markup changes.
   ========================================================================== */

/* --- Token bridge (global palette harmonization) --------------------------
   The base chrome paints itself on the `--color-*` / `--accent`
   token family (tokens.css/schemes.css); the design layer runs on a separate
   `--c-*` family (ionix.css). Any zone the design stylesheet does NOT cover
   (drawer, minicart, add-to-cart modal, cart page, PLP toolbar/pagination,
   forms, alerts) therefore renders on the OLD palette — most visibly the
   electric `--accent:#1E40FF` and the heavier gray-200 borders — reading
   foreign next to the rest of the site. Remap the base token family to the
   design values so every uncovered zone harmonizes at once, without touching
   markup or per-component rules. `:root:root` (0,2,0) outranks the
   base `:root` / `[data-demo]` / `[data-scheme]` definitions, and this file
   loads last. Dark-surface tokens (--color-dark / --color-on-dark*) and the
   star gold are left as-is so dark chrome keeps its contrast. */
:root {
  --color-heading:      var(--c-text);
  --color-text:          var(--c-text);
  --color-text-muted:    var(--c-text-muted);
  --color-surface:       var(--c-card);
  --color-bg:            var(--c-bg);
  --color-border:        var(--c-border);
  --color-border-strong: var(--c-border);
  --color-success:       var(--c-success);
  --color-sale:          var(--c-sale);
}
/* Brand knobs flow one way or the other, never both (that would be a cycle):
   - no colour scheme chosen → the base follows the design palette;
   - a scheme chosen in the theme settings (html[data-scheme], schemes.css) →
     the DESIGN follows the scheme. Before this split the bridge always won and
     silently disabled every scheme. */
:root:not([data-scheme]) {
  --accent:              var(--c-accent);
  --accent-soft:         var(--c-accent-soft);
  /* Hover/pressed shades: the base "fashion" demo config is monochrome
     (--accent-600 #060607, --accent-700 #000), so without these every base
     .st-btn / .btn-st-buy turned black on hover. Design has one darker step. */
  --accent-600:          var(--c-accent-hover);
  --accent-700:          var(--c-accent-hover);
  --color-bg-alt:        var(--c-bg-alt);
}
/* --- Colour roles → every CSS layer ------------------------------------------
   A scheme (schemes.css) defines COLOUR ROLES: --brand-primary / -secondary /
   -accent, chrome (--brand-dark…), optional --brand-sale (vocabulary: skill
   opencart-theme → "Кольорові ролі"). Here the roles are handed to the three
   layers under their old names — which don't match the roles:
     base OC        --accent* / --on-accent / --color-dark…  ← SECONDARY + chrome
     design         --c-accent* / --c-bg-alt                 ← SECONDARY
                    --c-sale*                                ← SALE
     design system  --st-accent* / --st-primary*             ← SECONDARY (its
                    buttons are the "add to cart" family)
   Elements that belong to PRIMARY / ACCENT are wired below (chrome section).
   No scheme: nothing here applies — the design palette as designed. */
:root[data-scheme] {
  --accent:          var(--brand-secondary);
  --accent-600:      var(--brand-secondary-hover);
  --accent-700:      var(--brand-secondary-deep);
  --accent-soft:     var(--brand-secondary-soft);
  --on-accent:       var(--brand-on-secondary);
  --color-dark:      var(--brand-dark);
  --color-bg-dark:   var(--brand-dark-alt);
  --color-bg-alt:    var(--ix-tint);

  --c-accent:        var(--brand-secondary);
  --c-accent-hover:  var(--brand-secondary-hover);
  --c-accent-soft:   var(--brand-secondary-soft);
  --c-bg-alt:        var(--ix-tint);

  --st-accent:       var(--brand-secondary);
  --st-accent-dark:  var(--brand-secondary-hover);
  --st-accent-soft:  var(--brand-secondary-soft);
  --st-on-accent:    var(--brand-on-secondary);
  --st-primary:      var(--brand-secondary);
  --st-primary-dark: var(--brand-secondary-hover);
  --st-primary-light:var(--brand-secondary);
  --st-on-primary:   var(--brand-on-secondary);
  --st-surface-dark: var(--brand-dark-alt);

  /* Ionix kit primitives (ionix-kit.css) -> roles, so the kit's blue/violet follows the scheme:
     primary blue = SECONDARY (actions), violet gradient end = ACCENT, dark = chrome */
  --ix-primary:       var(--brand-secondary);
  --ix-primary-dark:  var(--brand-secondary-deep);
  --ix-primary-light: color-mix(in oklch, var(--brand-secondary) 70%, #fff);
  --ix-secondary:     var(--brand-accent);
  --ix-tint:          var(--brand-bg-alt); /* below: the same tint with 60% less chroma, capped, so warm schemes don't turn the page pink */
  /* buttons carry white text: one hue (a step of the action colour), never a blend of two brand colours */
  --ix-gradient:      linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-secondary-deep) 100%);
  --ix-gradient-r:    linear-gradient(135deg, var(--brand-secondary-deep) 0%, var(--brand-secondary) 100%);
  /* gradient text sits on the dark hero / banner panels: the light 'accent on dark' tone */
  --ix-gradient-text: linear-gradient(135deg, var(--brand-accent-on-dark) 0%, color-mix(in oklch, var(--brand-accent-on-dark) 55%, #fff) 100%);
  --ix-on-primary:    var(--brand-on-secondary);
  --ix-dark:          var(--brand-dark);
  --ix-dark-2:        var(--brand-dark-alt);
  --ix-surface:       color-mix(in oklch, var(--ix-tint) 30%, #fff);
  --ix-surface-2:     color-mix(in oklch, var(--ix-tint) 60%, #fff);

  /* SALE is semantic, not brand: one red for every scheme (shoppers read a
     discount by red, whatever the brand); a scheme overrides it only when that
     red clashes (Signal: the brand is red itself). Strong / soft derive. */
  --c-sale:          var(--brand-sale, oklch(0.55 0.22 25));
  --c-sale-strong:   color-mix(in oklch, var(--c-sale) 85%, #000);
  --c-sale-soft:     color-mix(in oklch, var(--c-sale) 10%, #fff);
  --st-sale:         var(--c-sale);
}
@supports (color: oklch(from red l c h)) {
  :root[data-scheme] {
    --ix-tint:      oklch(from var(--brand-bg-alt) l calc(min(c * .4, .012)) h);
    /* small surfaces (search field, form fields, hovers) stay LIGHT whatever the scheme's band colour is:
       Graphite's stone-coloured bg-alt is fine for a band, too heavy for a field */
    --ix-surface:   oklch(from var(--ix-tint) max(l, .975) c h);
    --ix-surface-2: oklch(from var(--ix-tint) max(l, .955) c h);
  }
}

/* --- Corner radius knob → design layer ---------------------------------------
   theme_ionix_radius sets html[data-radius], but shapes.css only retunes the
   BASE tokens (--radius-*). The design layer rounds via --r-* → --st-radius-*,
   fixed in design-system/settings/tokens.css (6/10/16), so the setting did
   nothing to the design. Retune --st-radius-* per preset too (html[attr] 0,1,1
   beats the tokens' :root). "soft" = small corners (4 / 8 / 12 / 16), "rounded" = the friendly look (8 / 14 / 20 / 28). */
html[data-radius="sharp"]   { --st-radius-sm: 0px; --st-radius: 2px;  --st-radius-lg: 2px;  --st-radius-xl: 2px;  --r-xs: 0px; }
html[data-radius="soft"]    { --st-radius-sm: 4px; --st-radius: 8px;  --st-radius-lg: 12px; --st-radius-xl: 16px; }
html[data-radius="rounded"] { --st-radius-sm: 8px; --st-radius: 14px; --st-radius-lg: 20px; --st-radius-xl: 28px; }
/* Button / field corners knob -> theme_ionix_btn_radius (html[data-btn]); the default pill is the design itself */
/* Lite: pill buttons only (square / soft / round are Ionix Pro) */
html[data-btn="pill"]   { --st-btn-radius: 9999px; }
/* Border lines knob -> theme_ionix_border (html[data-border]). shapes.css only retunes the base --color-border*; the design
   layer reads --ix-border* (--c-border / --c-border-soft / --st-border are mapped to them), so the knob is applied here.
   "default" = the design's own values. */
html[data-border="subtle"]  { --ix-border: #EEF0F4; --ix-border-light: #F6F7F9; --st-border-strong: #E0E3E8; }
html[data-border="defined"] { --ix-border: #BFC4CD; --ix-border-light: #D7DBE2; --st-border-strong: #9AA1AD; }
/* Hero banners hard-coded 14px (ionix-home.css) — follow the knob. */
.st-hero__banner { border-radius: var(--r-lg); }

/* --- Topbar ---------------------------------------------------------------
   The design lays the topbar out via .st-topbar__left / .st-topbar__right; the
   standard markup uses .st-topbar__side (--left/--right). Give it the same flex
   row so items line up as the design intends. */
.st-topbar__side { display: inline-flex; align-items: center; gap: 22px; }

/* --- Header actions -------------------------------------------------------
   Header actions are NOT part of the st_* module set, so the header may vary
   per theme (recorded in the opencart-theme skill). This theme uses the design
   mockup's icon + two-line label. That text ships hidden by default in
   ionix.css (.st-action__text { display:none }), so opt it in here, and hide
   it again on mobile where only the glyph fits. */
.st-header__actions .st-action__text { display: flex; white-space: nowrap; }
@media (max-width: 767px) { .st-header__actions .st-action__text { display: none; } }
/* The base .st-action (components.css) is a fixed 42×42 icon button; the design
   .st-action is auto-width inline-flex but only overrides `display`, so the
   fixed box leaks and the two-line label overflows it, overlapping the next
   action. Reset the box (header actions only — icon buttons elsewhere keep it). */
.st-header__actions .st-action { width: auto; height: auto; font-size: inherit; }
/* The base styles `.st-account__toggle span` directly (layout.css: semibold +
   fs-sm2, specificity class+element) — it beats the design's .st-action__label/
   __value, so the account label ("Login") renders bolder/bigger than its Compare/
   Wishlist/Cart siblings. Re-assert the design typography + icon box for account. */
.st-header__actions .st-account__toggle .st-action__icon { display: grid; }
.st-header__actions .st-account__toggle .st-action__label { font-size: 11px; font-weight: 400; color: var(--c-text-soft); }
.st-header__actions .st-account__toggle .st-action__value { font-size: 13px; font-weight: 600; color: var(--c-text); }

/* --- Icon buttons outside the header (the .st-action leak, inverse case) ---
   .st-action is a header-actions component in the design (ionix.css: relative
   inline-flex, 10px gap, 10px 8px padding), but the base markup also hangs it on
   plain icon buttons — modal/drawer closes and the minicart remove. ionix.css
   arrives via ionix-home.css's @import, i.e. after the bundle, so at equal
   specificity it beats their own rules: `position: relative` drops the modal
   close out of its top-right corner into the flow, and inline-flex + padding
   (no justify-content) shoves the glyph off-centre inside the fixed box. Header
   actions keep the design version; give these three the plain centred box back. */
.st-modal__close,
.st-drawer__close,
.st-minicart__remove { display: grid; place-items: center; gap: 0; padding: 0; }
/* Round again — both ship border-radius:50%, also lost to the design's --r-sm. */
.st-modal__close { position: absolute; border-radius: 50%; }
.st-minicart__remove { border-radius: 50%; }

/* --- Account dropdown menu -----------------------------------------------
   .st-account__menu is base-only markup (the design ships .st-dropdown), so the
   base stylesheet paints it on base tokens and it reads foreign to the design.
   Re-skin to the design's dropdown aesthetic (design tokens, full-width hover). */
.st-account__menu {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(15, 18, 22, 0.12);
  padding: 8px 0;
  min-width: 210px;
}
.st-account__item {
  padding: 9px 18px;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: 0;
}
.st-account__item:hover { background: var(--c-bg-alt); color: var(--c-text); }
.st-account__item i,
.st-account__item .st-icon { font-size: 16px; color: var(--c-text-soft); }
.st-account__sep { border-top-color: var(--c-border-soft); margin: 6px 0; }

/* --- Footer ---------------------------------------------------------------
   The design styles payment chips as .st-pay-icons__icon (text); this theme
   uses real payment icon images, so size them for the footer pay row. */
/* Payment logos: bare PNGs of different native heights (20/26px) and inner margins at
   one 22px height read as uneven type with 6px gaps. Each sits in the design's pay chip
   (ionix.css .st-pay-icons__icon look): same 32px height, logo centred, 8px step;
   centred under the centred copy on phones. */
.st-footer__pay { flex-wrap: wrap; align-items: center; gap: 8px; }
.st-footer__pay-icon {
  box-sizing: border-box; height: 32px; width: auto; min-width: 48px; padding: 7px 10px;
  object-fit: contain; opacity: 1;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
}
@media (max-width: 767.98px) { .st-footer__pay { justify-content: center; } }

/* PDP gallery: product.css paints the photo frame --color-bg-alt, which colour schemes
   retint (Tidewater cream, others their tint) — a coloured band around photos that are
   shot on white and contained. Card white (scheme-neutral) + hairline instead. */
.st-pdp-gallery__main { background: var(--c-card); border: 1px solid var(--c-border-soft); }

/* OC alerts sat flush on the block below (login: warning glued to the card) */
.alert { margin-bottom: 16px; }

/* --- Breadcrumb ------------------------------------------------------------
   The base (components.css) makes .st-breadcrumb uppercase; the design shell is
   normal-case but never resets text-transform, so the base uppercase leaks in
   (inherited). Cancel it so the breadcrumb matches the design. */
.st-breadcrumb__list { text-transform: none; letter-spacing: normal; }
/* Inner pages: the design's breadcrumb is a full-width strip right under the
   menu (html/category.html:133; the PDP uses that markup). The other templates
   keep it as the first child of their page .container, below that container's
   own top padding (24px from account.css / contact.css / …, none on others —
   so no fixed negative margin): drop that padding, draw the divider edge to
   edge (border-image outset is ink overflow: no scrollbar) and keep 24px from
   it to the content. #main in the selectors outranks the per-page id rules. */
#main > .container:has(> .st-breadcrumb:first-child),
#main > .st-page-head:has(> .container > .st-breadcrumb:first-child) { padding-top: 0; }
.container > .st-breadcrumb:first-child {
  margin-bottom: var(--space-6);
  border-image: linear-gradient(var(--c-border), var(--c-border)) 0 0 1 0 / 0 0 1px 0 / 0 100vw;
}
.container > .st-page-head__crumbs:first-child { margin-bottom: 0; } /* .st-page-head__inner pads 24px itself */
/* --- Brand index (product/manufacturer) --------------------------------------
   The template had the bare OC markup (inline letters, Bootstrap rows of plain
   links). Big-store brand page: a letter jump bar, then one block per letter —
   the letter on the left, brand tiles in a grid on the right. (.st-brands is
   taken by the home brands module, hence .st-brand-index.) */
.st-brand-index__title { margin: 0 0 20px; }
.st-brand-index__letters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 28px;
}
.st-brand-index__label { margin-right: 6px; font-size: 13px; color: var(--c-text-muted); }
.st-brand-index__letter {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-card);
  font-size: 14px; font-weight: 600; color: var(--c-text); text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.st-brand-index__letter:hover { border-color: var(--c-text); background: var(--c-text); color: var(--c-card); }
.st-brand-index__group {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 24px;
  padding: 24px 0; border-top: 1px solid var(--c-border-soft);
  scroll-margin-top: 110px; /* clear the sticky header when jumped to */
}
.st-brand-index__group-letter {
  font-family: var(--f-heading); font-size: 28px; font-weight: 700; line-height: 1.1;
  color: var(--c-text);
}
.st-brand-index__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
}
.st-brand-index__item {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-card);
  font-size: 14.5px; font-weight: 500; color: var(--c-text); text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.st-brand-index__item:hover { border-color: var(--c-text); box-shadow: var(--sh-hover); color: var(--c-text); }
.st-brand-index__empty { color: var(--c-text-muted); }
@media (max-width: 575.98px) {
  .st-brand-index__group { grid-template-columns: 1fr; gap: 12px 0; padding: 20px 0; }
  .st-brand-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .st-brand-index__item { min-height: 46px; padding: 0 12px; font-size: 14px; }
}

/* --- Logo carousel (extension/module/carousel) ------------------------------
   The module rendered a bare full-width Swiper flush against the section above,
   with the default blue edge-of-screen arrows and dots over the logos. Now a
   home .st-section (same 48px rhythm) in the container, styled as the design's
   brand strip (ionix-home.css .st-brands): one bordered strip, logo cells
   split by hairlines, logos muted until hovered; small round arrows on the
   strip's edges, no dots. */
.st-carousel-wrap {
  position: relative;
  border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-card);
}
.st-carousel__swiper { overflow: hidden; border-radius: inherit; }
.st-carousel__slide { height: auto; border-right: 1px solid var(--c-border-soft); }
.st-carousel__link { display: grid; place-items: center; height: 100%; min-height: 112px; padding: 20px 24px; }
.st-carousel__img {
  display: block; max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.6; transition: filter 0.2s, opacity 0.2s;
}
.st-carousel__link:hover .st-carousel__img { filter: none; opacity: 1; }
.st-carousel__nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--c-border); border-radius: 50%; background: var(--c-card);
  color: var(--c-text); font-size: 16px; cursor: pointer;
  box-shadow: var(--sh-card); transition: border-color 0.15s, opacity 0.15s;
}
.st-carousel__nav:hover { border-color: var(--c-text); }
.st-carousel__nav--prev { left: -18px; }
.st-carousel__nav--next { right: -18px; }
.st-carousel__nav.swiper-button-disabled { opacity: 0; pointer-events: none; }
@media (max-width: 767.98px) {
  /* Arrows on phones too (user: swipe alone isn't obvious for a logo strip) — inside the
     strip's edges: the desktop -18px offset would hang off a 16px page gutter. */
  .st-carousel__nav { width: 32px; height: 32px; font-size: 14px; }
  .st-carousel__nav--prev { left: 6px; }
  .st-carousel__nav--next { right: 6px; }
  .st-carousel__link { min-height: 88px; padding: 14px 16px; }
  .st-carousel__img { max-height: 48px; }
}

/* --- All categories (product/allcategories) ---------------------------------
   The wall cards had a 4:3 cover image (~280px tall: four categories per screen)
   and showed the OC no_image placeholder full size. Big-store tiles: a compact
   image zone, product shots contained on white, a neutral icon tile when the
   category has no image (controller passes thumb ''), less air under the H1. */
.st-cat-wall__img-wrap { aspect-ratio: auto; height: 168px; padding: 16px; background: var(--c-card); }
.st-cat-wall__img { object-fit: contain; }
.st-cat-wall__img-wrap--empty {
  display: grid; place-items: center;
  margin: 12px 12px 0; padding: 0; height: 156px;
  border-radius: var(--r-md); background: var(--c-bg-alt);
}
.st-cat-wall__placeholder { font-size: 44px; color: var(--c-text-soft); transition: color var(--dur) var(--ease); }
.st-cat-wall__card:hover .st-cat-wall__placeholder { color: var(--c-accent); }
.st-cat-wall__body { border-top: 1px solid var(--c-border-soft); }
.st-cat-wall__img-wrap--empty + .st-cat-wall__body { border-top: 0; }
.st-page-head:has(+ .st-section .st-cat-wall) { padding-bottom: 0; }
.st-page-head + .st-section:has(.st-cat-wall) { padding-top: 0; }
@media (max-width: 575.98px) {
  .st-cat-wall { gap: 12px; }
  .st-cat-wall__img-wrap { height: 120px; padding: 12px; }
  .st-cat-wall__img-wrap--empty { height: 108px; margin: 8px 8px 0; padding: 0; }
  .st-cat-wall__body { padding: 12px; }
}

/* --- Rating stars ------------------------------------------------------------
   The design draws the stars as gradient text "★★★★★" filled to --pct (100% by
   default, meant for JS cards that set it inline) and hides only the .is-on icon
   children. The OC templates render 5 <i class="ph ph-star [is-on]"> — so every
   rating showed 5 full stars + the unlit icons beside them (up to 10 stars).
   Hide all icons and derive --pct from how many are lit (is-on = i ≤ rating). */
.st-rating__stars > i { display: none; }
.st-rating__stars:has(> i) { --pct: 0%; }
.st-rating__stars:has(> i.is-on:nth-of-type(1)) { --pct: 20%; }
.st-rating__stars:has(> i.is-on:nth-of-type(2)) { --pct: 40%; }
.st-rating__stars:has(> i.is-on:nth-of-type(3)) { --pct: 60%; }
.st-rating__stars:has(> i.is-on:nth-of-type(4)) { --pct: 80%; }
.st-rating__stars:has(> i.is-on:nth-of-type(5)) { --pct: 100%; }

/* --- Product comparison (product/compare) ------------------------------------
   Was the bare OC Bootstrap table. Product cards head the columns (remove ×,
   image, name, price, add to cart); attribute groups are band rows; the label
   column is sticky so it stays put while the table scrolls sideways. */
.st-compare__title { margin: 0 0 20px; }
/* As wide as its columns (1–2 products don't stretch over the page), never wider than the page. */
.st-compare { width: fit-content; max-width: 100%; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-card); overflow: hidden; }
.st-compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.st-compare__table { border-collapse: separate; border-spacing: 0; font-size: 14px; }
.st-compare__table th,
.st-compare__table td {
  padding: 12px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--c-border-soft);
}
.st-compare__table td { width: 240px; min-width: 240px; color: var(--c-text); }
.st-compare__table tbody th[scope="row"],
.st-compare__table .st-compare__corner {
  position: sticky; left: 0; z-index: 1;
  width: 200px; min-width: 160px; background: var(--c-card);
  font-weight: 600; color: var(--c-text-muted);
  border-right: 1px solid var(--c-border-soft);
}
.st-compare__table tbody tr:hover > * { background: var(--c-card-alt); }
.st-compare__group > th {
  padding: 10px 16px; background: var(--c-bg-alt);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--c-text);
}
.st-compare__group > th span { position: sticky; left: 16px; }
.st-compare__table tbody tr.st-compare__group:hover > th { background: var(--c-bg-alt); }
/* Product head cards */
.st-compare__table .st-compare__product {
  position: relative; width: 240px; min-width: 240px; padding: 16px;
  font-weight: 400; border-bottom: 1px solid var(--c-border);
}
.st-compare__product > * + * { margin-top: 10px; }
.st-compare__remove {
  position: absolute; top: 10px; right: 10px;
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: var(--c-text-muted); background: var(--c-card); border: 1px solid var(--c-border);
  transition: color 0.15s, border-color 0.15s;
}
.st-compare__remove:hover { color: var(--c-sale); border-color: var(--c-sale); }
.st-compare__product > .st-compare__thumb { display: block; margin-top: 0; }
.st-compare__thumb img { display: block; width: 100%; max-width: 160px; height: 140px; object-fit: contain; object-position: left center; }
.st-compare__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--c-text); text-decoration: none;
}
.st-compare__name:hover { color: var(--c-accent); }
.st-compare__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.st-compare__cart { width: 100%; justify-content: center; }
.st-compare__summary { color: var(--c-text-muted); line-height: 1.5; }
.st-compare__muted { margin-top: 4px; font-size: 12.5px; color: var(--c-text-muted); }
/* Empty state */
.st-compare-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 56px 24px; text-align: center;
  border: 1px dashed var(--c-border); border-radius: var(--r-md); background: var(--c-card);
}
.st-compare-empty__icon { font-size: 44px; color: var(--c-text-soft); }
.st-compare-empty__text { margin: 0; max-width: 46ch; color: var(--c-text-muted); }
@media (max-width: 575.98px) {
  .st-compare__table tbody th[scope="row"], .st-compare__table .st-compare__corner { width: 120px; min-width: 120px; font-size: 13px; }
  .st-compare__table td, .st-compare__table .st-compare__product { min-width: 180px; }
}

/* --- Quantity control ----------------------------------------------------------
   The design box is 52px with align-items:stretch, but the base layer fixes the
   buttons and the input at 46px (components.css) — they stopped 4px short of the
   bottom border. Let them stretch to the box (PDP buy row, cart page). */
.st-qty .st-qty__btn,
.st-qty .st-qty__input { height: auto; }

/* --- PDP price notes: ex-tax, reward points, quantity discounts --------------
   They were bare <p> / <div> lines with browser margins — 36px from the price to
   "Ex Tax", 16px between the notes, the tiers as plain text. Now: the notes are a
   compact caption right under the price, the tiers a small table. */
.st-pdp-pricebox > .st-pdp-price { margin-bottom: 0; }
.st-pdp-pricebox > .st-pdp-price + .st-pdp-info__taxes { margin-top: 8px; }
.st-pdp-info__taxes { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--c-text-muted); }
.st-pdp-discounts {
  display: grid; max-width: 320px; margin: 14px 0 0;
  border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden;
  font-size: var(--fs-sm2);
}
.st-pdp-discounts__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 14px; color: var(--c-text-muted); }
.st-pdp-discounts__row + .st-pdp-discounts__row { border-top: 1px solid var(--c-border-soft); }
.st-pdp-discounts__row strong { color: var(--c-text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* --- PDP product options ---------------------------------------------------
   The options block looked like bare HTML: .st-select had no rule anywhere, the
   native radio circles showed next to the size pills (and the selected pill had
   no state — .is-active is never set by JS), checkboxes ran on one line, and
   the text / textarea / file / date labels were bare inline <label>s beside
   their fields. One look for all option types, no markup change. */
.st-pdp-variants .form-group > label {
  display: block; margin-bottom: var(--space-2);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--c-text);
}
.st-pdp-variants .st-input,
.st-pdp-variants .st-select {
  display: block; width: 100%; min-height: 46px;
  border: 1px solid var(--c-border); border-radius: var(--st-field-sm-radius); background-color: var(--c-card);
  font: inherit; font-size: var(--fs-sm2); color: var(--c-text);
}
.st-pdp-variants textarea.st-input { min-height: 110px; resize: vertical; }
.st-pdp-variants .st-select {
  padding: 0 2.6rem 0 1rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2316181d' stroke-width='1.6' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.st-pdp-variants .st-select:hover { border-color: var(--c-text-soft); }
.st-pdp-variants .st-select:focus,
.st-pdp-variants .st-input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.st-pdp-variants .st-input-group { display: flex; gap: 8px; }
.st-pdp-variants .st-input-group .st-input { flex: 1; min-width: 0; }
/* size pills / colour swatches: hide the native radio (still focusable), state from :checked */
.st-pdp-variant__size-label,
.st-pdp-variant__swatch-label { position: relative; display: inline-flex; }
.st-pdp-variant__size-radio,
.st-pdp-variant__swatch-radio { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.st-pdp-variant__size-radio:checked + .st-pdp-variant__size { background: var(--c-text); border-color: var(--c-text); color: #fff; }
.st-pdp-variant__swatch-radio:checked + .st-pdp-variant__swatch { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--c-text); }
.st-pdp-variant__size-radio:focus-visible + .st-pdp-variant__size,
.st-pdp-variant__swatch-radio:focus-visible + .st-pdp-variant__swatch { outline: 2px solid var(--c-accent); outline-offset: 2px; }
/* checkboxes: one per line, brand-coloured box */
.st-pdp-variants .st-checkbox-label {
  display: flex; align-items: center; gap: 10px; padding: 5px 0;
  font-size: var(--fs-sm2); color: var(--c-text); cursor: pointer;
}
.st-pdp-variants .st-checkbox-label input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--c-text); cursor: pointer; }

/* --- Checkout: shipping options (Nova Poshta / Ukrposhta / flat) --------------
   1) The radios have border-radius 0 (base reset), so their focus outline drew a
      square box on the rounded option card — round radios, round ring.
   2) Ukrposhta's branch list is a Select2 box with Select2's own tiny triangle,
      while Nova Poshta's list and every other field use the theme chevron —
      give the Select2 arrow the same chevron. */
/* the native radio ignores border-radius (Chromium paints it itself), so the
   focus ring stayed square: draw the radio ourselves — theme circle + dot */
.custom-fieldset input[type="radio"].form-check-input {
  appearance: none; -webkit-appearance: none;
  display: inline-grid; place-content: center; flex: none;
  width: 18px; height: 18px; margin: 0;
  border: 1.5px solid var(--c-text-soft); border-radius: 50%; background: var(--c-card);
  cursor: pointer; outline-offset: 2px;
  transition: border-color var(--dur) var(--ease);
}
.custom-fieldset input[type="radio"].form-check-input::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent); transform: scale(0); transition: transform var(--dur) var(--ease);
}
.custom-fieldset input[type="radio"].form-check-input:checked { border-color: var(--c-accent); }
.custom-fieldset input[type="radio"].form-check-input:checked::before { transform: scale(1); }
.custom-fieldset input[type="radio"].form-check-input:focus { box-shadow: none; }
.custom-fieldset input[type="radio"].form-check-input:focus:not(:focus-visible) { outline: none; } /* mouse: the selected card already shows it */
.st-page-form .select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.st-page-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  width: 20px; right: 0.9em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2316181d' stroke-width='1.6' d='M1 1.5l5 5 5-5'/></svg>") no-repeat center;
  transition: transform var(--dur) var(--ease);
}
.st-page-form .select2-container--open .select2-selection--single .select2-selection__arrow { transform: rotate(180deg); }

/* --- PDP sticky tabs ---------------------------------------------------------
   1) The divider was the bar's own border — container-wide, while the nav's
      background/shadow (::before) are full-bleed. The design draws it edge to
      edge: move it onto ::before (bottom 2px of the nav).
   2) overflow-x:auto forces overflow-y:auto too, and the active underline sat
      at margin-bottom:-2px over the bar border — clipped (no active state) and
      a vertical scroll. Draw the underline inside the button instead (inset
      shadow, same 2px as the divider it now overlays); scroll only on phones. */
.st-pdp-nav::before { border-bottom: 2px solid var(--c-border); }
.st-pdp-tabs__bar { border-bottom: 0; }
.st-pdp-tabs__btn { border-bottom: 0; margin-bottom: 0; transition: color 0.15s, box-shadow 0.15s; }
.st-pdp-tabs__btn.is-active { box-shadow: inset 0 -2px 0 var(--c-text); }
@media (min-width: 992px) {
  .st-pdp-tabs__bar { overflow: visible; flex-wrap: wrap; }
}
@media (max-width: 991.98px) {
  .st-pdp-tabs__bar { overflow-x: auto; overflow-y: hidden; }
}

/* --- PDP --------------------------------------------------------------------
   The design product.css grids .st-pdp itself (gallery|info), but this theme's
   markup is <section class="st-pdp"> > .container > .st-pdp__layout, so that
   grid squeezes the whole container into the first column. Keep .st-pdp a plain
   full-width section and move the two-column grid onto .st-pdp__layout. */
.st-pdp { display: block; }
@media (min-width: 992px) {
  .st-pdp__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}
/* The ATC button stays wrapped in .st-pdp-actions__cart (OOS/in-stock branch);
   the design .st-pdp-buy is a flex row expecting the button as a direct item, so
   let the wrapper stretch and the button fill it. */
.st-pdp-buy .st-pdp-actions__cart { flex: 1; display: flex; }
.st-pdp-buy .st-pdp-actions__cart > .st-btn { flex: 1; }
/* Phones: the flex row wrapped by width, so at ~360px the Compare icon fell to
   a line of its own. Fixed rows as in Cartello: quantity / Add to cart + the
   two icon buttons (the cart button shrinks, the icons never break away) /
   Quick order full width. */
@media (max-width: 575.98px) {
  .st-pdp-buy { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .st-pdp-buy > .st-qty { grid-column: 1 / -1; justify-self: start; }
  .st-pdp-buy .st-pdp-actions__cart { min-width: 0; }
  .st-pdp-buy .st-pdp-actions__cart > .st-btn { min-width: 0; }
  .st-pdp-buy > .st-pdp-actions__buynow { grid-column: 1 / -1; }
}

/* Review form: the divider separates it from the review list — with no reviews
   (#review has no elements) it was a stray line over the form (desktop: at the top
   of the column; phones: a 100px gap under the "no reviews" box). */
#review:not(:has(*)) + .st-pdp-review-form { margin-top: 0; padding-top: 0; border-top: 0; }

/* Mobile buy bar steps aside over the footer / while typing (main.js) */
.st-pdp-buymobile.is-visible.is-suppressed { transform: translateY(110%); pointer-events: none; }
body:has(.st-tabbar) .st-pdp-buymobile.is-suppressed { pointer-events: none; }

/* --- Section headings: one style = the mockup's shelf title ----------------
   Module templates (st_featured, st_latest, st_bestseller, st_special, st_viewed,
   st_testimonials, st_top_categories, blog, OC featured/latest/…) use the design
   system's .st-section-head (42px / 700, thin bar in --accent = the secondary
   role). The mockup's home shelves (html/home.html .st-shelf__title, already used
   by st_category_circles) are 28px / 800 with a rounded marker in the accent role
   (= sale red, scheme: --brand-accent). Same look here; eyebrow / lead keep working.
   Boxed blocks keep their own head (Flash Deals: icon + timer; About: card title). */
.st-section-head { margin-bottom: 22px; }
@media (min-width: 769px) { .st-section-head { align-items: center; } } /* row layout only — ≤768 the design stacks it (column), where center would centre the title */
.st-section-head__title {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  padding-left: 0;
}
.st-section-head:not(.st-section-head--center) .st-section-head__title::before {
  position: static; display: inline-block;
  width: 4px; height: .78em; border-radius: 2px; /* em: the kit sets the title up to 40px, the bar must follow the text */
  vertical-align: -.06em; margin-right: 12px;
  background: var(--c-sale);
}
.st-section-head--center .st-section-head__title::before { background: var(--c-sale); }
html[data-scheme] .st-section-head__title::before { background: var(--brand-accent); }
/* centred head with an eyebrow: the eyebrow has its own dash, the title bar would sit on top of it */
.st-section-head--center .st-eyebrow + .st-section-head__title::before { display: none; }
.st-section-head__text > .st-eyebrow { margin-bottom: 6px; }
.st-section-head__lead { margin-top: 6px; }

/* About: a card title, not a shelf — same type scale as the shelf/deals titles, no marker */
.st-about__title,
.st-about__solo-title { font-family: var(--f-heading); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--c-text); }

/* --- ST About: boxed like the other home blocks ---------------------------
   The photos are big dark tiles with no inner padding, so the standard 48px
   section gap read tighter around them than around the boxed blocks (deals
   panel, category circles). Box the module the same way (card, border, radius,
   inner padding) and give photos/stat chips the card radius tokens. */
.st-about-section > .container > * {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 40px;
}
.st-about-section .st-about__photo-item,
.st-about-section .st-feature-split__media { border-radius: var(--r-md); }
.st-about-section .st-about__stat { border-radius: var(--r-sm); }
@media (max-width: 767px) {
  .st-about-section > .container > * { padding: 20px; }
}

/* Text only (layout text_only, or with_photo without photos): one reading column
   (720px) centred in the full-width card. Heading and paragraphs are left-aligned on
   the same edge — centred multi-line paragraphs read poorly, and a centred heading
   over left-aligned text had a different axis. */
.st-about__solo { text-align: left; }
.st-about__solo > * { max-width: 720px; margin-inline: auto; }
.st-about__solo-title { margin-bottom: 16px; }
.st-about__solo .st-about__text--center { max-width: 720px; }
.st-about__solo .st-about__text > :last-child { margin-bottom: 0; }

/* --- ST About: feature list ----------------------------------------------
   Title and subtitle are <p>s; the design layer gives every <p> 16px below,
   which split each feature into two loose lines. Keep them as one unit. */
.st-feature-list__title { margin: 0 0 2px; }
.st-feature-list__text  { margin: 0; }

/* --- ST Quick Order ("Buy in one click") ------------------------------------
   Ported from Cartello. Buttons: a full-width row under Add to cart, under the
   buy-box button, and a lightning icon in the mobile buy bar. The modal uses the
   theme's .st-modal; its contents are restyled on the design tokens so it
   follows the colour schemes. Product photos are square electronics on white,
   so the thumb is contained, not cropped to Cartello's 3:4 fashion frame. */
/* Theme setting "Custom HTML block on the product page" — under the share row. */
.st-pdp-custom-html { margin-top: 14px; }
.st-pdp-custom-html:empty { display: none; }

.st-pdp-buy .st-pdp-actions__buynow { flex-basis: 100%; height: 52px; border-radius: var(--r-md); }
.st-pdp-buymobile__buynow {
  flex: 0 0 auto; width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: var(--c-card); color: var(--c-text); font-size: 1.2rem; cursor: pointer;
}
body:has(.st-tabbar) .st-pdp-buymobile .st-pdp-buymobile__buynow { height: 38px; width: 38px; border-radius: var(--st-btn-radius); }

.st-modal--quick-order .st-modal__dialog { max-width: 460px; }
.st-qo-dialog { padding: 32px 24px 24px; }
.st-qo-title {
  font-family: var(--f-heading); font-size: 20px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--c-text); margin: 0 0 12px; padding-right: 32px;
}
.st-qo-intro { font-size: 14px; color: var(--c-text-muted); margin: 0 0 16px; }
.st-qo-product {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--c-border);
}
.st-qo-product__img {
  width: 72px; height: 72px; flex-shrink: 0; object-fit: contain;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm);
}
.st-qo-product__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.st-qo-product__name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--c-text); }
.st-qo-product .st-price__now { font-size: 18px; }
.st-qty--sm { height: 36px; }
.st-qty--sm .st-qty__btn { width: 34px; height: 36px; font-size: 15px; }
.st-qty--sm .st-qty__input { width: 40px; height: 36px; }
#st-qo-options.st-pdp-variants { gap: 8px; margin-bottom: 20px; }
#st-qo-options .st-pdp-variant__label { margin-bottom: 0; }
.st-qo-alert { font-size: 14px; padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px; }
.st-qo-alert--error { background: var(--c-sale-soft); color: var(--c-sale); border: 1px solid color-mix(in oklch, var(--c-sale) 30%, transparent); }
.st-qo-agree {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px;
  margin-top: 16px; font-size: 12px; color: var(--c-text-muted); cursor: pointer;
}
.st-qo-agree input { margin-top: 3px; flex-shrink: 0; accent-color: var(--c-accent); }
.st-qo-agree span { flex: 1 1 0; min-width: 0; } /* basis 0: with auto the whole sentence's width didn't fit beside the box on phones and flex-wrap moved it under the checkbox */
.st-qo-agree a { color: var(--c-accent); }
.st-qo-agree .text-danger { flex-basis: 100%; margin-top: 0; }
#st-qo-form .st-field.required .st-field__label::after { content: " *"; color: var(--c-sale); }
#st-qo-form .st-input.has-error, #st-qo-form .st-select.has-error { border-color: var(--c-sale); }
#st-qo-form .has-error .text-danger,
#st-qo-form .st-field .text-danger { display: block; margin-top: 4px; font-size: 12px; color: var(--c-sale); }
.st-qo-success { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 40px 16px; }
.st-qo-success i { font-size: 48px; line-height: 1; color: var(--c-success); }
.st-qo-success p { margin: 0; font-size: 16px; color: var(--c-text); }
/* Mobile-search button belongs to the mobile layout; the desktop header shows
   the full search field, so hide it above the mobile breakpoint. */
.st-header__actions .st-action--search-m { display: none; }
@media (max-width: 767px) { .st-header__actions .st-action--search-m { display: inline-flex; } }

/* --- Standard OpenCart slideshow (Swiper 11) -------------------------------
   The default OC slideshow module ships Swiper-3-era markup/arrows. Re-tint
   the nav/pagination to the theme accent, size the arrows sanely, and keep
   images fluid so the slider isn't the giant-blue-arrow default. */
.slideshow { position: relative; --swiper-theme-color: var(--c-accent, #e63946); }
.slideshow .swiper { overflow: hidden; border-radius: var(--r-md, 8px); }
.slideshow .swiper-slide img { width: 100%; height: auto; display: block; }
.slideshow .swiper-button-next,
.slideshow .swiper-button-prev {
  width: 44px; height: 44px;
  border-radius: var(--st-btn-radius);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(15, 18, 22, 0.15);
}
.slideshow .swiper-button-next::after,
.slideshow .swiper-button-prev::after { font-size: 18px; font-weight: 700; }
.slideshow .swiper-pagination-bullet-active { background: var(--c-accent, #e63946); }

/* --- Navbar --------------------------------------------------------------
   Standard navbar markup, made to read like the design. The base
   layout.css paints an accent underline (.st-nav__link::after) that fights the
   design's background-hover; kill it so only the design treatment shows. */
.st-nav__link::after { display: none; }
/* …but keep the design's HOT badge (ionix.css .st-nav__link--hot::after), reset
   from the base underline geometry it would otherwise inherit. */
.st-nav__link.st-nav__link--hot::after {
  display: inline-block; position: static;
  width: auto; height: auto; line-height: 1;
  transform: none; background: var(--c-sale);
}
/* Hover: the design paints a full-height square fill (html/styles/ionix.css:534).
   Deliberate deviation, big-store style: an accent underline exactly as wide as
   the text (::before, inset by the link's 18px padding; ::after is the HOT
   badge). A fill wider than the text can't line up with the content edge — the
   first item's text is aligned to the logo, so a fill hung out past it. The link
   keeps its 52px hit area (no hover gap to the dropdown) and the underline stays
   on while the item's dropdown is open. */
.st-nav__link { position: relative; }
.st-nav__link:hover { background: transparent; }
.st-nav__link::before {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 10px; height: 2px;
  border-radius: 2px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.18s ease;
}
.st-nav__item:hover > .st-nav__link::before,
.st-nav__link:focus-visible::before { transform: scaleX(1); }
/* The base stylesheet draws a divider above the navbar — the design has none.
   The header row (a sibling of .st-navbar) is still closed off from the menu, as
   the design's full-width line (html/category.html) — but as a soft shadow, not
   a 1px border: see "Header edge" below. Phones: their own shadow edge. */
.st-navbar { border-top: 0; }
.st-header { border-bottom: 0; }
/* First menu item: its text lines up with the logo / page content; the 18px
   link padding (hover pill) hangs into the gutter instead. */
@media (min-width: 992px) {
  .st-navbar .st-nav__item:first-child > .st-nav__link { margin-left: -18px; }
}

/* --- Compact sticky header ------------------------------------------------
   header.twig now renders .st-navbar as a sibling of <header>, matching
   html/home.html:44-66 (fixed above — it used to be nested inside <header>,
   which starved position:sticky of room to stay pinned). With that fixed,
   base layout.css:63 sticking .st-header alone already gives the compact
   bar (logo+search+actions) permanent stickiness. Only two things are still
   needed: stop the design layer from ALSO sticking .st-navbar (ionix.css:435)
   — as a sibling it would then compete for the same top:0 slot and overlap
   the header. Once stuck, categories are reached through the "Catalog" button
   that lives in the header row (see "Catalog button" below). */
.st-navbar { position: static; }

@media (min-width: 992px) {
  /* ionix.css `.st-action{display:inline-flex}` loads after the base
     layout.css hide and beat it (same specificity). Desktop never shows the
     burger — the Catalog button is the entry point, in both header states. */
  .st-header .st-header__burger { display: none; }
}

/* --- Catalog button + panel (desktop) --------------------------------------
   Design's "Shop by department" (html/home.html, header.md .st-departments),
   moved from the nav row into the header row so it stays in the stuck header
   and nothing appears/disappears (no logo shift). Toggle look = design's
   :root .st-departments__toggle. Panel spans the header container:
   categories on the left (design list styles), hovered one's children right. */
.st-header__catalog { display: none; }
@media (min-width: 992px) {
  .st-header__inner { position: relative; }
  .st-header .st-header__logo { margin-right: 0; }
  .st-header__catalog { display: flex; position: static; flex-shrink: 0; }
  .st-header__catalog .st-departments__toggle { margin: 0 8px 0 0; }
}
.st-header__catalog .st-departments__panel {
  top: calc(100% - 6px); left: 0; right: 0; width: auto;
  display: grid; grid-template-columns: 300px 1fr; grid-template-rows: 1fr auto;
  max-height: min(560px, calc(100vh - 140px));
  padding: 0; overflow: hidden;
}
.st-catalog__list {
  grid-column: 1; grid-row: 1;
  overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--c-border-soft);
  padding: 8px !important;
}
.st-catalog__link { border-radius: var(--r-sm); padding: 10px 12px !important; font-weight: 500; }
.st-catalog__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-catalog__arrow { margin-left: auto; font-size: 14px !important; opacity: 0.5; }
.st-catalog__item.is-active > .st-catalog__link { background: var(--c-bg-alt); color: var(--c-text); }
.st-catalog__item.is-active > .st-catalog__link .st-catalog__arrow { opacity: 1; color: var(--c-text); }
.st-catalog__sub {
  display: none;
  position: absolute; top: 0; left: 300px; right: 0; bottom: 45px;
  padding: 24px 32px; overflow-y: auto; overscroll-behavior: contain;
}
.st-catalog__item.is-active > .st-catalog__sub { display: block; }
/* Flyout (hero panel, header Catalog, st_menu "categories"): level-1 title, then level-2 groups.
   Group = bold title over a hairline + its level-3 links; a level-2 category without children = a chip. */
.st-catalog__sub-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border-soft);
  font-family: var(--f-heading); font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--c-text);
}
.st-catalog__sub-title .st-icon { font-size: 16px; color: var(--c-accent); transition: transform 0.15s; }
.st-catalog__sub-title:hover { color: var(--c-accent); }
.st-catalog__sub-title:hover .st-icon { transform: translateX(3px); }
/* Masonry columns: groups of different height pack tight instead of leaving row gaps. */
.st-catalog__grid { columns: 3 210px; column-gap: 40px; }
.st-catalog__group { display: flex; flex-direction: column; gap: 0; margin: 0 0 22px; break-inside: avoid; }
.st-catalog__group-title,
.st-catalog__grid > .st-catalog__sub-link {
  display: block; margin: 0 0 6px; padding: 0 0 8px; break-inside: avoid;
  border-bottom: 1px solid var(--c-border-soft);
  font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--c-text);
  transition: color 0.12s, border-color 0.12s;
}
/* level-2 without children: same look as a group title, so every level-2 reads alike */
.st-catalog__grid > .st-catalog__sub-link { margin-bottom: 22px; }
.st-catalog__group-title:hover,
.st-catalog__grid > .st-catalog__sub-link:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.st-catalog__group .st-catalog__sub-link {
  display: block; padding: 6px 0; font-size: 14px; line-height: 1.35; color: var(--c-text);
  opacity: 0.78; transition: color 0.12s, opacity 0.12s, transform 0.12s;
}
.st-catalog__group .st-catalog__sub-link:hover { color: var(--c-accent); opacity: 1; transform: translateX(3px); }
.st-catalog__foot { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; }

/* st_menu "categories" item → the same two-pane panel, opened by nav hover.
   The item drops its own positioning so the mega anchors to .st-navbar__inner
   (position:relative in the design) and spans the container, like the header
   Catalog panel. Optional category icons (st_menu lv_icon / lv_icon_image). */
.st-nav__item--catalog { position: static; }
.st-mega.st-mega--catalog {
  left: 0; right: 0; width: auto; max-width: none;
  padding: 0; margin-top: 0; display: block; overflow: hidden;
}
.st-catalog--nav {
  position: relative;
  display: grid; grid-template-columns: 300px 1fr;
  height: min(480px, calc(100vh - 220px));
}
.st-catalog--nav .st-catalog__list { height: 100%; }
.st-catalog--nav .st-catalog__sub { bottom: 0; }
.st-catalog__icon { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; font-size: 18px; color: var(--c-text-soft); }
/* Caret: the design fades/sizes it via `:root .st-nav__link .st-icon`
   and rotates `.st-nav__link--has-sub .st-nav__caret`; the base rotates
   `i.is-caret`. The nav templates now carry all three classes on the caret
   (matching html/home.html), so no bridge rule is needed here. */

/* --- Mega dropdown -------------------------------------------------------
   .st-mega is base-only markup (the design ships .st-dropdown instead), so
   the design stylesheet never touches it and it keeps the old boxy look.
   Restyle it here to the design's dropdown aesthetic — design tokens, soft
   card, per-item hover — without changing the markup. */
.st-mega {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(15, 18, 22, 0.12);
  padding: 14px 8px;
  margin-top: 2px;
  z-index: 50;
}
.st-mega__cols { gap: 8px 20px; }
.st-mega__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  padding: 0 12px;
  margin: 12px 0 4px;
}
.st-mega__col > .st-mega__title:first-child { margin-top: 0; }
.st-mega__title a { color: inherit; }
.st-mega__title a:hover { color: var(--c-accent); }
.st-mega__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text);
  transition: background 0.12s, color 0.12s;
}
.st-mega__link:hover { background: var(--c-bg-alt); color: var(--c-accent); }

/* --- Footer: custom columns ------------------------------------------------
   theme_ionix_footer_custom_status replaces the stock link columns with a
   Contacts column (phones/e-mail/address/messengers) + two configurable link
   columns. Everything reuses .st-footer__* from the design layer; only the
   multi-line items (opening hours, address) and the messenger row need a
   tweak, because .st-footer__contact-item is a single-line flex row. */
.st-footer__contact-item--block { align-items: flex-start; }
.st-footer__contact-item--block .st-icon { margin-top: 2px; flex-shrink: 0; }
.st-footer__contact-label { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
/* Base layout.css styles .st-footer__social as ONE icon button (42px bordered square,
   lift on hover); the design (ionix.css) and our markup use it as the ROW wrapper
   with the buttons as its <a> children — the whole row was squeezed into a 42px box.
   Undo the base button look on the wrapper; the <a> keep the design's 36px tiles. */
.st-footer__social { width: auto; height: auto; flex-wrap: wrap; border: 0; border-radius: 0; background: none; transform: none; font-size: inherit; }
.st-footer__social:hover { background: none; border-color: transparent; transform: none; }
.st-footer__social--msg { margin-top: 14px; }
/* messengers + socials in the contacts column: one row of tiles, same 8px step */
.st-footer__social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.st-footer__social-row > .st-footer__social { margin-top: 0; }
.st-footer__contact + .st-footer__social { margin-top: 16px; }

/* --- Navbar spacing -------------------------------------------------------
   The base layout.css puts `gap: var(--space-6)` (24px) between nav items,
   while the design (html/home.html) styles the items as hover pills whose own
   padding is the ONLY separation — ionix.css deliberately sets no gap. Both
   applied at once meant 24px + 2x18px = 60px between labels, so the row
   overflowed the container. Kill the base gap; the pill padding stays exactly
   as the design has it. */
.st-nav__list { gap: 0; }
/* The "More +N" counter has no rule in either layer (design ships the markup,
   not the style) — give it the small accent badge look the design implies. */
.st-nav__more-count { font-size: 11px; font-weight: 700; color: var(--c-accent); }

/* --- Mobile drawer, 3-level menus -----------------------------------------
   st_menu.twig marks level-2 parents `--group` and their children `--sub`, but
   neither layer styles them, so a 3-level panel read as one flat list. Group =
   a small heading, sub = indented under it. */
.st-nav__m-child--group { margin-top: var(--space-2); font-weight: var(--fw-semibold); color: var(--c-text); }
.st-nav__m-child--group:first-child { margin-top: 0; }
.st-nav__m-child--sub { padding-left: calc(var(--space-4) * 2); }

/* --- Link-buttons on hover -------------------------------------------------
   ionix.css:142 sets a global `a:hover { color: var(--c-accent) }` (0,1,1),
   which outranks the base `.st-btn / .btn-st-buy / .btn-st-ghost { color:
   var(--btn-fg) }` (0,1,0). Any button rendered as <a> (checkout "Log in",
   slider/banner/CTA buttons) therefore turned accent-on-accent on hover.
   Re-assert the button's own colour; variants keep working because they only
   change --btn-fg. */
a.st-btn:hover, a.btn-st-buy:hover, a.btn-st-ghost:hover { color: var(--btn-fg); }

/* Auth titles: "New customer" on account/login is a div (heading rules — UI
   block, not a document section), so it no longer inherits the h1–h5 tag
   rules. Carry those properties on the class itself. */
.st-auth__title {
  font-family: var(--f-heading);
  color: var(--c-text);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ==========================================================================
   st_slideshow — layout "with_banner" (html/home.html hero)
   ionix-home.css styles a single static .st-hero__banner--feature; in OC
   it hosts a Swiper, so the swiper fills the banner and every slide carries
   its own media + panel. Pagination bullets mimic .st-hero__banner-mark.
   ========================================================================== */
.st-hero__layout--solo { grid-template-columns: 1fr; }

/* st_slideshow "Open catalog" (module setting): category list as the hero's first
   column, ≥1200 only — below that three columns don't fit and the header Catalog
   button / drawer cover it. The list never sets the row height (height:0 +
   min-height:100%), the slider does; extra categories scroll inside. Hovered
   category's children open over the slider and banners (.st-catalog__sub is
   positioned against the hero row, not the narrow list). */
.st-hero-catalog { display: none; }
@media (min-width: 1200px) {
  .st-hero__layout--catalog { position: relative; grid-template-columns: 240px 1fr 300px; }
  .st-hero__layout--catalog.st-hero__layout--solo { grid-template-columns: 240px 1fr; }
  .st-hero-catalog-row { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
  .st-hero-catalog-row > .st-hero-slider__frame { min-width: 0; }
  /* in_container (split) + catalog: the grey full-bleed band becomes a card beside the list */
  .st-hero-slider--split.st-hero-slider--catalog { background: transparent; padding-top: 24px; }
  .st-hero-slider--catalog .st-hero-slider__frame { background: var(--color-bg-alt); border-radius: 14px; overflow: hidden; }
  .st-hero-slider--catalog .st-hero__body { padding-left: 40px; }

  .st-hero-catalog {
    display: flex; flex-direction: column;
    height: 0; min-height: 100%;
    background: var(--c-card);
    border: 1px solid var(--c-border); /* block frame = the main border line */
    border-radius: var(--st-radius-lg); /* follows the "Corner radius" setting */
  }
  .st-hero-catalog .st-catalog__list {
    flex: 1; min-height: 0;
    border-right: 0;
    padding: 6px !important;
    scrollbar-width: thin;
  }
  .st-hero-catalog .st-catalog__link { padding: 8.5px 12px !important; font-size: 14.5px; }
  .st-hero-catalog .st-cats__ico { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: none; font-size: 18px; color: var(--c-text-soft); }
  .st-hero-catalog .st-catalog__link:hover .st-cats__ico { color: var(--c-accent); }
  .st-hero-catalog__all {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 18px;
    border-top: 1px solid var(--c-border-soft);
    font-size: 14px; font-weight: 700; color: var(--c-accent);
  }
  .st-hero-catalog__all .st-icon { font-size: 14px; transition: transform 0.15s; }
  .st-hero-catalog__all:hover .st-icon { transform: translateX(3px); }

  .st-hero-catalog .st-catalog__sub {
    left: 256px; right: 0; top: 0; bottom: 0; /* list 240 + gap 16 */
    z-index: 10; /* above the slider arrows (z-index 5, later in the DOM) */
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--st-radius-lg);
    box-shadow: 0 12px 32px rgba(15, 18, 22, 0.12);
  }
}

.st-hero__banner--feature .swiper { position: absolute; inset: 0; }
.st-hero__banner--feature .swiper-wrapper,
.st-hero__banner--feature .swiper-slide { height: 100%; }

.st-hero-slider--banners .swiper-pagination.swiper-pagination-horizontal {
  left: 52px; right: auto; bottom: 32px !important; width: auto;
  display: flex; gap: 8px; align-items: center; z-index: 2;
}
@media (max-width: 1199px) { .st-hero-slider--banners .swiper-pagination.swiper-pagination-horizontal { left: 40px; } }
@media (max-width: 767px)  { .st-hero-slider--banners .swiper-pagination.swiper-pagination-horizontal { left: 24px; bottom: 16px !important; } }

.st-hero-slider--banners .swiper-pagination-bullet {
  width: 8px; height: 8px; margin: 0 !important;
  border-radius: 50%; opacity: 1;
  background: rgba(255, 255, 255, 0.30);
  transition: background 0.15s, width 0.2s, border-radius 0.2s;
}
.st-hero-slider--banners .swiper-pagination-bullet:hover { background: rgba(255, 255, 255, 0.55); }
.st-hero-slider--banners .swiper-pagination-bullet-active { width: 24px; border-radius: 4px; background: #fff; }

/* Side card rendered as <a>: keep the card's own colours on hover */
a.st-hero__banner--card:hover { color: inherit; }

/* st_slideshow with_banner: prev/next — bottom-right pair, pagination stays bottom-left */
.st-hero-slider--banners .st-slider-nav { top: auto; bottom: 24px; transform: none; width: 40px; height: 40px; font-size: 1.1rem; color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); box-shadow: none; backdrop-filter: blur(6px); }
.st-hero-slider--banners .st-slider-nav:hover { background: #fff; color: var(--c-text); }
.st-hero-slider--banners .st-slider-nav--prev { left: auto; right: 76px; }
.st-hero-slider--banners .st-slider-nav--next { right: 28px; }
@media (max-width: 1199px) {
  .st-hero-slider--banners .st-slider-nav--prev { right: 68px; }
  .st-hero-slider--banners .st-slider-nav--next { right: 20px; }
}

/* st_slideshow full_width + in_container (split): controls in the with_banner
   language. home.css gave the arrows no size/background/top (bare 15px glyphs at
   the bottom corners on full_width) and parked split arrows at -150px outside the
   frame (off-screen at 1280, over the open catalog); the active split bullet was a
   28px ellipse (50% radius). Now: 8px dots, 24px pill for the active one; a pair of
   white 44px buttons bottom-right on the slide, clear of the copy. */
.st-hero.st-hero-slider:not(.st-hero-slider--banners) .swiper-pagination-bullet {
  width: 8px; height: 8px; margin: 0 4px !important; border-radius: 50%;
  transition: background 0.15s, width 0.2s, border-radius 0.2s;
}
.st-hero.st-hero-slider:not(.st-hero-slider--banners) .swiper-pagination-bullet-active { width: 24px; border-radius: 4px; }
.st-hero.st-hero-slider:not(.st-hero-slider--split):not(.st-hero-slider--banners) .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.45); }
.st-hero.st-hero-slider:not(.st-hero-slider--split):not(.st-hero-slider--banners) .swiper-pagination-bullet-active { background: #fff; }

.st-hero-slider:not(.st-hero-slider--banners) .st-slider-nav {
  width: 44px; height: 44px; font-size: 1.15rem;
  color: var(--c-text); background: #fff; border: 0;
  box-shadow: 0 4px 14px rgba(15, 18, 22, 0.16);
}
.st-hero-slider:not(.st-hero-slider--banners) .st-slider-nav:hover { background: var(--c-text); color: #fff; }
/* full_width: bottom-right of the slide */
.st-hero-slider:not(.st-hero-slider--banners):not(.st-hero-slider--split) .st-slider-nav { top: auto; bottom: 24px; transform: none; }
.st-hero-slider:not(.st-hero-slider--banners):not(.st-hero-slider--split) .st-slider-nav--prev { left: auto; right: 80px; }
.st-hero-slider:not(.st-hero-slider--banners):not(.st-hero-slider--split) .st-slider-nav--next { right: 24px; }
/* Swiper's pagination bar is full-width with z-index 10 — on full_width it lay across
   the arrows' middle and ate hover/clicks. Let the bar pass the pointer through; the
   dots themselves stay clickable. */
.st-hero-slider:not(.st-hero-slider--banners):not(.st-hero-slider--split) .swiper-pagination { pointer-events: none; }
.st-hero-slider:not(.st-hero-slider--banners):not(.st-hero-slider--split) .swiper-pagination-bullet { pointer-events: auto; }
/* split: phones/tablets keep home.css's placement (middle of the photo on top);
   desktop — bottom-right over the photo, inside the frame */
@media (min-width: 992px) {
  .st-hero-slider--split .st-slider-nav { top: auto; bottom: 24px; transform: none; }
  .st-hero-slider--split .st-slider-nav--prev { left: auto; right: 80px; transform: none; }
  .st-hero-slider--split .st-slider-nav--next { right: 24px; transform: none; }
  /* dots under the copy (left), not centred on the text/photo seam */
  .st-hero-slider--split .swiper-pagination.swiper-pagination-horizontal { left: 0; right: auto; width: auto; text-align: left; }
  .st-hero.st-hero-slider--split .swiper-pagination-bullet:first-child { margin-left: 0 !important; }
  .st-hero-slider--split .st-hero__body { padding-bottom: calc(var(--space-8) + 32px); } /* room for the dots: long copy (4-line title beside the catalog) reached them */
}
@media (min-width: 1200px) {
  .st-hero-slider--catalog .swiper-pagination.swiper-pagination-horizontal { left: 40px; } /* = .st-hero__body padding beside the catalog */
  /* slider headline ≠ page H1: --fs-4xl (60px) gave 4-line titles in the narrow copy column;
     wider copy column + ≤46px keeps it to 2–3 lines */
  .st-hero-slider--split .st-hero__grid { grid-template-columns: 1.25fr 1fr; }
  .st-hero-slider--split .st-hero__content { max-width: 36rem; }
}
@media (min-width: 992px) {
  .st-hero-slider--split .st-hero__title { font-size: clamp(1.875rem, 1.1rem + 1.9vw, 2.875rem); line-height: 1.1; }
}

/* Product cards on phones: the always-on (touch) "Add to Cart" bar over the photo broke
   into two lines in 2-up grids (140px cards at 360). Big-store pattern: a round cart icon
   button at the end of the price row. The cart is anchored to the card instead of the
   photo (media → static; badges/actions keep their spots — the photo is the card's top);
   the label stays in the button for screen readers. */
@media (max-width: 767.98px) {
  .st-product-card .st-product-card__media { position: static; }
  .st-shop-grid--list .st-product-card .st-product-card__media { position: relative; } /* list: no corner cart to anchor; badges stay on the thumb */
  .st-product-card .st-product-card__cart {
    left: auto; right: 12px; bottom: 14px; top: auto;
    opacity: 1; transform: none;
  }
  .st-product-card .st-product-card__cart .st-btn {
    width: 40px; height: 40px; min-width: 0; padding: 0;
    border-radius: var(--st-btn-radius); font-size: 0; gap: 0;
  }
  .st-product-card .st-product-card__cart .st-btn .st-btn__icon { font-size: 19px; margin: 0; }
  .st-product-card:has(.st-product-card__cart) .st-product-card__row { padding-right: 46px; min-height: 40px; }
}

/* Flash Deals on phones: the head row (fire + title | countdown) left the timer ~90px,
   so its cells wrapped into a column (home.css lets .st-countdown wrap) and the 28px
   title broke in two beside a floating icon. Stack it: fire + title/sub, then the
   timer on one line. Products 2 per row like every other grid on phones (was 1 —
   one huge card per screen). Up to 767: at 576–767 the timer still wrapped too. */
@media (max-width: 767.98px) {
  .st-deals { padding: 16px 16px 20px; }
  .st-deals__head { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 16px; padding-bottom: 14px; }
  .st-deals__title-wrap { align-items: flex-start; gap: 12px; }
  .st-deals__fire { width: 32px; height: 32px; flex-shrink: 0; margin-top: 2px; }
  .st-deals__title { font-size: 22px; line-height: 1.2; }
  .st-deals .st-countdown { flex-wrap: nowrap; gap: 5px; }
  .st-deals .st-countdown__label { margin: 0 6px 0 0; }
  .st-deals .st-countdown__cell { font-size: 14px; padding: 7px 0; min-width: 38px; }
  .st-deals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* st_slideshow in_container (split), phones: copy OVER the photo. The stacked 4:5 photo
   + copy filled 890px on an 844px screen (button below the fold — Oppo / Samsung A52);
   a short 4:3 photo kept the button but lost the "wow". Now the photo card takes about
   half the screen (4:5, capped by the screen height so the next block peeks out) and
   eyebrow / title / 2-line text / button sit on a bottom gradient, white on dark — the
   big-store mobile banner. Slides change by swipe (dots stay); arrows hidden on phones.
   Tablets and desktop keep the split layout. */
@media (max-width: 767.98px) {
  .st-hero-slider--split { background: transparent; padding-top: 16px; }
  .st-hero-slider--split .st-hero-slider__frame { padding-top: 0; }
  .st-hero-slider--split .st-hero__grid { position: relative; display: block; min-height: 0; }
  .st-hero-slider--split .st-hero__media {
    width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 190px);
    border-radius: 14px; overflow: hidden;
  }
  .st-hero-slider--split .st-hero__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 12, 16, 0) 35%, rgba(10, 12, 16, 0.55) 60%, rgba(10, 12, 16, 0.88) 100%);
  }
  .st-hero-slider--split .st-hero__body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 0 20px 36px; /* bottom = room for the dots */
  }
  .st-hero-slider--split .st-hero__content { gap: 8px; }
  .st-hero-slider--split .st-hero__eyebrow,
  .st-hero-slider--split .st-hero__title { color: #fff; }
  .st-hero-slider--split .st-hero__eyebrow::before { background: #fff; }
  .st-hero-slider--split .st-hero__title { font-size: 28px; line-height: 1.1; }
  .st-hero-slider--split .st-hero__text {
    margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.85);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .st-hero.st-hero-slider--split .st-hero__actions { margin-top: 8px; }
  /* first button = the main action on the photo (solid white), a second one outlined —
     slides with only the secondary button (btn2) still get a solid CTA */
  .st-hero.st-hero-slider--split .st-hero__actions .st-btn { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
  .st-hero.st-hero-slider--split .st-hero__actions .st-btn:first-child { background: #fff; border-color: #fff; color: #111; }
  .st-hero-slider--split .swiper-pagination { bottom: 14px !important; z-index: 3; }
  .st-hero.st-hero-slider--split .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.5); }
  .st-hero.st-hero-slider--split .swiper-pagination-bullet-active { background: #fff; }
  .st-hero-slider--split .st-slider-nav { display: none; } /* swipe; home.css forced them on */
  .st-hero-slider--split .st-hero__badge { display: none; } /* price chip would sit under the copy */
}

/* st_slideshow with_banner: gap under the navbar (mockup 24px minus nav-link bottom padding — no navbar border here) */
.st-hero-slider--banners { padding-top: 12px; }
@media (max-width: 767px) { .st-hero-slider--banners { padding-top: 16px; } } /* = side gutter, under the header hairline */

/* st_slideshow with_banner, mobile: the design's fixed 16/10 box clipped real slide
   copy (kicker + 3-line title + text + buttons). Let the text panel set the height
   (image stays a cover background); all slides stretch to the tallest one, so the
   block doesn't jump between slides. */
@media (max-width: 767px) {
  .st-hero__banner--feature { aspect-ratio: auto; }
  .st-hero__banner--feature .swiper { position: relative; inset: auto; }
  .st-hero__banner--feature .swiper-wrapper { height: auto; }
  .st-hero__banner--feature .swiper-slide { height: auto; min-height: 320px; display: flex; }
  .st-hero__banner--feature .st-hero__banner-panel {
    position: relative; inset: auto; flex: 1;
    justify-content: flex-end; padding: 28px 24px 48px;
    background: linear-gradient(0deg,
      oklch(0.24 0.005 240) 0%, oklch(0.24 0.005 240 / 0.85) 55%, oklch(0.24 0.005 240 / 0.35) 100%);
  }
}

/* --- st_features → design USP strip (html/home.html) ----------------------
   1) design-system/objects/layout.css re-declares .st-section padding AFTER the
      base .st-section--tight, so "tight" sections got the full 88px. Restore.
   2) The module now ships the design markup (.st-usp > .st-usp__list > .st-usp__item);
      neutralise the base .st-usp (flex row + side hairlines) on the wrapper.
   3) Right under the hero the design sits it 36px below (margin-top on .st-usp). */
/* Section rhythm = the design's .st-shelf: top gap only (--section-gap: 48px in
   retail-mode), not the base 88px top AND bottom (176px between blocks). Sections
   with their own background keep symmetric padding; the footer brings its own
   margin-top: var(--section-gap). */
.st-section { padding-block: var(--section-gap) 0; }
.st-section.st-section--tight { padding-block: 32px 0; }
/* A plain section followed by a coloured one (alt / dark) has no bottom gap of its own: give it the
   same gap (a module's <script> may sit between them), so e.g. the brand strip doesn't sit flush against the grey blog section. */
.st-section:not(.st-section--alt):not(.st-section--dark):has(+ .st-section--alt, + .st-section--dark, + script + .st-section--alt, + script + .st-section--dark) { padding-bottom: var(--section-gap); }
/* Category subcategories (chips / tiles) sit between the page head and the shop:
   no top gap (the head already ends with 48px), and the same 48px below so the
   shop starts as far from them as it does from the head on a leaf category. */
.st-section.st-cat-subcats { padding-block: 0 48px; }
.st-section.st-section--alt,
.st-section.st-section--dark { padding-block: var(--section-gap); }
.st-section--usp .st-usp { display: block; margin-top: 0; padding: 0; border-left: 0; }
.st-hero + .st-section--usp { padding-top: 36px; }
.st-section--usp .st-usp__icon { font-size: inherit; }
@media (max-width: 767px) {
  .st-hero + .st-section--usp { padding-top: 16px; }
  .st-section--usp .st-usp__item { padding: 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .st-section--usp .st-usp__item:nth-child(2n) { border-right: 0; }
  .st-section--usp .st-usp__item:nth-child(-n+2) { border-bottom: 1px solid var(--c-border-soft); }
}
.st-section--dark .st-usp__list { background: transparent; border-color: rgba(255,255,255,0.12); }
.st-section--dark .st-usp__item { border-color: rgba(255,255,255,0.1); }
.st-section--dark .st-usp__sub { color: var(--color-on-dark-muted); }

/* Drawer: "Catalog" block (store categories) shown above a free-form st_menu */
.st-drawer__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-text-soft); padding: 4px 0 8px;
}
.st-drawer__catalog + .st-nav--mobile { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-border-soft); }

/* Mobile header: the design means 12px here (ionix.css:669), but its own
   `:root .st-header__inner{gap:28px}` is more specific and won → ~43px
   between the burger icon and the logo. Restore the intended mobile gap. */
@media (max-width: 991.98px) {
  .st-header__inner { gap: 12px; }
}

/* Drawer: nested category accordion (2nd level) — st_menu "categories" item and
   the header's drawer Catalog block. Each category is its own collapsible row
   instead of a flat list of every subcategory. */
.st-nav__m-subrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 11px var(--space-4); background: none; border: 0; text-align: left;
  font-size: 14.5px; font-weight: 600; color: var(--c-text); cursor: pointer;
}
.st-nav__m-subrow i { font-size: 14px; color: var(--c-text-soft); transition: transform 0.2s; }
.st-nav__m-subrow[aria-expanded="true"] { color: var(--c-accent); }
.st-nav__m-subrow[aria-expanded="true"] i { transform: rotate(180deg); color: var(--c-accent); }
.st-nav__m-panel--sub { padding: 0 0 8px; }
.st-nav__m-panel--sub .st-nav__m-child--sub { padding-left: calc(var(--space-4) * 2); }
/* Leaf categories next to collapsible ones look like the same category rows */
.st-nav__m-panel:has(> .st-nav__m-sub) > .st-nav__m-child:not(.st-nav__m-child--all) {
  padding: 11px var(--space-4); font-size: 14.5px; font-weight: 600; color: var(--c-text);
}
.st-nav__m-panel:has(> .st-nav__m-sub) > .st-nav__m-child:not(.st-nav__m-child--all):hover { color: var(--c-accent); }
.st-nav__m-panel:has(> .st-nav__m-sub) > .st-nav__m-child--all { padding-top: 11px; }
/* Every row in a mixed panel gets its own line; the last one has none
   (the parent .st-nav__m-item draws the line under the whole group). */
.st-nav__m-panel:has(> .st-nav__m-sub) > .st-nav__m-sub,
.st-nav__m-panel:has(> .st-nav__m-sub) > .st-nav__m-child { border-bottom: 1px solid var(--c-border-soft); }
.st-nav__m-panel:has(> .st-nav__m-sub) > :last-child { border-bottom: 0; }

/* --- Mobile/tablet header: search is a full-width second row (≤991) --------
   The design hid every header action but the last on mobile — including the
   search icon — and the search field only shows from 992px, so phones and
   tablets had no search at all. Big-store pattern: always-visible field. */
@media (max-width: 991.98px) {
  .st-header__inner { flex-wrap: wrap; row-gap: 12px; }
  .st-header__search { display: block; order: 10; flex: 1 0 100%; max-width: none; }
  .st-header__actions .st-action--search-m { display: none !important; }
}

/* --- Mobile bottom tab bar (≤767): Home · Catalog · Wishlist · Cart · Account --
   Like Rozetka / Comfy / Foxtrot. Switchable in theme settings. Hidden on the
   product page, which has its own fixed buy bar. The header cart stays too —
   big stores duplicate it there rather than move it. */
.st-tabbar { display: none; }
@media (max-width: 767.98px) {
  /* Header and tab bar are the two chrome strips of a phone page: 56 / 54px, so neither
     outweighs the other (was 70 / 50). Tab bar was 60, trimmed to 50 for the buy bar, now 54. */
  :root { --tabbar-h: 54px; --header-h: 60px; }
  .st-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-header) + 1);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--c-card); border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 16px rgba(15, 18, 22, 0.06);
  }
  .st-tabbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 4px 0 3px; background: none; border: 0; cursor: pointer;
    color: var(--c-text-muted); font-size: 11px; font-weight: 600; line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }
  .st-tabbar__item .st-icon { font-size: 21px; }
  .st-tabbar__item.is-active { color: var(--c-text); }
  .st-tabbar__item.is-active .st-icon { color: var(--c-accent); }
  .st-tabbar__icon { position: relative; display: inline-flex; }
  .st-tabbar__badge {
    position: absolute; top: -5px; right: -10px;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--c-sale); color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
  }
  .st-tabbar__badge[hidden] { display: none; }

  body:has(.st-tabbar) { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  body:has(.st-tabbar) .st-toast-stack { bottom: calc(var(--tabbar-h) + 16px); }
  body:has(.st-tabbar) .st-cc { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  /* Product page (Comfy pattern): the tab bar stays and the buy bar floats
     above it as a pill — price + button only. main.js adds the tab bar height
     to the bar's JS-managed bottom offset. */
  /* No extra page padding for the bar: it steps aside when the footer comes on screen
     (main.js, is-suppressed), so the footer is never under it — the old +72px only left
     a white strip under the dark footer. */
  body:has(.st-tabbar) .st-pdp-buymobile {
    left: 12px; right: 12px;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 6px);
    padding: 5px 5px 5px 18px; border: 1px solid var(--c-border); border-radius: var(--st-btn-radius);
    box-shadow: 0 8px 28px rgba(15, 18, 22, 0.16);
    transform: translateY(calc(100% + var(--tabbar-h) + 32px));
  }
  body:has(.st-tabbar) .st-pdp-buymobile.is-visible { transform: translateY(0); }
  body:has(.st-tabbar) .st-pdp-buymobile.is-visible.is-suppressed { transform: translateY(calc(100% + var(--tabbar-h) + 32px)); }
  body:has(.st-tabbar) .st-pdp-buymobile__img,
  body:has(.st-tabbar) .st-pdp-buymobile__name { display: none; }
  body:has(.st-tabbar) .st-pdp-buymobile__price { margin: 0; align-items: center; flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
  body:has(.st-tabbar) .st-pdp-buymobile__price .st-price__now { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
  body:has(.st-tabbar) .st-pdp-buymobile .st-btn { height: 38px; border-radius: var(--st-btn-radius); }
  body:has(.st-tabbar):has(.st-pdp-buymobile.is-visible:not(.is-suppressed)) .st-toast-stack { bottom: calc(var(--tabbar-h) + 72px); }
}

/* Drawer: compare row + catalog drawer title */
.st-drawer__link {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px;
  font-weight: 600; color: var(--c-text);
}
.st-drawer__link .ph { font-size: 20px; color: var(--c-text-soft); }
.st-drawer__count {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  display: grid; place-items: center; background: var(--c-bg-alt); font-size: 12px; font-weight: 700;
}
.st-drawer__count[hidden] { display: none; }
/* Wishlist + Compare in the menu: one row of two equal buttons, same look as the
   language / currency selects above them */
.st-drawer__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 2px; }
.st-drawer__quick .st-drawer__link {
  justify-content: center; gap: 8px; padding: 0 10px; height: 42px; min-width: 0;
  background: var(--c-bg-alt); border-radius: var(--r-md, 10px); font-size: 14px;
}
.st-drawer__quick .st-drawer__link .ph { font-size: 18px; flex: none; }
.st-drawer__quick .st-drawer__count { margin-left: 0; min-width: 20px; height: 20px; font-size: 11px; background: var(--c-card); }
.st-drawer--catalog .st-drawer__title { font-family: var(--f-heading); font-size: 20px; font-weight: 700; }

/* --- Phones: compact header on scroll (see initCompactHeader in main.js) ------
   Fixed instead of sticky so the height change can't move the page: the body
   reserves the expanded height. Collapsed = one row: burger · search. */
@media (max-width: 767.98px) {
  .st-header { position: fixed; top: 0; left: 0; right: 0; }
  body { padding-top: var(--st-hdr-h, 130px); }
  .st-header.is-compact .st-header__logo { display: none; }
  .st-header.is-compact .st-header__search { order: 0; flex: 1 1 0; min-width: 0; }
  .st-header.is-compact .st-header__inner { padding: 10px 0; }
  /* Collapsed = burger · search only: the header cart steps aside (the tab bar
     has it) so search gets the full row. */
  body:has(.st-tabbar) .st-header:not(.st-header--mlogo).is-compact .st-header__actions { display: none; }
}

/* --- Phones with a mobile logo mark (theme setting): always one row ----------
   menu · mark · search · cart — Rozetka-style; nothing collapses, nothing moves. */
.st-header__mlogo { display: none; }
@media (max-width: 767.98px) {
  .st-header--mlogo .st-header__mlogo { display: inline-flex; flex-shrink: 0; }
  .st-header--mlogo .st-header__mlogo img { display: block; width: 40px; height: 40px; object-fit: contain; }
  .st-header--mlogo .st-header__logo { display: none; }
  .st-header--mlogo .st-header__inner { flex-wrap: nowrap; }
  .st-header--mlogo .st-header__search { order: 0; flex: 1 1 0; min-width: 0; }
  .st-header--mlogo .st-header__inner { padding: 10px 0; }
}

/* --- Phones/tablets, "logo + icon" layout (theme setting Mobile header) -------
   One row: menu · full logo · search icon · actions. The icon unfolds the
   header's own field over the row (initHeaderSearchToggle in main.js); × folds
   it back. A wide logo shrinks (max 32px tall, never pushes the icons out). */
.st-header__search-close { display: none; }
@media (max-width: 991.98px) {
  .st-header--msearch-icon .st-header__inner { flex-wrap: nowrap; }
  .st-header--msearch-icon .st-header__search { display: none; }
  .st-header--msearch-icon .st-header__actions .st-action--search-m { display: inline-flex !important; } /* beats the ≤991 hide */
  .st-header--msearch-icon .st-action--search-m i { font-size: 24px; } /* was 15px — match the cart/account icons */
  .st-header--msearch-icon .st-header__logo { flex-shrink: 1; min-width: 0; margin-left: 8px; } /* burger → logo 20px (row gap 12 + 8): the full logo needs more air than the mark */
  .st-header--msearch-icon .st-header__logo img { max-width: 100%; max-height: 32px; }
  .st-header--msearch-icon .st-header__inner { padding: 10px 0; }
  .st-header--msearch-icon.is-search-open .st-header__inner > :not(.st-header__search) { display: none; }
  .st-header--msearch-icon.is-search-open .st-header__search {
    display: flex; align-items: center; gap: 10px; flex: 1 1 100%; order: 0; margin: 0;
  }
  .st-header--msearch-icon.is-search-open .st-header__search .st-search { flex: 1 1 auto; min-width: 0; }
  .st-header--msearch-icon.is-search-open .st-header__search-close {
    display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0;
    border: 0; background: none; color: var(--c-text); font-size: 22px; cursor: pointer;
  }
}

/* Phones/tablets: the burger button was 42px wide with a 21px icon centred, so
   ~10px of its own empty box sat between the icon and the logo. Shrink the box
   to the icon and keep a finger-sized hit area with an invisible ::before. */
@media (max-width: 991.98px) {
  .st-header .st-header__burger { position: relative; width: auto; min-width: 0; padding: 8px 0; justify-content: flex-start; }
  .st-header .st-header__burger::before { content: ""; position: absolute; inset: -2px -10px; }
}

/* Phones: while the search field has focus it takes the whole header row
   (menu / logo / cart step aside) — Rozetka pattern. One-row header (mobile logo)
   and the collapsed header; the two-row header already has a full-width field. */
@media (max-width: 767.98px) {
  .st-header--mlogo .st-header__inner:has(.st-header__search:focus-within) > :not(.st-header__search),
  .st-header.is-compact .st-header__inner:has(.st-header__search:focus-within) > :not(.st-header__search) { display: none; }
  .st-header .st-header__inner:has(.st-header__search:focus-within) > .st-header__search { flex: 1 1 100%; }
}

/* Phones: slimmer search field (44 → 40px) — never taller than the 40px logo mark.
   The base layout.css fixes the input at height:42px, so set the height itself. */
@media (max-width: 767.98px) {
  .st-header .st-search__input { height: 38px; padding-top: 0; padding-bottom: 0; }
}

/* Phones: same trick on the right — the cart button's own side padding left a gap
   between the search field and the cart icon. Hit area kept via ::before. */
@media (max-width: 767.98px) {
  .st-header .st-header__actions .st-cart-toggle { position: relative; padding-left: 0; padding-right: 0; }
  .st-header .st-header__actions .st-cart-toggle::before { content: ""; position: absolute; inset: -2px -8px; }
  /* the cart glyph has ~4px of built-in side bearing — compensate so the gap
     matches the burger↔logo one on the left */
  .st-header--mlogo .st-header__inner:not(:has(.st-header__search:focus-within)) > .st-header__search { margin-right: -4px; }
}

/* Phones: softer, layered shadow under the stuck header — a hairline edge plus a
   diffused drop that fades out, instead of the base thin --shadow-sm line. */
@media (max-width: 767.98px) {
  .st-header.is-stuck {
    box-shadow: 0 1px 0 rgba(15, 18, 22, 0.05), 0 8px 18px -8px rgba(15, 18, 22, 0.18);
  }
}

/* --- Phones: first-screen harmonisation (home hero) --------------------------
   1) the header always has a hairline edge (shadow on scroll comes on top);
   2) the main banner is compact: smaller title, description clamped to 2 lines;
   3) the two side banners sit side by side as square cards instead of two tall
      full-width ones — together ~350px less before the first real content. */
@media (max-width: 767.98px) {
  .st-header { box-shadow: 0 1px 0 var(--c-border-soft); }

  .st-hero__layout { gap: 12px; }
  .st-hero__banner--feature .swiper-slide { min-height: 280px; }
  .st-hero__banner--feature .st-hero__banner-panel { padding: 22px 20px 40px; }
  .st-hero__banner--feature .st-hero__banner-kicker { margin-bottom: 10px; font-size: 10px; padding: 4px 8px; }
  .st-hero__banner--feature .st-hero__banner-title { font-size: 24px; margin-bottom: 8px; }
  .st-hero__banner--feature .st-hero__banner-sub {
    font-size: 13px; margin-bottom: 14px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
  .st-hero__banner--feature .st-hero__banner-cta,
  .st-hero__banner--feature .st-hero__banner-secondary { padding: 10px 16px; }

  .st-hero__side-stack { grid-template-columns: 1fr 1fr; gap: 12px; }
  .st-hero__banner--card { aspect-ratio: 1 / 1; }
  .st-hero__banner--card .st-hero__banner-panel { padding: 14px; }
  .st-hero__banner--card .st-hero__banner-kicker { font-size: 9px; padding: 3px 6px; margin-bottom: 6px; }
  .st-hero__banner--card .st-hero__banner-title--small {
    font-size: 14px; line-height: 1.2;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  }
  .st-hero__banner--card .st-hero__banner-secondary { font-size: 12px; }
}

/* Header action badges honour [hidden] (compare badge is now always rendered) */
.st-action__badge[hidden] { display: none; }

/* --- Topbar: always light (secondary utility info) ---------------------------
   The design's black strip took attention from the logo/search while carrying
   only phones / links / switchers. Promo goes to .st-promo-bar below. */
#top.st-topbar--light { /* #top: the base layout.css paints the bar by id */
  background: var(--c-card); color: var(--c-text-muted); /* same white as the header, no divider — brand-store look */
  border-bottom: 0;
}
.st-topbar--light .st-switch__toggle,
.st-topbar--light .st-topbar__item { color: var(--c-text-muted); }
.st-topbar--light .st-switch__toggle:hover,
.st-topbar--light .st-topbar__item:hover { color: var(--c-text); }

/* Header "Login / Register" and the cart: both are <button>s, so the browser
   centred their two text lines; the other actions (links) are left-aligned. */
.st-header__actions .st-account__toggle .st-action__text,
.st-header__actions .st-cart-toggle .st-action__text { text-align: left; align-items: flex-start; }
/* Topbar icons take the text colour (as the design, html/styles/ionix.css:283),
   not the base accent (layout.css:17) — a blue phone icon next to grey text. */
#top .st-topbar__item i { color: inherit; }
#top.st-topbar--light .st-topbar__inner { min-height: 0; padding: 6px 0 0; } /* base sets min-height:var(--announce-h); no bottom — the bar shares the header's white, it sits on the logo row */

/* Desktop: the header row is closed by its full-width divider, so it keeps the
   design's even 18px top/bottom padding (a slim 4px bottom used to pull the
   borderless nav row up to the logo; with the divider it just looked lopsided,
   and the stuck header needed no white extension below it any more). */
@media (min-width: 992px) {
  .st-hero-slider--banners { padding-top: 24px; } /* air below the menu's shadow edge */
  /* Stuck: slimmer by 4px top and bottom. The header is sticky (in flow), so the
     8px it loses come back as margin-bottom — the flow size never changes and
     the page doesn't jump when is-stuck toggles. */
  .st-header .st-header__inner { transition: padding 0.2s ease; }
  .st-header.is-stuck .st-header__inner { padding-block: 14px; }
  .st-header { transition: box-shadow var(--dur) var(--ease), margin-bottom 0.2s ease; }
  .st-header.is-stuck { margin-bottom: 8px; }
}
/* Header edge: a hard 1px divider (plus the base tight shadow-sm when stuck) read
   as a harsh line. Draw the edge as one soft shadow instead — in the initial
   state and when stuck alike (same family as .st-pdp-nav.is-stuck /
   body.is-scrolled .st-navbar). Phones keep their own edge (≤767px). */
@media (min-width: 768px) {
  /* Initial: lighter — it only has to part the header row from the menu. */
  .st-header { box-shadow: 0 1px 0 rgba(15, 18, 22, 0.04), 0 6px 16px -8px rgba(15, 18, 22, 0.08); }
  .st-header.is-stuck { box-shadow: 0 1px 0 rgba(15, 18, 22, 0.04), 0 8px 24px -8px rgba(15, 18, 22, 0.14); }
}
/* Desktop: the menu belongs to the header — topbar + logo row + menu are one
   block, closed by the soft shadow UNDER the menu. Between the logo row and the
   menu only the design's hairline (so no extra air above the menu text either).
   Otherwise, on inner pages, the menu read as the first row of content
   (menu / crumbs / PDP tabs = three alike text rows).
   Stuck: only the logo row sticks, so it takes the stronger shadow itself. */
@media (min-width: 992px) {
  .st-header:not(.is-stuck) { box-shadow: 0 1px 0 var(--c-border-soft); }
  .st-navbar {
    /* its shadow paints over the content below; 40 (the design's navbar value):
       its dropdowns must clear the sticky .st-pdp-nav (39), stay under the header (120) */
    position: relative; z-index: 40;
    box-shadow: 0 1px 0 rgba(15, 18, 22, 0.04), 0 6px 16px -8px rgba(15, 18, 22, 0.08);
  }
}

/* --- Colour roles on the design's elements ----------------------------------
   The design hard-codes its chrome and paints PRIMARY / ACCENT elements with
   the text / sale colours, so none followed a scheme. With a scheme:
     PRIMARY  — Catalog button (the design paints it in the text colour: in
                Ionix primary = black = text, two roles one value);
     ACCENT   — search button, header counters (cart / wishlist / compare),
                tab-bar badge, shelf-title marker (the design: its sale red);
     chrome   — topbar / footer via --color-dark (bridge above) / --brand-footer.
   SALE prices, SALE badges, the HOT tag stay on --c-sale. Without a scheme:
   as designed (Ionix: Catalog black, accents red). */
html[data-scheme] .st-departments__toggle { background: var(--brand-primary); color: var(--brand-on-primary); }
html[data-scheme] .st-departments__toggle .st-icon { color: var(--brand-on-primary); }
html[data-scheme] .st-departments__toggle:hover,
html[data-scheme] .st-departments__toggle--open { background: var(--brand-primary-hover); }
/* No scheme: the design turned the black Catalog blue (its secondary) on hover /
   open, while every scheme hovers to a shade of its own primary. Same rule here:
   black → graphite (as Noir — black can't get darker, it lifts). */
:root:not([data-scheme]) .st-departments__toggle:hover,
:root:not([data-scheme]) .st-departments__toggle--open { background: #2B2B31; }
html[data-scheme] .st-search__submit { background: var(--brand-accent); color: var(--brand-on-accent); }
html[data-scheme] .st-search__submit:hover { background: var(--brand-accent-hover); }
html[data-scheme] .st-action__badge,
html[data-scheme] .st-tabbar__badge { background: var(--brand-accent); color: var(--brand-on-accent); }
html[data-scheme] .st-shelf__title::before { background: var(--brand-accent); }
/* Deals panel ("Today's deals"): the design tints the whole panel with the sale
   colour (border, head rule, fire icon, timer cells) over a hard-coded pink
   #FFF6F2 — the same red-pink in every palette. The panel surface (background,
   border, head rule) belongs to the palette: a faint ACCENT tint. The small bright
   urgency marks — fire icon, timer cells — stay sale-red, like the prices and
   SALE badges inside. */
html[data-scheme] .st-deals {
  background: linear-gradient(180deg, color-mix(in oklch, var(--brand-accent) 7%, #fff) 0%, #fff 70%);
  border-color: color-mix(in oklch, var(--brand-accent) 22%, #fff);
}
html[data-scheme] .st-deals__head { border-bottom-color: color-mix(in oklch, var(--brand-accent) 22%, #fff); }
/* USP icon discs: the design hard-codes a beige (ionix-home.css) — off next to
   a green / blue / violet scheme. Take the secondary's soft tint. */
html[data-scheme] .st-usp__icon { background: var(--brand-secondary-soft); }
/* …and without a scheme (Ionix: black / red / blue) the beige is foreign too —
   the design's own cool grey (the same bg-alt as its menu band). */
:root:not([data-scheme]) .st-usp__icon { background: var(--c-bg-alt); }
/* Hero banner title <em>: the design hard-codes a yellow (ionix-home.css) over
   the fixed graphite panel — a third colour next to most schemes. Each scheme
   has its accent tuned for that dark panel (--brand-accent-on-dark, generated in
   dev/tools/schemes). No scheme (Ionix): the design's yellow stays. */
html[data-scheme] .st-hero__banner-title em { color: var(--brand-accent-on-dark); }
/* Footer: a scheme may give it its own deep tint (--brand-footer, schemes.css —
   cool hues read well as deep navy / forest / aubergine; warm ones turn muddy
   brown or heavy maroon, so those keep the near-black dark tone). */
html[data-scheme] .st-footer { background: var(--brand-footer, var(--brand-dark)); }
/* Noir: the accent IS near-black, so the footer's accent button (newsletter →)
   vanished on the black footer — invert it there. */
html[data-scheme="noir"] .st-footer .st-btn--accent { --st-btn-bg: #fff; --st-btn-fg: #0F0F11; --st-btn-bd: #fff; --btn-bg: #fff; --btn-fg: #0F0F11; --btn-bd: #fff; background: #fff; color: #0F0F11; }
/* Footer contact icons / newsletter focus: the design's light blue (ionix.css)
   is a secondary tint. On the dark footer a scheme's secondary can be too dark
   (wine, noir) — use it lifted halfway to white, which always reads on dark. */
html[data-scheme] .st-footer__contact-item .st-icon { color: color-mix(in oklch, var(--brand-secondary) 50%, #fff); }
html[data-scheme] .st-footer__newsletter input:focus { border-color: color-mix(in oklch, var(--brand-secondary) 50%, #fff); }

/* --- Promo bar (ST Top Announce) — its own accent strip above the utility bar --
   Centred rotating message; accent = scheme accent (design accent without one).
   Hidden on phones like the utility bar (the phone header is fixed at the top). */
.st-promo-bar { background: var(--c-accent); color: var(--on-accent, #fff); font-size: 13px; font-weight: 600; }
.st-promo-bar .container { display: flex; justify-content: center; padding-top: 7px; padding-bottom: 7px; }
.st-promo-bar .st-announce__rotator { flex: 0 1 auto; width: 100%; }
.st-promo-bar .st-announce__msg strong { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.st-promo-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767.98px) { .st-promo-bar { display: none; } }

/* Slider headline <em>: not browser italic. Text keeps the headline colour (readable on any photo / light fill);
   the emphasis is a thick underline in the accent role, so it follows the colour scheme.
   Tried and set aside: marker band (accent 55%) and solid yellow fill (oklch(0.92 0.13 90), dark text). */
.st-hero__title em {
  font-style: normal; color: inherit;
  text-decoration: underline; text-decoration-color: var(--brand-accent, var(--c-sale));
  text-decoration-thickness: 0.09em; text-underline-offset: 0.14em; text-decoration-skip-ink: none;
}

/* 404: big code, search, popular categories (error/not_found.twig; content from the ionix.ocmod.xml patch) */
.st-404 { max-width: 720px; padding-block: var(--space-12, 48px); gap: 16px; }
.st-404__code {
  font-family: var(--f-heading); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 0.9;
  letter-spacing: -0.04em; color: var(--c-border-soft, #e5e7eb);
}
.st-404__search { display: flex; width: 100%; max-width: 480px; margin-top: 8px; }
.st-404__input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; font: inherit; color: var(--c-text);
  background: var(--c-card, #fff); border: 1px solid var(--c-border, #d1d5db); border-right: 0;
  border-radius: var(--r-md, 8px) 0 0 var(--r-md, 8px); outline: 0;
}
.st-404__input:focus { border-color: var(--c-accent); }
.st-404__submit {
  width: 52px; height: 46px; display: grid; place-items: center; border: 0; cursor: pointer; font-size: 20px;
  color: var(--brand-on-accent, #fff); background: var(--brand-accent, var(--c-sale));
  border-radius: 0 var(--r-md, 8px) var(--r-md, 8px) 0;
}
.st-404__submit:hover { background: var(--brand-accent-hover, var(--c-sale-strong)); }
.st-404__cats { width: 100%; margin-top: 12px; }
.st-404__cats-title { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-text-muted); }
.st-404__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.st-404__chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--c-border-soft, #e5e7eb); background: var(--c-card, #fff);
  font-size: 14px; font-weight: 500; color: var(--c-text); transition: border-color 0.12s, color 0.12s;
}
.st-404__chip:hover { border-color: var(--c-accent); color: var(--c-accent); }
.st-404__chip--all { border-style: dashed; color: var(--c-accent); }
.st-404 > .st-btn { margin-top: 12px; }

/* Blog cards (home "latest articles", /blog, category, featured). One card look everywhere:
   white card with hairline border, photo flush on top, text padded below, excerpt cut to 3 lines
   (the admin excerpt length is long — configblog_article_description_length — so the cut is CSS). */
.st-article-card {
  gap: 0; overflow: hidden;
  background: var(--c-card, #fff); border: 1px solid var(--c-border, #e5e7eb); border-radius: var(--r-lg, 12px);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.st-article-card:hover { border-color: var(--c-border, #d1d5db); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); }
.st-article-card__media { border-radius: 0; }
.st-article-card__body { gap: 10px; padding: 16px 20px 22px; flex: 1; }
.st-article-card__meta { gap: 14px; }
.st-article-card__meta .st-icon, .st-article-card__meta i { font-size: 14px; vertical-align: -2px; margin-right: 2px; }
.st-article-card__title { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.st-article-card__title a, .st-article-card__link { color: var(--c-text); text-decoration: none; }
.st-article-card__title a:hover { color: var(--c-accent); }
.st-article-card__excerpt {
  margin: 0; line-height: 1.55; color: var(--c-text-muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
/* sidebar columns: compact list rows, no card chrome */
#column-left .st-article-card, #column-right .st-article-card { background: none; border-radius: 0; border-width: 0 0 1px; box-shadow: none; }
#column-left .st-article-card:last-child, #column-right .st-article-card:last-child { border-bottom-width: 0; }
#column-left .st-article-card__body, #column-right .st-article-card__body { padding: 0; }
#column-left .st-article-card__media, #column-right .st-article-card__media { border-radius: var(--r-sm, 6px); }

/* Article page: comfortable reading measure (the full container gave ~170 characters per line) */
.st-section--article-top .st-prose { max-width: 760px; font-size: 17px; line-height: 1.7; }
.st-section--article-top .st-prose p { margin-bottom: 1.1em; }

/* Blog card without a photo: a soft tile with a newspaper icon instead of the OC placeholder logo */
.st-article-card__ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--c-bg-alt), color-mix(in srgb, var(--c-bg-alt) 55%, var(--c-border-soft)));
  color: var(--c-text-soft); font-size: 44px;
}
#column-left .st-article-card__ph, #column-right .st-article-card__ph { font-size: 22px; }

/* A coloured (alt / dark) last section already ends the page visually: the footer's own top gap
   would leave a white band between it and the footer. */
main:has(> .st-section--alt:last-of-type, > .st-section--dark:last-of-type) + .st-footer { margin-top: 0; }

/* Article page head: the title sat ~32px under the breadcrumb line but ~55px above the text.
   More air above, less below, so the H1 reads as the start of the article, not a floating block. */
.st-page-head:has(+ .st-section--article-top) .st-page-head__inner { padding-block: 40px 8px; }

/* st_promo_banners: "strip" and "duo" layouts (design: .st-promo-strip, .st-banner-2up).
   The design hard-codes the 2-up photos per modifier; here the photo comes from the module, so the
   dark / light looks are a scrim + palette only. */
.st-promo-banner__sub { margin: 0; font-size: var(--fs-sm2); color: var(--c-text-muted); }
.st-banner--dark { background: oklch(0.32 0.10 280); }
.st-banner--dark .st-banner__media { filter: none; }
.st-banner--dark .st-banner__media::after,
.st-banner--light .st-banner__media::after { content: ""; position: absolute; inset: 0; }
.st-banner--dark .st-banner__media::after { background: linear-gradient(120deg, oklch(0.32 0.10 280) 10%, transparent 90%); }
.st-banner--light { background: oklch(0.90 0.05 90); }
.st-banner--light .st-banner__media::after { background: linear-gradient(105deg, oklch(0.90 0.05 90) 42%, oklch(0.90 0.05 90 / 0.55) 60%, transparent 85%); }
.st-banner--light .st-banner__kicker { background: rgba(0, 0, 0, 0.08); color: var(--c-text); }
.st-banner--light .st-banner__title { color: var(--c-text); }
.st-banner--light .st-banner__sub { color: var(--c-text); opacity: 0.8; }
.st-banner--light .st-banner__inner { max-width: 340px; }
.st-banner__title { font-family: var(--f-heading); }
.st-banner__title em, .st-promo-banner__title em { font-style: normal; color: oklch(0.92 0.13 90); }
.st-banner--light .st-banner__title em { color: var(--c-accent); }
.st-promo-banner__title em { color: var(--c-accent); }

/* st_sale_banner "mega" style (design: .st-mega-banner). The design hard-codes the photo; the module sets it inline,
   so the art keeps the design's fade-in mask. Whole banner is a link when a button URL is set. */
.st-mega-banner { text-decoration: none; }
.st-mega-banner__title { font-family: var(--f-heading); }
.st-mega-banner__sub { margin-top: 0; }
.st-mega-banner__price { display: flex; align-self: flex-start; }
.st-mega-banner__cta { margin-top: 2px; }
@media (max-width: 767.98px) {
  .st-mega-banner { padding: 32px 24px; min-height: 0; }
  .st-mega-banner__content { max-width: 100%; }
  .st-mega-banner__title { font-size: 30px; }
  .st-mega-banner__art { width: 100%; opacity: 0.25; mask-image: none; -webkit-mask-image: none; }
}

/* Footer newsletter form now also holds the consent checkbox (it must be inside the form for common.js). */
.st-footer__newsletter { flex-wrap: wrap; }
.st-footer__newsletter .st-footer__subscribe-agree { flex: 1 0 100%; margin-top: 0; }
.st-footer__newsletter .st-footer__subscribe-agree input {
  flex: none; width: auto; padding: 0; border: 0; background: none; margin-top: 0.2em;
}

/* Category page: subcategory cards (Ionix look: white card, hairline, small contained thumbnail on the left,
   name, product count only when > 0). Replaces the full-bleed photo tiles with a dark scrim. */
.st-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.st-subcat {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 10px 14px 10px 10px;
  background: var(--c-card, #fff); border: 1px solid var(--c-border, #e5e7eb); border-radius: var(--r-md, 8px);
  color: var(--c-text); text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.st-subcat:hover { border-color: var(--c-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06); }
.st-subcat__media {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden;
  border-radius: var(--r-sm, 6px); background: var(--c-bg-alt); color: var(--c-text-soft); font-size: 24px;
}
.st-subcat__media img { width: 100%; height: 100%; object-fit: contain; }
.st-subcat:hover .st-subcat__media { color: var(--c-accent); }
.st-subcat__name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.st-subcat:hover .st-subcat__name { color: var(--c-accent); }
.st-subcat__count { flex: none; font-size: 12.5px; font-weight: 500; color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .st-subcats { grid-template-columns: 1fr 1fr; gap: 8px; } .st-subcat { padding: 8px; gap: 8px; } .st-subcat__media { width: 40px; height: 40px; font-size: 20px; } .st-subcat__name { font-size: 13px; } }

/* Toast icon is Phosphor (was a FontAwesome class the theme doesn't load → broken glyph); errors get a warning tone */
.st-toast__icon { flex: none; line-height: 1; }
.st-toast--error .st-toast__icon { color: oklch(0.80 0.14 75); }

/* Hero banners (feature slide + side cards): the text panel was SOLID near-black over the first ~30% and only
   then faded, so half of every banner was a flat black block — much heavier than the other sliders
   (.st-hero-slide__bg::after = 62% → 15%). Now a smooth scrim: ~78% behind the text (white text keeps >= 6:1 even
   over a white photo) fading to nothing, so the photo shows through, plus a soft text shadow for busy photos. */
.st-hero__banner--feature .st-hero__banner-panel {
  background: linear-gradient(100deg,
    oklch(0.24 0.005 240 / 0.80) 0%, oklch(0.24 0.005 240 / 0.70) 38%,
    oklch(0.24 0.005 240 / 0.30) 66%, transparent 92%);
}
.st-hero__banner-panel--compact {
  background: linear-gradient(100deg,
    oklch(0.24 0.005 240 / 0.78) 0%, oklch(0.24 0.005 240 / 0.68) 40%,
    oklch(0.24 0.005 240 / 0.28) 70%, transparent 96%);
}
.st-hero__banner-panel .st-hero__banner-title,
.st-hero__banner-panel .st-hero__banner-sub { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }

/* Mega banner colours: the design's gradient is a hard-coded brick red (oklch .42 .14 25) that ignores the colour
   scheme and out-shouts the dark hero and the soft promo tiles. Now built from the scheme: primary dark on the text
   side, melting into the sale colour behind the photo, so it follows the scheme and sits with the hero. */
.st-mega-banner {
  background: linear-gradient(120deg,
    var(--brand-dark, #0f1216) 0%,
    color-mix(in oklch, var(--c-sale) 42%, var(--brand-dark, #0f1216)) 58%,
    color-mix(in oklch, var(--c-sale) 68%, var(--brand-dark, #0f1216)) 100%);
}
.st-mega-banner__cta { color: var(--brand-dark, #0f1216); }

/* Mega banner rhythm: label 14 → title 14 → sub 20 → price 20 → button. The title wraps balanced (no lone "off"),
   the price uses the heading font instead of the mono one (its wide space split "299  грн") and aligns the old price
   on the baseline. */
.st-mega-banner__title { margin-bottom: 14px; text-wrap: balance; }
.st-mega-banner__sub { margin-bottom: 20px; text-wrap: pretty; }
.st-mega-banner__price { margin: 0 0 20px; gap: 2px; font-family: var(--f-heading); }
.st-mega-banner__price-from { font-family: var(--f-mono); line-height: 1; }
.st-mega-banner__price-val { display: flex; align-items: baseline; gap: 12px; font-size: 30px; line-height: 1.1; word-spacing: -0.08em; }
.st-mega-banner__price-old { font-size: 15px; font-weight: 500; word-spacing: 0; }
.st-mega-banner__cta { margin-top: 0; }

/* Newsletter banner (st_subscribe_form, style "bar"; design: .st-newsletter-bar). The design's blue gradient is hard-coded:
   here it is a soft tint of the scheme's secondary colour. The consent checkbox wraps under the field. */
.st-newsletter-bar {
  background: linear-gradient(135deg,
    color-mix(in oklch, var(--brand-secondary, var(--c-accent)) 9%, #fff) 0%,
    color-mix(in oklch, var(--brand-secondary, var(--c-accent)) 18%, #fff) 100%);
  border: 1px solid color-mix(in oklch, var(--brand-secondary, var(--c-accent)) 14%, #fff);
}
.st-newsletter-bar__icon { background: var(--brand-primary, var(--c-text)); }
.st-newsletter-bar__form { flex-wrap: wrap; }
.st-newsletter-bar__form input[type="email"] { flex: 1 1 200px; }
.st-newsletter-bar__agree {
  flex: 1 0 100%; display: flex; align-items: flex-start; gap: 8px; margin-top: 4px;
  font-size: 12px; line-height: 1.4; color: var(--c-text-muted); cursor: pointer;
}
.st-newsletter-bar__agree input { flex: none; width: auto; margin-top: 0.15em; padding: 0; accent-color: var(--c-accent); }
.st-newsletter-bar__agree a { text-decoration: underline; }
.st-newsletter-bar .st-newsletter__msg { margin-top: 10px; font-size: 14px; }
.st-newsletter-bar .st-newsletter__msg--success { color: var(--color-success); font-weight: 600; }
.st-newsletter-bar .st-newsletter__msg--error { color: var(--c-sale); }

/* Category circles on tablet / desktop: ONE scrollable row (8 visible on desktop, 4 on tablet) with arrows that
   appear only when the circles do not fit. Before: an 8-column grid that wrapped into extra rows and left orphans.
   Phones keep their own swipe row (rules in ionix-home.css). */
.st-cat-circles-wrap { position: relative; }
@media (min-width: 576px) {
  .st-cat-circles {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    scroll-padding-inline: 24px;
  }
  .st-cat-circles::-webkit-scrollbar { display: none; }
  .st-cat-circle { flex: 0 0 calc((100% - 84px) / 8); scroll-snap-align: start; }
  .st-cat-circles-wrap .st-carousel__nav[hidden] { display: none; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .st-cat-circle { flex-basis: calc((100% - 36px) / 4); }
}
@media (max-width: 575.98px) { .st-cat-circles-wrap .st-carousel__nav { display: none; } }

/* One page-title size: information pages and the contact page used --fs-2xl / bold (28px), the brand index fell through
   to the global h1 (--fs-4xl, up to 60px), while categories, blog, specials use .st-page-head__title (--fs-3xl, 700). */
#information-information h1,
.st-contact-heading,
.st-brand-index__title {
  font-size: var(--fs-3xl);
  font-weight: 700;            /* = ionix.css h1, what .st-page-head__title renders with */
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
}

/* ==========================================================================
   Mobile density + PDP head + sort sheet (2026-10-13)
   ========================================================================== */

/* PDP: brand + title (.st-pdp__head) are the first thing on phones, above the
   gallery. On desktop the grid puts them back at the top of the info column. */
.st-pdp__head { min-width: 0; margin-bottom: 12px; }
.st-pdp__head .st-pdp-info__brand { margin-bottom: 4px; }
.st-pdp__head .st-pdp-info__title { margin-bottom: 0; }
@media (min-width: 992px) {
  .st-pdp__layout {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr;
    grid-template-areas: "gallery head" "gallery info";
    column-gap: 48px; row-gap: 0;
  }
  .st-pdp-gallery { grid-area: gallery; }
  .st-pdp__head { grid-area: head; margin-bottom: 14px; }
  .st-pdp__head .st-pdp-info__title { margin-bottom: 0; }
  .st-pdp-info { grid-area: info; }
}
@media (max-width: 767px) {
  .st-pdp__head .st-pdp-info__title { font-size: 19px; line-height: 1.22; letter-spacing: -0.01em; }
  .st-pdp__head .st-pdp-info__brand { font-size: 10.5px; }
  /* section tabs: smaller, tighter — more of them visible without scrolling */
  .st-pdp-tabs__btn { padding: 10px 12px; font-size: 13px; }
}

/* Transparent product photos sit on white — gallery, cards and the lightbox
   (GLightbox's dark overlay showed through as black behind PNG cut-outs). */
.st-pdp-gallery__main,
.st-pdp-gallery__thumbs .swiper-slide,
.st-product-card__media { background: #fff; }
.glightbox-container .gslide-image img { background: #fff; }

/* Slider copy on phones: the photo is the message, text stays compact */
@media (max-width: 767px) {
  .st-hero-slider--split .st-hero__title { font-size: 22px; }
  .st-hero-slider--split .st-hero__text { font-size: 13px; }
  .st-hero.st-hero-slider--split .st-hero__actions .st-btn { padding: 8px 16px; font-size: 13px; min-height: 0; }
}

/* Category toolbar on phones: [count] / [Filters] [Sort] ... [view]; the sort
   <select>, limit and in-stock live in the sort sheet / are desktop-only. */
.st-shop-toolbar__sort-btn { display: none; }
@media (max-width: 767px) {
  .st-shop-toolbar__sort-btn { display: inline-flex; }
  .st-shop-toolbar.has-sheet .st-shop-toolbar__group--desk { display: none; }
  .st-shop-toolbar { padding: var(--space-3); gap: var(--space-2) var(--space-3); }
  .st-shop-toolbar__filter-btn, .st-shop-toolbar__view-btn { height: 34px; }
  .st-shop-toolbar__view-btn { width: 34px; }
  .st-shop-toolbar__filter-btn { padding: 0 0.7em; font-size: 13px; gap: 0.3rem; white-space: nowrap; }
  .st-shop-toolbar__view { margin-left: auto; flex: 0 0 auto; }
}

/* Bottom sheet (JYSK-style) — .st-modal--sheet */
@media (max-width: 767px) {
  .st-modal--sheet { place-items: end stretch; padding: 0; }
  .st-modal--sheet .st-modal__dialog {
    width: 100%; max-height: 85vh; border-radius: 16px 16px 0 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .st-modal--sheet.is-open .st-modal__dialog { transform: none; }
  .st-modal--sheet .st-modal__close { top: 10px; right: 10px; width: 34px; height: 34px; }
}
.st-sheet__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; padding-right: 40px; }
.st-sheet__list { list-style: none; margin: 0; padding: 0; }
.st-sheet__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 2px; font-size: 14.5px; color: var(--c-text);
  border-bottom: 1px solid var(--c-border-soft);
}
.st-sheet__opt.is-active { font-weight: 700; color: var(--brand-secondary, var(--accent)); }
.st-sheet__check { display: flex; align-items: center; gap: 10px; padding: 14px 2px 2px; font-size: 14px; cursor: pointer; }
.st-sheet__check input { width: 18px; height: 18px; }
@media (min-width: 768px) { .st-modal--sheet { display: none; } }

/* Category/listing page head on phones: the 24+24px stacked padding left a big
   gap between the lead text and the toolbar */
@media (max-width: 767px) {
  .st-page-head { padding-block: var(--space-3) 0; }
  .st-page-head__inner { padding-block: var(--space-2) var(--space-3); gap: var(--space-2); }
  .st-page-head__title { font-size: 1.625rem; }
  .st-page-head__lead { font-size: 14px; }
  .st-shop-toolbar { margin-bottom: var(--space-4); }
}

/* PDP on phones: the base grid gap (32px) + head margin made ~44px between the
   title and the gallery. One tight gap for head → gallery → info. */
@media (max-width: 991.98px) {
  .st-pdp__layout { gap: 14px; }
  .st-pdp__head { margin-bottom: 0; }
}

/* PDP gallery on phones: the 3:4 box made the photo ~60% of the screen and
   pushed price/buy out of sight. Cap it at ~34% of the viewport height and
   show the whole product (contain) instead of cropping it. */
@media (max-width: 767px) {
  .st-pdp-gallery__main { aspect-ratio: auto; height: min(calc(100vw - 32px), 34svh); }
  .st-pdp-gallery__main img { object-fit: contain; }
}

/* Breadcrumbs: one line, scroll sideways instead of wrapping (JS scrolls to the
   current page on load) */
.st-breadcrumb { flex-wrap: nowrap; min-width: 0; }
.st-breadcrumb__list {
  flex-wrap: nowrap; white-space: nowrap; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.st-breadcrumb__list::-webkit-scrollbar { display: none; }
.st-breadcrumb__item { flex-shrink: 0; }

/* ==========================================================================
   Home, phones: lighter first screen (2026-10-13)
   ========================================================================== */
@media (max-width: 767.98px) {
  /* Slider: shorter card; copy = eyebrow + title + ONE button (the lead text and a
     second button made the block half the slide and covered the product) */
  .st-hero-slider--split .st-hero__media { aspect-ratio: 1 / 1; max-height: calc(100svh - 250px); }
  .st-hero-slider--split .st-hero__media::after {
    background: linear-gradient(180deg, rgba(10, 12, 16, 0) 45%, rgba(10, 12, 16, 0.5) 68%, rgba(10, 12, 16, 0.85) 100%);
  }
  .st-hero-slider--split .st-hero__text { display: none; }
  .st-hero.st-hero-slider--split .st-hero__actions .st-btn:not(:first-child) { display: none; }
  .st-hero-slider--split .st-hero__title { font-size: 24px; text-wrap: balance; }
  .st-hero-slider--split .st-hero__body { padding-bottom: 34px; }
  .st-hero.st-hero-slider--split .st-hero__actions { margin-top: 4px; }

  /* Benefits strip: one swipeable row of compact items instead of a 2x2 grid of
     tall tiles */
  .st-section--usp { padding-block: 12px 0; }
  .st-section--usp .st-usp__list {
    display: flex; grid-template-columns: none; overflow-x: auto;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .st-section--usp .st-usp__list::-webkit-scrollbar { display: none; }
  .st-section--usp .st-usp__item {
    flex: 0 0 auto; width: 230px; scroll-snap-align: start;
    flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px;
    border-right: 1px solid var(--c-border-soft); border-bottom: 0;
  }
  .st-section--usp .st-usp__item:nth-child(2n) { border-right: 1px solid var(--c-border-soft); }
  .st-section--usp .st-usp__item:nth-child(-n+2) { border-bottom: 0; }
  .st-section--usp .st-usp__item:last-child { border-right: 0; }
  .st-section--usp .st-usp__icon { width: 34px; height: 34px; flex: none; }
  .st-section--usp .st-usp__icon .st-icon { font-size: 17px; }
  .st-section--usp .st-usp__title { font-size: 13px; line-height: 1.25; }
  .st-section--usp .st-usp__sub { font-size: 11.5px; margin-top: 1px; }
}
@media (max-width: 767.98px) { .st-hero + .st-section--usp { padding-top: 20px; } }
/* Phones: the strip is now compact, so the 48px section gap after it looked loose */
@media (max-width: 767.98px) {
  .st-section--usp + .st-section,
  .st-section--usp + script + .st-section { padding-top: 20px; }
}

/* Phones: fixed 56px header row for the one-row layouts (logo + icon, mobile logo).
   The row's height came from 10px padding + 44px icon buttons (~70px); set it
   directly. (Layout with the search field on a second row keeps its own height.) */
@media (max-width: 767.98px) {
  .st-header--msearch-icon .st-header__inner,
  .st-header--mlogo .st-header__inner { height: var(--header-h); min-height: 0; padding-block: 0; }
}

/* Login on phones: the register block sits far below the form, so a guest never
   notices it — show a clear "Create an account" button right under "Log in". */
.st-auth__register-m { display: none; margin-top: 10px; }
@media (max-width: 767.98px) { .st-auth__register-m { display: flex; } .st-auth__register { display: none; } }

/* Compare on phones: the header hid it (and wishlist/account) — only the last action
   stayed. Show the compare icon once there is something to compare; the drawer link
   remains for the empty state. */
@media (max-width: 767.98px) {
  .st-header__actions .st-action.st-action--compare.is-filled { display: inline-flex; }
}

/* Phones: the right column (account menu on login/register…) stacks right under
   #content — keep a gap between the two blocks */
@media (max-width: 767.98px) {
  #column-right { margin-top: var(--space-6, 24px); }
}

/* Gallery lightbox on phones: GLightbox puts overflow:hidden on <html>/<body>, which makes
   mobile browsers resize the visible area (address bar) and the fixed header / sticky tabs
   bar recalculate and jump on close. The overlay is position:fixed with touch-action:none
   anyway, so the scroll lock isn't needed on touch screens. */
@media (max-width: 767.98px) {
  html.glightbox-open, body.glightbox-open { overflow: visible !important; height: auto !important; }
}

/* ==========================================================================
   PDP: "choose an option" feedback — red-bordered field, message right under it, one shake,
   the page scrolls to it and a toast repeats the text (product.twig).
   ========================================================================== */
.st-pdp-variant.has-error .st-pdp-variant__label, .st-pdp-variant.has-error label { color: var(--c-sale); }
.st-pdp-variant.has-error .st-select, .st-pdp-variant.has-error .st-input { border-color: var(--c-sale); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-sale) 14%, transparent); }
.st-pdp-variant.has-error .st-pdp-variant__size { border-color: var(--c-sale); }
.st-pdp-variant.has-error .st-pdp-variant__swatch { outline: 2px solid var(--c-sale); outline-offset: 2px; }
.st-pdp-variant .text-danger { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--c-sale); display: flex; align-items: center; gap: 6px; }
.st-pdp-variant .text-danger::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes st-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.st-shake { animation: st-shake 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .st-shake { animation: none; } }

/* Logo: default height (overridable via theme setting → inline style) */
.st-header__logo img, .st-footer__brand .st-logo img { display: block; height: 32px; width: auto; }

/* --- PDP: real tabs (one panel at a time) + pinned buy box ------------------
   The tab bar now lives inside .st-pdp-body__main, above the panels, so it is a
   plain bar (no full-bleed backdrop) and each panel shows only when its tab is
   active (JS toggles [hidden]). The panel title repeats the tab label — hidden. */
.st-pdp-nav { background: transparent; box-shadow: none; margin-bottom: var(--space-2, 8px); }
.st-pdp-nav::before { display: none; }
.st-pdp-nav .st-pdp-tabs__bar { border-bottom: 2px solid var(--c-border); }
.st-pdp-tabs__btn { padding: 12px 20px; border-radius: var(--r-sm, 6px) var(--r-sm, 6px) 0 0; }
.st-pdp-tabs__btn:hover { background: var(--c-bg-alt); }
.st-pdp-tabs__btn:focus-visible { outline: 2px solid var(--c-text); outline-offset: -2px; }
.st-pdp-body__main .st-pdp-section { max-width: none; border-bottom: 0; padding-block: var(--space-6, 24px); scroll-margin-top: 96px; }
.st-pdp-body__main .st-pdp-section[hidden] { display: none; }
.st-pdp-body__main .st-pdp-section > .st-pdp-section__title { display: none; }
@media (min-width: 992px) {
  .st-pdp-buybox { position: sticky; top: calc(var(--st-sticky-header-h, var(--header-h, 72px)) + 16px); align-self: start; }
}

/* theme setting "Header Catalog button": a clear gap between the logo and the button */
@media (min-width: 992px) { .st-header__catalog { margin-left: 4px; } }
