/* ============================================================
   Дверимаркет — главная страница
   Премиум D2C, тёмная палитра (графит + медь)
   ============================================================ */

:root {
  /* Color tokens — warm graphite & copper */
  --bg-0: oklch(0.14 0.006 60);   /* deepest */
  --bg-1: oklch(0.17 0.006 60);   /* page bg */
  --bg-2: oklch(0.21 0.007 60);   /* surface */
  --bg-3: oklch(0.26 0.008 60);   /* raised surface */
  --bg-4: oklch(0.32 0.008 60);   /* hover/border-emphasis */
  --line: oklch(0.30 0.006 60 / 0.5);
  --line-strong: oklch(0.45 0.008 60 / 0.7);

  --fg-0: oklch(0.97 0.008 80);   /* primary text */
  --fg-1: oklch(0.84 0.012 80);   /* secondary text */
  --fg-2: oklch(0.70 0.012 80);   /* muted */
  --fg-3: oklch(0.58 0.012 80);   /* subtle — readable on dark bg */

  --acc:   oklch(0.74 0.105 55);  /* copper */
  --acc-2: oklch(0.84 0.13 80);   /* warm gold */
  --acc-deep: oklch(0.50 0.11 50);

  --danger: oklch(0.62 0.18 25);
  --success: oklch(0.68 0.14 155);

  /* Spacing rhythm — controlled via density */
  --gap-xs: 6px;
  --gap-sm: 10px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 40px;
  --gap-2xl: 64px;

  --pad-section: clamp(48px, 6vw, 88px);
  --pad-card: 18px;
  --container: 1400px;
  --container-pad: clamp(16px, 3vw, 40px);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --ff-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --ff-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
}

/* density tweak — comfy/regular/dense */
[data-density="comfy"] {
  --pad-section: clamp(72px, 9vw, 140px);
  --pad-card: 26px;
  --gap-md: 22px;
  --gap-lg: 36px;
}
[data-density="dense"] {
  --pad-section: clamp(32px, 4vw, 56px);
  --pad-card: 12px;
  --gap-md: 12px;
  --gap-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-1);
  color: var(--fg-0);
  font-family: var(--ff-ui);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }

::selection { background: var(--acc); color: var(--bg-0); }

/* Display headings */
.display, h1.display, h2.display {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Section header pattern */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-lg);
  margin-bottom: var(--gap-lg);
}
.section-head h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.05;
}
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 14px;
}
.section-head .eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--acc);
}
.section-head .more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-1); font-size: 13px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.section-head .more:hover { color: var(--acc); border-bottom-color: var(--acc); }
.section-head .more svg { transition: transform .2s; }
.section-head .more:hover svg { transform: translateX(3px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px; letter-spacing: 0.01em;
  transition: background .18s, color .18s, transform .12s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--acc);
  color: oklch(0.16 0.006 60);
}
.btn-primary:hover {
  background: var(--acc-2);
  box-shadow: 0 8px 24px oklch(0.74 0.105 55 / 0.25);
}
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
  border-color: var(--line-strong);
  color: var(--fg-0);
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.btn-ghost { color: var(--fg-1); }
.btn-ghost:hover { color: var(--fg-0); }

.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* Icon buttons */
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: var(--fg-1);
  transition: background .15s, color .15s;
  position: relative;
}
.icon-btn:hover { background: var(--bg-3); color: var(--fg-0); }
.icon-btn .counter {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--acc);
  color: oklch(0.16 0.006 60);
  border-radius: 9px;
  font-size: 10px; font-weight: 700; line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-1);
  box-sizing: border-box;
}

/* Badge */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--fg-0);
}
.badge.hit    { background: oklch(0.74 0.105 55); color: oklch(0.16 0.006 60); }
.badge.new    { background: oklch(0.68 0.14 155); color: oklch(0.14 0.005 155); }
.badge.sale   { background: oklch(0.62 0.18 25);  color: white; }
.badge.bestseller{ background: oklch(0.84 0.13 80); color: oklch(0.16 0.006 60); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-2);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px;
  padding-left: 0;
  padding-right: 0;
}
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar a { color: var(--fg-2); transition: color .15s; }
.topbar a:hover { color: var(--acc); }
.topbar .city {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg-1);
  border: 0; background: transparent; cursor: pointer;
}
.topbar .city:hover { color: var(--acc); }
.topbar .pipe { width: 1px; height: 12px; background: var(--line-strong); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header .container {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 78px;
  padding-left: 0;
  padding-right: 0;  
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--fg-0);
}
.logo .mark {
  width: 34px; height: 34px;
  border: 1.5px solid var(--acc);
  border-radius: 4px 4px 17px 17px;
  position: relative;
  flex-shrink: 0;
}
.logo .mark::before {
  content: ""; position: absolute; right: 5px; top: 50%;
  width: 4px; height: 4px; background: var(--acc);
  border-radius: 50%;
  transform: translateY(-50%);
}
.logo .mark::after {
  content: ""; position: absolute; inset: 5px 5px 7px 5px;
  border: 1px solid var(--acc); opacity: 0.4;
  border-radius: 2px 2px 12px 12px;
}
.logo span em { font-style: normal; color: var(--acc); }

