/* ==========================================================================
   Ionix — ionix.css
   Shared CSS for all pages. Imports ST Design System then overrides
   tokens with Ionix-specific values and adds Ionix layout components.

   Load order in each page CSS:
     @import url('./ionix.css');  (this file)
     … page-specific rules below
   ========================================================================== */

/* 1. ST Design System (buttons, badges, prices, ratings, layout utils, reset) */
@import url('./design-system/index.css');

/* ==========================================================================
   2. IONIX TOKEN OVERRIDES
   Override ST Design System defaults with Ionix-specific values.
   ========================================================================== */
:root {
  /* Fonts */
  --st-font-heading: "Manrope", "Inter", system-ui, sans-serif;
  --st-font-body:    "Inter", system-ui, sans-serif;

  /* Container: 1440px = 1376px of content at the 32px gutter. Ukrainian big-box
     stores at 1920px measure 1406–1600px (Foxtrot / Rozetka / EVA / Comfy); the
     design-system default 1280px left ~350px empty on each side. 1440 widens
     without re-counting the fixed-column product grids (1600 would want 5–6). */
  --st-container:    1440px;

  /* Accent: Ionix electronics blue */
  --st-accent:       oklch(0.55 0.18 255);
  --st-accent-dark:  oklch(0.46 0.20 255);
  --st-accent-soft:  oklch(0.94 0.04 255);

  /* Sale: orange-red (electronics urgency) */
  --st-sale:         oklch(0.55 0.22 25);
  --st-danger:       oklch(0.55 0.22 25);   /* sale = danger slot in this theme */
  --st-danger-bg:    oklch(0.93 0.05 25);

  /* Surface */
  --st-bg:           #F7F5F1;
  --st-bg-alt:       #EFECE3;
  --st-surface:      #FFFFFF;
  --st-text:         #14171B;
  --st-muted:        #6B6F76;
  --st-gray-400:     #9097A0;

  /* Border */
  --st-border:       #E6E2D9;
  --st-gray-150:     #EFECE3;

  /* Stars */
  --st-star:         #F4B528;

  /* Heading = near-black */
  --st-heading:      #14171B;

  /* Ionix mono font (not in DS) */
  --hv-font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Ionix cream */
  --hv-cream:        oklch(0.91 0.045 78);
  --hv-cream-deep:   oklch(0.86 0.06 78);
}

/* Theme setting "Site width" (theme_ionix_container → <html data-container>):
   normal = the design's 1280px. The attribute selector outranks :root above. */
html[data-container="normal"] { --st-container: 1280px; }

/* ==========================================================================
   3. TOKEN BRIDGE  (--c-* = Ionix naming → --st-* / --hv-*)
   All component CSS below uses --c-* so it works unchanged.
   ========================================================================== */
:root {
  --c-bg:            var(--st-bg);
  --c-bg-alt:        var(--st-bg-alt);
  --c-card:          var(--st-surface);
  --c-card-alt:      var(--st-bg-alt);
  --c-text:          var(--st-text);
  --c-text-muted:    var(--st-muted);
  --c-text-soft:     var(--st-gray-400);
  --c-border:        var(--st-border);
  --c-border-soft:   var(--st-gray-150);
  --c-line:          var(--st-gray-150);
  --c-accent:        var(--st-accent);
  --c-accent-hover:  var(--st-accent-dark);
  --c-accent-soft:   var(--st-accent-soft);
  --c-sale:          var(--st-sale);
  --c-sale-soft:     oklch(0.95 0.04 28);
  --c-sale-strong:   oklch(0.50 0.22 25);
  --c-success:       var(--st-success);
  --c-success-soft:  var(--st-success-bg);
  --c-warning:       var(--st-warning);
  --c-star:          var(--st-star);
  --f-heading:       var(--st-font-heading);
  --f-body:          var(--st-font-body);
  --f-mono:          var(--hv-font-mono);
  --r-xs:            4px;
  --r-sm:            var(--st-radius-sm);
  --r-md:            var(--st-radius);
  --r-lg:            var(--st-radius-lg);
  --r-pill:          var(--st-radius-pill);
  --sh-card:         var(--st-shadow-xs);
  --sh-hover:        var(--st-shadow-md);
  --sh-pop:          var(--st-shadow-lg);
  --container-max:   var(--st-container);
  --section-gap:     var(--st-section-y);
}

/* ==========================================================================
   4. RETAIL MODE OVERRIDES
   ========================================================================== */
