/* =====================================================================
   GameCrate - futuristic gamer theme
   ===================================================================== */
:root {
  --bg: #05060b;
  --bg-2: #0a0c15;
  --panel: rgba(15, 18, 30, 0.78);
  --panel-solid: #0f121d;
  --panel-2: #141828;
  --line: #1f2539;
  --line-2: #2b3350;
  --text: #e9edf6;
  --muted: #8d96ad;
  --dim: #5d6680;
  --cyan: #00e5ff;
  --violet: #8b5cff;
  --pink: #ff3d9a;
  --ok: #2ee68a;
  --warn: #ffb547;
  --err: #ff5470;
  --grad: linear-gradient(100deg, var(--cyan) 0%, #4aa8ff 45%, var(--violet) 100%);
  --glow: 0 0 0 1px rgba(0, 229, 255, 0.35), 0 10px 40px -10px rgba(0, 229, 255, 0.45);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1280px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Orbitron', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 255, 0.22), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(0, 229, 255, 0.14), transparent 60%),
    radial-gradient(700px 600px at 50% 120%, rgba(0, 120, 255, 0.12), transparent 60%),
    var(--bg);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7ff3ff; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: 0.01em; }
h1, h2, .display { font-family: var(--display); font-weight: 800; }
h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.dim { color: var(--dim); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: rgba(0, 229, 255, 0.35); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------- buttons ---------------- */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0 1.3em;
  font: 700 0.92rem/1 var(--font); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); background: var(--panel-2);
  border: 1px solid var(--b); border-radius: 10px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--cyan); color: #fff; box-shadow: var(--glow); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #03111a; border: 0;
  background: var(--grad);
  box-shadow: 0 8px 30px -8px rgba(0, 229, 255, 0.6);
}
.btn-primary:hover { color: #000; filter: brightness(1.12); box-shadow: 0 10px 40px -6px rgba(0, 229, 255, 0.8); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 1rem; padding: 0 1.6em; }
.btn-sm { min-height: 36px; padding: 0 0.9em; font-size: 0.78rem; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; filter: grayscale(0.6); }

/* ---------------- top bar & header ---------------- */
.topbar {
  font-size: 0.8rem; color: #cfe9ff; text-align: center;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(139, 92, 255, 0.16));
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; justify-content: center; gap: 28px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; color: var(--cyan); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 11, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 900; font-size: 1.28rem; letter-spacing: 0.08em; flex-shrink: 0; }
.logo:hover { color: #fff; }
.logo svg { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.55)); }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a, .main-nav button {
  color: var(--text); font: 600 0.88rem var(--font); letter-spacing: 0.03em;
  padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .main-nav a.active, .main-nav button:hover { color: var(--cyan); background: rgba(0, 229, 255, 0.07); }
.search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.search input,
.search input[type='search'] {
  width: 100%; height: 42px; padding: 0 44px 0 16px;
  color: var(--text); background: var(--panel-solid);
  border: 1px solid var(--line-2); border-radius: 999px; font: 0.92rem var(--font);
}
.search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15); }
.search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.search button svg { width: 18px; height: 18px; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--text); background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
}
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; font: 800 0.7rem var(--font); color: #03111a;
  background: var(--grad); border-radius: 999px; box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}
.cart-count[data-count='0'] { display: none; }
.menu-toggle { display: none; }

/* dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: -10px; width: 560px; padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: rgba(12, 14, 24, 0.97); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), var(--glow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: 0.18s;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: flex; gap: 12px; padding: 10px; border-radius: 10px; align-items: flex-start; }
.dropdown-menu a:hover { background: rgba(0, 229, 255, 0.07); }
.dropdown-menu strong { display: block; color: #fff; font-size: 0.92rem; }
.dropdown-menu small { display: block; font-size: 0.78rem; line-height: 1.35; font-weight: 400; }
.dropdown-menu .ic { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--panel-2); color: var(--cyan); border: 1px solid var(--line-2); }
.dropdown-menu .ic svg { width: 20px; height: 20px; }

/* mobile drawer */
.drawer { display: none; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 18px;
  font: 700 0.74rem var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.35); border-radius: 999px; background: rgba(0, 229, 255, 0.06);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: 0.01em; margin-bottom: 0.35em; }