/* Catalog button */
.catalog-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  background: var(--acc);
  color: oklch(0.16 0.006 60);
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 14px;
  transition: background .15s;
}
.catalog-trigger:hover { background: var(--acc-2); }
.catalog-trigger .burger {
  width: 14px; height: 10px; display: flex; flex-direction: column;
  justify-content: space-between;
}
.catalog-trigger .burger span {
  display: block; width: 100%; height: 1.5px;
  background: oklch(0.16 0.006 60);
  border-radius: 2px;
}

/* Search */
.search {
  position: relative;
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--acc); background: var(--bg-1); }
.search input {
  flex: 1; height: 48px; padding: 0 16px 0 44px;
  background: transparent; border: 0; outline: 0;
  font-size: 14px;
}
.search input::placeholder { color: var(--fg-3); }
.search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--fg-2); pointer-events: none;
}
.search button.search-submit {
  padding: 0 20px;
  background: transparent;
  color: var(--fg-1);
  border-left: 1px solid var(--line);
  font-size: 13px;
}
.search button.search-submit:hover { color: var(--acc); }

/* Search suggestions */
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  z-index: 50;
  max-height: 480px; overflow-y: auto;
}
.suggest-group { padding: 6px 0; }
.suggest-group + .suggest-group { border-top: 1px solid var(--line); }
.suggest-label {
  padding: 6px 18px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3);
}
.suggest-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .12s;
}
.suggest-item:hover { background: var(--bg-3); }
.suggest-item .thumb {
  width: 36px; height: 48px; border-radius: 3px;
  background: var(--bg-3); flex-shrink: 0;
  position: relative; overflow: hidden;
}
.suggest-item .info { flex: 1; min-width: 0; }
.suggest-item .name {
  font-size: 13px; color: var(--fg-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.suggest-item .meta { font-size: 12px; color: var(--fg-2); margin-top: 2px; }
.suggest-item .price { font-size: 13px; font-weight: 600; color: var(--acc); }
.suggest-item.query {
  color: var(--fg-1); font-size: 13px;
}
.suggest-item.query b { color: var(--fg-0); font-weight: 600; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-actions .icon-btn { flex-direction: column; gap: 2px; height: auto; padding: 6px 10px; width: auto; }
.header-actions .icon-btn .label { font-size: 11px; color: var(--fg-2); }
.header-actions .icon-btn:hover .label { color: var(--fg-0); }
.header-actions .icon-btn:hover { background: transparent; }
.header-actions .icon-btn .counter {
  top: -2px; right: 2px;
}

/* ============================================================
   MEGA MENU
   ============================================================ */
.megamenu-wrap {
  position: relative;
}
.megamenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 920px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
}
.megamenu.open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s 0s;
}
.megamenu .cats {
  background: var(--bg-3);
  padding: 12px 0;
  border-right: 1px solid var(--line);
  max-height: 540px;
  overflow-y: auto;
}
.megamenu .cat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  font-size: 14px; color: var(--fg-1);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
}
.megamenu .cat-item:hover, .megamenu .cat-item.active {
  background: var(--bg-2);
  color: var(--fg-0);
  border-left-color: var(--acc);
}
.megamenu .cat-item .ico {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--acc);
  opacity: 0.85;
}
.megamenu .cat-item .chev {
  margin-left: auto; color: var(--fg-3);
  transition: color .12s;
}
.megamenu .cat-item.active .chev { color: var(--acc); }