:root {
  --c-bg:          #FFFFFF;
  --c-bg-alt:      #F1F3F6;
  --c-card:        #FFFFFF;
  --c-card-alt:    #F8F9FB;
  --c-text:        #0F1216;
  --c-text-muted:  #5A6270;
  --c-text-soft:   #8993A1;
  --c-border:      #E3E6EB;
  --c-border-soft: #ECEFF3;
  --c-line:        #EDEFF3;
  --c-accent:      oklch(0.55 0.18 255);
  --c-accent-hover:oklch(0.46 0.20 255);
  --c-accent-soft: oklch(0.94 0.04 255);
  --c-sale:        oklch(0.55 0.22 25);
  --c-sale-strong: oklch(0.50 0.22 25);
  --c-sale-soft:   oklch(0.93 0.05 25);
  --section-gap:   48px;
}

/* ==========================================================================
   5. BASE — body, links, images, container
   ========================================================================== */
html, body { background: var(--c-bg); }
body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
  margin: 0;
}
.st-pdp-section__title { font-size: 1.375rem; margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent); }
img { max-width: 100%; display: block; }
button { font-family: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.st-icon { font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; vertical-align: middle; }
.st-icon::before { display: block; }

/* Container (DS layout.css overrides .container already; this ensures margin auto) */
.container { margin-inline: auto; }

/* ==========================================================================
   6. ST-RATING OVERRIDE — gradient-star approach instead of icon-based
   (DS defines st-rating__stars as inline-flex of icons; we override for
   the simpler CSS-gradient approach used in JS-rendered product cards.)
   ========================================================================== */
.st-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-text-muted);
}
.st-rating__stars {
  --pct: 100%;
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--c-star) var(--pct), #DAD6CB var(--pct));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  /* override the DS display:inline-flex */
  gap: 0;
}
.st-rating__stars::before { content: "★★★★★"; }
.st-rating__stars .is-on { display: none; }   /* hide DS icon children if present */
.st-rating__count { color: var(--c-text-soft); }

/* ==========================================================================
   7. ST-PRICE  — keep DS classes, add Ionix retail-mode overrides
   ========================================================================== */
.st-price__now {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--f-heading);
  letter-spacing: -0.01em;
}
.st-price__now--sale { color: var(--c-sale); font-weight: 800; }
.st-price__old { font-family: var(--f-heading); font-size: 13px; }

/* ==========================================================================
   8. ST-BADGE  — keep DS classes; mono font + uppercase for Ionix style
   ========================================================================== */
