/*
Theme Name: Hoovivibe
Theme URI: https://hoovivibe.ee
Author: ProRide OÜ
Description: Hoovivibe e-poe teema – Rugged, Bold & Modern
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: hoovivibe
Tags: e-commerce, dark, custom-menu, woocommerce
*/

/* ═══ DESIGN TOKENS ════════════════════════════════════════════════════ */
:root {
  --color-primary:  #E8001D;
  --color-bg:       #0F0F0F;
  --color-surface:  #1A1A1A;
  --color-text:     #F0F0F0;
  --color-muted:    #888888;
  --color-border:   #2A2A2A;
  --radius:         6px;
  --radius-lg:      12px;
  --max-w:          1280px;
  --wide-w:         1600px;
  --px:             32px;

  /* Typography tokens — overridden by inc/customizer.php via <style> in <head> */
  --font-heading:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --weight-headings: 900;
  --ls-display:      -2.5px;
  --ls-title-xl:     -1.5px;
  --ls-headings:     -0.5px;
  --size-display:    68px;   /* Hero H1 */
  --size-title-xl:   48px;   /* Band / bänner */
  --size-title-lg:   36px;   /* H1 */
  --size-title-md:   28px;   /* H2 */
  --size-title-sm:   22px;   /* H3 */
  --size-h4:         18px;   /* H4 / H5 / H6 */
  --size-body:       15px;
  --lh-body:         1.6;
}

/* ═══ RESET ════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  overflow-x: clip;
  font-family: var(--font-body);
  background-color: #050505;
  color: var(--color-text);
  font-size: var(--size-body);
  line-height: var(--lh-body);
}
h1, h2, h3, h4, h5, h6 {
  font-family:    var(--font-heading);
  font-weight:    var(--weight-headings);
  letter-spacing: var(--ls-headings);
  line-height:    1.1;
}
h1          { font-size: var(--size-title-lg); }
h2          { font-size: var(--size-title-md); }
h3          { font-size: var(--size-title-sm); }
h4, h5, h6 { font-size: var(--size-h4); letter-spacing: 0; }

/* ── HOMEPAGE STAGE BACKGROUND (motorcycle photo + red fog, fixed) ── */
body.home {
  background-image:
    radial-gradient(ellipse 55% 80% at -8% 50%, rgba(232,0,29,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 55% 80% at 108% 50%, rgba(232,0,29,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 35% at 50% 0%, rgba(40,0,8,0.9) 0%, transparent 100%),
    var(--body-hero-img);
  background-size: auto, auto, auto, cover;
  background-position: left center, right center, top center, center 30%;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.home::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(5,5,5,0.72) 0%, rgba(5,5,5,0.55) 100%);
  pointer-events: none; z-index: 0;
}
body.home::after {
  content: '';
  position: fixed;
  left: calc(50% - 660px); top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%, rgba(232,0,29,0.3) 25%,
    rgba(232,0,29,0.15) 75%, transparent 100%);
  pointer-events: none; z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

/* ═══ NAVIGATION ════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--color-primary); }
.site-logo img.logo-dark  { max-height:44px; width:auto; display:block; }
.site-logo img.logo-light { max-height:44px; width:auto; display:none; }
html.light-mode .site-logo img.logo-dark  { display:none; }
html.light-mode .site-logo img.logo-light { display:block; }
.primary-nav { flex: 1; }
.primary-nav > ul { display: flex; gap: 28px; justify-content: flex-end; }
.primary-nav > ul > li > a {
  font-size: var(--nav-font-size, 13px);
  font-weight: var(--nav-font-weight, 600);
  letter-spacing: var(--nav-letter-spacing, 0.04em);
  text-transform: var(--nav-text-transform, uppercase);
  font-family: var(--nav-font, inherit);
  color: rgba(240, 240, 240, 0.55);
  transition: color .2s;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a { color: var(--color-text); }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* Category nav bar — second sticky row below primary nav */
.cat-nav-bar {
  background: rgba(13, 13, 13, 0.98);
  border-bottom: 1px solid rgba(232, 0, 29, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.cat-nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  height: 42px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.cat-nav-label {
  position: absolute; left: var(--px);
  font-size: var(--cat-nav-label-size, 10px);
  font-weight: var(--cat-nav-label-weight, 700);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary); white-space: nowrap;
}
.cat-nav-toggle { display: none; }
.cat-nav > ul {
  display: flex; gap: 28px; align-items: center; justify-content: center; list-style: none;
}
.cat-nav > ul > li > a {
  font-size: var(--cat-nav-font-size, 11px);
  font-weight: var(--cat-nav-font-weight, 600);
  letter-spacing: var(--cat-nav-letter-spacing, 0.1em);
  text-transform: var(--cat-nav-transform, uppercase);
  color: rgba(240, 240, 240, 0.5);
  transition: color .2s;
  white-space: nowrap;
}
.cat-nav > ul > li > a:hover,
.cat-nav > ul > li.current-menu-item > a { color: var(--color-text); }
.btn-nav-cta {
  display: inline-flex; align-items: center;
  background: var(--color-primary); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 9px 18px;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: opacity .2s; white-space: nowrap;
}
.btn-nav-cta:hover { opacity: .88; color: #fff; }
.nav-icon {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  transition: border-color .2s;
  color: var(--color-text);
}
.nav-icon:hover { border-color: rgba(255, 255, 255, 0.28); }

/* Inline SVG icons inside menu items (set via CSS class in WP > Menus) */
.primary-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-icon-svg {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: rgba(240, 240, 240, 0.4);
  transition: color .2s;
}
.primary-nav > ul > li > a:hover .nav-icon-svg,
.primary-nav > ul > li.current-menu-item > a .nav-icon-svg {
  color: rgba(240, 240, 240, 0.85);
}
/* Dropdown submenu icons */
.primary-nav > ul > li > ul > li > a {
  gap: 8px;
}
.primary-nav > ul > li > ul > li > a .nav-icon-svg {
  color: rgba(240, 240, 240, 0.3);
}
.primary-nav > ul > li > ul > li > a:hover .nav-icon-svg {
  color: rgba(240, 240, 240, 0.7);
}

.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--color-primary); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; padding: 0 3px;
}

/* ── FiboSearch AJAX search in primary nav ──────────────────────────────── */

/* Lock wrapper to icon width so flex gap works correctly.
   Plugin sets max-width:20px on .dgwt-wcas-layout-icon which overflows into the gap — override both. */
.nav-search-wrap { position: relative; flex-shrink: 0; width: 36px; }
.nav-search-wrap .dgwt-wcas-search-wrapp {
  margin: 0 !important;
  width: 36px !important;
  max-width: 36px !important;  /* plugin sets max-width:20px — must override or icon overflows into gap */
}

/* Icon trigger — styled to match .nav-icon */
.site-header .dgwt-wcas-search-icon {
  width: 36px !important; height: 36px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-radius: var(--radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: var(--color-text) !important;
  transition: border-color .2s, opacity .2s !important;
  text-decoration: none !important;
  padding: 0 !important;
}
.site-header .dgwt-wcas-search-icon:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* Hide trigger icon when search is open — prevents the grey-circle-on-right artefact */
.site-header .dgwt-wcas-layout-icon-open .dgwt-wcas-search-icon {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.site-header .dgwt-wcas-ico-magnifier-handler {
  width: 18px !important; height: 18px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
}
.site-header .dgwt-wcas-ico-magnifier-handler svg {
  width: 18px !important; height: 18px !important;
  stroke: var(--color-text) !important; fill: none !important;
}

/* The expanded dropdown form */
.site-header .dgwt-wcas-layout-icon .dgwt-wcas-search-form {
  left: auto !important; right: 0 !important;
  min-width: 320px !important; max-width: 420px !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
  padding: 8px 16px !important;
}
.site-header .dgwt-wcas-sf-wrapp {
  background: transparent !important;
  border: none !important; border-bottom: 1px solid var(--color-border) !important;
  border-radius: 0 !important; padding: 0 !important;
  display: flex !important; align-items: center !important; gap: 8px !important;
}
.site-header .dgwt-wcas-sf-wrapp:focus-within {
  border-bottom-color: var(--color-primary) !important;
}
.site-header input[type="search"].dgwt-wcas-search-input {
  background: transparent !important; border: none !important; outline: none !important;
  color: var(--color-text) !important; font-family: inherit !important;
  font-size: 14px !important; padding: 10px 0 !important;
  box-shadow: none !important;
  flex: 1 !important; min-width: 0 !important;
}
.site-header input[type="search"].dgwt-wcas-search-input::placeholder { color: var(--color-muted) !important; }

/* Hide the native browser cancel button — FiboSearch renders its own X */
.site-header input[type="search"].dgwt-wcas-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.site-header .dgwt-wcas-ico-magnifier { display: none !important; }
.site-header .dgwt-wcas-search-submit { display: none !important; }
.site-header .dgwt-wcas-search-icon-arrow { display: none !important; }
.site-header .dgwt-wcas-icon-preloader { display: none !important; }
/* Hide FiboSearch's own close/clear button — theme injects pr-search-close instead */
.site-header .dgwt-wcas-preloader { display: none !important; }
/* Suggestion results — dark theme */
.site-header .dgwt-wcas-suggestions-wrapp,
.site-header .dgwt-wcas-details-wrapp {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
  box-shadow: none !important;
}
.site-header .dgwt-wcas-suggestion { border-bottom-color: var(--color-border) !important; }
.site-header .dgwt-wcas-suggestion:hover,
.site-header .dgwt-wcas-suggestion-selected { background: rgba(255,255,255,0.05) !important; }
.site-header .dgwt-wcas-si__title-wrapp,
.site-header .dgwt-wcas-st__title,
.site-header a.dgwt-wcas-details-product-title { color: var(--color-text) !important; }
.site-header .dgwt-wcas-si__price,
.site-header .dgwt-wcas-details-product-price { color: var(--color-primary) !important; }
.site-header .dgwt-wcas-si__cat-wrap,
.site-header .dgwt-wcas-details-product-sku { color: var(--color-muted) !important; }
.site-header .dgwt-wcas-suggestion strong { color: var(--color-primary) !important; }
.site-header a.dgwt-wcas-details-more-products { color: var(--color-primary) !important; }
.site-header a.dgwt-wcas-details-more-products:hover { opacity: 0.8 !important; }

/* Search panel close button */
.pr-search-close {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: transparent; border: none; padding: 0;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.pr-search-close:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.08);
}
html.light-mode .pr-search-close:hover {
  background: rgba(0,0,0,0.06);
}

/* ═══ BUTTON TOKENS — fallback values (overridden by proride-typo-vars) ═══ */
:root {
  --btn-font-size:      13px;
  --btn-font-weight:    700;
  --btn-letter-spacing: 0.08em;
  --btn-padding-y:      14px;
  --btn-padding-x:      32px;
  --btn-text-transform: uppercase;
}

/* ═══ BUTTONS ════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--color-primary); color: #fff;
  font-family: var(--font-heading);
  font-size: var(--btn-font-size); font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: opacity .2s;
  box-shadow: 0 0 32px rgba(232, 0, 29, 0.3);
  white-space: nowrap; width: fit-content;
}
.btn-primary:hover { opacity: .88; color: #fff; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--btn-font-size); font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  padding: calc(var(--btn-padding-y) - 1px) var(--btn-padding-x);
  border-radius: var(--radius);
  border: 1.5px solid rgba(240, 240, 240, 0.2);
  cursor: pointer; transition: border-color .2s;
  white-space: nowrap; width: fit-content;
}
.btn-outline:hover { border-color: rgba(240, 240, 240, 0.5); }
.btn-cart {
  background: var(--color-primary); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 9px 18px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: opacity .2s; display: inline-block;
}
.btn-cart:hover { opacity: .88; color: #fff; }
.btn-info {
  background: rgba(255, 255, 255, 0.07); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 9px 18px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: border-color .2s; display: inline-block;
}
.btn-info:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--color-text); }

/* ═══ SECTION SHARED ════════════════════════════════════════════════════ */
.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px var(--px);
}
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
}
.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--section-accent, var(--color-primary)); margin-bottom: 6px;
}
.section-title {
  font-size: var(--size-title-md); font-weight: var(--weight-headings);
  letter-spacing: var(--ls-headings); line-height: 1.1;
}
.section-link {
  font-size: 12px; font-weight: 700;
  color: var(--color-primary); letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px; white-space: nowrap; flex-shrink: 0;
}
.section-link:hover { opacity: .75; }

/* ═══ HERO ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  z-index: 1;
}
/* Lazy Block hero: bg set inline via style attribute */
.hero-block {
  background-size: cover;
  background-position: center 35%;
}
.hero-block-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(5,5,5,0.88) 0%,
    rgba(5,5,5,0.62) 45%,
    rgba(5,5,5,0.22) 100%
  );
}