.hero p.lead { font-size: 1.12rem; color: #c3cbe0; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px;
  font-size: 0.82rem; color: #d7deee; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.chip svg { width: 16px; height: 16px; color: var(--cyan); }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; }
.hero-visual .ring {
  position: absolute; inset: 6%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 229, 255, 0.6), transparent 30%, rgba(139, 92, 255, 0.6), transparent 70%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  animation: spin 14s linear infinite;
}
.hero-visual .ring.r2 { inset: 14%; animation-duration: 22s; animation-direction: reverse; opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-visual .orb { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(0, 229, 255, 0.3), rgba(139, 92, 255, 0.15) 50%, transparent 70%); filter: blur(10px); }
.hero-product {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 66%; text-align: center;
}
.hero-product img { width: 100%; border-radius: 22px; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7)); }
.hero-tag {
  position: absolute; right: 2%; bottom: 10%;
  padding: 14px 18px; border-radius: 14px; background: rgba(10, 12, 21, 0.85); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); box-shadow: var(--glow); min-width: 210px;
}
.hero-tag small { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-tag strong { display: block; font-family: var(--display); font-size: 1.05rem; color: #fff; }
.hero-tag .price { font-size: 1.4rem; }

/* ---------------- sections ---------------- */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.kicker { font: 700 0.75rem var(--font); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; display: block; }

.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--line);
}
.trust > div { display: flex; gap: 14px; align-items: center; padding: 20px; background: var(--panel-solid); }
.trust svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--cyan); }
.trust strong { display: block; font-size: 0.95rem; }
.trust span { font-size: 0.82rem; color: var(--muted); line-height: 1.4; display: block; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 20px;
  color: var(--text); background: linear-gradient(160deg, rgba(20, 24, 40, 0.9), rgba(10, 12, 21, 0.9));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: 0.2s;
}
.cat-tile::after {
  content: ''; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.22), transparent 65%); transition: 0.3s;
}
.cat-tile:hover { color: #fff; border-color: rgba(0, 229, 255, 0.6); transform: translateY(-3px); box-shadow: var(--glow); }
.cat-tile:hover::after { transform: scale(1.4); }
.cat-tile .ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.3); color: var(--cyan); }
.cat-tile .ic svg { width: 24px; height: 24px; }
.cat-tile h3 { margin: 14px 0 2px; font-family: var(--display); font-size: 1rem; letter-spacing: 0.04em; }
.cat-tile small { font-size: 0.8rem; position: relative; z-index: 1; }

/* ---------------- product cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 255, 0.55); box-shadow: 0 20px 50px -20px rgba(0, 229, 255, 0.4); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #171c30, #0a0c14 70%); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s; }
.card:hover .card-media img { transform: scale(1.05); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 8px; font: 800 0.66rem var(--font); letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 6px; background: rgba(5, 6, 11, 0.85); border: 1px solid var(--line-2); color: var(--text);
}
.badge.pre { color: var(--warn); border-color: rgba(255, 181, 71, 0.5); }
.badge.low { color: var(--pink); border-color: rgba(255, 61, 154, 0.5); }
.badge.out { color: var(--muted); }
.badge.hot { color: #03111a; background: var(--grad); border: 0; }
.rating-badge { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.class-mark {
  display: inline-grid; place-items: center; min-width: 46px; height: 26px; padding: 0 7px;
  font: 900 0.72rem Arial, sans-serif; color: #111; background: #fff; border-radius: 5px;
}
.class-mark.R18 { background: #000; color: #fff; border: 2px solid #fff; }
.class-mark.MA15 { background: #e0001b; color: #fff; }
.class-mark.M { background: #00a0e3; color: #fff; }
.class-mark.PG { background: #f6d500; color: #111; }
.class-mark.G { background: #00a651; color: #fff; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card-brand { font: 700 0.7rem var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card-title { margin: 4px 0 10px; font-size: 0.98rem; font-weight: 600; line-height: 1.35; color: #fff; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--cyan); }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.22rem; color: #fff; letter-spacing: 0.02em; }
.price-note { display: block; font-size: 0.7rem; color: var(--muted); font-family: var(--font); font-weight: 500; letter-spacing: 0; }
.add-btn {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; cursor: pointer;
  color: #03111a; background: var(--grad); border: 0; border-radius: 12px; transition: 0.2s;
}
.add-btn:hover { filter: brightness(1.15); box-shadow: 0 0 20px rgba(0, 229, 255, 0.6); }
.add-btn svg { width: 20px; height: 20px; }
.add-btn[disabled] { background: var(--panel-2); color: var(--dim); cursor: not-allowed; box-shadow: none; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; margin-top: 2px; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.stock.in { color: var(--ok); }
.stock.low { color: var(--pink); }
.stock.pre { color: var(--warn); }
.stock.out { color: var(--muted); }

/* ---------------- banner ---------------- */
.promo {
  position: relative; overflow: hidden; padding: 44px; border-radius: 20px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.12), rgba(139, 92, 255, 0.2)), var(--panel-solid);
  border: 1px solid var(--line-2);
}
.promo::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255, 255, 255, 0.025) 40px 41px);
}
.promo > * { position: relative; }
.promo ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.promo li { display: flex; gap: 10px; align-items: center; }
.promo li svg { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; }

