/* ============================================================
   SWYFT ROBOTICS — Engineering-grade hardware catalog
   Dark industrial · blueprint grid · electric-azure accent
   ============================================================ */

/* ---------- Ethnocentric wordmark (user-supplied font file) ----------
   Drop ethnocentric-regular.woff2 (and .woff) into assets/fonts/ to
   activate the true SWYFT wordmark. Until then, Chakra Petch stands in. */
@font-face {
  font-family: 'Ethnocentric';
  src: url('../fonts/ethnocentric-regular.woff2') format('woff2'),
       url('../fonts/ethnocentric-regular.woff') format('woff'),
       url('../fonts/ethnocentric-regular.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* ---- palette (OKLCH, cool graphite + electric azure) ---- */
  --bg:          oklch(0.165 0.012 250);
  --bg-2:        oklch(0.195 0.013 250);
  --surface:     oklch(0.215 0.014 250);
  --surface-2:   oklch(0.255 0.015 250);
  --line:        oklch(0.32 0.018 250);
  --line-soft:   oklch(0.28 0.015 250);
  --line-strong: oklch(0.46 0.02 250);

  --ink:      oklch(0.965 0.004 250);
  --ink-2:    oklch(0.80 0.012 250);
  --ink-dim:  oklch(0.65 0.018 250);

  --brand:     #00A1FF;
  --brand-2:   oklch(0.72 0.16 236);
  --brand-dim: oklch(0.55 0.13 240);
  --brand-glow: color-mix(in oklch, var(--brand) 40%, transparent);
  --on-brand:  oklch(0.16 0.02 250);

  --plate:    oklch(0.93 0.006 250);   /* light tile for product photos */
  --plate-2:  oklch(0.88 0.008 250);

  --amber:    #ffb020;                 /* SALE only, used sparingly */

  /* ---- type ---- */
  --f-display: 'Ethnocentric', 'Chakra Petch', 'Arial Narrow', sans-serif;
  --f-body:    'Archivo', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* ---- geometry ---- */
  --r: 3px;
  --r-lg: 5px;
  --wrap: 1240px;
  --header-h: 86px;

  /* ---- z-index scale ---- */
  --z-header: 100;
  --z-drop: 200;
  --z-scrim: 400;
  --z-drawer: 500;
  --z-mobilenav: 600;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* ease-out-expo */
  --ease-out-q: cubic-bezier(0.22, 1, 0.36, 1);    /* ease-out-quart */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: var(--brand); color: var(--on-brand); padding: 8px 14px;
  font: 600 13px/1 var(--f-mono); border-radius: var(--r);
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.mono { font-family: var(--f-mono); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease-out), background .3s, border-color .3s;
}
.site-header.scrolled {
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px -18px rgba(0, 0, 0, .7);
}
.header-row {
  display: flex; align-items: center; gap: 32px;
  height: var(--header-h);
}
.brand { display: flex; flex-direction: column; line-height: 0.92; flex-shrink: 0; }
.brand-word {
  font-family: var(--f-display); font-weight: 700;
  font-size: 30px; letter-spacing: 0.02em; color: var(--brand);
  text-transform: uppercase;
}
.brand-sub {
  font: 500 10px/1 var(--f-mono); letter-spacing: 0.44em;
  color: var(--ink-dim); padding-left: 3px; margin-top: 5px;
}

.main-nav { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.main-nav > a, .nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r);
  font-weight: 600; font-size: 14px; color: var(--ink-2);
  letter-spacing: .01em; transition: color .18s, background .18s;
}
.main-nav > a:hover, .nav-drop-btn:hover { color: var(--ink); background: var(--surface); }
.main-nav > a.active { color: var(--brand); }
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.nav-drop { position: relative; }
.nav-drop-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: var(--z-drop);
  width: 460px; padding: 10px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: 0 24px 60px -20px #000a;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s var(--ease-out), visibility .18s;
}
.nav-drop.open .nav-drop-panel { opacity: 1; visibility: visible; transform: none; }
.nav-drop-panel a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r);
  transition: background .15s;
}
.nav-drop-panel a:hover { background: var(--surface); }
.nav-drop-panel .di { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
.nav-drop-panel .dn { font-weight: 600; font-size: 13.5px; }
.nav-drop-panel .dc { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--ink-dim); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 0 12px; height: 40px; width: 210px;
  transition: border-color .18s, width .2s var(--ease-out), box-shadow .18s;
}
.search:focus-within { border-color: var(--brand); width: 250px; box-shadow: 0 0 0 3px var(--brand-glow); }
.search .ico { width: 17px; height: 17px; fill: none; stroke: var(--ink-dim); stroke-width: 1.7; flex-shrink: 0; }
.search input {
  border: none; background: none; color: var(--ink); width: 100%; outline: none;
  font-size: 14px;
}
.search input::placeholder { color: var(--ink-dim); }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); transition: color .18s, border-color .18s, background .18s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn .ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn .ico { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; background: var(--brand); color: var(--on-brand);
  font: 600 11px/1 var(--f-mono); border-radius: 10px;
}
.cart-count[hidden] { display: none; }
.menu-btn { display: none; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-mobilenav);
  background: var(--bg); padding: 90px 24px 40px;
  transform: translateX(100%); transition: transform .32s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.open { transform: none; }