/* .hero-bg kept for non-home pages that supply their own bg */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 35%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 5, 5, 0.88) 0%,
    rgba(5, 5, 5, 0.65) 45%,
    rgba(5, 5, 5, 0.20) 100%
  );
}
/* Hero entry animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag   { animation: heroFadeUp .55s ease both; }
.hero h1    { animation: heroFadeUp .65s ease both .08s; }
.hero-sub   { animation: heroFadeUp .65s ease both .18s; }
.hero-ctas  { animation: heroFadeUp .65s ease both .28s; }
.hero-stats { animation: heroFadeUp .65s ease both .38s; }
/* Hero stats */
.hero-stats {
  display: flex; gap: 48px;
  margin-top: 52px; padding-top: 36px;
  border-top: 1px solid rgba(240,240,240,0.1);
}
.hero-stat-num {
  font-size: 28px; font-weight: 900;
  color: var(--color-primary); line-height: 1; margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(240,240,240,0.45);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px var(--px);
  width: 100%;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 20px;
}
.hero-tag::before {
  content: ''; display: block;
  width: 28px; height: 2px; background: var(--color-primary);
}
.hero h1 {
  font-size: var(--size-display); font-weight: var(--weight-headings);
  line-height: 1.0; letter-spacing: var(--ls-display);
  max-width: 560px; margin-bottom: 20px;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}
.hero h1 em { color: var(--color-primary); font-style: normal; }
.hero-sub {
  font-size: 17px; color: rgba(240, 240, 240, 0.7);
  max-width: 400px; margin-bottom: 38px; line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(248, 165, 0, 0.15);
  border: 1px solid rgba(248, 165, 0, 0.4);
  border-radius: 4px; padding: 5px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #F8A500;
  margin-bottom: 20px; width: fit-content;
}

/* ═══ TRUST BAR ══════════════════════════════════════════════════════════ */
.trust-bar {
  position: relative; z-index: 2;
  background: #111;
  border-top: 1px solid rgba(232, 0, 29, 0.2);
  border-bottom: 1px solid var(--color-border);
}
.trust-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  display: flex; align-items: stretch;
}
.trust-item {
  flex: 1; display: flex; align-items: center;
  gap: 12px; padding: 18px 20px;
  border-right: 1px solid var(--color-border);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 36px; height: 36px;
  background: rgba(232, 0, 29, 0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-text strong { display: block; font-size: 13px; font-weight: 700; }
.trust-text span { font-size: 11px; color: var(--color-muted); }

/* ═══ CATEGORY GRID ══════════════════════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.categories-grid.cgcols-2 { grid-template-columns: repeat(2, 1fr); }
.categories-grid.cgcols-3 { grid-template-columns: repeat(3, 1fr); }
.categories-grid.cgcols-4 { grid-template-columns: repeat(4, 1fr); }
.categories-grid.cgcols-5 { grid-template-columns: repeat(5, 1fr); }
.cat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: border-color .2s;
  position: relative;
}
.cat-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--color-primary);
  transform: scaleX(0); transition: transform .25s;
}
.cat-card:hover { border-color: var(--color-primary); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-img { height: 120px; overflow: hidden; background: #fff; }
.cat-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.65) saturate(0.8);
  transition: filter .3s, transform .4s;
}
.cat-card:hover .cat-img img { filter: brightness(0.8) saturate(1); transform: scale(1.06); }
.cat-body { padding: 14px 16px 16px; }
.cat-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.cat-count { font-size: 11px; color: var(--color-muted); }

/* ── Full-page all-categories grid (/product-category/) ─────────────────── */
.categories-grid--full {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 0;
}
.categories-grid--full .cat-img {
  height: 220px;
}
.categories-grid--full .cat-body {
  padding: 20px 22px 22px;
}
.categories-grid--full .cat-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}
.categories-grid--full .cat-count {
  font-size: 12px;
  margin-bottom: 0;
}

/* Subcategory chips */
.cat-sub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.cat-sub-list span {
  font-size: 11px;
  color: var(--color-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 4px 9px;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* ═══ PRODUCT CARDS ══════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.products-grid.cols-1 { grid-template-columns: 1fr; }
.products-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.products-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.products-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: border-color .22s, box-shadow .22s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: rgba(232, 0, 29, 0.5);
  box-shadow: 0 12px 40px rgba(232, 0, 29, 0.1);
}

/* Product image area */
.product-img {
  height: 230px; overflow: hidden; position: relative;
  background: #fff;
}
.product-img-link {
  display: block; width: 100%; height: 100%;
}
.product-img img {
  width: 100%; height: 100%; object-fit: contain;
  background-color: #fff;
  transition: filter .3s, transform .4s;
}
.product-card:hover .product-img img {
  filter: brightness(0.6);
  transform: scale(1.04);
}

/* Dark overlay fades in on hover */
.product-img-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .25s ease;
  pointer-events: none;
  z-index: 1;
}
.product-card:hover .product-img-overlay {
  background: rgba(0, 0, 0, 0.32);
}

/* "Osta" button — centred on the photo, rises from slightly below */
.product-card .btn-cart {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 10px));
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 2;
  white-space: nowrap;
}
.product-card:hover .btn-cart {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--color-primary); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.product-badge.sale { background: #F8A500; color: #000; }
.product-badge.stock {
  background: rgba(34,197,94,0.12); color: #4ade80;
  border: 1px solid rgba(34,197,94,0.25);
}
.product-body {
  padding: 18px 20px 20px;
  flex: 1; display: flex; flex-direction: column;
}
.product-brand {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: 6px;
}
.product-name-link {
  display: block; color: inherit; text-decoration: none;
}
.product-name-link:hover .product-name { color: var(--color-primary); }
.product-name {
  font-size: 15px; font-weight: 700; line-height: 1.35;
  margin-bottom: 4px; flex: 1;
  transition: color .18s;
}
.product-desc { font-size: 12px; color: var(--color-muted); margin-bottom: 14px; line-height: 1.5; }
.product-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px; margin-top: auto;
}
.product-price { font-size: 20px; font-weight: 900; line-height: 1; }
.product-price-old {
  font-size: 13px; color: var(--color-muted);
  text-decoration: line-through; margin-left: 6px; font-weight: 400;
}

/* ═══ FULL-WIDTH BAND ════════════════════════════════════════════════════ */
.band {
  position: relative; z-index: 2;
  min-height: 380px;
  display: flex; align-items: center;
  overflow: hidden;
  background-color: #050505;
}
.band-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 35%;
  filter: brightness(0.35);
}
.band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 5, 5, 0.9) 0%,
    rgba(5, 5, 5, 0.55) 55%,
    rgba(5, 5, 5, 0.15) 100%
  );
}
.band-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 72px var(--px); width: 100%;
}
.band-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--band-accent, var(--color-primary)); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.band-label::before {
  content: ''; display: block;
  width: 24px; height: 2px; background: var(--band-accent, var(--color-primary));
}
.band-title {
  font-size: var(--size-title-xl); font-weight: var(--weight-headings);
  line-height: 1.0; letter-spacing: var(--ls-title-xl);
  max-width: 460px; margin-bottom: 20px;
}
.band-title em { color: var(--band-accent, var(--color-primary)); font-style: normal; }
.band-sub {
  font-size: 16px; color: rgba(240, 240, 240, 0.65);
  max-width: 380px; margin-bottom: 32px; line-height: 1.6;
}

/* ═══ SECTION BACKGROUND VARIANTS ═══════════════════════════════════════ */
.content-bg  { position: relative; z-index: 2; background: var(--color-bg); }
.section-alt { position: relative; z-index: 2; background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-dark { position: relative; z-index: 2; background: #080808; }

/* ═══ FOOTER ════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative; z-index: 2;
  background: #070707;
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 64px var(--px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .site-logo { font-size: 20px; display: block; margin-bottom: 14px; }
.footer-brand .site-logo img { filter: brightness(0) invert(1); transition: filter .2s; }
.footer-brand p { font-size: 13px; color: var(--color-muted); line-height: 1.65; max-width: 260px; margin-bottom: 20px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { font-size: 13px; color: var(--color-muted); transition: color .2s; }
.footer-contact a:hover { color: var(--color-text); }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 18px; color: var(--color-text);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: var(--color-muted); transition: color .2s; }
.footer-col ul li a:hover { color: var(--color-text); }
.footer-bottom {
  border-top: 1px solid var(--color-border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--color-muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 12px; color: var(--color-muted); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--color-text); }

/* ═══ WooCommerce BASE OVERRIDES ════════════════════════════════════════ */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
  background: var(--color-surface);
  color: var(--color-text);
  border-top-color: var(--color-primary);
}
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.woocommerce ul.products li.product {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color .2s;
  float: none;
  width: auto;
  margin: 0;
}
.woocommerce ul.products li.product:hover {
  border-color: rgba(232, 0, 29, 0.5);
}
.woocommerce ul.products li.product a img {
  height: 220px; object-fit: contain; width: 100%;
  background-color: #fff; margin: 0;
  transition: filter .3s, transform .4s;
}
.woocommerce ul.products li.product:hover a img {
  filter: brightness(0.7);
  transform: scale(1.06);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px; font-weight: 700; color: var(--color-text); padding: 16px 18px 4px;
}
.woocommerce ul.products li.product .price {
  color: var(--color-text); font-size: 18px; font-weight: 900; padding: 4px 18px 16px;
}
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product button.button {
  background: var(--color-primary); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: var(--radius);
  padding: 9px 18px; margin: 0 18px 18px; border: none;
  cursor: pointer; transition: opacity .2s; display: block; text-align: center;
}
.woocommerce ul.products li.product a.button:hover { background: var(--color-primary); opacity: .88; }

/* ═══ PAGE / GENERIC ════════════════════════════════════════════════════ */
.page-wrap {
  position: relative; z-index: 2;
  background: var(--color-bg);
  max-width: 860px; margin: 0 auto;
  padding: 72px var(--px);
}
.page-title {
  font-size: var(--size-title-lg); font-weight: var(--weight-headings); letter-spacing: var(--ls-headings); margin-bottom: 32px;
}
.entry-content p, .entry-content li { font-size: 15px; color: rgba(240,240,240,0.8); line-height: 1.7; margin-bottom: 16px; }
.entry-content h2 { font-size: var(--size-title-sm); font-weight: var(--weight-headings); margin: 32px 0 12px; }
.entry-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }

/* ── Block-based pages (page.php with Gutenberg blocks) ─────────────────── */
/* Full-width wrapper — custom blocks (hero, band, etc.) stretch to 100%.    */
/* All other blocks are collected into .page-content-inner, centred below.   */
.page-blocks-wrap {
  position: relative; z-index: 2;
  background: var(--color-bg);
}
/* Centred content container — matches header/footer width */
.page-content-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px var(--px) 80px;
}
.page-content-inner .wp-block-quote {
  border-left: 3px solid var(--color-primary);
  padding-left: 20px;
  color: rgba(240,240,240,0.7);
  font-style: italic;
  margin: 24px 0;
}

/* ── WPForms — dark/light theme ─────────────────────────────────────────── */
/* Dark mode is the default (no class on <html>); toggle adds html.light-mode */
.wpforms-form .wpforms-field-label,
.wpforms-form .wpforms-field-label-inline { color: var(--color-text) !important; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.wpforms-field-sublabel,
.wpforms-field-description               { color: var(--color-muted) !important; }
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="number"],
.wpforms-form input[type="url"],
.wpforms-form input[type="password"],
.wpforms-form textarea,
.wpforms-form select {
  color: var(--color-text) !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color .2s;
}
.wpforms-form input::placeholder,
.wpforms-form textarea::placeholder       { color: var(--color-muted) !important; opacity: 1 !important; }
.wpforms-form input:focus,
.wpforms-form textarea:focus,
.wpforms-form select:focus                { border-color: var(--color-primary) !important; outline: none !important; box-shadow: 0 0 0 2px rgba(232,0,29,.18) !important; }
.wpforms-form .wpforms-submit {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 12px 32px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: opacity .2s;
}
.wpforms-form .wpforms-submit:hover { opacity: .85 !important; }