.st-badge {
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.st-badge--sale { font-size: 12px; padding: 6px 8px; font-weight: 700; }
.st-badge--new,
.st-badge--hot  { font-size: 11px; padding: 6px 8px; }

/* Override DS colors with Ionix values */
.st-badge--sale    { --st-badge-bg: var(--c-sale);    --st-badge-fg: #fff; }
.st-badge--new     { --st-badge-bg: var(--c-accent);  --st-badge-fg: #fff; }
.st-badge--hot     { --st-badge-bg: var(--c-warning);  --st-badge-fg: #14171B; }

/* ==========================================================================
   9. SECTION utilities
   ========================================================================== */
.st-shelf { padding-top: var(--section-gap); }
.st-shelf--tight { padding-top: 40px; }
.st-shelf__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}
.st-shelf__title { font-size: 26px; letter-spacing: -0.02em; }
.st-shelf__link {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.st-shelf__link:hover { color: var(--c-text); border-color: var(--c-text); }

.st-shelf__head {
  border-bottom: 0;
  align-items: center;
  padding-bottom: 0;
  margin-bottom: 22px;
}
.st-shelf__title { font-size: 28px; font-weight: 800; }
.st-shelf__title::before {
  content: "";
  display: inline-block;
  width: 4px; height: 26px;
  background: var(--c-sale);
  border-radius: 2px;
  vertical-align: -4px;
  margin-right: 12px;
}
.st-shelf__link {
  font-weight: 700;
  font-size: 13px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  border-bottom-width: 1px;
}
.st-shelf__link:hover { background: var(--c-text); color: #fff !important; border-color: var(--c-text); }

/* ==========================================================================
   10. TOPBAR
   ========================================================================== */
.st-topbar {
  background: #0E1116;
  color: #C3C7CE;
  font-size: 12.5px;
}
.st-topbar { background: #0F1216; }
.st-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
}
.st-topbar__left, .st-topbar__right { display: flex; align-items: center; gap: 22px; }
.st-topbar__item { display: inline-flex; align-items: center; gap: 6px; color: #C3C7CE; }
.st-topbar__item:hover { color: #fff; }
.st-topbar__item .st-icon { font-size: 14px; }
.st-topbar__divider { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.14); }
.st-topbar__select {
  background: transparent;
  border: 0;
  color: #C3C7CE;
  font-family: inherit;
  font-size: 12.5px;
  padding: 0 16px 0 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23C3C7CE' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  cursor: pointer;
}

/* ==========================================================================
   11. SITE HEADER — Row 1: brand + search + header-actions
   ========================================================================== */
.st-header {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
}
.st-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 0;
}
.st-header__inner { gap: 28px; padding: 18px 0; }

.st-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.st-logo__mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--c-text);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.st-logo__text {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--c-text);
}
.st-logo__text { font-size: 24px; }

.st-search {
  flex: 1;
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.st-search:focus-within { border-color: var(--c-text); box-shadow: 0 0 0 3px rgba(15, 18, 22, 0.06); }
.st-search__category {
  background: transparent;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  padding: 0 36px 0 16px;
  border: 0;
  border-right: 1px solid var(--c-border);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2314171B' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.st-search__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--f-body);
  font-size: 14px;
  padding: 11px 16px;
  color: var(--c-text);
  outline: none;
  min-width: 0;
}
.st-search__input::placeholder { color: var(--c-text-soft); }
.st-search__submit {
  width: 52px;
  display: grid;
  place-items: center;
  background: var(--c-sale);
  color: #fff;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: -1px;
}
.st-search__submit:hover { background: var(--c-sale-strong); }
.st-search__submit .st-icon { font-size: 18px; }

.st-header__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.st-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.st-action:hover { background: var(--c-bg); color: var(--c-text); }
.st-action__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
}
.st-action__icon .st-icon { font-size: 24px; }
.st-action__badge {
  position: absolute;
  top: -3px; right: -6px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--c-sale);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.st-action__text {
  display: none;     /* off by default; the header template opts in per theme */
  flex-direction: column;
  line-height: 1.15;
}
.st-action__label { font-size: 11px; color: var(--c-text-soft); }
.st-action__value { font-size: 13px; font-weight: 600; color: var(--c-text); }

/* ==========================================================================
   12. NAV BAR — Row 2: "Shop by dept" dropdown + main nav + phone
   Two menus are intentional in Ionix:
   the header row handles search, this row handles category navigation.
   ========================================================================== */
.st-navbar {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
}
.st-navbar {
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 40;
  transition: box-shadow 0.2s;
}
body.is-scrolled .st-navbar { box-shadow: 0 4px 16px rgba(15, 18, 22, 0.06); }

.st-navbar__inner {
  display: flex;
  align-items: stretch;
  gap: 24px;
  position: relative;
}

/* Department toggle button */
.st-departments { position: relative; display: flex; align-items: stretch; }
.st-departments__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--c-text);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  margin-bottom: -1px;
  position: relative;
}
.st-departments__toggle .st-icon { font-size: 18px; }
.st-departments__caret { margin-left: 6px; opacity: 0.7; }

.st-departments__toggle {
  height: 44px;
  align-self: center;
  padding: 0 16px;
  background: var(--c-text);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 12px 0 0;
  transition: background 0.12s;
  white-space: nowrap;
}
.st-departments__toggle:hover { background: var(--c-accent); color: #fff; }
.st-departments__toggle .st-icon { color: #fff; }
.st-departments__toggle .st-departments__caret { transition: transform 0.2s; opacity: 0.5; }
.st-departments__toggle--open .st-departments__caret { transform: rotate(180deg); }
.st-departments__toggle--open { background: var(--c-accent); }

/* Main nav links */
.st-nav__list {
  display: flex;
  align-items: stretch;
  flex: 1;
  list-style: none;
  margin: 0; padding: 0;
}
.st-nav__list { flex-wrap: nowrap; white-space: nowrap; }
.st-nav__item { display: flex; }
.st-nav__item { position: relative; }
.st-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-weight: 500;
  font-size: 14px;
  color: var(--c-text);
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.st-nav__link:hover { color: var(--c-text); border-bottom-color: var(--c-text); }
.st-nav__link {
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 600;
  height: 52px;
  border-bottom: 0;
  margin-bottom: 0;
  transition: background 0.12s, color 0.12s;
}
.st-nav__link:hover { background: var(--c-bg-alt); border-bottom-color: transparent; }
.st-nav__link .st-icon { font-size: 14px; opacity: 0.6; }
.st-nav__link--hot::after {
  content: "HOT";
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 4px;
  border-radius: 3px;
  background: var(--c-sale);
  color: #fff;
  margin-left: 4px;
}
.st-nav__link--has-sub .st-nav__caret {
  transition: transform 0.15s;
  opacity: 0.5;
  width: 12px; height: 12px;
  margin-left: 4px;
}
.st-nav__item:hover > .st-nav__link--has-sub .st-nav__caret { transform: rotate(180deg); }


/* Submenu (About Us dropdown) */
.st-dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 8px 0;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(15, 18, 22, 0.12);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  list-style: none;
  margin: 0;
}
.st-nav__item:hover > .st-dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.st-dropdown__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text);
  transition: background 0.12s, color 0.12s;
}
.st-dropdown__link:hover { background: var(--c-bg-alt); color: var(--c-text); }
.st-dropdown__link .st-icon { font-size: 14px; opacity: 0.5; }
.st-dropdown__divider { height: 1px; background: var(--c-border-soft); margin: 6px 0; }