.megamenu .pane {
  padding: 24px 28px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 220px;
  gap: 28px;
}
.megamenu .subcat-col h4 {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 10px;
  font-weight: 600;
}
.megamenu .subcat-col ul { list-style: none; margin: 0; padding: 0; }
.megamenu .subcat-col li { padding: 5px 0; }
.megamenu .subcat-col a {
  font-size: 13.5px; color: var(--fg-1);
  display: flex; justify-content: space-between; gap: 10px;
  transition: color .12s;
}
.megamenu .subcat-col a:hover { color: var(--acc); }
.megamenu .subcat-col a .qty { color: var(--fg-3); font-size: 11px; }
.megamenu .feature {
  background: linear-gradient(160deg, var(--bg-4), var(--bg-3));
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  min-height: 220px;
}
.megamenu .feature::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 140px; height: 140px;
  border: 1px solid var(--acc); opacity: 0.18;
  border-radius: 50%;
}
.megamenu .feature .eyebrow {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 8px;
}
.megamenu .feature h5 {
  font-family: var(--ff-display); font-size: 22px; font-weight: 400;
  margin: 0 0 6px; line-height: 1.1;
}
.megamenu .feature p { color: var(--fg-1); font-size: 12.5px; margin: 0 0 auto; }
.megamenu .feature .feature-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--acc); font-size: 13px; font-weight: 600;
  margin-top: 16px;
}

/* ============================================================
   HERO — full-bleed, content aligns with .container grid
   ============================================================ */
.hero {
  margin-top: 0;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.hero-slides {
  position: relative;
  height: clamp(440px, 56vh, 620px);
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
.hero-slide.active { opacity: 1; pointer-events: all; }
.hero-slide .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.55) saturate(1.05);
}
.hero-slide .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg,
    oklch(0.14 0.006 60 / 0.92) 0%,
    oklch(0.14 0.006 60 / 0.65) 45%,
    oklch(0.14 0.006 60 / 0.25) 80%,
    oklch(0.14 0.006 60 / 0.1) 100%);
}
.hero-slide .hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-xl);
}
.hero-slide .content {
  max-width: 600px;
}
.hero-slide .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 18px;
}
.hero-slide .eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--acc);
}
.hero-slide h1 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero-slide h1 em {
  font-style: italic; color: var(--acc);
}
.hero-slide p {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--fg-1);
  margin: 0 0 32px;
  max-width: 480px;
  line-height: 1.55;
}
.hero-slide .cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-slide .stat-row {
  display: flex; flex-direction: column; gap: 24px;
  padding: 28px 28px;
  background: oklch(0 0 0 / 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: var(--radius-lg);
  align-self: stretch;
  justify-content: center;
  min-width: 220px;
}
.hero-slide .stat-row .stat .v {
  font-family: var(--ff-display);
  font-size: 40px; line-height: 1;
  color: var(--acc);
  letter-spacing: -0.01em;
}
.hero-slide .stat-row .stat .l {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-2);
  margin-top: 6px;
}

.hero-controls {
  position: absolute;
  left: 0; right: 0;
  bottom: 28px;
  z-index: 5;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.hero-controls > * { pointer-events: auto; }
.hero-dots {
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 32px; height: 3px;
  background: oklch(1 0 0 / 0.25);
  border-radius: 2px;
  transition: background .2s, width .2s;
}
.hero-dots button.active { background: var(--acc); width: 48px; }

.hero-nav {
  display: flex; gap: 8px;
}
.hero-nav button {
  width: 44px; height: 44px;
  background: oklch(1 0 0 / 0.08);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-0);
  transition: background .15s;
  border: 1px solid oklch(1 0 0 / 0.12);
}
.hero-nav button:hover { background: var(--acc); border-color: var(--acc); color: var(--bg-0); }

/* Hero rail — categories strip below the hero */
.hero-rail {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.hero-rail a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--fg-1);
  transition: border-color .15s, color .15s, background .15s;
}
.hero-rail a:hover { border-color: var(--acc); color: var(--fg-0); background: var(--bg-3); }
.hero-rail a .ico { color: var(--acc); opacity: 0.85; }

/* ============================================================
   SECTIONS
   ============================================================ */
section.block { padding: var(--pad-section) 0; }
section.block.tight { padding-top: var(--gap-xl); }

/* Quick categories grid */
.quick-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-md);
}
.quick-cat {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  overflow: hidden;
  transition: transform .25s ease, border-color .15s, background .15s;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.quick-cat:hover {
  transform: translateY(-3px);
  border-color: var(--acc);
  background: var(--bg-3);
}
.quick-cat h3 {
  font-family: var(--ff-display);
  font-size: 19px; font-weight: 400;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.005em;
  z-index: 2; position: relative;
}
.quick-cat .qty {
  font-size: 12px; color: var(--fg-2);
  position: relative; z-index: 2;
}
.quick-cat .visual {
  position: absolute;
  right: -10px; bottom: -10px;
  width: 130px; height: 160px;
  opacity: 0.65;
  transition: opacity .25s, transform .25s;
}
.quick-cat:hover .visual { opacity: 0.95; transform: translateY(-4px); }
.quick-cat .arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-1);
  position: relative; z-index: 2;
  transition: background .2s, color .2s;
}
.quick-cat:hover .arrow { background: var(--acc); color: var(--bg-0); }