/* Light mode overrides */
html.light-mode .wpforms-form input[type="text"],
html.light-mode .wpforms-form input[type="email"],
html.light-mode .wpforms-form input[type="tel"],
html.light-mode .wpforms-form input[type="number"],
html.light-mode .wpforms-form input[type="url"],
html.light-mode .wpforms-form input[type="password"],
html.light-mode .wpforms-form textarea,
html.light-mode .wpforms-form select {
  color: #111 !important;
  background: #fff !important;
  border-color: #d0d0d0 !important;
}
html.light-mode .wpforms-form input::placeholder,
html.light-mode .wpforms-form textarea::placeholder { color: #999 !important; }
html.light-mode .wpforms-form .wpforms-field-label,
html.light-mode .wpforms-form .wpforms-field-label-inline { color: #111 !important; }
html.light-mode .wpforms-field-sublabel,
html.light-mode .wpforms-field-description             { color: #555 !important; }

/* ═══ DOUBLE CTA BAND CARDS (Lazy Block) ════════════════════════════════ */
.cta-band-card {
  flex: 1; min-height: 280px; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border);
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.cta-band-card::before {
  content: '';
  position: absolute; inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform .55s ease;
}
.cta-band-card:hover::before { transform: scale(1.06); }
.cta-band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.88) 0%, rgba(5,5,5,0.3) 55%, transparent 100%);
}
.cta-band-body {
  position: relative; z-index: 1;
  padding: 28px 32px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.cta-band-body h3 {
  font-size: var(--size-title-sm); font-weight: var(--weight-headings); letter-spacing: var(--ls-headings); line-height: 1.1;
  text-transform: uppercase;
}

/* Text alignment variants */
.cta-band-body.align-center { align-items: center; text-align: center; }
.cta-band-body.align-right  { align-items: flex-end; text-align: right; }

/* ═══ CTA SECTION ═══════════════════════════════════════════════════════ */
.cta-outer {
  position: relative; z-index: 1;
}
.cta-inner {
  display: flex; gap: 24px;
  max-width: var(--max-w); margin: 0 auto;
  padding: 72px var(--px);
}
.wp-block-columns.cta-inner { flex-wrap: nowrap; }

/* Täisekraan-laius variant */
.cta-outer--fullwide .cta-inner {
  max-width: none;
  padding: 0;
  gap: 3px;
}
.cta-outer--fullwide .cta-band-card {
  border-radius: 0;
  min-height: 340px;
}
/* In fullwide mode constrain text to container half so it doesn't span the full card */
.cta-outer--fullwide .cta-band-body {
  max-width: calc(var(--max-w) / 2);
}
.cta-outer--fullwide .cta-band-body.align-center { margin: 0 auto; }
.cta-outer--fullwide .cta-band-body.align-right  { margin-left: auto; margin-right: 0; }
.cta-card {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex; flex-direction: column; gap: 16px;
}
.cta-card.accent { border-color: rgba(232,0,29,0.3); }
.cta-card h3, .cta-card .wp-block-heading { font-size: var(--size-title-md); font-weight: var(--weight-headings); letter-spacing: var(--ls-headings); line-height: 1.1; }
.cta-card p:not(.wp-block-heading) { font-size: 14px; color: rgba(240,240,240,0.7); line-height: 1.7; flex: 1; }
.cta-card-icon {
  width: 48px; height: 48px;
  background: rgba(232,0,29,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.wp-block-column.cta-card { flex: 1 1 0; }

/* ═══ WHY / TEXT BLOCK ═══════════════════════════════════════════════════ */
.why-inner {
  display: flex; gap: 80px;
  max-width: var(--max-w); margin: 0 auto;
  padding: 72px var(--px); align-items: start;
}
.wp-block-columns.why-inner { flex-wrap: nowrap; }
.why-desc { font-size: 15px; color: rgba(240,240,240,0.65); line-height: 1.75; max-width: 440px; margin-bottom: 36px; }
.why-points { display: flex; flex-direction: column; gap: 24px; }
.why-point { display: flex; align-items: flex-start; gap: 18px; }
.why-num { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; color: var(--color-primary); min-width: 28px; padding-top: 2px; }
.why-point-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.why-point-text { font-size: 13px; color: var(--color-muted); line-height: 1.55; }

/* ═══ REVIEW CARD ════════════════════════════════════════════════════════ */
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px; margin-bottom: 16px;
}
.wp-block-group.review-card { display: block; }
.review-stars { font-size: 14px; color: #F8A500; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-size: 13px; color: rgba(240,240,240,0.75); line-height: 1.65; font-style: italic; margin-bottom: 12px; }
.review-author { font-size: 12px; font-weight: 700; color: var(--color-muted); }

/* ═══ QJ BADGE ═══════════════════════════════════════════════════════════ */
.qj-badge {
  background: var(--color-surface);
  border: 1px solid rgba(232,0,29,0.25); border-radius: var(--radius-lg);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.qj-logo-box {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--color-primary); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff; letter-spacing: -0.5px;
}
.qj-text strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.qj-text span { font-size: 12px; color: var(--color-muted); line-height: 1.5; display: block; }

/* ═══ COVER BLOCK ADAPTATIONS ════════════════════════════════════════════ */
.hero-cover .wp-block-cover__inner-container,
.band-cover .wp-block-cover__inner-container {
  max-width: var(--max-w);
  padding-left: var(--px); padding-right: var(--px);
  width: 100%;
}
.hero-cover .wp-block-cover__inner-container { padding-top: 90px; padding-bottom: 90px; }
.band-cover .wp-block-cover__inner-container { padding-top: 72px; padding-bottom: 72px; }
.hero-cover .hero-tag { color: var(--color-primary); }
.hero-cover .hero-sub { max-width: 400px; }
.band-cover .band-title em { color: var(--color-primary); font-style: normal; }
/* Gutenberg block editor: give cover blocks correct layout in editor */
.editor-styles-wrapper .hero-cover .wp-block-cover__inner-container,
.editor-styles-wrapper .band-cover .wp-block-cover__inner-container {
  max-width: 100%;
}

/* ═══ SINGLE PRODUCT PAGE ════════════════════════════════════════════════ */
.sp-page { position: relative; z-index: 2; background: var(--color-bg); min-height: 60vh; }
@media (max-width: 768px) { .sp-page { margin-top: -20px; } }
.sp-inner { max-width: var(--max-w); margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }

/* Breadcrumb */
.sp-breadcrumb-bar { border-bottom: 1px solid var(--color-border); padding: 18px 0; }
.woocommerce-breadcrumb { font-size: 12px; color: var(--color-muted); margin: 0; }
.woocommerce-breadcrumb a { color: var(--color-muted); transition: color .2s; }
.woocommerce-breadcrumb a:hover { color: var(--color-text); }
.sp-bc-sep { margin: 0 8px; opacity: 0.4; }

/* Main 2-col layout */
.sp-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 52px;
  padding-bottom: 52px;
  align-items: start;
}

/* Gallery */
.sp-col-gallery .woocommerce-product-gallery { position: sticky; top: 120px; }
.sp-col-gallery .woocommerce-product-gallery__wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
}
.sp-col-gallery .woocommerce-product-gallery__image a { display: block; }
.sp-col-gallery .woocommerce-product-gallery__image img {
  width: 100%; height: 500px; object-fit: contain; display: block;
  background-color: #fff;
}
.sp-col-gallery .woocommerce-product-gallery--without-images {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); height: 500px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); font-size: 14px;
}
.sp-col-gallery .flex-control-nav { list-style: none; display: flex; gap: 10px; margin-top: 12px; padding: 0; }
.sp-col-gallery .flex-control-thumbs li {
  flex: 1; border-radius: var(--radius); overflow: hidden;
  border: 2px solid transparent; transition: border-color .2s; cursor: pointer;
}
.sp-col-gallery .flex-control-thumbs li.flex-active { border-color: var(--color-primary); }
.sp-col-gallery .flex-control-thumbs li img { width: 100%; height: 72px; object-fit: cover; display: block; }

/* Sale flash */
.sp-col-gallery .onsale {
  background: var(--color-primary); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px;
  position: absolute; top: 14px; left: 14px; z-index: 1;
  line-height: 1;
}
.sp-col-gallery .woocommerce-product-gallery { position: relative; }

/* Summary column */
.sp-col-summary { display: flex; flex-direction: column; }
.sp-cat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sp-cat-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--color-primary); }
.sp-col-summary .product_title {
  font-size: var(--size-title-lg); font-weight: var(--weight-headings); letter-spacing: var(--ls-headings); line-height: 1.1; margin-bottom: 16px;
}
.sp-col-summary .woocommerce-product-rating {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.sp-col-summary .star-rating { color: #F8A500; font-size: 12px; }
.sp-col-summary .woocommerce-review-link { font-size: 12px; color: var(--color-muted); }
.sp-col-summary .price {
  font-size: 32px; font-weight: 900;
  margin-bottom: 8px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.sp-col-summary .price del { font-size: 20px; font-weight: 400; color: var(--color-muted); opacity: 0.8; }
.sp-col-summary .price ins { text-decoration: none; color: var(--color-primary); }
.sp-col-summary .price .amount { font-size: inherit; }
.sp-col-summary .stock {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 4px; margin-bottom: 16px;
}
.sp-col-summary .in-stock {
  background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.25);
}
.sp-col-summary .out-of-stock {
  background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25);
}
.sp-col-summary .woocommerce-product-details__short-description {
  font-size: 14px; color: rgba(240,240,240,0.7); line-height: 1.75;
  padding: 20px 0; border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border); margin-bottom: 24px;
}
.sp-col-summary .woocommerce-product-details__short-description p { margin: 0; }

/* Add to cart */
.sp-col-summary form.cart { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.sp-col-summary .quantity { display: flex; align-items: center; }
.sp-col-summary .qty {
  width: 72px; height: 48px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); color: var(--color-text);
  font-size: 16px; font-weight: 700; text-align: center;
  padding: 0 12px; font-family: inherit; transition: border-color .2s;
  -moz-appearance: textfield;
}
.sp-col-summary .qty::-webkit-outer-spin-button,
.sp-col-summary .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-col-summary .qty:focus { outline: none; border-color: var(--color-primary); }
.sp-col-summary button.single_add_to_cart_button {
  flex: 1; background: var(--color-primary); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 0 32px; height: 48px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: opacity .2s; font-family: inherit;
  box-shadow: 0 0 32px rgba(232,0,29,0.3);
}
.sp-col-summary button.single_add_to_cart_button:hover { opacity: .88; }
.sp-col-summary button.single_add_to_cart_button.loading { opacity: .65; pointer-events: none; }
.sp-col-summary .added_to_cart {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--color-primary); margin-top: 8px;
}

/* Product meta */
.sp-col-summary .product_meta {
  font-size: 12px; color: var(--color-muted);
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--color-border); padding-top: 18px; margin-top: 4px;
}
.sp-col-summary .product_meta > span { display: flex; gap: 5px; align-items: baseline; }
.sp-col-summary .product_meta a { color: var(--color-primary); transition: opacity .2s; }
.sp-col-summary .product_meta a:hover { opacity: .75; }

/* Below fold */
.sp-below-fold { padding-bottom: 80px; }

/* Tabs */
.woocommerce-tabs { border-top: 1px solid var(--color-border); padding-top: 52px; margin-bottom: 64px; }
.woocommerce-tabs ul.tabs {
  display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 36px;
  border-bottom: 1px solid var(--color-border);
}
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a {
  display: block; padding: 12px 24px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-muted); transition: color .2s;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.woocommerce-tabs ul.tabs li a:hover { color: var(--color-text); }
.woocommerce-tabs ul.tabs li.active a { color: var(--color-text); border-bottom-color: var(--color-primary); }
.woocommerce-Tabs-panel h2 { font-size: var(--size-title-sm); font-weight: var(--weight-headings); margin-bottom: 20px; letter-spacing: var(--ls-headings); }
.woocommerce-Tabs-panel { font-size: 14px; color: rgba(240,240,240,0.75); line-height: 1.75; }
.woocommerce-Tabs-panel p { margin-bottom: 14px; }
.woocommerce-Tabs-panel ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.woocommerce-Tabs-panel li { margin-bottom: 6px; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
  padding: 10px 14px; border: 1px solid var(--color-border); font-size: 13px; text-align: left;
}
.woocommerce-product-attributes th { background: var(--color-surface); font-weight: 700; width: 30%; }

/* Related products */
.related.products { border-top: 1px solid var(--color-border); padding-top: 52px; }
.related.products h2 { font-size: var(--size-title-sm); font-weight: var(--weight-headings); letter-spacing: var(--ls-headings); margin-bottom: 28px; }
.related.products ul.products { grid-template-columns: repeat(4, 1fr); }
/* Override WooCommerce's default circular onsale badge to match our pill style */
.related.products span.onsale {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  min-height: unset; min-width: unset; line-height: 1;
  padding: 4px 10px; border-radius: 4px;
  background: #F8A500; color: #000;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  width: auto; height: auto;
}

/* ═══ CHECKOUT PAGE ══════════════════════════════════════════════════════ */

/* Widen .page-wrap for WC pages */
body.woocommerce-checkout .page-wrap,
body.woocommerce-cart .page-wrap {
  position: relative; z-index: 2;
  background: var(--color-bg);
  max-width: var(--max-w);
  padding-top: 52px;
  padding-bottom: 80px;
}
body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title { display: none; }

/* WC notices */
.woocommerce-notices-wrapper { margin-bottom: 20px; }
.woocommerce-message,
.woocommerce-info {
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-border); border-top: 3px solid var(--color-primary);
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 14px;
  font-size: 13px; list-style: none;
}
.woocommerce-error {
  background: rgba(239,68,68,0.08); color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.2); border-top: 3px solid #ef4444;
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 14px;
  font-size: 13px; list-style: none;
}
.woocommerce-message a.button,
.woocommerce-info a.button {
  background: var(--color-primary); color: #fff; border-radius: var(--radius);
  padding: 7px 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; float: right; margin: -3px 0 0 14px;
}

/* Checkout 2-col grid */
.co-form { display: block; }
.co-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
.co-right { position: sticky; top: 120px; }

/* Left: make billing + shipping stack vertically */
.co-left .col2-set { display: block; }
.co-left .col-1 { float: none; width: 100%; clear: both; }
.co-left .col-2 { float: none; width: 100%; clear: both; margin-top: 36px; }

/* Section headings */
.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-muted); margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.woocommerce-additional-fields { margin-top: 36px; }

/* Ship to different address checkbox */
#ship-to-different-address { margin-bottom: 0; }
#ship-to-different-address label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 13px; color: var(--color-text); font-weight: 600;
}
#ship-to-different-address input[type="checkbox"] {
  accent-color: var(--color-primary); width: 16px; height: 16px; cursor: pointer;
}

/* Form fields */
.form-row { margin-bottom: 14px; position: relative; }
.form-row label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-muted); display: block; margin-bottom: 6px;
}
.form-row label .required { color: var(--color-primary); margin-left: 1px; }
.form-row input.input-text,
.form-row select,
.form-row textarea {
  width: 100%; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  color: var(--color-text); font-size: 14px; font-family: inherit;
  padding: 11px 14px; line-height: 1.4; transition: border-color .2s; display: block;
}
.form-row input.input-text:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232,0,29,0.1);
}
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.form-row.woocommerce-invalid input.input-text,
.form-row.woocommerce-invalid select { border-color: #ef4444; }
.form-row-first { float: left; width: calc(50% - 7px); clear: left; }
.form-row-last  { float: right; width: calc(50% - 7px); }
.clear { clear: both; }
.form-row-checkbox label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 13px; color: var(--color-text); font-weight: 600; text-transform: none; letter-spacing: 0;
}
.form-row-checkbox input[type="checkbox"] { accent-color: var(--color-primary); width: 16px; height: 16px; }