/* Department dropdown panel list items */
.st-departments__list { list-style: none; margin: 0; padding: 6px 0; }
.st-departments__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--c-text);
  transition: background 0.15s, color 0.15s;
}
.st-departments__link:hover { background: var(--c-bg); color: var(--c-accent); }
.st-departments__link .st-icon { font-size: 18px; color: var(--c-text-soft); }
.st-departments__link:hover .st-icon { color: var(--c-accent); }
.st-departments__count { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--c-text-soft); }
.st-departments__link--active { color: var(--c-accent); background: var(--c-accent-soft); }

.st-departments__panel {
  position: absolute;
  top: calc(100% + 4px); left: 0;
  width: 320px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 6px 0;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(15, 18, 22, 0.12);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.st-departments__panel--open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.st-departments__panel .st-departments__list { padding: 4px 0; }
.st-departments__panel .st-departments__link { padding: 10px 18px; }
.st-departments__footer {
  border-top: 1px solid var(--c-border-soft);
  padding: 12px 18px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--c-text-soft);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.st-departments__footer a {
  font-family: var(--f-body);
  color: var(--c-accent);
  text-transform: none;
  font-weight: 700;
  font-size: 12.5px;
}

/* ==========================================================================
   12.5 RESPONSIVE HEADER — mobile collapses topbar + nav row; the
   "Shop by department" trigger becomes the single mobile menu entry point
   (its panel gains an extra links block, see .st-departments__mobile-extra)
   instead of building a separate hamburger/off-canvas from scratch.
   ========================================================================== */
@media (max-width: 767px) {
  .st-topbar { display: none; }
}

@media (max-width: 991px) {
  .st-nav__list,   .st-navbar__inner { gap: 0; }
}

@media (max-width: 767px) {
  .st-header__inner { gap: 12px; }
  .st-search { min-width: 0; }
  .st-search__category { display: none; }
  .st-header__actions .st-action__text { display: none; }
  .st-action { padding: 8px 6px; }
  .st-header__actions { gap: 0; }
  /* Keep only the cart icon in the compact header — account/compare/wishlist
     move into the "Shop by department" menu alongside the nav links */
  .st-header__actions .st-action:not(:last-child) { display: none; }
}

/* Extra links shown only inside the mobile menu (hidden on desktop, where
   the same links already live in .st-nav__list) */
.st-departments__mobile-extra { display: none; }
@media (max-width: 991px) {
  .st-departments__mobile-extra {
    display: block;
    border-top: 1px solid var(--c-border-soft);
    margin-top: 4px;
    padding-top: 4px;
  }
  .st-departments__mobile-extra .st-departments__list + .st-departments__list {
    border-top: 1px solid var(--c-border-soft);
    margin-top: 4px;
    padding-top: 4px;
  }
}

/* ==========================================================================
   13. PRODUCT CARD  (Ionix extended — richer than DS st-product-card)
   ========================================================================== */
.st-product-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.st-product-card:hover { border-color: var(--c-text); box-shadow: var(--sh-hover); transform: translateY(-2px); }

.st-product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--c-bg);
  overflow: hidden;
}
.st-product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.st-product-card:hover .st-product-card__img { transform: scale(1.04); }