/* ============================================================
   PRODUCT CARD (CSS-illustrated door)
   ============================================================ */
.product-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .2s, box-shadow .2s;
}
.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.product-card .media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  overflow: hidden;
}
.product-card .media .door-illust {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  height: 92%; width: 56%;
  display: flex; flex-direction: column;
}
.product-card .media .door-illust .frame {
  flex: 1;
  background: var(--door-color, oklch(0.32 0.018 60));
  border-radius: 4px 4px 0 0;
  border: 1px solid var(--door-edge, oklch(0.45 0.025 60));
  border-bottom: none;
  position: relative;
  box-shadow: -8px 0 24px rgba(0,0,0,0.25), inset 1px 0 0 oklch(1 0 0 / 0.04);
}
.product-card .media .door-illust .frame::before,
.product-card .media .door-illust .frame::after {
  content: ""; position: absolute;
  left: 12%; right: 12%;
  border: 1px solid var(--door-edge, oklch(0.45 0.025 60));
  opacity: 0.7;
  border-radius: 2px;
}
.product-card .media .door-illust .frame::before { top: 8%; height: 35%; }
.product-card .media .door-illust .frame::after { top: 52%; height: 38%; }
.product-card .media .door-illust .handle {
  position: absolute;
  right: 8%; top: 55%;
  width: 4px; height: 22px;
  background: var(--acc);
  border-radius: 2px;
  box-shadow: 0 0 0 3px var(--door-color, oklch(0.32 0.018 60)), 0 0 12px oklch(0.74 0.105 55 / 0.4);
}
.product-card .media .badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 5px;
  z-index: 3;
}
.product-card .media .quick-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 3;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s;
}
.product-card:hover .quick-actions { opacity: 1; transform: translateX(0); }
.product-card .quick-actions .qa {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-1);
  border: 1px solid var(--line);
  transition: background .15s, color .15s, border-color .15s;
}
.product-card .quick-actions .qa:hover { background: var(--acc); color: oklch(0.16 0.006 60); border-color: var(--acc); }
.product-card .quick-actions .qa.active {
  background: oklch(0.74 0.105 55 / 0.14);
  color: var(--acc);
  border-color: oklch(0.74 0.105 55 / 0.45);
}
.product-card .quick-actions .qa.active:hover {
  background: var(--acc);
  color: oklch(0.16 0.006 60);
  border-color: var(--acc);
}

.product-card .body {
  padding: var(--pad-card);
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card .brand {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.product-card .name {
  font-size: 14px;
  color: var(--fg-0);
  line-height: 1.35;
  text-wrap: pretty;
}
.product-card .specs {
  display: flex; gap: 12px;
  font-size: 11.5px;
  color: var(--fg-2);
  margin-top: 2px;
}
.product-card .specs .spec { display: inline-flex; align-items: center; gap: 4px; }

.product-card .rating {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--fg-1);
}
.product-card .rating .stars { color: var(--acc-2); }
.product-card .rating .count { color: var(--fg-3); }

.product-card .price-row {
  display: flex; align-items: baseline; gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.product-card .price {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--fg-0);
  letter-spacing: -0.01em;
  line-height: 1;
}
.product-card .old-price {
  font-size: 13px;
  color: var(--fg-3);
  text-decoration: line-through;
}
.product-card .save {
  font-size: 11px; color: var(--success);
}
.product-card .actions {
  display: flex; gap: 8px;
  margin-top: 12px;
}
.product-card .add-to-cart {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--fg-0);
  transition: background .15s, color .15s, border-color .15s;
}
.product-card .add-to-cart:hover {
  background: var(--acc); color: var(--bg-0); border-color: var(--acc);
}
.product-card .add-to-cart.in-cart {
  background: oklch(0.40 0.06 145 / 0.25);
  color: var(--success);
  border-color: oklch(0.50 0.10 145 / 0.5);
}

/* product card variants */
[data-card="minimal"] .product-card .specs { display: none; }
[data-card="minimal"] .product-card .actions { display: none; }
[data-card="minimal"] .product-card .body { gap: 6px; padding: 14px; }
[data-card="minimal"] .product-card .price { font-size: 18px; }
[data-card="minimal"] .product-card:hover { transform: translateY(-2px); }