/* Order review right panel */
.co-right {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 28px;
}
.co-order-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text); margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

/* Review order table */
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.woocommerce-checkout-review-order-table thead th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-muted); padding: 0 0 12px; text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.woocommerce-checkout-review-order-table thead th.product-total { text-align: right; }
.woocommerce-checkout-review-order-table tbody tr td {
  padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 13px;
}
.woocommerce-checkout-review-order-table .product-name { font-weight: 600; }
.woocommerce-checkout-review-order-table .product-name .product-quantity {
  color: var(--color-muted); font-weight: 400; font-size: 12px;
}
.woocommerce-checkout-review-order-table .product-total { text-align: right; font-weight: 700; }
.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td,
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals th {
  padding: 10px 0; font-size: 13px; color: var(--color-muted);
}
.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td { text-align: right; }
.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
  padding: 14px 0; border-top: 2px solid var(--color-border);
  font-weight: 900; font-size: 16px; color: var(--color-text);
}
.woocommerce-checkout-review-order-table .order-total td { text-align: right; }

/* Payment */
#payment { margin-top: 0; }
#payment .payment_methods {
  list-style: none; padding: 0; margin: 0 0 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
}
#payment .payment_methods li { padding: 14px 16px; border-bottom: 1px solid var(--color-border); }
#payment .payment_methods li:last-child { border-bottom: none; }
#payment .payment_methods li label {
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--color-text);
}
#payment .payment_methods li input[type="radio"] { accent-color: var(--color-primary); }
#payment .payment_methods .payment_box {
  font-size: 12px; color: var(--color-muted); margin-top: 10px;
  padding: 10px 12px; background: rgba(0,0,0,0.2); border-radius: 4px; line-height: 1.5;
}
#payment .place-order { padding: 0; }
#place_order {
  width: 100%; background: var(--color-primary); color: #fff;
  border: none; border-radius: var(--radius); padding: 16px 32px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: opacity .2s; font-family: inherit;
  box-shadow: 0 0 32px rgba(232,0,29,0.3);
}
#place_order:hover { opacity: .88; }
#payment .terms { font-size: 12px; color: var(--color-muted); margin-bottom: 14px; line-height: 1.5; }
#payment .terms a { color: var(--color-primary); }

/* Coupon */
.woocommerce-form-coupon-toggle { margin-bottom: 14px; font-size: 13px; color: var(--color-muted); }
.woocommerce-form-coupon-toggle a { color: var(--color-primary); cursor: pointer; }
.woocommerce-form-coupon {
  background: rgba(255,255,255,0.04); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.woocommerce-form-coupon > p { font-size: 13px; color: var(--color-muted); margin-bottom: 12px; }
.woocommerce-form-coupon .coupon { display: flex; gap: 10px; }
.woocommerce-form-coupon .coupon input { flex: 1; }
.woocommerce-form-coupon .button,
.woocommerce .button.alt,
.woocommerce a.button {
  background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius);
  padding: 11px 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer; font-family: inherit; transition: opacity .2s; display: inline-block;
}
.woocommerce-form-coupon .button:hover,
.woocommerce .button.alt:hover,
.woocommerce a.button:hover { opacity: .88; color: #fff; }

/* Login on checkout */
.woocommerce-form-login-toggle { margin-bottom: 14px; font-size: 13px; color: var(--color-muted); }
.woocommerce-form-login-toggle a { color: var(--color-primary); }

/* ═══ CHECKOUT / CART PROGRESS STEPS ════════════════════════════════════ */
.co-steps {
  display: flex; align-items: center;
  margin-bottom: 40px;
}
.co-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-muted);
  white-space: nowrap;
}
.co-step.active { color: var(--color-text); }
.co-step.done   { color: var(--color-primary); }
.co-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0; transition: all .2s;
}
.co-step.active .co-step-num {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}
.co-step.done .co-step-num {
  background: rgba(232,0,29,0.15); border-color: var(--color-primary);
}
.co-step-line {
  flex: 1; height: 1px; background: var(--color-border); min-width: 32px; margin: 0 12px;
}
.co-step.done + .co-step-line { background: rgba(232,0,29,0.35); }

/* ═══ CART PAGE ══════════════════════════════════════════════════════════ */
.cart-heading {
  font-size: var(--size-title-md); font-weight: var(--weight-headings); letter-spacing: var(--ls-headings); margin-bottom: 28px;
}
.cart-heading span { font-size: 16px; font-weight: 400; color: var(--color-muted); letter-spacing: 0; }

.cart-layout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 40px; align-items: start;
}
.cart-col-totals { position: sticky; top: 120px; }

/* Cart items list */
.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto auto auto;
  gap: 18px; align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px; transition: border-color .2s;
}
.cart-item:hover { border-color: rgba(232,0,29,0.3); }
.cart-item-img {
  width: 84px; height: 68px;
  border-radius: var(--radius); overflow: hidden; flex-shrink: 0; display: block;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.cart-item-name {
  font-size: 14px; font-weight: 700; color: var(--color-text);
  display: block; margin-bottom: 4px; transition: color .2s;
}
.cart-item-name:hover { color: var(--color-primary); }
.cart-item-price { font-size: 12px; color: var(--color-muted); }

/* Qty stepper */
.cart-qty-wrap {
  display: flex; align-items: center;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden;
}
.cart-qty-btn {
  width: 30px; height: 38px; background: transparent; border: none;
  color: var(--color-muted); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s;
}
.cart-qty-btn:hover { color: var(--color-text); background: rgba(255,255,255,0.06); }
.cart-qty-input {
  width: 42px; height: 38px; background: transparent; border: none;
  color: var(--color-text); font-size: 14px; font-weight: 700;
  text-align: center; font-family: inherit; -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-qty-input:focus { outline: none; }

.cart-item-subtotal { font-size: 15px; font-weight: 900; text-align: right; white-space: nowrap; }
.cart-item-remove {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--color-border);
  border-radius: var(--radius); color: var(--color-muted);
  font-size: 16px; cursor: pointer; transition: all .2s; text-decoration: none;
}
.cart-item-remove:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: #f87171; }

/* Cart actions */
.cart-actions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--color-border);
}
.cart-coupon { display: flex; gap: 8px; flex: 1; min-width: 200px; }
.cart-coupon-input {
  flex: 1; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  color: var(--color-text); font-size: 13px; padding: 9px 14px;
  font-family: inherit; transition: border-color .2s;
}
.cart-coupon-input::placeholder { color: var(--color-muted); }
.cart-coupon-input:focus { outline: none; border-color: var(--color-primary); }
.cart-update { flex-shrink: 0; }

/* Cart totals panel */
.cart-totals-panel {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 28px;
}
.cart-totals-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border);
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--color-border);
  font-size: 13px; color: var(--color-muted);
}
.cart-total-row.cart-total-final {
  font-size: 16px; font-weight: 900; color: var(--color-text);
  padding: 16px 0 0; border-top: 2px solid var(--color-border);
  border-bottom: none; margin-top: 4px;
}
.cart-shipping-note { font-size: 11px; font-style: italic; }
.cart-discount-row { color: #4ade80; }
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; text-align: center; margin-top: 20px;
  box-shadow: 0 0 40px rgba(232,0,29,0.35);
}
.cart-continue {
  display: block; text-align: center; margin-top: 12px;
  font-size: 12px; color: var(--color-muted); transition: color .2s;
}
.cart-continue:hover { color: var(--color-text); }
.cart-trust-mini {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.cart-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--color-muted);
}

/* Empty cart */
.cart-empty { text-align: center; padding: 72px 32px; }
.cart-empty-icon {
  width: 72px; height: 72px; background: rgba(232,0,29,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.cart-empty h2 { font-size: var(--size-title-sm); font-weight: var(--weight-headings); margin-bottom: 10px; }
.cart-empty p  { font-size: 14px; color: var(--color-muted); margin-bottom: 28px; }

/* ═══ DROPDOWN SUBMENU ═══════════════════════════════════════════════════ */
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px; vertical-align: middle; opacity: 0.55;
  transition: transform .2s;
}
.primary-nav > ul > li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }
.primary-nav > ul > li > ul {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  min-width: 210px;
  padding: 6px 0;
  list-style: none;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.primary-nav > ul > li:hover > ul,
.primary-nav > ul > li:focus-within > ul {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.primary-nav > ul > li > ul > li > a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: var(--nav-dropdown-font-size, 12px); font-weight: var(--nav-dropdown-font-weight, 600); letter-spacing: var(--nav-dropdown-letter-spacing, 0.02em); text-transform: var(--nav-dropdown-transform, none);
  color: var(--color-muted); transition: color .15s, background .15s;
}
.primary-nav > ul > li > ul > li > a:hover {
  color: var(--color-text); background: rgba(255,255,255,0.05);
}
.primary-nav > ul > li > ul > li.current-menu-item > a { color: var(--color-primary); }
/* Red accent line on left of dropdown */
.primary-nav > ul > li > ul::before {
  content: '';
  position: absolute; left: 0; top: 10%; bottom: 10%;
  width: 2px; background: var(--color-primary); border-radius: 2px; opacity: 0.6;
}

/* ═══ PRODUCT ARCHIVE / SHOP PAGE ════════════════════════════════════════ */
.archive-header {
  position: relative; z-index: 2;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.archive-header--has-img { min-height: 220px; display: flex; align-items: center; }
.archive-header-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 35%;
  filter: brightness(0.25) saturate(0.7);
}
.archive-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.5) 100%);
}
.archive-header-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto; padding: 44px var(--px);
  display: flex; align-items: center; gap: 24px;
}
.archive-cat-img {
  width: 96px; height: 96px; flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--color-border);
}
.archive-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.archive-title {
  font-size: var(--size-title-lg); font-weight: var(--weight-headings);
  letter-spacing: var(--ls-headings); line-height: 1.05; margin-bottom: 8px;
}
.archive-desc {
  font-size: 14px; color: rgba(240,240,240,0.6); line-height: 1.65;
  max-width: 540px; margin-top: 10px;
}

/* Archive body */
.archive-body { padding-top: 40px; }

/* Subcategory grid inside a category archive */
.archive-subcats {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 40px;
}
.archive-subcats .cat-img { height: auto; aspect-ratio: 1 / 1; }

/* Toolbar */
.shop-toolbar {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.woocommerce-result-count {
  font-size: 12px; color: var(--color-muted);
  letter-spacing: 0.03em; margin: 0;
}
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text); font-size: 12px; font-weight: 600;
  font-family: inherit; padding: 8px 32px 8px 12px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .2s;
}
.woocommerce-ordering select:focus { outline: none; border-color: var(--color-primary); }

/* Pagination */
.shop-pagination { margin-top: 48px; }
.woocommerce-pagination ul {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; list-style: none; padding: 0; margin: 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px; font-weight: 600; color: var(--color-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.woocommerce-pagination ul li a:hover { color: var(--color-text); border-color: rgba(255,255,255,0.25); }
.woocommerce-pagination ul li span.current {
  background: var(--color-primary); border-color: var(--color-primary);
  color: #fff;
}

/* No products */
.no-products {
  text-align: center; padding: 80px 32px;
}
.no-products-icon {
  width: 72px; height: 72px;
  background: rgba(232,0,29,0.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.no-products h2 { font-size: var(--size-title-sm); font-weight: var(--weight-headings); margin-bottom: 10px; }
.no-products p  { font-size: 14px; color: var(--color-muted); margin-bottom: 28px; }

/* ═══ PRODUCT GALLERY (custom, replaces WC flexslider) ════════════════════ */
.sp-gallery {
  position: sticky; top: 120px;
  display: flex; flex-direction: column; gap: 12px;
}
.sp-gallery-main {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 1 / 1;
}
.sp-gallery-link { display: block; width: 100%; height: 100%; }
.sp-gallery-active-img {
  width: 100%; height: 100%; object-fit: contain;
  background-color: #fff;
  display: block; transition: opacity .2s;
}
.sp-gallery-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--color-primary); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 4px; line-height: 1;
}
/* Prev / Next arrows */
.sp-gallery-arrows {
  position: absolute; bottom: 14px; right: 14px;
  display: flex; gap: 6px; z-index: 2;
}
.sp-gallery-arrow {
  width: 34px; height: 34px;
  background: rgba(8,8,8,0.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text); transition: background .2s, border-color .2s;
}
.sp-gallery-arrow:hover { background: var(--color-primary); border-color: var(--color-primary); }
/* Thumbnail strip — 3 per view, squares, arrows overlaid on outer thumbs */
.sp-gallery-thumbs {
  position: relative;
}
.sp-thumbs-viewport {
  overflow: hidden; width: 100%;
}
.sp-thumbs-track {
  display: flex; gap: 8px;
  transition: transform .32s ease;
}
.sp-gallery-thumb {
  flex: 0 0 calc((100% - 16px) / 3);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #fff;
  transition: border-color .2s; padding: 0; display: block; flex-shrink: 0;
}
.sp-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-gallery-thumb.active { border-color: var(--color-primary); }
.sp-gallery-thumb:hover:not(.active) { border-color: rgba(255,255,255,0.2); }
/* Arrows overlaid on leftmost / rightmost visible thumbnail */
.sp-thumb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 28px; height: 28px;
  background: rgba(8,8,8,0.8); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text); cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
}
.sp-thumb-arrow:hover { background: var(--color-primary); border-color: var(--color-primary); }
.sp-thumb-prev { left: 6px; }
.sp-thumb-next { right: 6px; }
.sp-thumb-arrow--hidden { opacity: 0; pointer-events: none; }
/* Empty state */
.sp-gallery--empty {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; color: var(--color-muted); font-size: 13px;
}