.mobile-nav-inner { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  padding: 14px 12px; font-weight: 600; font-size: 17px; border-radius: var(--r);
  border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav a .dc { font: 500 12px/1 var(--f-mono); color: var(--ink-dim); }
.mobile-nav .mn-head { font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); padding: 20px 12px 6px; }

/* ============================================================
   SHARED PRIMITIVES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r); font-weight: 600; font-size: 14.5px;
  letter-spacing: .01em; transition: transform .12s, background .18s, border-color .18s, color .18s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: color-mix(in oklch, var(--brand) 86%, white); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: color-mix(in oklch, var(--surface) 50%, transparent); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { padding: 16px 30px; font-size: 15px; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--surface);
  font: 500 12.5px/1 var(--f-mono); color: var(--ink-2); letter-spacing: .02em;
  transition: border-color .16s, color .16s, background .16s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.chip .x { opacity: .7; }

/* badges on product media */
.badge {
  font: 600 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 2px;
}
.badge-new  { background: var(--brand); color: var(--on-brand); }
.badge-free { background: color-mix(in oklch, #34d17a 90%, black); color: #04140b; }
.badge-sale { background: var(--amber); color: #241700; }

/* competition tags */
.tag { font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; padding: 5px 8px; border-radius: 2px;
  border: 1px solid var(--line-strong); color: var(--ink-2); background: color-mix(in oklch, var(--surface) 60%, transparent); }
.tag.ftc { border-color: color-mix(in oklch, var(--brand) 55%, var(--line)); color: var(--brand-2); }
.tag.frc { border-color: color-mix(in oklch, var(--brand) 55%, var(--line)); color: var(--brand-2); }

/* section scaffolding */
.section { padding-block: 84px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-head h2 {
  font-family: var(--f-body); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance;
}
.kicker {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font: 600 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--brand); }
.section-head .link-more {
  font: 600 13px/1 var(--f-mono); color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line); transition: color .18s, border-color .18s;
}
.section-head .link-more:hover { color: var(--brand); border-color: var(--brand); }
.section-head .link-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 86px; padding-bottom: 74px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; z-index: -1; width: 1100px; height: 760px;
  top: -400px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, color-mix(in oklch, var(--brand) 16%, transparent) 0%, transparent 65%);
  opacity: .5; filter: blur(20px);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero-ghost {
  position: absolute; top: -30px; right: -40px; z-index: -1;
  font-family: var(--f-display); font-weight: 700; font-size: 22vw; line-height: .8;
  color: color-mix(in oklch, var(--ink) 4%, transparent);
  letter-spacing: -.02em; user-select: none; pointer-events: none;
}
.hero h1 {
  font-family: var(--f-body); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.7rem); line-height: 0.98; letter-spacing: -0.035em;
  text-wrap: balance; margin-bottom: 22px;
}
.hero h1 .hl { color: var(--brand); }
.hero .lede { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.hero-stat .n { font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: .01em; }
.hero-stat .l { font: 500 12px/1.3 var(--f-mono); color: var(--ink-dim); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

/* hero visual panel: exploded category ticker */
.hero-panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  padding: 8px; box-shadow: 0 40px 80px -40px #000c;
}
.hp-scroll {
  overflow: hidden; border-radius: var(--r);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.hp-row { display: flex; gap: 8px; }
.hp-track { display: flex; gap: 8px; animation: hp-marq 34s linear infinite; }
.hp-track.rev { animation-direction: reverse; animation-duration: 40s; }
.hp-item {
  flex: 0 0 auto; width: 138px; aspect-ratio: 1; border-radius: var(--r);
  background: var(--plate); overflow: hidden; position: relative;
}
.hp-item img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.hp-rows { display: flex; flex-direction: column; gap: 8px; }
@keyframes hp-marq { to { transform: translateX(calc(-146px * 6)); } }

/* ============================================================
   CATEGORY GRID (landing)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 22px; min-height: 172px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  overflow: hidden; transition: border-color .2s, transform .2s var(--ease-out), background .2s;
}
.cat-tile:hover { border-color: color-mix(in oklch, var(--brand) 55%, var(--line)); transform: translateY(-4px); background: var(--bg-2); }
.cat-ico {
  width: 44px; height: 44px; color: var(--brand);
  display: grid; place-items: center;
}
.cat-ico svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cat-meta { margin-top: auto; }
.cat-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.cat-tag { font-size: 13px; color: var(--ink-dim); margin-top: 4px; line-height: 1.4; padding-right: 34px; }
.cat-count { position: absolute; bottom: 20px; right: 22px; font: 600 12px/1 var(--f-mono); color: var(--ink-dim); }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 16px; }
.prod-card {
  display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  overflow: hidden; transition: border-color .2s, transform .2s var(--ease-out);
}
.prod-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.prod-media {
  position: relative; aspect-ratio: 4 / 3; background: var(--plate);
  overflow: hidden;
}
.prod-media img {
  width: 100%; height: 100%; object-fit: contain; padding: 16px;
  mix-blend-mode: multiply; transition: transform .5s var(--ease-out);
}
.prod-card:hover .prod-media img { transform: scale(1.05); }
.prod-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.prod-tags { position: absolute; top: 10px; right: 10px; display: flex; gap: 5px; z-index: 2; }
.prod-info { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-cat { font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); }
.prod-title { font-weight: 600; font-size: 15px; line-height: 1.32; letter-spacing: -0.005em; }
.prod-title a::after { content: ''; position: absolute; inset: 0; }
.prod-blurb { font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--f-mono); font-weight: 600; font-size: 16px; color: var(--ink); display: flex; align-items: baseline; gap: 7px; }
.price .from { font-size: 10px; color: var(--ink-dim); letter-spacing: .06em; text-transform: uppercase; }
.price .was { font-size: 12px; color: var(--ink-dim); text-decoration: line-through; font-weight: 400; }
.price.free-p { color: #40dd86; }
.add-mini {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r);
  border: 1px solid var(--line-strong); color: var(--ink-2); position: relative; z-index: 3;
  transition: background .16s, color .16s, border-color .16s;
}
.add-mini:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.add-mini svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.add-mini.added { background: var(--brand); color: var(--on-brand); border-color: var(--brand); animation: pop .3s var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.16); } 100% { transform: scale(1); } }

/* ============================================================
   CATALOG LAYOUT
   ============================================================ */
.catalog { display: grid; grid-template-columns: 246px 1fr; gap: 40px; padding-top: 44px; padding-bottom: 90px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 26px; }
.filter-block h3 { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 14px; }
.filter-list { display: flex; flex-direction: column; gap: 1px; }
.filter-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: var(--r); text-align: left; color: var(--ink-2);
  font-weight: 500; font-size: 14px; transition: background .15s, color .15s;
}
.filter-list button:hover { background: var(--surface); color: var(--ink); }
.filter-list button.on { background: color-mix(in oklch, var(--brand) 14%, transparent); color: var(--brand); }
.filter-list button .c { font: 500 11px/1 var(--f-mono); color: var(--ink-dim); }
.filter-list button.on .c { color: var(--brand); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.catalog-main { min-width: 0; }
.catalog-top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.catalog-title h1 { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.025em; }
.catalog-title .sub { font: 500 13px/1.4 var(--f-mono); color: var(--ink-dim); margin-top: 8px; }
.catalog-title .sub b { color: var(--ink-2); font-weight: 600; }
.sort-wrap { display: flex; align-items: center; gap: 10px; }

/* custom sort dropdown (fully themed — no native select) */
.sortdd { position: relative; }
.sortdd-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: border-color .16s;
}
.sortdd-btn:hover { border-color: var(--line-strong); }
.sortdd.open .sortdd-btn { border-color: var(--brand); }
.sortdd-cap { font: 500 11px/1 var(--f-mono); color: var(--ink-dim); text-transform: uppercase; letter-spacing: .08em; }
.sortdd-val { color: var(--ink); }
.sortdd-chev { width: 14px; height: 14px; fill: none; stroke: var(--ink-dim); stroke-width: 1.7; transition: transform .2s var(--ease-out); }
.sortdd.open .sortdd-chev { transform: rotate(180deg); }
.sortdd-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--z-drop);
  min-width: 210px; padding: 6px; margin: 0; list-style: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 22px 54px -20px #000c;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .18s var(--ease-out), visibility .16s;
}
.sortdd.open .sortdd-menu { opacity: 1; visibility: visible; transform: none; }
.sortdd-menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 11px; border-radius: var(--r); font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; transition: background .14s, color .14s;
}
.sortdd-menu li:hover { background: var(--surface); color: var(--ink); }
.sortdd-menu li.on { color: var(--brand); }
.sortdd-menu li.on::after { content: ''; width: 13px; height: 8px; border-left: 1.8px solid var(--brand); border-bottom: 1.8px solid var(--brand); transform: rotate(-45deg) translate(1px, -2px); }