[data-card="info-rich"] .product-card .compare-btn { display: inline-flex; }

[data-card="market"] .product-card { border-radius: var(--radius-sm); }
[data-card="market"] .product-card .media { aspect-ratio: 1 / 1; }
[data-card="market"] .product-card .body { padding: 12px; gap: 6px; }
[data-card="market"] .product-card .name { font-size: 13px; }
[data-card="market"] .product-card .price { font-size: 18px; font-family: var(--ff-ui); font-weight: 700; }
[data-card="market"] .product-card .add-to-cart { font-size: 12px; padding: 8px; }

/* ============================================================
   PRODUCT SCROLLER (slider)
   ============================================================ */
.scroller-wrap {
  position: relative;
}
.scroller {
  display: flex;
  gap: var(--gap-md);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--container-pad);
  scrollbar-width: none;
  padding-bottom: 4px;
}
.scroller > * {
  flex: 0 0 240px;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  scroll-snap-align: start;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller.cols-5 > * {
  flex-basis: 220px;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}

/* Products grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-md);
}
[data-density="comfy"] .product-grid { grid-template-columns: repeat(4, 1fr); }
[data-density="dense"] .product-grid { grid-template-columns: repeat(6, 1fr); }

/* Tabs (filter chips for popular products) */
.chip-row {
  display: flex; gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-1);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: all .15s;
  cursor: pointer;
}
.chip:hover { color: var(--fg-0); border-color: var(--line-strong); }
.chip.active { background: var(--acc); color: oklch(0.16 0.006 60); border-color: var(--acc); }

.scroller-nav {
  display: flex; gap: 6px;
}
.scroller-nav button {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-1);
  transition: all .15s;
}
.scroller-nav button:hover:not(:disabled) {
  background: var(--acc); color: var(--bg-0); border-color: var(--acc);
}
.scroller-nav button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.promo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap-md);
}
.promo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  transition: border-color .15s, transform .2s;
}
.promo:hover { border-color: var(--acc); transform: translateY(-2px); }
.promo.large { background: linear-gradient(120deg, oklch(0.22 0.05 50), oklch(0.18 0.04 40)); }
.promo .eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--acc); font-weight: 600;
}
.promo h3 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  margin: 12px 0 4px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.promo h3 em { font-style: italic; color: var(--acc); }
.promo p { color: var(--fg-1); font-size: 13px; margin: 0; max-width: 80%; }
.promo .price-tag {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin-top: 16px;
}
.promo .price-tag .val {
  font-family: var(--ff-display);
  font-size: 32px;
  color: var(--acc);
}
.promo .price-tag .lbl { color: var(--fg-2); font-size: 12px; }
.promo .arrow {
  align-self: flex-end;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-1);
  transition: all .2s;
}
.promo:hover .arrow { background: var(--acc); color: var(--bg-0); border-color: var(--acc); }
.promo .timer {
  display: inline-flex; gap: 8px;
  margin-top: 10px;
}
.promo .timer .cell {
  background: oklch(0 0 0 / 0.35);
  padding: 6px 9px;
  border-radius: 4px;
  font-family: var(--ff-display);
  font-size: 16px;
  color: var(--fg-0);
  min-width: 38px;
  text-align: center;
}
.promo .timer .cell .sub {
  display: block;
  font-family: var(--ff-ui);
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-2);
}

/* ============================================================
   SELECTIONS (by brand / price / purpose / type)
   ============================================================ */
.selections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}
.selection-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column;
}
.selection-card h3 {
  font-family: var(--ff-display);
  font-size: 22px; font-weight: 400;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.selection-card .sub { font-size: 12px; color: var(--fg-2); margin-bottom: 18px; }
.selection-card ul {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.selection-card ul li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--fg-1);
  border-bottom: 1px dashed var(--line);
  transition: color .15s, border-color .15s;
}
.selection-card ul li a:hover { color: var(--acc); border-bottom-color: var(--acc); }
.selection-card ul li .qty { color: var(--fg-3); font-size: 11.5px; }
.selection-card .more-link {
  margin-top: auto;
  font-size: 13px;
  color: var(--acc);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Selections — brand grid alternate */
.brand-tile {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--fg-1);
  border: 1px solid var(--line);
  background: var(--bg-3);
  transition: all .15s;
}
.brand-tile:hover { border-color: var(--acc); color: var(--fg-0); background: var(--bg-4); }

/* ============================================================
   READY SETS
   ============================================================ */