/* Strong: force fixed main gallery size and ensure image fills it */
.sp-col-gallery .sp-gallery-main {
  width: 560px !important;
  height: 560px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.sp-col-gallery .sp-gallery-active-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* ── Product gallery lightbox ────────────────────────────────────────────── */
.sp-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sp-lightbox.is-open { opacity: 1; pointer-events: auto; }
.sp-lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.88); cursor: zoom-out;
}
.sp-lightbox-img {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 90vh;
  object-fit: contain; display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.sp-lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.sp-lightbox-close:hover { background: var(--color-primary); border-color: var(--color-primary); }

/* Responsive: scale down on narrower viewports */
@media (max-width: 1100px) {
  .sp-col-gallery .sp-gallery-main { width: 480px !important; height: 480px !important; }
}
@media (max-width: 767px) {
  /* Single-column layout: main image full width = same as thumb strip */
  .sp-col-gallery .sp-gallery-main { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; }
  .sp-col-gallery .sp-gallery { position: static !important; }
}

/* ═══ DYNAMIC PRODUCT GRID (Lazy Blocks block) ══════════════════════════ */
.dpg-section { padding-top: 64px; padding-bottom: 64px; }

.dpg-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 32px;
}
.dpg-header .section-title { margin: 0; }

/* Grid */
.dpg-grid { display: grid; gap: 24px; }
.dpg-grid.cols-1 { grid-template-columns: 1fr; }
.dpg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.dpg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.dpg-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Slider */
.dpg-slider {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: thin; scrollbar-color: var(--color-border) transparent;
}
.dpg-slider .product-card {
  scroll-snap-align: start; flex: 0 0 280px;
}

/* Small outline button variant used in dpg-header */
.btn-sm { font-size: 13px; padding: 8px 18px; }

/* Empty state (editor placeholder) */
.dpg-empty {
  padding: 32px 24px; background: var(--color-surface);
  color: var(--color-muted); text-align: center;
  border: 1px dashed var(--color-border); border-radius: var(--radius-lg);
  font-size: 14px;
}

/* ── Ajax product feed — load more ─────────────────────────────────── */
.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 40px;
}
.load-more-btn {
  min-width: 200px;
  cursor: pointer;
}
.load-more-btn:disabled {
  opacity: .5;
  cursor: wait;
}
.ajax-sentinel {
  display: block;
  height: 1px;
  width: 100%;
}

/* ═══ HAMBURGER BUTTON (hidden on desktop) ═══════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 9px 8px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .22s ease, opacity .2s ease;
  transform-origin: center;
}
body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══ PER-BLOCK ACCENT COLOUR — CSS custom property overrides ════════════
   --band-accent    set on .band                  (band block)
   --section-accent set on .ajax-product-section  (product section block)
   --card-accent    set on .cta-band-card         (double CTA block)
══════════════════════════════════════════════════════════════════════════ */

/* CTA card button inherits its card's accent colour */
.cta-band-card .cta-band-btn {
  background: var(--card-accent, var(--color-primary));
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.4);
}
.cta-band-card .cta-band-btn:hover { opacity: .88; }

/* ═══ PRODUCT CARD STYLE VARIANTS ═══════════════════════════════════════ */
/* .cards-minimal — subtler border */
.products-grid.cards-minimal .product-card {
  border-color: rgba(255, 255, 255, 0.06);
}
.products-grid.cards-minimal .product-card:hover {
  border-color: rgba(232, 0, 29, 0.3);
}

/* .cards-prominent — drop shadow */
.products-grid.cards-prominent .product-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.products-grid.cards-prominent .product-card:hover {
  box-shadow: 0 12px 48px rgba(232, 0, 29, 0.15);
}

/* .cards-bordered — red accent border top */
.products-grid.cards-bordered .product-card {
  border-top: 2px solid var(--section-accent, var(--color-primary));
}

/* ═══ NATIVE GUTENBERG BLOCK STYLES ══════════════════════════════════════
   Registered via register_block_style() in functions.php.
   Selectors: .wp-block-heading.is-style-*, .wp-block-paragraph.is-style-*
   .wp-block-group.is-style-*, .wp-block-quote.is-style-*
══════════════════════════════════════════════════════════════════════════ */

/* Heading: Punane — primary red */
.wp-block-heading.is-style-red { color: var(--color-primary) !important; }

/* Heading: Tuhmunud — muted gray */
.wp-block-heading.is-style-muted { color: var(--color-muted) !important; }

/* Heading: Ülakriips — small red label line above */
.wp-block-heading.is-style-overline {
  position: relative;
  padding-top: 18px;
}
.wp-block-heading.is-style-overline::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--color-primary);
}

/* Paragraph: Lead — intro text, slightly larger and lighter */
.wp-block-paragraph.is-style-lead {
  font-size: 17px;
  color: rgba(240, 240, 240, 0.75);
  line-height: 1.75;
  max-width: 640px;
}

/* Paragraph: Märkus — small muted note */
.wp-block-paragraph.is-style-note {
  font-size: 12px;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.55;
}

/* Group: Kaart — surface card with border & padding */
.wp-block-group.is-style-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px !important;
}

/* Group: Punane piir — red left accent line */
.wp-block-group.is-style-accent-border {
  border-left: 3px solid var(--color-primary);
  padding-left: 24px !important;
}

/* Quote: Bränd — dark surface with red accent */
.wp-block-quote.is-style-brand {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 0;
}
.wp-block-quote.is-style-brand p {
  font-size: 15px;
  color: rgba(240, 240, 240, 0.85);
  font-style: italic;
  line-height: 1.7;
}
.wp-block-quote.is-style-brand cite {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Separator: Tühi vahe — invisible line, pure whitespace */
.wp-block-separator.is-style-spacer {
  border: none;
  background: transparent;
  height: 1px;
  margin: 0;
  padding: 0;
}

/* ═══ GUTENBERG ALIGNMENT — alignwide / alignfull on custom blocks ════════
   Gutenberg adds .alignwide / .alignfull to the outer block wrapper when the
   user picks a width in the toolbar. Our blocks already stretch edge-to-edge;
   only the inner .section-wrap (content column) needs to grow.
══════════════════════════════════════════════════════════════════════════ */

.alignwide  > .content-bg > .section-wrap,
.alignwide  > .ps-block   > .section-wrap  { max-width: var(--wide-w, 1600px); }

.alignfull  > .content-bg > .section-wrap,
.alignfull  > .ps-block   > .section-wrap  { max-width: 100%; padding-left: 32px; padding-right: 32px; }

/* Screen-reader only — visually hidden but present in HTML for SEO */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   PLUGIN INTEGRATIONS — HUSKY · YITH · Ivory Search
══════════════════════════════════════════════════════════════════════════ */

/* ── Shop search bar (Ivory Search / WP native) ──────────────────────── */
/* ── Shop controls: search + filter toggle on one row ── */
.shop-controls {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 20px;
}
.shop-controls .shop-search-bar {
  flex: 1;
  display: flex !important;
  align-items: stretch !important;
  margin-bottom: 0;
}

.shop-search-bar { margin-bottom: 16px; }
.shop-search-bar .search-form,
.shop-search-bar form[role="search"] {
  display: flex;
  gap: 0;
  width: 100%;
}
.shop-search-bar input[type="search"],
.shop-search-bar input[type="text"] {
  flex: 1;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
}
.shop-search-bar input[type="search"]:focus,
.shop-search-bar input[type="text"]:focus { border-color: var(--color-primary); }
.shop-search-bar button,
.shop-search-bar input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.shop-search-bar label { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* ── FiboSearch bar layout inside shop search bar ── */
/* Override plugin's hardcoded max-width:600px and margin:auto centering */
.shop-search-bar .dgwt-wcas-search-wrapp,
.shop-search-bar .dgwt-wcas-layout-bar {
  width: 100% !important; max-width: none !important; margin: 0 !important;
  display: flex !important; flex: 1 !important; align-self: stretch !important;
}
.shop-search-bar form.dgwt-wcas-search-form {
  width: 100% !important; max-width: none !important;
  display: flex !important; align-items: stretch !important;
}
.shop-search-bar .dgwt-wcas-sf-wrapp {
  flex: 1 !important; display: flex !important;
  width: 100% !important; max-width: none !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden; transition: border-color .2s;
}
.shop-search-bar .dgwt-wcas-sf-wrapp:focus-within {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(232,0,29,.1) !important;
}
.shop-search-bar input.dgwt-wcas-search-input {
  order: 1 !important; flex: 1 !important; width: 0 !important; min-width: 0 !important;
  background: transparent !important; color: var(--color-text) !important;
  border: none !important; outline: none !important; box-shadow: none !important;
  padding: 0 14px !important; height: 100% !important; min-height: 44px !important;
  font-size: 14px !important; font-family: var(--font-body) !important;
}
.shop-search-bar input.dgwt-wcas-search-input::placeholder { color: var(--color-muted) !important; }
/* Submit button — was broken: border-box + width:36px + padding:0 18px = 0px content */
.shop-search-bar .dgwt-wcas-search-submit {
  order: 2 !important; flex: 0 0 52px !important;
  background: var(--color-primary) !important; border: none !important;
  padding: 0 !important; height: 100% !important; min-height: 44px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer !important; transition: opacity .15s;
  position: static !important; width: 52px !important;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
}
.shop-search-bar .dgwt-wcas-search-submit:hover { opacity: .85; }
/* Plugin bar layout absolutely positions this SVG in the center of the form —
   override to keep it inside the submit button where it belongs. */
.shop-search-bar .dgwt-wcas-ico-magnifier {
  position: static !important;
  display: block !important; flex-shrink: 0 !important;
  top: auto !important; left: auto !important; right: auto !important;
  transform: none !important; pointer-events: none !important;
  fill: #fff !important; stroke: none !important;
  width: 18px !important; height: 18px !important;
}
.shop-search-bar .dgwt-wcas-ico-magnifier path,
.shop-search-bar .dgwt-wcas-ico-magnifier circle,
.shop-search-bar .dgwt-wcas-ico-magnifier * { fill: #fff !important; stroke: none !important; }
/* Kill the icon-layout expander — appears even in bar layout */
.shop-search-bar .dgwt-wcas-sf-wrapp .dgwt-wcas-ico-magnifier-handler,
.shop-search-bar .dgwt-wcas-ico-magnifier-handler {
  display: none !important; width: 0 !important; height: 0 !important;
  visibility: hidden !important; position: absolute !important; pointer-events: none !important;
}
/* Hide plugin extras we don't need in the bar */
.shop-search-bar .dgwt-wcas-preloader { display: none !important; }
.shop-search-bar .dgwt-wcas-voice-search { display: none !important; }
.shop-search-bar .dgwt-wcas-suggestions-wrapp,
.shop-search-bar .dgwt-wcas-details-wrapp {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}
.shop-search-bar .dgwt-wcas-suggestion { border-bottom-color: var(--color-border) !important; }
.shop-search-bar .dgwt-wcas-suggestion:hover,
.shop-search-bar .dgwt-wcas-suggestion-selected { background: rgba(255,255,255,0.05) !important; }
.shop-search-bar .dgwt-wcas-si__title-wrapp,
.shop-search-bar .dgwt-wcas-st__title,
.shop-search-bar a.dgwt-wcas-details-product-title { color: var(--color-text) !important; }
.shop-search-bar .dgwt-wcas-si__price,
.shop-search-bar .dgwt-wcas-details-product-price { color: var(--color-primary) !important; }
.shop-search-bar .dgwt-wcas-suggestion strong { color: var(--color-primary) !important; }
.shop-search-bar a.dgwt-wcas-details-more-products { color: var(--color-primary) !important; }

/* ── Filter bar ──────────────────────────────────────────────────────── */
.pr-shop-filters { margin-bottom: 24px; }

.pr-filters-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.pr-filters-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pr-filters-toggle.is-open {
  border-color: var(--color-primary); color: var(--color-primary);
  border-bottom-color: transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--color-surface);
}
.pr-filters-toggle .pr-chevron { transition: transform .2s; }
.pr-filters-toggle.is-open .pr-chevron { transform: rotate(180deg); }

.pr-filters-inner {
  display: none; /* shown via .is-open on parent */
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  padding: 24px;
  margin-top: -1px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
@keyframes pr-filter-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pr-shop-filters.is-open .pr-filters-inner {
  display: grid;
  animation: pr-filter-open .16s ease;
}

/* Price filter and active filters get full width */
.pr-filters-inner .widget_price_filter,
.pr-filters-inner .widget_layered_nav_filters,
.pr-filters-inner .woocommerce-widget-layered-nav-filters { grid-column: 1 / -1; }

/* ── WC Blocks product filter — inline in our panel ─────────────────────
   The overlay is already position:relative/block — we just restyle its
   internals to fit our 2-column dark panel instead of a dialog overlay. */
.pr-filters-inner .wc-block-product-filters__overlay-header { display: none !important; }
.pr-filters-inner .wc-block-product-filters__overlay-dialog {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  max-height: none !important;
}
.pr-filters-inner .wc-block-product-filters__overlay-content {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px 56px !important;
  overflow: visible !important;
  max-height: none !important;
  padding: 0 !important;
  flex: 1 !important;
}
/* "Filters" H2 heading — redundant with our panel toggle */
.pr-filters-inner .wc-block-product-filters__overlay-content > h2.wp-block-heading {
  display: none !important;
}
/* Price slider spans full row — more breathing room */
.pr-filters-inner .wp-block-woocommerce-product-filter-price {
  grid-column: 1 / -1 !important;
}
/* Explicit column placement: Category left, Attribute + Status stacked right */
.pr-filters-inner .wp-block-woocommerce-product-filter-taxonomy  { grid-column: 1 !important; }
.pr-filters-inner .wp-block-woocommerce-product-filter-attribute { grid-column: 2 !important; }
.pr-filters-inner .wp-block-woocommerce-product-filter-status    { grid-column: 2 !important; }
/* Remove the standalone clear-filters button at the top of the grid */
.pr-filters-inner .wp-block-woocommerce-product-filter-clear-button { display: none !important; }
/* Hide the close button — React renders it outside the header we already hide */
.pr-filters-inner .wc-block-product-filters__close-overlay { display: none !important; }
/* Footer (Apply button) — sits below the grid */
.pr-filters-inner .wc-block-product-filters__overlay-footer {
  display: flex !important;
  justify-content: flex-end !important;
  padding-top: 16px !important;
  margin-top: 4px !important;
  border-top: 1px solid var(--color-border) !important;
}

/* ── Filter section headings (H3) inside WC blocks ──────────────────── */
.pr-filters-inner .wp-block-woocommerce-product-filter-price > h3.wp-block-heading,
.pr-filters-inner .wp-block-woocommerce-product-filter-rating > h3.wp-block-heading,
.pr-filters-inner .wp-block-woocommerce-product-filter-attribute > h3.wp-block-heading,
.pr-filters-inner .wp-block-woocommerce-product-filter-taxonomy > h3.wp-block-heading,
.pr-filters-inner .wp-block-woocommerce-product-filter-status > h3.wp-block-heading {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: var(--color-muted) !important;
  margin: 0 0 12px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid var(--color-border) !important;
  font-family: var(--font-body) !important;
}

/* ── WC Blocks checkbox list ─────────────────────────────────────────── */
.pr-filters-inner .wc-block-product-filter-checkbox-list__items {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  list-style: none !important;
  margin: 0 !important; padding: 0 !important;
}
.pr-filters-inner .wc-block-product-filter-checkbox-list__item { margin: 0 !important; }
.pr-filters-inner .wc-block-product-filter-checkbox-list__label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--color-text) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  padding: 2px 0 !important;
  transition: color .15s !important;
  user-select: none !important;
}
.pr-filters-inner .wc-block-product-filter-checkbox-list__label:hover { color: var(--color-primary) !important; }
.pr-filters-inner .wc-block-product-filter-checkbox-list__input-wrapper { flex-shrink: 0 !important; }
.pr-filters-inner .wc-block-product-filter-checkbox-list__input {
  accent-color: var(--color-primary) !important;
  width: 14px !important; height: 14px !important;
  cursor: pointer !important;
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 3px !important;
}
.pr-filters-inner .wc-block-product-filter-checkbox-list__text-wrapper { flex: 1 !important; }
.pr-filters-inner .wc-block-product-filter-checkbox-list__text { display: block !important; }
/* Indent subcategory items */
.pr-filters-inner .wc-block-product-filter-checkbox-list__item.has-depth-1 {
  padding-left: 20px !important;
}

/* ── Price range slider ───────────────────────────────────────────────── */
.pr-filters-inner .wc-block-product-filter-price-slider__content {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
}
.pr-filters-inner .wc-block-product-filter-price-slider__range {
  flex: 0 0 100% !important;
  position: relative !important;
  padding: 8px 0 !important;
}
.pr-filters-inner .range-bar {
  height: 4px !important;
  background: var(--color-border) !important;
  border-radius: 2px !important;
}
.pr-filters-inner input[type="range"].min,
.pr-filters-inner input[type="range"].max {
  position: absolute !important;
  width: 100% !important;
  height: 4px !important;
  top: 8px !important;
  background: transparent !important;
  pointer-events: none !important;
  accent-color: var(--color-primary) !important;
  -webkit-appearance: none !important;
}
.pr-filters-inner input[type="range"].min::-webkit-slider-thumb,
.pr-filters-inner input[type="range"].max::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  pointer-events: all !important;
  width: 16px !important; height: 16px !important;
  border-radius: 50% !important;
  background: var(--color-primary) !important;
  border: 2px solid #fff !important;
  box-shadow: 0 0 0 1px var(--color-primary) !important;
  cursor: grab !important;
}
/* Min/max price display — side by side, dark-themed */
.pr-filters-inner .wc-block-product-filter-price-slider__left,
.pr-filters-inner .wc-block-product-filter-price-slider__right {
  flex: 1 !important; min-width: 0 !important;
}
.pr-filters-inner .wc-block-product-filter-price-slider__left input,
.pr-filters-inner .wc-block-product-filter-price-slider__right input,
.pr-filters-inner .wc-block-product-filter-price-slider__left.text,
.pr-filters-inner .wc-block-product-filter-price-slider__right.text {
  display: flex !important; align-items: center !important;
  width: 100% !important; box-sizing: border-box !important;
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  padding: 5px 10px !important;
  font-size: 13px !important; font-weight: 600 !important;
  font-family: var(--font-body) !important;
  outline: none !important; box-shadow: none !important;
  -moz-appearance: textfield !important;
}
.pr-filters-inner .wc-block-product-filter-price-slider__left input:focus,
.pr-filters-inner .wc-block-product-filter-price-slider__right input:focus {
  border-color: var(--color-primary) !important;
}
.pr-filters-inner .wc-block-product-filter-price-slider__left input::-webkit-inner-spin-button,
.pr-filters-inner .wc-block-product-filter-price-slider__left input::-webkit-outer-spin-button,
.pr-filters-inner .wc-block-product-filter-price-slider__right input::-webkit-inner-spin-button,
.pr-filters-inner .wc-block-product-filter-price-slider__right input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
}