.st-product-card__badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.st-product-card__actions {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.st-product-card:hover .st-product-card__actions { opacity: 1; transform: translateX(0); }
.st-product-card__action {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  color: var(--c-text);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border-soft);
  transition: background 0.15s, color 0.15s;
}
.st-product-card__action:hover { background: var(--c-text); color: #fff; }
.st-product-card__action .st-icon { font-size: 16px; }

.st-product-card__quick {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 11px 14px;
  background: var(--c-text);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.st-product-card:hover .st-product-card__quick { opacity: 1; transform: translateY(0); }
.st-product-card__quick:hover { background: var(--c-accent); color: #fff; }
.st-product-card__quick .st-icon { font-size: 16px; }

.st-product-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.st-product-card__vendor {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}
.st-product-card__title {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  margin: 2px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.st-product-card__title:hover { color: var(--c-accent); }
.st-product-card__sku { font-family: var(--f-mono); font-size: 11px; color: var(--c-text-soft); margin-bottom: 6px; }
.st-product-card__sku { display: none; }
.st-product-card__swatches { display: flex; gap: 4px; }
.st-product-card__swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  cursor: pointer;
}
.st-product-card__swatch--active { outline: 1px solid var(--c-text); outline-offset: 1px; }
.st-product-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

/* Stock progress (used in deals section) */
.st-stock-progress { margin-top: 10px; }
.st-stock-progress__track { height: 4px; background: var(--c-bg); border-radius: 2px; overflow: hidden; }
.st-stock-progress__bar { height: 100%; background: var(--c-sale); border-radius: 2px; }
.st-stock-progress__text {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--c-text-soft);
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
}
.st-stock-progress__text strong { color: var(--c-sale); font-weight: 600; }

/* ==========================================================================
   14. PRODUCT GRID + TABS-PILL
   ========================================================================== */
.st-product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1199px) { .st-product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991px)  { .st-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .st-product-grid { grid-template-columns: repeat(2, 1fr); } }

.st-tabs-pill {
  display: inline-flex;
  gap: 4px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 4px;
  border-radius: var(--r-md);
}
.st-tabs-pill__btn {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--c-text-muted);
  transition: background 0.15s, color 0.15s;
}
.st-tabs-pill__btn:hover { color: var(--c-text); }
.st-tabs-pill__btn--active { background: var(--c-text); color: #fff; }

/* Pay icons (footer + product page) */
.st-pay-icons__icon {
  width: 38px; height: 26px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xs);
  background: var(--c-card);
  display: grid;
  place-items: center;
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 9px;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   15. BREADCRUMB (used on category + product pages)
   ========================================================================== */
.st-breadcrumb {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
}
.st-breadcrumb__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.st-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-muted);
  list-style: none;
  margin: 0; padding: 0;
}
.st-breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.st-breadcrumb__item:not(:last-child)::after { content: "/"; color: var(--c-text-soft); }
.st-breadcrumb__link { color: var(--c-text-muted); }
.st-breadcrumb__link:hover { color: var(--c-text); }
.st-breadcrumb__current { color: var(--c-text); font-weight: 500; }

/* ==========================================================================
   16. SITE FOOTER
   ========================================================================== */
.st-footer {
  margin-top: var(--section-gap);
  background: #0E1116;
  color: #C3C7CE;
  padding: 56px 0 0;
}
.st-footer { background: #0F1216; }
.st-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 991px) { .st-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .st-footer__top { grid-template-columns: 1fr; } }

.st-footer__col-title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.005em;
  margin-bottom: 16px;
}
.st-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-footer__list a { font-size: 13.5px; color: #C3C7CE; }
.st-footer__list a:hover { color: #fff; }
.st-footer__brand {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.st-footer__about { font-size: 13.5px; line-height: 1.6; color: #9097A0; margin-bottom: 20px; }
.st-footer__contact { display: grid; gap: 10px; font-size: 13px; color: #C3C7CE; }
.st-footer__contact-item { display: flex; align-items: center; gap: 10px; }
.st-footer__contact-item .st-icon { font-size: 16px; color: oklch(0.78 0.12 250); }
.st-footer__newsletter { display: flex; gap: 8px; margin-bottom: 14px; }
.st-footer__newsletter input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--st-field-radius); /* same corners as the button next to it */
  padding: 12px 18px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.st-footer__newsletter .st-btn { align-self: stretch; height: auto; flex: none; }
.st-footer__newsletter input::placeholder { color: #6B6F76; }
.st-footer__newsletter input:focus { border-color: oklch(0.78 0.12 250); }
.st-footer__social { display: flex; gap: 8px; }
.st-footer__social a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: #C3C7CE;
  transition: background 0.15s, color 0.15s;
}
.st-footer__social a:hover { background: oklch(0.55 0.14 250); color: #fff; }
.st-footer__social .st-icon { font-size: 16px; }
.st-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 12.5px;
  color: #6B6F76;
}
@media (max-width: 767px) { .st-footer__bottom { flex-direction: column; text-align: center; } }
.st-footer__pay { display: flex; gap: 6px; }
.st-footer__pay .st-pay-icons__icon { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: #C3C7CE; }