.sets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}
.set-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .2s;
}
.set-card:hover { border-color: var(--acc); transform: translateY(-2px); }
.set-card .visual {
  height: 220px;
  background: linear-gradient(150deg, var(--bg-3), var(--bg-2));
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 14px;
}
.set-card .visual .doors-mini {
  display: flex; gap: 10px;
  height: 90%; align-items: flex-end;
}
.set-card .visual .doors-mini .mini-door {
  width: 48px; background: var(--door-color, oklch(0.32 0.02 60));
  border: 1px solid var(--door-edge, oklch(0.45 0.025 60));
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  position: relative;
}
.set-card .visual .doors-mini .mini-door::before {
  content: ""; position: absolute; right: 6px; top: 60%;
  width: 2px; height: 14px;
  background: var(--acc);
  border-radius: 1px;
}
.set-card .visual .floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: linear-gradient(to bottom, oklch(0.22 0.012 60), oklch(0.16 0.008 60));
}
.set-card .visual .badge-set {
  position: absolute; top: 14px; left: 14px;
}
.set-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.set-card h3 {
  font-family: var(--ff-display); font-size: 22px; font-weight: 400;
  margin: 0; letter-spacing: -0.005em;
}
.set-card .desc { color: var(--fg-2); font-size: 13px; }
.set-card .includes {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px; color: var(--fg-1);
  margin-top: 4px;
}
.set-card .includes li {
  display: flex; gap: 6px; align-items: center;
}
.set-card .includes li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--acc);
}
.set-card .set-pricing {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.set-card .set-pricing .price {
  font-family: var(--ff-display);
  font-size: 28px; color: var(--fg-0);
}
.set-card .set-pricing .old { color: var(--fg-3); text-decoration: line-through; font-size: 14px; }
.set-card .set-pricing .save {
  margin-left: auto;
  color: var(--success); font-size: 12px;
  padding: 4px 8px;
  background: oklch(0.30 0.05 145 / 0.25);
  border-radius: 4px;
}
.set-card .actions { display: flex; gap: 8px; margin-top: 10px; }

/* ============================================================
   TRUST BLOCK
   ============================================================ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 0;
}
.trust-cell {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  transition: background .15s;
}
.trust-cell:last-child { border-right: 0; }
.trust-cell:hover { background: var(--bg-3); }
.trust-cell .ico {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--acc);
  flex-shrink: 0;
}
.trust-cell h4 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.trust-cell p { margin: 0; font-size: 12px; color: var(--fg-2); }

/* ============================================================
   BRANDS
   ============================================================ */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.brand-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  transition: all .15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 110px;
}
.brand-card:hover { border-color: var(--acc); background: var(--bg-3); }
.brand-card .name {
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--fg-0);
  letter-spacing: 0.02em;
}
.brand-card .meta { font-size: 11px; color: var(--fg-3); }
.brand-card.country .name { font-size: 16px; letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--ff-ui); font-weight: 700; }

/* ============================================================
   ARTICLES
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap-md);
}
.article-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .2s;
}
.article-card:hover { border-color: var(--acc); transform: translateY(-2px); }
.article-card .visual {
  height: 220px;
  background-size: cover; background-position: center;
  position: relative;
}
.article-card.featured .visual { height: 100%; min-height: 320px; }
.article-card .visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.14 0.005 60 / 0.7), transparent 60%);
}
.article-card .tag {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
}
.article-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card.featured .body { padding: 24px; }
.article-card h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.article-card.featured h3 { font-size: 26px; }
.article-card .excerpt { font-size: 13px; color: var(--fg-2); text-wrap: pretty; }
.article-card .meta {
  display: flex; gap: 12px;
  font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: auto;
  padding-top: 12px;
}
.article-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); align-self: center; }

/* ============================================================
   SUBSCRIBE
   ============================================================ */