/* ── Apply / Clear buttons in footer ─────────────────────────────────── */
.pr-filters-inner .wc-block-product-filters__apply.wp-element-button {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 9px 24px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: var(--font-body) !important;
  cursor: pointer !important;
  letter-spacing: .03em !important;
  transition: opacity .15s !important;
  text-transform: none !important;
}
.pr-filters-inner .wc-block-product-filters__apply.wp-element-button:hover { opacity: .85 !important; }
.pr-filters-inner .wp-block-button__link.wp-element-button {
  background: transparent !important;
  color: var(--color-muted) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  padding: 7px 18px !important;
  font-size: 12px !important;
  font-family: var(--font-body) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: border-color .15s, color .15s !important;
}
.pr-filters-inner .wp-block-button__link.wp-element-button:hover {
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}

/* ── Widget wrapper & title ──────────────────────────────────────────── */
.pr-filter-widget { min-width: 0; }

.pr-filter-title,
.pr-filter-label,
.pr-filter-widget h3,
.pr-filter-widget h4 {
  display: block;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: var(--color-muted) !important;
  margin: 0 0 10px !important;
  padding: 0 0 6px !important;
  border-bottom: 1px solid var(--color-border) !important;
  font-family: var(--font-body) !important;
}

/* ── WooCommerce layered nav ─────────────────────────────────────────── */
.woocommerce-widget-layered-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-widget-layered-nav-list__item {
  margin-bottom: 5px;
}
.woocommerce-widget-layered-nav-list__item a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  transition: color .15s;
}
.woocommerce-widget-layered-nav-list__item a:hover,
.woocommerce-widget-layered-nav-list__item.chosen a,
.woocommerce-widget-layered-nav-list__item--chosen a {
  color: var(--color-primary);
}
.woocommerce-widget-layered-nav-list__item.chosen a::before,
.woocommerce-widget-layered-nav-list__item--chosen a::before {
  content: '✕';
  font-size: 9px;
  opacity: .7;
}
.woocommerce-widget-layered-nav-list__item .count {
  color: var(--color-muted);
  font-size: 11px;
  margin-left: auto;
}

/* ── WooCommerce active-filters widget ───────────────────────────────── */
.widget_layered_nav_filters ul,
.woocommerce-widget-layered-nav-filters ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.widget_layered_nav_filters li a,
.woocommerce-widget-layered-nav-filters li a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 3px 10px;
  transition: border-color .15s, color .15s;
}
.widget_layered_nav_filters li a::after { content: ' ✕'; opacity: .6; font-size: 9px; }
.widget_layered_nav_filters li a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ── WooCommerce price filter ────────────────────────────────────────── */
.widget_price_filter form { margin: 0; }
.price_slider_wrapper { padding-bottom: 4px; }
.price_slider {
  margin: 4px 0 20px;
  height: 4px;
  border-radius: 2px;
}
.widget_price_filter .ui-slider { position: relative; }
.widget_price_filter .ui-slider-horizontal { height: 4px; }
.widget_price_filter .ui-widget-content,
.widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: var(--color-border) !important;
  border: none !important;
  border-radius: 2px;
}
.widget_price_filter .ui-slider-range {
  background: var(--color-primary) !important;
  border-radius: 2px;
}
.widget_price_filter .ui-slider-handle {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: var(--color-primary) !important;
  border: 2px solid #fff !important;
  box-shadow: 0 0 0 1px var(--color-primary);
  top: -5px !important;
  cursor: grab;
  outline: none;
}
.widget_price_filter .ui-slider-handle:active { cursor: grabbing; }
.price_slider_amount {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.price_slider_amount .button {
  order: 1;
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-family: var(--font-body) !important;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: opacity .15s;
}
.price_slider_amount .button:hover { opacity: .85; }
.price_slider_amount .price_label {
  order: 0;
  flex: 1;
  color: var(--color-text) !important;
  font-size: 13px;
}
.price_slider_amount .price_label .from,
.price_slider_amount .price_label .to { font-weight: 600; }
/* Hide raw min/max text inputs — JS controls the slider */
.price_slider_amount input[type="text"] {
  display: none;
}

/* ── WooCommerce rating filter ───────────────────────────────────────── */
.woocommerce-widget-rating-filter ul,
.widget_rating_filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wc-layered-nav-rating { margin-bottom: 5px; }
.wc-layered-nav-rating a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}
.wc-layered-nav-rating a:hover { color: var(--color-primary); }
.wc-layered-nav-rating .count { color: var(--color-muted); font-size: 11px; }
.wc-layered-nav-rating .star-rating {
  font-size: 13px;
  color: #f0a500;
  letter-spacing: 1px;
}

/* ── Filter reset link ───────────────────────────────────────────────── */
.pr-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-muted);
  font-size: 12px;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  align-self: flex-start;
  margin-top: auto;
  transition: color .2s, border-color .2s;
}
.pr-filter-reset:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ── Light-mode adjustments ──────────────────────────────────────────── */
html.light-mode .pr-filters-toggle { background: #fff; }
html.light-mode .pr-filters-inner  { background: #fff; }
html.light-mode .shop-search-bar .dgwt-wcas-sf-wrapp {
  background: #fff !important; border-color: #e0e0e0 !important;
}
html.light-mode .shop-search-bar input.dgwt-wcas-search-input { color: #111 !important; }
html.light-mode .shop-search-bar .dgwt-wcas-suggestions-wrapp,
html.light-mode .shop-search-bar .dgwt-wcas-details-wrapp {
  background: #fff !important; border-color: #e0e0e0 !important;
}
html.light-mode .shop-search-bar .dgwt-wcas-suggestion:hover,
html.light-mode .shop-search-bar .dgwt-wcas-suggestion-selected { background: rgba(0,0,0,0.04) !important; }

/* ── HUSKY (woof) dark theme ─────────────────────────────────────────── */
.pr-husky-wrap { margin-bottom: 24px; }

.woof,
.woof_container,
.woof-inner-container { background: transparent !important; }

.woof .woof_block_html_items { margin-bottom: 16px; }

.woof .woof_block_html_items .woof_block_title,
.woof .woof_block_html_items h4 {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted) !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 6px;
}
.woof .woof_list { list-style: none !important; padding: 0 !important; }
.woof .woof_list_item { margin-bottom: 5px !important; }
.woof .woof_checkbox_label,
.woof .woof_list_item label {
  color: var(--color-text) !important;
  font-size: 13px !important;
  cursor: pointer;
}
.woof .woof_list_item input[type="checkbox"],
.woof .woof_list_item input[type="radio"] { accent-color: var(--color-primary); }
.woof .woof_list_item a { color: var(--color-text) !important; text-decoration: none !important; font-size: 13px; }
.woof .woof_list_item a:hover { color: var(--color-primary) !important; }
.woof .woof_count { color: var(--color-muted) !important; font-size: 11px; }

.woof .woof_submit_search_form_container button,
.woof button[type="submit"],
.woof input[type="submit"] {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 9px 20px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.woof .woof_reset_search_form_container button,
.woof a.woof_reset_button {
  color: var(--color-muted) !important;
  background: transparent !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  padding: 8px 16px !important;
  font-size: 12px !important;
}
.woof .woof_price_filter .ui-slider-range { background: var(--color-primary) !important; }
.woof .woof_price_filter .ui-slider-handle { background: var(--color-primary) !important; }
.woof .woof_price_filter .ui-widget-content { background: var(--color-border) !important; }

/* ═══════════════════════════════════════════════════════════════════════
   HORIZONTAL FILTER BAR  (Shopify-style pill dropdowns)
══════════════════════════════════════════════════════════════════════════ */

/* ── Search row above filter bar ── */
.shop-search-row {
  margin-bottom: 12px;
}
.shop-search-row .shop-search-bar { margin-bottom: 0; }

/* ── Filter bar container ── */
.pr-filterbar {
  margin-bottom: 24px;
}

/* ── Pill row ── */
.pr-filterbar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Individual pill button ── */
.pr-pill-wrap { position: relative; }

.pr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 7px 14px 7px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
}
.pr-pill:hover {
  border-color: rgba(232,0,29,.5);
  color: var(--color-primary);
}
.pr-pill--active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(232,0,29,.06);
}
.pr-pill--open {
  border-color: var(--color-primary);
  color: var(--color-primary);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-bottom-color: var(--color-surface);
  background: var(--color-surface);
  position: relative;
  z-index: 1001;
}

/* Active count badge inside pill */
.pr-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Chevron icon */
.pr-pill-chevron {
  flex-shrink: 0;
  transition: transform .15s;
  opacity: .7;
}
.pr-pill--open .pr-pill-chevron { transform: rotate(180deg); }

/* ── Dropdown panel ── */
.pr-pill-dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 220px;
  max-width: 320px;
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-top: 1px solid var(--color-surface);
  border-radius: 0 4px 8px 8px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  overflow: hidden;
}
.pr-pill-dropdown--open { display: block; animation: pr-dd-open .12s ease; }