/* ---------------- breadcrumbs & listing ---------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 0 6px; font-size: 0.82rem; color: var(--muted); list-style: none; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }
.page-head { padding: 10px 0 24px; }
.page-head p { color: var(--muted); max-width: 720px; }
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.toolbar form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { padding: 7px 14px; font-size: 0.84rem; font-weight: 600; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.pill:hover, .pill.active { color: #03111a; background: var(--grad); border-color: transparent; }
select, input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input[type='password'], input[type='url'], input[type='search'], input[type='date'], textarea {
  font: 0.94rem var(--font); color: var(--text); background: var(--panel-solid);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%;
}
select { width: auto; padding-right: 30px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14); }
label.check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--cyan); width: 17px; height: 17px; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------------- product page ---------------- */
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; padding-bottom: 20px; }
.gallery-main {
  position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1a2038, #090b13 70%); border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 76px; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel-solid); cursor: pointer; }
.thumbs button.active, .thumbs button:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buybox { position: sticky; top: 92px; align-self: start; }
.buybox h1 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin-bottom: 10px; }
.buybox .price { font-size: 2.2rem; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.buy-panel { margin-top: 18px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--panel-solid); }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.qty button:hover { color: var(--cyan); }
.qty input { width: 48px; height: 44px; text-align: center; border: 0; border-radius: 0; padding: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; margin-top: 14px; }
.buy-row .btn { flex: 1; }
.ship-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 0.88rem; }
.ship-list li { display: flex; gap: 10px; align-items: flex-start; }
.ship-list svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pay-chips span { font-size: 0.72rem; font-weight: 700; padding: 5px 9px; border-radius: 6px; background: #fff; color: #1a1f36; }
.classif { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-solid); }
.classif .class-mark { min-width: 64px; height: 40px; font-size: 1rem; }
.classif small { display: block; }
.tabs { margin-top: 40px; }
.tab-btns { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btns button {
  padding: 14px 18px; font: 700 0.86rem var(--font); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.tab-btns button.active { color: #fff; border-color: var(--cyan); }
.tab-panel { display: none; padding: 26px 0; max-width: 900px; }
.tab-panel.active { display: block; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.features li { display: flex; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 0.92rem; }
.features svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--cyan); }
table.specs { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.specs th, table.specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { width: 34%; color: var(--muted); font-weight: 600; }
table.specs tr:nth-child(odd) td, table.specs tr:nth-child(odd) th { background: rgba(255, 255, 255, 0.015); }

/* ---------------- cart ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; padding-bottom: 40px; }
.cart-lines { display: grid; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.cart-line img { width: 96px; height: 96px; object-fit: contain; border-radius: 10px; background: #0b0d17; }
.cart-line h3 { font-size: 1rem; margin: 0 0 4px; }
.cart-line h3 a { color: #fff; }
.cart-line .meta { font-size: 0.8rem; color: var(--muted); }
.cart-line .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 0.8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.link-btn:hover { color: var(--err); }
.summary { position: sticky; top: 92px; padding: 22px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--glow); }
.summary h2 { font-size: 1.2rem; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 0.93rem; }
.sum-row.total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.1rem; font-weight: 700; }
.sum-row.total .price { font-size: 1.5rem; }
.ship-choice { display: grid; gap: 8px; margin: 10px 0; }
.ship-choice label { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 0.88rem; }
.ship-choice label:has(input:checked) { border-color: var(--cyan); background: rgba(0, 229, 255, 0.06); }
.ship-choice span.l { display: flex; gap: 10px; align-items: center; }
.progress { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin: 6px 0 14px; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width 0.4s; }
.notice { padding: 12px 14px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 14px; border: 1px solid; }
.notice.warn { color: #ffd89a; border-color: rgba(255, 181, 71, 0.4); background: rgba(255, 181, 71, 0.08); }
.notice.err { color: #ffb3c0; border-color: rgba(255, 84, 112, 0.4); background: rgba(255, 84, 112, 0.08); }
.notice.ok { color: #b6ffd8; border-color: rgba(46, 230, 138, 0.4); background: rgba(46, 230, 138, 0.08); }
.notice.info { color: #c6f7ff; border-color: rgba(0, 229, 255, 0.35); background: rgba(0, 229, 255, 0.06); }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.secure-note svg { width: 15px; height: 15px; color: var(--ok); }

/* ---------------- content pages ---------------- */
.content-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding-bottom: 50px; align-items: start; }
.side-nav { position: sticky; top: 92px; display: grid; gap: 4px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.side-nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 0.9rem; font-weight: 600; }
.side-nav a:hover { background: rgba(0, 229, 255, 0.06); color: var(--cyan); }
.side-nav a.active { background: var(--grad); color: #03111a; }
.prose { max-width: 820px; }
.prose h2 { font-family: var(--font); font-weight: 800; font-size: 1.3rem; margin-top: 2em; padding-top: 0.2em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel-2); }
.prose .callout { padding: 16px 18px; border-left: 3px solid var(--cyan); background: rgba(0, 229, 255, 0.05); border-radius: 0 10px 10px 0; margin: 1.2em 0; }
.updated { font-size: 0.82rem; color: var(--muted); }
.panel { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card svg { width: 28px; height: 28px; color: var(--cyan); margin-bottom: 10px; }
.info-card h3 { margin-bottom: 6px; }
.info-card p { margin: 0; color: #c3cbe0; font-size: 0.93rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: #cbd2e4; }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 2rem; line-height: 1; color: var(--line-2); cursor: pointer; transition: 0.15s; margin: 0; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--warn); text-shadow: 0 0 12px rgba(255, 181, 71, 0.6); }
details.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: '+'; color: var(--cyan); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: '\2212'; }
details.faq > div { padding: 0 18px 16px; color: #c3cbe0; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 16px 18px; font-size: 0.9rem; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------------- footer ---------------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: rgba(5, 6, 11, 0.9); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 48px; padding-bottom: 30px; }
.site-footer h4 { font: 800 0.78rem var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); font-size: 0.9rem; }
.site-footer a:hover { color: var(--cyan); }
.site-footer address { font-style: normal; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: 0.78rem; color: var(--dim); }
.footer-bottom .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-bottom p { margin: 8px 0 0; }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; gap: 12px; align-items: center;
  max-width: 380px; padding: 14px 16px; border-radius: 14px; background: rgba(12, 14, 24, 0.97);
  border: 1px solid var(--cyan); box-shadow: var(--glow); transform: translateY(140%); transition: transform 0.3s;
}
.toast.show { transform: none; }
.toast img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #0b0d17; }
.toast strong { display: block; font-size: 0.9rem; }
.toast a { font-size: 0.82rem; font-weight: 700; }

/* ---------------- admin ---------------- */
.admin table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.admin th, .admin td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin th { color: var(--muted); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.admin input[type='number'] { width: 110px; padding: 6px 8px; }
.admin-nav { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.status { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 0.74rem; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line-2); }
.status.paid, .status.processing { color: var(--warn); }
.status.shipped, .status.delivered { color: var(--ok); }
.status.cancelled, .status.refunded, .status.pending_payment { color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .drawer {
    display: block; position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: 80;
    padding: 20px; overflow-y: auto; background: #080a12; border-left: 1px solid var(--line-2);
    transform: translateX(100%); transition: transform 0.25s;
  }
  .drawer.open { transform: none; box-shadow: -30px 0 80px rgba(0, 0, 0, 0.7); }
  .drawer a { display: flex; gap: 12px; align-items: center; padding: 12px; color: var(--text); border-radius: 10px; font-weight: 600; }
  .drawer a:hover { background: var(--panel-2); color: var(--cyan); }
  .drawer svg { width: 20px; height: 20px; color: var(--cyan); }
  .drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.6); display: none; }
  .drawer-backdrop.open { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .pdp, .cart-layout, .content-layout, .promo, .two-col { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .hero-visual { max-width: 400px; }
  .buybox, .summary, .side-nav { position: static; }
  .trust { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col, .stat-grid { grid-template-columns: 1fr; }
  .side-nav { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .search { display: none; }
  .header-row { gap: 10px; height: 64px; }
  .header-actions { margin-left: auto; }
  .topbar .container { gap: 12px; }
  .topbar span:nth-child(n + 2) { display: none; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 0.88rem; }
  .price { font-size: 1.05rem; }
  .add-btn { width: 38px; height: 38px; }
  .trust { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img { width: 72px; height: 72px; }
  .cart-line .right { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo { padding: 26px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cat-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .cat-pills .pill { flex-shrink: 0; }
}
/* ---------------- customer accounts ---------------- */
.acc-btn .acc-initial { font: 800 0.95rem var(--display); color: #03111a; }
.acc-btn.signed { background: var(--grad); border: 0; }
.auth-wrap { display: grid; place-items: center; padding: 50px 20px 60px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--glow); }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-card .field { margin-bottom: 4px; }
.auth-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.auth-perk { display: inline-flex; gap: 6px; align-items: center; color: var(--ok); font-weight: 700; font-size: 0.82rem; }
.auth-perk svg { width: 16px; height: 16px; }
.perk-banner {
  display: flex; gap: 16px; align-items: center; padding: 16px 18px; margin-bottom: 18px; flex-wrap: wrap;
  border: 1px solid rgba(46, 230, 138, 0.45); border-radius: 14px;
  background: linear-gradient(110deg, rgba(46, 230, 138, 0.1), rgba(0, 229, 255, 0.08));
}
.perk-banner strong { display: block; color: #fff; }
.perk-banner small { color: var(--muted); }
.perk-pct { font: 900 1.9rem var(--display); background: linear-gradient(100deg, #2ee68a, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acc-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 6px 0 22px; }
.acc-avatar { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font: 900 1.5rem var(--display); color: #03111a; background: var(--grad); box-shadow: 0 0 30px rgba(0, 229, 255, 0.35); }
.acc-orders { display: grid; gap: 8px; }
.acc-order {
  display: grid; grid-template-columns: 170px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px;
  color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: var(--panel-solid); transition: 0.15s;
}
.acc-order:hover { color: var(--text); border-color: var(--cyan); }
.acc-order small { display: block; font-size: 0.78rem; }
.acc-order-items { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.pstep { position: relative; color: var(--dim); }
.pstep span { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid var(--line-2); font-weight: 800; }
.pstep.done { color: var(--text); }
.pstep.done span { border-color: var(--cyan); background: rgba(0, 229, 255, 0.12); color: var(--cyan); box-shadow: 0 0 14px rgba(0, 229, 255, 0.4); }
.danger-zone { border-color: rgba(255, 84, 112, 0.35); }
.status.on_hold { color: var(--pink); }
@media (max-width: 680px) {
  .acc-order { grid-template-columns: 1fr auto; }
  .acc-order-items { display: none; }
  .auth-card { padding: 22px; }
}

/* real product photos (usually white background) sit on a light stage */
.card-media.photo, .gallery-main.photo { background: radial-gradient(circle at 50% 35%, #ffffff, #e6eaf2 75%); }
.card-media.photo img { padding: 8%; }
.gallery-main.photo img { padding: 6%; }
/* blend the white photo background into the light stage so no hard white square shows */
.card-media.photo img, .gallery-main.photo img { mix-blend-mode: multiply; }
.gallery-main.photo + .thumbs button { background: #fff; }
.gallery-main.photo + .thumbs img { padding: 6%; }
.hero-product img[src^='/images/'] { background: #fff; padding: 8%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