.subscribe {
  background: linear-gradient(120deg, oklch(0.22 0.04 50), oklch(0.18 0.03 40));
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative; overflow: hidden;
}
.subscribe::after {
  content: ""; position: absolute;
  right: -120px; top: -120px;
  width: 400px; height: 400px;
  border: 1px solid var(--acc);
  border-radius: 50%;
  opacity: 0.12;
}
.subscribe::before {
  content: ""; position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  border: 1px solid var(--acc);
  border-radius: 50%;
  opacity: 0.18;
}
.subscribe h2 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(28px, 3vw, 40px); margin: 0 0 12px;
  line-height: 1.05; letter-spacing: -0.015em;
}
.subscribe h2 em { font-style: italic; color: var(--acc); }
.subscribe p { color: var(--fg-1); font-size: 14px; margin: 0; max-width: 480px; }
.subscribe .form {
  display: flex; flex-direction: column; gap: 12px;
  position: relative; z-index: 2;
}
.subscribe .field {
  display: flex;
  background: oklch(0 0 0 / 0.3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.subscribe .field input {
  flex: 1;
  background: transparent; border: 0; outline: 0;
  padding: 16px 18px;
  font-size: 14px;
}
.subscribe .field button {
  background: var(--acc); color: var(--bg-0);
  padding: 0 24px;
  font-weight: 600; font-size: 13px;
}
.subscribe .field button:hover { background: var(--acc-2); }
.subscribe .check { font-size: 12px; color: var(--fg-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding-top: 60px;
  margin-top: var(--pad-section);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer h4 {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 16px;
  font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 13.5px; color: var(--fg-1); transition: color .15s; }
.footer ul a:hover { color: var(--acc); }
.footer .about p {
  color: var(--fg-2); font-size: 13px; margin: 14px 0;
  max-width: 320px; line-height: 1.55;
}
.footer .about .contacts {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 16px;
}
.footer .about .contacts .phone {
  font-family: var(--ff-display); font-size: 24px;
  color: var(--fg-0);
}
.footer .about .contacts .hours { font-size: 12px; color: var(--fg-2); }
.footer .about .socials { display: flex; gap: 8px; margin-top: 16px; }
.footer .about .socials a {
  width: 38px; height: 38px;
  background: var(--bg-2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-1);
  transition: all .15s;
}
.footer .about .socials a:hover { background: var(--acc); color: var(--bg-0); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  font-size: 12px;
  color: var(--fg-3);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom .pay {
  display: flex; gap: 8px; align-items: center;
}
.footer-bottom .pay span {
  padding: 4px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--fg-2);
}

/* SEO text */
.seo-text {
  color: var(--fg-2);
  font-size: 13px; line-height: 1.6;
  padding: 24px 0;
  border-top: 1px dashed var(--line);
  max-width: 980px;
}
.seo-text h3 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 20px; margin: 0 0 12px; color: var(--fg-1);
}
.seo-text p { margin: 0 0 10px; }

/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: oklch(0 0 0 / 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  max-width: 1080px; width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transform: scale(0.97);
  transition: transform .2s;
  position: relative;
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-2); color: var(--fg-1);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 5;
}
.modal-close:hover { background: var(--bg-3); color: var(--fg-0); }
.modal .modal-media {
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  padding: 40px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 480px;
}
.modal .modal-media .door-illust-lg {
  width: 220px; height: 100%; max-height: 480px;
  position: relative;
}
.modal .modal-media .door-illust-lg .frame {
  width: 100%; height: 100%;
  background: var(--door-color, oklch(0.32 0.018 60));
  border: 2px solid var(--door-edge, oklch(0.45 0.025 60));
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  position: relative;
}
.modal .modal-media .door-illust-lg .frame::before,
.modal .modal-media .door-illust-lg .frame::after {
  content: ""; position: absolute;
  left: 14%; right: 14%;
  border: 2px solid var(--door-edge);
  opacity: 0.7;
  border-radius: 3px;
}
.modal .modal-media .door-illust-lg .frame::before { top: 6%; height: 38%; }
.modal .modal-media .door-illust-lg .frame::after { top: 50%; height: 42%; }
.modal .modal-media .door-illust-lg .handle {
  position: absolute; right: 12px; top: 55%;
  width: 6px; height: 38px; background: var(--acc);
  border-radius: 3px;
  box-shadow: 0 0 0 4px var(--door-color), 0 0 20px oklch(0.74 0.105 55 / 0.5);
}
.modal .modal-body { padding: 44px; display: flex; flex-direction: column; gap: 14px; }
.modal .modal-body .brand { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.modal .modal-body h2 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 32px; line-height: 1.1; margin: 0;
  letter-spacing: -0.01em;
}
.modal .modal-body .rating-row {
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: var(--fg-2);
}
.modal .modal-body .rating-row .stars { color: var(--acc-2); }
.modal .modal-body .desc {
  color: var(--fg-1); font-size: 14px; line-height: 1.55;
  text-wrap: pretty;
}
.modal .modal-body .specs-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
  font-size: 13px;
}
.modal .modal-body .specs-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--fg-1);
}
.modal .modal-body .specs-list li b { color: var(--fg-0); font-weight: 500; }
.modal .modal-body .options-row {
  display: flex; gap: 20px; margin-top: 4px;
  flex-wrap: wrap;
}
.modal .modal-body .options-row .opt h5 {
  margin: 0 0 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); font-weight: 600;
}
.modal .modal-body .swatches { display: flex; gap: 6px; }
.modal .modal-body .swatches button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color .15s;
}
.modal .modal-body .swatches button.active { border-color: var(--acc); }
.modal .modal-body .sizes button {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 12px;
  color: var(--fg-1);
}
.modal .modal-body .sizes button.active { background: var(--acc); color: var(--bg-0); border-color: var(--acc); }
.modal .modal-body .pricing {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.modal .modal-body .pricing .price {
  font-family: var(--ff-display);
  font-size: 36px; color: var(--fg-0);
}
.modal .modal-body .pricing .old { font-size: 16px; color: var(--fg-3); text-decoration: line-through; }
.modal .modal-body .actions-row {
  display: flex; gap: 10px;
}

/* ============================================================
   FOOTER fixed mobile bottom nav (visible on mobile)
   ============================================================ */
.mobile-bottombar {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .header .container { grid-template-columns: auto auto 1fr auto; gap: 16px; }
  .hero-rail { grid-template-columns: repeat(4, 1fr); }
  .quick-cats { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-col.hide-mid { display: none; }
  .megamenu { width: 760px; }
}

@media (max-width: 960px) {
  .header .container { grid-template-columns: auto auto 1fr; height: 64px; }
  .header-actions .label { display: none; }
  .header-actions .icon-btn { padding: 8px; width: 40px; height: 40px; }
  .header-actions .icon-btn .counter { top: 4px; right: 4px; }
  .topbar { display: none; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo:first-child { grid-column: span 2; }
  .selections { grid-template-columns: repeat(2, 1fr); }
  .sets-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .article-card.featured { grid-column: span 2; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col.hide-mid { display: block; }
  .quick-cats { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-rail { grid-template-columns: repeat(3, 1fr); }
  .modal { grid-template-columns: 1fr; }
  .modal .modal-media { min-height: 320px; }
  .subscribe { grid-template-columns: 1fr; }
  .megamenu { width: 620px; grid-template-columns: 200px 1fr; }
  .megamenu .pane { grid-template-columns: 1fr 1fr; }
  .megamenu .pane .feature { display: none; }
}

@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .header .container { grid-template-columns: auto 1fr auto; height: 60px; gap: 10px; }
  .catalog-trigger span:not(.burger) { display: none; }
  .catalog-trigger { padding: 11px 14px; }
  .search input { height: 42px; font-size: 13px; padding-left: 38px; }
  .search .search-icon { left: 12px; }
  .search .search-submit { display: none; }
  .header-actions { display: none; }
  .hero-rail { grid-template-columns: repeat(2, 1fr); }
  .quick-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo:first-child { grid-column: auto; }
  .selections { grid-template-columns: 1fr; }
  .sets-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: auto; }
  .trust-strip { grid-template-columns: 1fr; padding: 0; }
  .trust-cell { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .trust-cell:last-child { border-bottom: 0; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-top: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .more { margin-top: 6px; }
  .megamenu {
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    width: auto; border-radius: 0;
    grid-template-columns: 1fr;
    transform: none !important;
  }
  .megamenu .cats { display: flex; overflow-x: auto; padding: 8px; max-height: none; }
  .megamenu .cat-item { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .megamenu .cat-item.active { border-bottom-color: var(--acc); border-left-color: transparent; }
  .megamenu .pane { grid-template-columns: 1fr; padding: 18px; }

  .mobile-bottombar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    background: var(--bg-0);
    border-top: 1px solid var(--line);
    height: 64px;
    z-index: 90;
    align-items: center;
    justify-content: space-around;
  }
  .mobile-bottombar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 10px; color: var(--fg-2);
    padding: 6px 10px;
    position: relative;
  }
  .mobile-bottombar a.active { color: var(--acc); }
  .mobile-bottombar a .counter {
    position: absolute; top: 0; right: 4px;
    background: var(--acc); color: var(--bg-0);
    min-width: 16px; height: 16px; border-radius: 8px;
    font-size: 9px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px;
  }
  .hero-slide { padding: 32px 24px; }
  .hero-slide h1 { font-size: 36px; }
  .hero-slide .stat-row { display: none; }
  .hero-slide .hero-inner { justify-content: flex-start; }
  .subscribe { padding: 32px 24px; }
  .modal { max-height: 96vh; border-radius: 18px; }
  .modal .modal-body { padding: 24px; }
  .modal .modal-body h2 { font-size: 24px; }
}