.filter-toggle-mobile { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.empty { text-align: center; padding: 90px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty svg { width: 46px; height: 46px; color: var(--ink-dim); margin: 0 auto 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.empty h3 { font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--ink-dim); margin-bottom: 22px; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.pdp { padding-top: 32px; padding-bottom: 90px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--f-mono); color: var(--ink-dim); margin-bottom: 30px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sl { opacity: .5; }
.breadcrumb .cur { color: var(--ink-2); }

.pdp-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-main {
  position: relative; aspect-ratio: 1; background: var(--plate); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 40px; mix-blend-mode: multiply; transition: opacity .28s var(--ease-out); }
.gallery-main img.swapping { opacity: 0; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 70px; height: 70px; border-radius: var(--r); border: 1px solid var(--line); background: var(--plate);
  overflow: hidden; transition: border-color .16s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; padding: 7px; mix-blend-mode: multiply; }
.gallery-thumbs button.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.pdp-cat { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; display: inline-flex; gap: 10px; align-items: center; }
.pdp h1 { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; margin-bottom: 18px; }
.pdp-tags { display: flex; gap: 8px; margin-bottom: 22px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.pdp-price .amt { font-family: var(--f-mono); font-weight: 600; font-size: 2rem; letter-spacing: -0.01em; }
.pdp-price .amt.free-p { color: #40dd86; }
.pdp-price .was { font-family: var(--f-mono); font-size: 1.1rem; color: var(--ink-dim); text-decoration: line-through; }
.pdp-price .save { font: 600 11px/1 var(--f-mono); color: var(--amber); border: 1px solid color-mix(in oklch, var(--amber) 40%, var(--line)); padding: 5px 9px; border-radius: 2px; letter-spacing: .05em; }
.pdp-price .from { font: 500 12px/1 var(--f-mono); color: var(--ink-dim); text-transform: uppercase; letter-spacing: .06em; align-self: center; }

.pdp-desc { color: var(--ink-2); font-size: 15px; line-height: 1.62; margin-bottom: 22px; max-width: 62ch; position: relative; overflow: hidden; transition: max-height .42s var(--ease-out); }
.pdp-desc > *:first-child { margin-top: 0; }
.pdp-desc p { margin: 0 0 14px; }
.pdp-desc h4 { color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin: 26px 0 12px; }
.pdp-desc strong { color: var(--ink); font-weight: 600; }
.pdp-desc em { font-style: italic; color: var(--ink); }
.pdp-desc ul, .pdp-desc ol { margin: 0 0 16px; padding: 0; }
.pdp-desc ul { list-style: none; }
.pdp-desc ul li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.pdp-desc ul li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; background: var(--brand); border-radius: 1px; }
.pdp-desc ol { list-style: none; counter-reset: pd; }
.pdp-desc ol li { position: relative; padding-left: 28px; margin-bottom: 9px; counter-increment: pd; }
.pdp-desc ol li::before { content: counter(pd); position: absolute; left: 0; top: 1px; font: 600 11px/1.5 var(--f-mono); color: var(--brand); }
.pdp-desc.clamped { max-height: 250px; }
.pdp-desc.clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 66px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.desc-toggle { font: 600 12.5px/1 var(--f-mono); color: var(--brand); margin-bottom: 26px; display: inline-flex; align-items: center; gap: 7px; }

.opt-block { margin-bottom: 26px; }
.opt-block .opt-label { font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 12px; display: block; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-values button {
  padding: 10px 15px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface);
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: all .15s;
}
.opt-values button:hover { border-color: var(--brand); color: var(--ink); }
.opt-values button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 28px; }
.qty-step { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.qty-step button { width: 44px; display: grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; align-self: stretch; }
.qty-step button:hover { background: var(--surface); color: var(--brand); }
.qty-step input { width: 46px; text-align: center; background: none; border: none; color: var(--ink); font-family: var(--f-mono); font-weight: 600; outline: none; -moz-appearance: textfield; }
.qty-step input::-webkit-outer-spin-button, .qty-step input::-webkit-inner-spin-button { -webkit-appearance: none; }

.spec-list { border-top: 1px solid var(--line-soft); }
.spec-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.spec-row dt { font: 500 12.5px/1.4 var(--f-mono); color: var(--ink-dim); text-transform: uppercase; letter-spacing: .04em; }
.spec-row dd { color: var(--ink-2); }
.spec-row dd .ok { color: #40dd86; }

/* ============================================================
   FTC / FRC SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-panel {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 44px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(150deg, var(--surface), var(--bg-2));
  transition: border-color .2s;
}
.split-panel:hover { border-color: var(--brand); }
.split-panel .big { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 8vw, 6rem); line-height: .82; letter-spacing: .01em; color: var(--brand); position: absolute; top: 20px; right: 28px; opacity: .16; }
.split-panel h3 { font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.split-panel p { color: var(--ink-2); max-width: 34ch; margin-bottom: 22px; }
.split-panel .go { display: inline-flex; align-items: center; gap: 9px; font: 600 13px/1 var(--f-mono); color: var(--brand); }
.split-panel .go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line-soft); background: color-mix(in oklch, var(--bg-2) 55%, transparent); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; padding-block: 56px; }
.foot-brand .brand-word { font-size: 26px; color: var(--brand); }
.foot-tag { color: var(--ink-dim); font-size: 14px; margin-top: 16px; max-width: 44ch; line-height: 1.6; }
.foot-col h4 { font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 16px; }
.foot-col a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 14px; transition: color .15s; }
.foot-col a:hover { color: var(--brand); }
.foot-base { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-dim); }
.foot-base .mono { font-family: var(--f-mono); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer-scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: #000a; backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility .3s; }
.drawer-scrim.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer); width: min(420px, 92vw);
  background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .34s var(--ease-out); visibility: hidden;
}
.cart-drawer.open { transform: none; visibility: visible; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 18px; border-bottom: 1px solid var(--line-soft); }
.cart-head h2 { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.cart-head-count { font-size: 12px; color: var(--ink-dim); }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); align-items: center; overflow: hidden; max-height: 220px; transition: opacity .24s var(--ease-out), transform .24s var(--ease-out), max-height .32s var(--ease-out), padding .32s var(--ease-out), margin .32s var(--ease-out); }
.cart-item.removing { opacity: 0; transform: translateX(26px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; border-color: transparent; }
@keyframes cart-item-in { from { opacity: 0; transform: translateY(8px); } }
.cart-item.enter { animation: cart-item-in .3s var(--ease-out) both; }
.cart-item .ci-img { width: 62px; height: 62px; border-radius: var(--r); background: var(--plate); overflow: hidden; flex-shrink: 0; }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.cart-item .ci-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.cart-item .ci-opt { font: 500 11px/1 var(--f-mono); color: var(--ink-dim); margin-top: 5px; }
.cart-item .ci-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.cart-item .ci-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); }
.cart-item .ci-qty button { width: 26px; height: 26px; display: grid; place-items: center; color: var(--ink-2); font-family: var(--f-mono); }
.cart-item .ci-qty button:hover { color: var(--brand); }
.cart-item .ci-qty span { min-width: 26px; text-align: center; font: 600 12px/1 var(--f-mono); }
.cart-item .ci-rm { font: 500 11px/1 var(--f-mono); color: var(--ink-dim); }
.cart-item .ci-rm:hover { color: #ff6b6b; }
.cart-item .ci-price { font: 600 14px/1 var(--f-mono); text-align: right; }
.cart-empty { text-align: center; padding: 70px 20px; color: var(--ink-dim); }
.cart-empty svg { width: 40px; height: 40px; margin: 0 auto 16px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .6; }
.cart-foot { padding: 20px 22px 24px; border-top: 1px solid var(--line); }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-sub .lbl { font: 500 12px/1 var(--f-mono); color: var(--ink-dim); text-transform: uppercase; letter-spacing: .08em; }
.cart-sub .val { font-family: var(--f-mono); font-weight: 600; font-size: 22px; }
.cart-note { font-size: 11.5px; color: var(--ink-dim); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 700; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 11px; padding: 13px 18px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: 0 20px 40px -16px #000c; font-weight: 500; font-size: 14px;
  animation: toast-in .3s var(--ease-out);
}
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }

/* ============================================================
   LOAD-IN ANIMATIONS
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.anim { opacity: 0; animation: rise .7s var(--ease-out) forwards; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- press feedback on interactive controls ---------- */
.icon-btn, .add-mini, .chip, .qty-step button, .opt-values button, .gallery-thumbs button,
.sortdd-btn, .filter-list button, .sortdd-menu li, .nav-drop-panel a, .select, .desc-toggle {
  transition: transform .14s var(--ease-out), background .16s, color .16s, border-color .16s, box-shadow .16s, opacity .16s;
}
.icon-btn:active, .add-mini:active, .chip:active, .qty-step button:active, .opt-values button:active,
.gallery-thumbs button:active, .sortdd-btn:active, .filter-list button:active, .sortdd-menu li:active,
.nav-drop-panel a:active, .btn:active, .desc-toggle:active { transform: scale(.95); }
.cat-tile:active, .prod-card:active, .split-panel:active { transform: scale(.992); }
.desc-toggle svg { transition: transform .2s var(--ease-out); }

/* ---------- view transitions (smooth page changes) ---------- */
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
::view-transition-old(root) { animation: vt-fade-out .2s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-fade-in .32s var(--ease-out) both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-panel { max-width: 560px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 34px; }
  .gallery { position: static; }
}
@media (max-width: 900px) {
  :root { --header-h: 74px; }
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .search { width: 44px; padding: 0; justify-content: center; }
  .search:focus-within { width: 200px; padding: 0 12px; justify-content: flex-start; }
  .search input { display: none; }
  .search:focus-within input { display: block; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: var(--z-drawer); background: var(--bg); padding: 90px 24px 40px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s var(--ease-out); }
  .filters.open { transform: none; }
  .filter-toggle-mobile { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile { padding: 16px; min-height: 148px; }
  .cat-ico, .cat-ico svg { width: 36px; height: 36px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .section { padding-block: 60px; }
  .hero-ghost { font-size: 34vw; }
  .footer-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 400px) {
  .prod-grid, .cat-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .anim, .reveal { opacity: 1 !important; transform: none !important; }
  .hp-track { animation: none !important; }
}