@keyframes pr-dd-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Dropdown option list ── */
.pr-pill-options {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.pr-pill-options::-webkit-scrollbar { width: 4px; }
.pr-pill-options::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.pr-pill-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  transition: background .1s, color .1s;
  cursor: pointer;
}
.pr-pill-option:hover { background: rgba(255,255,255,.04); color: var(--color-primary); }
.pr-pill-option--active { color: var(--color-primary); }
.pr-pill-option--active .pr-pill-option-label { font-weight: 600; }

.pr-pill-option-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}
.pr-pill-option--active .pr-pill-option-check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pr-pill-option-label { flex: 1; }

.pr-pill-option-count {
  color: var(--color-muted);
  font-size: 11px;
  margin-left: auto;
}

/* ── Price filter dropdown content ── */
.pr-price-filter { padding: 16px; }

.pr-price-inputs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.pr-price-sep {
  color: var(--color-muted);
  font-size: 14px;
  padding-bottom: 8px;
  flex-shrink: 0;
}

.pr-price-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pr-price-field > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.pr-price-input-wrap {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s;
}
.pr-price-input-wrap:focus-within { border-color: var(--color-primary); }

.pr-price-currency {
  padding: 0 6px 0 10px;
  font-size: 12px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.pr-price-input-wrap input[type="number"] {
  flex: 1;
  width: 0;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 7px 10px 7px 0;
  -moz-appearance: textfield;
}
.pr-price-input-wrap input[type="number"]::-webkit-inner-spin-button,
.pr-price-input-wrap input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.pr-price-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pr-price-reset {
  font-size: 12px;
  color: var(--color-muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color .15s;
}
.pr-price-reset:hover { color: var(--color-primary); }

.pr-price-apply {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity .15s;
}
.pr-price-apply:hover { opacity: .85; }

/* ── "Tühista kõik" reset link ── */
.pr-filterbar-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-muted);
  font-size: 12px;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  margin-left: 4px;
  transition: color .15s, border-color .15s;
}
.pr-filterbar-reset:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ── Active filter chips row ── */
.pr-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(232,0,29,.1);
  border: 1px solid rgba(232,0,29,.3);
  color: var(--color-primary);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  cursor: pointer;
}
.pr-chip:hover { background: rgba(232,0,29,.18); border-color: var(--color-primary); }

.pr-chip-x {
  font-size: 14px;
  font-weight: 400;
  opacity: .7;
  line-height: 1;
}

/* ── Hidden YITH proxy ── */
.pr-yith-proxy {
  position: absolute;
  left: -9999px;
  width: 1px;
  overflow: hidden;
  visibility: hidden;
}

/* ── Legacy filter panel (kept for backwards compat, hidden by default) ── */
.pr-shop-filters { display: none !important; }
.pr-filters-toggle { display: none !important; }
.shop-controls .pr-filters-toggle { display: none !important; }

/* ── Ivory Search dark theme ─────────────────────────────────────────── */

/* Full-screen overlay */
#ivory-search-full-screen {
  background: rgba(5, 5, 5, 0.97) !important;
}
#ivory-search-full-screen .is-search-form {
  border-bottom: 2px solid var(--color-primary) !important;
  max-width: 700px;
  margin: 0 auto;
}
#ivory-search-full-screen input[type="search"],
#ivory-search-full-screen input[type="text"] {
  background: transparent !important;
  color: var(--color-text) !important;
  font-family: var(--font-body) !important;
  font-size: 24px !important;
  caret-color: var(--color-primary);
}
#ivory-search-full-screen input::placeholder { color: var(--color-muted) !important; }
#ivory-search-full-screen .is-search-submit,
#ivory-search-full-screen button[type="submit"] {
  color: var(--color-primary) !important;
  background: transparent !important;
}
#ivory-search-full-screen .is-close,
.ivory-search-full-screen-close {
  color: var(--color-muted) !important;
  font-size: 28px;
}
#ivory-search-full-screen .is-close:hover { color: var(--color-primary) !important; }

/* Inline / dropdown search result items */
.ivory-search-results-wrap,
.is-result-wrapper {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
}
.ivory-search-result-item,
.is-result-item { border-bottom: 1px solid var(--color-border) !important; }
.ivory-search-result-item:hover,
.is-result-item:hover { background: rgba(232, 0, 29, .08) !important; }
.ivory-search-result-title,
.is-result-title { color: var(--color-text) !important; font-weight: 600 !important; }
.ivory-search-result-price,
.is-result-price { color: var(--color-primary) !important; }

/* Icon trigger in nav (fallback if no AJAX search plugin) */
.ivory-search-icon svg,
.ivory-search-icon i { color: var(--color-text); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .archive-subcats { grid-template-columns: repeat(2, 1fr); }
  .pr-filters-inner { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .pr-filters-inner .widget_price_filter,
  .pr-filters-inner .widget_layered_nav_filters,
  .pr-filters-inner .woocommerce-widget-layered-nav-filters { grid-column: auto; }
  .shop-search-bar .search-form,
  .shop-search-bar form[role="search"] { width: 100%; }
  /* Filter bar: pills wrap and dropdowns can open to full width */
  .pr-pill-dropdown { max-width: 90vw; }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE / MOBILE
   Breakpoints: tablet ≤1023px · mobile ≤767px · small ≤479px
══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet ≤ 1023px ─────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .nav-inner { gap: 20px; }
  .primary-nav > ul { gap: 16px; }
  .primary-nav > ul > li > a { font-size: 12px; }

  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid--full { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .categories-grid--full .cat-img { height: 180px; }
  .archive-subcats { grid-template-columns: repeat(3, 1fr); }
  .products-grid,
  .products-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .co-layout { grid-template-columns: 1fr 340px; }
  .cart-layout { grid-template-columns: 1fr 320px; }

  .sp-main { gap: 40px; }

  .hero h1 { font-size: 54px; }
  .band-title { font-size: 38px; }
}

/* ── Mobile ≤ 767px ──────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --px: 20px; }

  /* ── Navigation: compact layout so icons don't overflow ── */
  .nav-inner { gap: 8px; }
  .nav-hamburger { display: flex; }

  /* Theme toggle fits at all widths (icons are 32px; total nav ≈290px even at 375px) */

  /* Smaller icon buttons on mobile */
  .nav-icon, .site-header .dgwt-wcas-search-icon {
    width: 32px !important; height: 32px !important;
  }
  .nav-search-wrap { width: 32px; }
  /* Drop auto margin from nav-actions so only nav-hamburger's margin-left:auto
     pushes the group to the right — otherwise both share the space and
     hamburger lands in the middle of the bar */
  .nav-actions { gap: 8px; margin-left: 0; }
  /* Match hamburger size to the 32px icon buttons; keep 7px v-padding so
     the translateY(8px) X-close animation still lines up correctly */
  .nav-hamburger { width: 32px; height: 32px; padding: 7px 8px; }

  .primary-nav {
    position: fixed;
    top: 109px; left: 0; right: 0; /* 64px nav-inner + 44px cat-nav-bar + 1px border */
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 8px var(--px) 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease;
    z-index: 99;
    max-height: calc(100dvh - 106px);
    overflow-y: auto;
  }
  body.nav-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav > ul {
    flex-direction: column;
    gap: 0;
  }
  .primary-nav > ul > li > a {
    padding: 14px 2px;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(240,240,240,0.75);
    border-bottom: 1px solid var(--color-border);
    opacity: 1;
    width: 100%;
  }
  .primary-nav > ul > li:last-child > a { border-bottom: none; }

  /* Mobile sub-menu */
  .primary-nav > ul > li > ul {
    position: static;
    opacity: 1; visibility: visible;
    transform: none; pointer-events: auto;
    background: none; backdrop-filter: none;
    border: none; box-shadow: none; border-radius: 0;
    min-width: 0; padding: 0 0 4px 16px;
    display: none;
  }
  .primary-nav > ul > li.open > ul { display: block; }
  .primary-nav > ul > li > ul::before { display: none; }
  .primary-nav > ul > li > ul > li > a {
    padding: 10px 2px;
    font-size: 13px; text-transform: none;
    color: var(--color-muted);
    border-bottom: 1px solid rgba(42,42,42,0.5);
  }
  /* Hide dropdown arrow on mobile (tap opens .open) */
  .primary-nav > ul > li.menu-item-has-children > a::after { display: none; }

  /* ── Logo: shrink so nav-actions icons don't overflow ── */
  .site-logo img.logo-dark,
  .site-logo img.logo-light { max-height: 28px; max-width: 130px; }
  .site-logo { font-size: 16px; }

  /* ── Category nav bar: mobile dropdown ── */
  .cat-nav-inner {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    overflow: visible;
  }
  .cat-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 var(--px);
    height: 42px;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .cat-nav-toggle svg { transition: transform .25s; flex-shrink: 0; }
  .cat-nav-bar.is-open .cat-nav-toggle svg { transform: rotate(180deg); }
  .cat-nav-label { display: none; }
  .cat-nav { display: none; width: 100%; }
  .cat-nav-bar.is-open .cat-nav { display: block; }
  .cat-nav > ul {
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    padding: 0;
  }
  .cat-nav > ul > li > a {
    display: block;
    padding: 11px var(--px);
    border-top: 1px solid var(--color-border);
    white-space: normal;
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  /* ── Typography ── */
  .hero h1 { font-size: 38px; letter-spacing: -1px; max-width: 100%; }
  .band-title { font-size: 30px; letter-spacing: -0.5px; max-width: 100%; }
  .section-title { font-size: 22px; }
  .page-title { font-size: 26px; }
  .archive-title { font-size: 26px; }
  .sp-col-summary .product_title { font-size: 26px; }
  .cart-heading { font-size: 22px; }

  /* ── Hero ── */
  .hero { min-height: 500px; }
  .hero-inner { padding: 60px var(--px) 48px; }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .hero-stats { gap: 24px; margin-top: 32px; padding-top: 22px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 22px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; justify-content: center; text-align: center; }

  /* ── Trust bar ── */
  .trust-inner { flex-wrap: wrap; }
  .trust-item {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--color-border); }
  .trust-item:last-child,
  .trust-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* ── Category & product grids ── */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-img { height: 90px; }

  .products-grid,
  .products-grid.cols-2,
  .products-grid.cols-3,
  .products-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-grid.cols-1 { grid-template-columns: 1fr; }
  .product-img { height: 180px; }

  /* ── Band ── */
  .band { min-height: auto !important; }
  .band-inner { padding: 52px var(--px); }
  .band-sub { max-width: 100%; font-size: 14px; margin-bottom: 24px; }

  /* ── Section wrap ── */
  .section-wrap { padding: 52px var(--px); }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 24px; }

  /* ── Double CTA ── */
  .cta-inner { flex-direction: column; padding: 40px var(--px); gap: 14px; }
  .cta-band-card { min-height: 220px !important; flex: none !important; width: 100%; }
  .cta-card { padding: 24px 20px; }
  .cta-card h3,
  .cta-card .wp-block-heading { font-size: 22px; }

  /* ── Why section ── */
  .why-inner { flex-direction: column; gap: 36px; padding: 52px var(--px); }

  /* ── Footer ── */
  .footer-inner { padding: 44px var(--px) 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 14px; }

  /* ── Page / generic ── */
  .page-wrap { padding: 40px var(--px) 52px; }
  .entry-content h2 { font-size: 20px; }

  /* ── Shop archive ── */
  .archive-header-inner { padding: 28px var(--px); gap: 16px; }
  .archive-cat-img { width: 72px; height: 72px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .related.products ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop-toolbar { gap: 10px; }

  /* ── Single product ── */
  .sp-main { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .sp-col-gallery .woocommerce-product-gallery { position: static; }
  .sp-col-gallery .woocommerce-product-gallery__image img { height: 340px; }
  .sp-col-summary .price { font-size: 26px; }

  /* ── Cart ── */
  .cart-layout { grid-template-columns: 1fr; gap: 24px; }
  .cart-col-totals { position: static; }
  .cart-item { grid-template-columns: 72px 1fr auto auto; gap: 12px; }
  .cart-item-subtotal { display: none; }
  .cart-coupon { min-width: 100%; }

  /* ── Checkout ── */
  .co-layout { grid-template-columns: 1fr; gap: 32px; }
  .co-right { position: static; }
  .form-row-first,
  .form-row-last { float: none; width: 100%; }

  /* ── WooCommerce notices ── */
  .woocommerce-message a.button,
  .woocommerce-info a.button { float: none; display: inline-block; margin: 8px 0 0 0; }

  /* ── DPG grid ── */
  .dpg-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .dpg-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .dpg-slider .product-card { flex: 0 0 260px; }

  /* ── Fixed background attachment doesn't work correctly on mobile Safari ── */
  body.home { background-attachment: scroll; }
  body.home::before, body.home::after { position: absolute; }

  /* ── Ensure nothing bleeds past the viewport edge ── */
  .hero, .section-wrap,
  .band-inner, .footer-inner, .page-wrap, .woocommerce {
    max-width: 100vw;
    overflow-x: hidden;
  }
  /* site-header and cat-nav-bar must NOT have overflow-x:hidden —
     it implicitly makes overflow-y:auto and creates a scrollbar when
     the cat-nav dropdown expands inside the sticky header. */
}

/* ── Small mobile ≤ 479px ────────────────────────────────────────────── */
@media (max-width: 479px) {
  :root { --px: 16px; }

  .site-logo img.logo-dark,
  .site-logo img.logo-light { max-height: 24px; max-width: 110px; }
  .site-logo { font-size: 15px; }

  .hero h1 { font-size: 28px; letter-spacing: -0.5px; }
  .band-title { font-size: 24px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { padding: 13px 20px; font-size: 12px; }

  /* Single-column product grid on very small screens */
  .products-grid,
  .products-grid.cols-2,
  .products-grid.cols-3,
  .products-grid.cols-4 { grid-template-columns: 1fr; }
  .woocommerce ul.products,
  .related.products ul.products { grid-template-columns: 1fr; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid--full { grid-template-columns: 1fr; }
  .categories-grid--full .cat-img { height: 200px; }

  .cart-item { grid-template-columns: 64px 1fr auto; }
  .cart-item-remove { grid-column: auto; }

  .cta-band-card { min-height: 180px !important; }

  /* Single product gallery */
  .sp-col-gallery .woocommerce-product-gallery__image img { height: 260px; }

  /* Checkout step bar wraps */
  .co-steps { flex-wrap: wrap; gap: 8px; }
  .co-step-line { display: none; }
}

/* ═══ THEME TOGGLE BUTTON ════════════════════════════════════════════════ */
.theme-toggle {
  transition: border-color .2s, transform .38s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(24deg); }
html.light-mode .theme-toggle:hover { transform: rotate(-24deg); }

/* Sun = visible in dark mode; moon = visible in light mode */
.theme-toggle .icon-sun  { display: flex; align-items: center; }
.theme-toggle .icon-moon { display: none;  }
html.light-mode .theme-toggle .icon-sun  { display: none;  }
html.light-mode .theme-toggle .icon-moon { display: flex; align-items: center; }

/* ═══ LIGHT MODE ═════════════════════════════════════════════════════════ */

/* ── 1. Design token overrides ─────────────────────────────────────────── */
html.light-mode {
  --color-bg:      #F2F1EF;
  --color-surface: #FFFFFF;
  --color-text:    #111111;
  --color-muted:   #6B6B6B;
  --color-border:  #DDDCDA;
}

/* ── 2. Body ────────────────────────────────────────────────────────────── */
html.light-mode body {
  background-color: #F2F1EF;
  color: #111111;
}

/* Home page: keep the motorcycle photo, lighten the fog */
html.light-mode body.home {
  background-image:
    radial-gradient(ellipse 55% 80% at -8% 50%, rgba(232,0,29,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 55% 80% at 108% 50%, rgba(232,0,29,0.05) 0%, transparent 70%);
  background-size: auto, auto, cover;
  background-position: left center, right center, center 30%;
  background-attachment: fixed;
}
html.light-mode body.home::before {
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(242,241,239,0.18) 0%, rgba(242,241,239,0.08) 100%);
}

/* ── 3. Navigation ─────────────────────────────────────────────────────── */
html.light-mode .site-header {
  background: rgba(242, 241, 239, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}
html.light-mode .primary-nav > ul > li > a {
  color: rgba(17, 17, 17, 0.5);
}
html.light-mode .primary-nav > ul > li > a:hover,
html.light-mode .primary-nav > ul > li.current-menu-item > a { color: #111111; }
html.light-mode .nav-icon {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.11);
  color: #111111;
}
html.light-mode .nav-icon:hover { border-color: rgba(0, 0, 0, 0.26); }
html.light-mode .nav-icon-svg { color: rgba(17, 17, 17, 0.35); }
html.light-mode .primary-nav > ul > li > a:hover .nav-icon-svg,
html.light-mode .primary-nav > ul > li.current-menu-item > a .nav-icon-svg { color: rgba(17, 17, 17, 0.8); }

/* Mobile slide-down nav panel */
html.light-mode .primary-nav {
  background: rgba(242, 241, 239, 0.98);
}

/* Hamburger bars */
html.light-mode .nav-hamburger span { background: #111111; }

/* Category nav bar */
html.light-mode .cat-nav-bar {
  background: rgba(242, 241, 239, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}
html.light-mode .cat-nav > ul > li > a {
  color: rgba(17, 17, 17, 0.45);
}
html.light-mode .cat-nav > ul > li > a:hover,
html.light-mode .cat-nav > ul > li.current-menu-item > a {
  color: var(--color-primary);
}

/* ── 4. Buttons ─────────────────────────────────────────────────────────── */
html.light-mode .btn-outline {
  border-color: rgba(17, 17, 17, 0.22);
  color: #111111;
}
html.light-mode .btn-outline:hover { border-color: rgba(17, 17, 17, 0.5); }

/* ── 5. Trust bar ───────────────────────────────────────────────────────── */
html.light-mode .trust-bar {
  background: #FFFFFF;
  border-top: 1px solid rgba(232, 0, 29, 0.12);
  border-bottom: 1px solid #DDDCDA;
}
html.light-mode .trust-icon { background: rgba(232, 0, 29, 0.07); }

/* ── 6. Product cards ───────────────────────────────────────────────────── */
html.light-mode .product-img { background: #EEEDEB; }
html.light-mode .product-badge.stock {
  background: rgba(34,197,94,0.12);
  color: #16a34a;
  border-color: rgba(34,197,94,0.3);
}

/* ── 7. Section backgrounds ─────────────────────────────────────────────── */
html.light-mode .section-dark { background: #E8E7E5; }

/* ── 7b. Hardcoded rgba(240,240,240,…) text — override every instance ───── */

/* Page / generic content */
html.light-mode .entry-content p,
html.light-mode .entry-content li        { color: rgba(17,17,17,0.8); }
html.light-mode .page-content-inner .wp-block-quote { color: rgba(17,17,17,0.7); }

/* Archive/shop category description */
html.light-mode .archive-desc            { color: rgba(17,17,17,0.6); }

/* Band subtitle */
html.light-mode .band-sub                { color: rgba(17,17,17,0.65); }

/* CTA card body text */
html.light-mode .cta-card p:not(.wp-block-heading) { color: rgba(17,17,17,0.7); }

/* Why/text block description */
html.light-mode .why-desc                { color: rgba(17,17,17,0.65); }

/* Review card quote */
html.light-mode .review-text             { color: rgba(17,17,17,0.75); }

/* Single product short description */
html.light-mode .sp-col-summary .woocommerce-product-details__short-description { color: rgba(17,17,17,0.7); }

/* Single product tabs panel (description, attributes, reviews) */
html.light-mode .woocommerce-Tabs-panel  { color: rgba(17,17,17,0.75); }

/* Block styles */
html.light-mode .wp-block-paragraph.is-style-lead  { color: rgba(17,17,17,0.75); }
html.light-mode .wp-block-quote.is-style-brand p   { color: rgba(17,17,17,0.85); }

/* Pagination hover border (was rgba(255,255,255,0.25) — invisible on light bg) */
html.light-mode .woocommerce-pagination ul li a:hover { border-color: rgba(0,0,0,0.2); }

/* Mobile nav links (inside media-query override, so repeat here) */
html.light-mode .primary-nav > ul > li > a { color: rgba(17,17,17,0.75); }

/* ── 8. Ivory Search overlay ────────────────────────────────────────────── */
html.light-mode #ivory-search-full-screen {
  background: rgba(242, 241, 239, 0.97) !important;
}
html.light-mode #ivory-search-full-screen input[type="search"],
html.light-mode #ivory-search-full-screen input[type="text"] {
  color: #111111 !important;
}
html.light-mode #ivory-search-full-screen input::placeholder { color: #6B6B6B !important; }
html.light-mode #ivory-search-full-screen .is-close,
html.light-mode .ivory-search-full-screen-close { color: #6B6B6B !important; }

/* ── FiboSearch light-mode overrides ───────────────────────────────────── */
html.light-mode .site-header .dgwt-wcas-search-icon {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.11) !important;
}
html.light-mode .site-header .dgwt-wcas-search-icon:hover {
  border-color: rgba(0, 0, 0, 0.26) !important;
}
html.light-mode .site-header .dgwt-wcas-suggestion:hover,
html.light-mode .site-header .dgwt-wcas-suggestion-selected { background: rgba(0,0,0,0.04) !important; }

/* ── 9. Hero stat bar border ────────────────────────────────────────────── */
html.light-mode .hero-stats { border-top-color: rgba(17, 17, 17, 0.12); }
html.light-mode .hero-stat-label { color: rgba(17, 17, 17, 0.5); }

/* ── 10. Dark overlays → white in light mode ────────────────────────────── */

/* Static hero overlay — light-tinted in light mode */
html.light-mode .hero-overlay {
  background: linear-gradient(
    to right,
    rgba(242,241,239,0.72) 0%,
    rgba(242,241,239,0.45) 45%,
    rgba(242,241,239,0.10) 100%
  );
}

/* LZB hero block overlay — light-tinted in light mode */
html.light-mode .hero-block-overlay {
  background: linear-gradient(
    to right,
    rgba(242,241,239,0.72) 0%,
    rgba(242,241,239,0.45) 45%,
    rgba(242,241,239,0.10) 100%
  ) !important;
}

/* Band block overlay — also inline-styled by PHP */
html.light-mode .band-overlay {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.50) 55%,
    rgba(255, 255, 255, 0.10) 100%
  ) !important;
}

/* Double CTA cards — inline-styled by PHP, gradient runs bottom→top */
html.light-mode .cta-band-overlay {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.50) 55%,
    transparent 100%
  ) !important;
}

/* Shop / archive header — pure CSS */
html.light-mode .archive-header-overlay {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.42) 100%
  );
}

/* Text that was hardcoded white inside photo sections */
html.light-mode .hero h1   { text-shadow: none; }
html.light-mode .hero-sub  { color: rgba(17, 17, 17, 0.65); }
html.light-mode .band-sub  { color: rgba(17, 17, 17, 0.65); }

/* CTA band card headings inherit body color — already dark via --color-text token */

/* Product card hover scrim — lighten slightly in light mode */
html.light-mode .product-card:hover .product-img-overlay {
  background: rgba(0, 0, 0, 0.10);
}

/* ── 11. Footer logo tint ───────────────────────────────────────────────── */
html.light-mode .footer-brand .site-logo img { filter: brightness(0); }
/* Dual-logo: skip filter when explicit dark/light variants are in use */
.footer-brand .site-logo img.logo-dark,
.footer-brand .site-logo img.logo-light { filter: none; }

/* ── 12. Footer background & text ──────────────────────────────────────── */
html.light-mode .site-footer {
  background: #D8D7D4;
  border-top-color: rgba(0, 0, 0, 0.10);
  --color-muted:  #52514E;   /* darkened so muted text stays readable on gray */
  --color-border: rgba(0, 0, 0, 0.10);
}

/* ═══ WP ADMIN BAR — sticky header offset ═══════════════════════════════
   WP adds html { margin-top: 32px } which shifts the entire scroll-container
   origin down. position:sticky top:0 already resolves to right below the
   admin bar — no extra offset needed for .site-header.
   Sticky sidebars (.sp-gallery etc.) and the primary-nav already use their
   own header-height-based top values which are likewise unaffected.        */

/* ═══ SINGLE PRODUCT — mobile title block ════════════════════════════════
   On mobile the product name + category sit above the gallery. The same
   elements inside .sp-col-summary are hidden on mobile to avoid duplication. */
.sp-title-mobile { display: none; }

@media (max-width: 767px) {
  .sp-title-mobile {
    display: block;
    padding: 20px var(--px) 0;
  }
  /* Hide duplicate title & cat-label inside summary on mobile */
  .sp-col-summary .product_title.entry-title { display: none; }
  .sp-col-summary .sp-cat-label             { display: none; }
}
