/* ============================================================
   FiveMDepot — Store theme (qbcore.store style)
   Dark navy + orange accent. Light theme via [data-theme="light"].
   ============================================================ */

:root {
  --bg: #0a0e17;
  --bg-2: #0f1522;
  --surface: #131a29;
  --surface-2: #19223450;
  --card: #141c2b;
  --card-hover: #18223a;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);

  --text: #e8edf5;
  --text-2: #a3aec2;
  --muted: #6b778c;

  --accent: #f97316;
  --accent-2: #fb923c;
  --accent-3: #fbbf24;
  --accent-ink: #ffffff;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-ring: rgba(249, 115, 22, 0.35);

  --success: #22c55e;
  --danger: #ef4444;
  --star: #fbbf24;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 10px 30px rgba(249, 115, 22, 0.25);

  --container: 1280px;
  --header-h: 68px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Lexend', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --card: #ffffff;
  --card-hover: #fbfbfd;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-2: #475569;
  --muted: #94a3b8;
  --accent: #ea580c;
  --accent-2: #f97316;
  --accent-soft: rgba(234, 88, 12, 0.1);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-accent { color: var(--accent); }
.text-grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: var(--shadow-accent); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); position: relative; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Topbar / Header ---------- */
.topbar {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 7px 16px;
}
.topbar a { text-decoration: underline; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; flex-shrink: 0; }
.logo-mark {
  position: relative; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(249,115,22,.35);
  animation: logoGlow 3.2s ease-in-out infinite;
}
.logo-mark svg { position: relative; z-index: 1; width: 26px; height: 26px; }
.logo-mark svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: logoDraw 1.1s .15s var(--ease) forwards; }
.logo-ring {
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,.55) 80%, transparent 90%);
  animation: logoSpin 3.2s linear infinite;
}
.logo-mark::after { content: ""; position: absolute; inset: 2px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #ea580c); }
.logo-text {
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 40%, var(--accent-3) 50%, var(--text) 60%, var(--text) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: logoShine 5s ease-in-out infinite;
}
.logo:hover .logo-mark { animation-duration: 1.2s; }
@keyframes logoSpin { to { transform: rotate(360deg); } }
@keyframes logoDraw { to { stroke-dashoffset: 0; } }
@keyframes logoShine { 0%, 60% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
@keyframes logoGlow { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 6px 26px rgba(249,115,22,.6); } }
.nav { display: flex; align-items: center; gap: 0; flex: 1; min-width: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; padding: 8px 9px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--accent); }
.nav-link .caret { width: 14px; height: 14px; opacity: .6; }
.nav-drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s var(--ease);
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.nav-drop a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-drop .count { font-size: 12px; color: var(--muted); }
.nav-drop .dl { display: flex; align-items: center; gap: 10px; }
.di { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.di svg { width: 16px; height: 16px; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 250; background: rgba(5, 8, 15, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; opacity: 0; transition: opacity .18s;
}
.search-overlay.open { opacity: 1; }
.search-panel {
  width: 100%; max-width: 680px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow);
  transform: translateY(-10px) scale(.98); transition: transform .22s var(--ease);
}
.search-overlay.open .search-panel { transform: none; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); color: var(--accent); }
.search-form svg { width: 22px; height: 22px; flex-shrink: 0; }
.search-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 18px; }
.search-esc { font-size: 12px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--muted); }
.search-cats { padding: 16px 18px 20px; }
.search-cats > span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.search-cats > div { display: flex; flex-wrap: wrap; gap: 8px; }
.search-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 10px; border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.search-chip:hover { border-color: var(--accent); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.header-search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--muted);
}
.header-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; }
.header-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.badge-count {
  position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: none; align-items: center; justify-content: center;
}
.socials { display: flex; gap: 2px; padding-left: 6px; margin-left: 4px; border-left: 1px solid var(--border); }
.socials .icon-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
[data-theme="light"] .theme-btn .i-moon { display: none; }
.menu-btn { display: none; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 199; opacity: 0; visibility: hidden; transition: .2s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); z-index: 200;
  background: var(--bg-2); border-left: 1px solid var(--border); padding: 18px; overflow-y: auto;
  transform: translateX(100%); transition: transform .28s var(--ease);
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer a { display: block; padding: 11px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.drawer a:hover { background: var(--accent-soft); color: var(--accent); }
.drawer .sub { padding-left: 26px; font-size: 14px; }
.drawer .drawer-search { width: 100%; margin-bottom: 12px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; box-shadow: 0 0 12px var(--accent); }
.section-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.section-sub { color: var(--text-2); margin-top: 8px; max-width: 620px; }
.link-more { color: var(--accent); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }
.link-more:hover { gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 86px 0 82px; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 15% 0%, rgba(249,115,22,.20), transparent 60%),
    radial-gradient(600px 360px at 90% 20%, rgba(251,191,36,.10), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-inner > div:first-child { max-width: 680px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.hero-kicker-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 0 20px var(--accent); }
.hero-kicker-index { color: var(--muted); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--radius-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-ring); color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero-badge .dot { background: var(--accent); color: #fff; border-radius: var(--radius-pill); padding: 2px 8px; font-size: 11px; font-weight: 700; }
.hero h1 { font-size: clamp(38px, 5.3vw, 66px); font-weight: 700; line-height: 1.06; letter-spacing: -.045em; margin-bottom: 20px; text-wrap: balance; }
.hero-sub { font-size: clamp(16px, 1.35vw, 18px); color: var(--text-2); max-width: 560px; margin-bottom: 30px; line-height: 1.65; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-path { margin-top: 30px; }
.hero-path > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-path .hero-quick { margin-top: 0; }
.hero-path .search-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.hero-path .di { width: 22px; height: 22px; border-radius: 6px; }
.hero-path .di svg { width: 13px; height: 13px; }
.hero-trustline { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: var(--text-2); font-size: 13.5px; }
.hero-trustline span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trustline svg { width: 16px; height: 16px; color: var(--success); }
.hero-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 15px; color: var(--text-2); font-weight: 600; margin-bottom: 14px; font-family: var(--font); }
.hero-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-cat {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border); transition: border-color .2s, transform .2s;
}
.hero-cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.hero-cat .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); font-size: 18px; flex-shrink: 0; }
.hero-cat b { display: block; font-size: 14px; line-height: 1.25; }
.hero-cat small { color: var(--muted); font-size: 12px; }

/* ---------- Hero search ---------- */
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 6px 6px 6px 16px; margin: -6px 0 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border-strong); border-radius: 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.hero-search > svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; height: 44px; }
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); margin-bottom: 26px; }
.hero-popular span { color: var(--muted); }
.hero-popular a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.hero-popular a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Trust stats ---------- */
.trust { padding: 0 0 40px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.trust-item { background: var(--surface); padding: 26px 20px; text-align: center; }
.trust-item:nth-child(even) { background: color-mix(in srgb, var(--surface) 86%, var(--accent) 14%); }
.trust-item b { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--text); }
.trust-item span { color: var(--text-2); font-size: 13.5px; }
.trust-item b { font-variant-numeric: tabular-nums; }
.fw-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.fw-strip span { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: 11.5px; }
.fw-strip b { font-family: var(--font-head); font-size: 17px; color: var(--text-2); opacity: .75; transition: opacity .2s, color .2s; }
.fw-strip b:hover { opacity: 1; color: var(--accent); }

/* ---------- Showcase tabs, reviews, community ---------- */
.ptab-pills { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.ptab-pills button { padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text-2); transition: background .2s, color .2s; }
.ptab-pills button:hover { color: var(--text); }
.ptab-pills button.on { background: var(--accent); color: #fff; }
#ptabGrid { transition: opacity .15s; }
#ptabGrid.swap { opacity: 0; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.rv-card { margin: 0; padding: 22px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.rv-card blockquote { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; flex: 1; }
.rv-card figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rv-card figcaption > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.rv-card figcaption a { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card figcaption a:hover { color: var(--accent); }
.rv-card .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-3)); flex-shrink: 0; }
.rv-card .vb { margin-left: auto; color: var(--success); font-weight: 600; white-space: nowrap; }
.community { display: flex; align-items: center; gap: 24px; padding: 36px 40px; border-radius: 24px; color: #fff;
  background: radial-gradient(500px 220px at 90% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #5865f2, #3b44c4); }
.community-ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.15); flex-shrink: 0; }
.community-ico svg { width: 40px; height: 40px; }
.community-text { flex: 1; }
.community-text h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; color: #fff; }
.community-text p { opacity: .9; }
.community .btn { background: #fff; color: #3b44c4; }
@media (max-width: 680px) { .community { flex-direction: column; text-align: center; padding: 28px 20px; } .hero-search .btn { padding: 0 14px; } }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cat-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.cat-card::after { content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-top: 2px solid rgba(255,255,255,.65); border-right: 2px solid rgba(255,255,255,.65); pointer-events: none; }
.cat-card:hover { transform: translateY(-5px); border-color: var(--accent-ring); box-shadow: var(--shadow), 0 0 0 1px var(--accent-ring); }
.cat-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.07); }
.cat-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 20px 18px; flex: 1; }
.cat-card .ico {
  position: absolute; top: -24px; left: 20px; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #fff; box-shadow: 0 8px 20px rgba(249,115,22,.4);
  border: 3px solid var(--card); transition: transform .3s var(--ease);
}
.cat-card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.cat-card .ico svg { width: 22px; height: 22px; }
.cat-card h3 { font-size: 18px; }
.cat-card p { color: var(--text-2); font-size: 13.5px; flex: 1; }
.cat-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--border); margin-top: 4px; }
.cat-card .meta .go { color: var(--accent); font-weight: 600; transition: transform .2s; }
.cat-card:hover .meta .go { transform: translateX(4px); }

/* ---------- Hero banner art + floating showcase ---------- */
.hero-art {
  position: absolute; left: 0; right: 0; bottom: 0; height: 78%; pointer-events: none; z-index: 0;
  background: url("../images/store/hero-city.svg") center bottom / cover no-repeat;
  opacity: .55;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
}
[data-theme="light"] .hero-art { opacity: .18; }
.hero-photo {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: url("../images/photos/hero-city.jpg") center / cover no-repeat;
  opacity: .46; filter: saturate(.85) contrast(1.1);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 35%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 35%, #000 100%);
}
.hero-photo + .hero-art { opacity: .2; }
[data-theme="light"] .hero-photo { opacity: .12; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-quick .search-chip { background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(6px); }
.hero-visual { position: relative; min-height: 470px; overflow: hidden; border: 1px solid rgba(251,146,60,.42); border-radius: 20px;
  background: linear-gradient(180deg, rgba(5,11,22,.14), rgba(5,11,22,.94)), url("../images/photos/hero-city.jpg") center / cover;
  box-shadow: 0 28px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04); }
.hero-visual::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(0,0,0,.11) 6px 7px); }
.hero-visual::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; pointer-events: none; z-index: 1; }
.hero-visual-top, .hero-visual-bottom { position: absolute; left: 28px; right: 28px; z-index: 5; display: flex; justify-content: space-between; gap: 12px;
  color: #e8edf5; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-shadow: 0 1px 8px #000; }
.hero-visual-top { top: 29px; }
.hero-visual-top span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.hero-visual-top i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-visual-bottom { bottom: 27px; color: rgba(255,255,255,.8); }
.hero-visual-bottom span:last-child { color: var(--accent-3); }
.hero-visual-reticle { position: absolute; top: 49%; left: 50%; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.hero-visual-reticle::before, .hero-visual-reticle::after { content: ""; position: absolute; background: rgba(255,255,255,.18); }
.hero-visual-reticle::before { width: 1px; height: 190px; left: 50%; top: -20px; }
.hero-visual-reticle::after { height: 1px; width: 190px; top: 50%; left: -20px; }
.hv-card {
  position: absolute; width: 42%; border-radius: 10px; overflow: hidden; background: #0b1320;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 18px 34px rgba(0,0,0,.55);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.hv-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hv-label { display: flex; flex-direction: column; padding: 9px 11px; background: linear-gradient(90deg, rgba(249,115,22,.12), transparent); }
.hv-label b { font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.hv-label small { color: var(--accent-3); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.hv-1 { top: 22%; left: 8%; z-index: 3; width: 55%; }
.hv-2 { top: 38%; right: 7%; z-index: 4; }
.hv-3 { bottom: 13%; left: 13%; z-index: 2; width: 38%; }
.hv-card:hover { z-index: 6; transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 28px 50px rgba(0,0,0,.7), 0 0 0 1px var(--accent); }

/* ---------- Image marquee ---------- */
.marquee { overflow: hidden; padding: 6px 0 44px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 45s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-row { display: flex; gap: 16px; padding-right: 16px; }
.mq-item { position: relative; width: 280px; flex-shrink: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.mq-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.mq-item:hover img { transform: scale(1.06); }
.mq-label {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(8,11,19,.95), transparent); color: #fff;
}
.mq-label b { display: block; font-size: 14px; line-height: 1.2; }
.mq-label small { color: var(--accent-3); font-size: 12px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Category page artwork */
.page-hero.has-art::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(46%, 560px); pointer-events: none;
  background: var(--art) center / cover no-repeat; opacity: .9;
  mask-image: linear-gradient(90deg, transparent, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.di-lg { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #fff; }
.di-lg svg { width: 24px; height: 24px; }
.subcat { display: inline-flex; align-items: center; gap: 8px; padding-left: 5px; }
.subcat .di { width: 24px; height: 24px; border-radius: 50%; }
.subcat .di svg { width: 13px; height: 13px; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.product-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent-ring); box-shadow: var(--shadow); }
.pc-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.pc-media > a { display: block; width: 100%; height: 100%; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-media .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; color: var(--muted); background: linear-gradient(135deg, var(--surface), var(--bg-2)); }
.pc-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 700; color: #fff; background: var(--accent); text-transform: uppercase; letter-spacing: .04em;
}
.pc-sale { position: absolute; top: 10px; right: 50px; padding: 4px 9px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; color: #fff; background: var(--danger); }
.pc-wish {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10,14,23,.6); color: #fff; backdrop-filter: blur(6px); transition: color .2s, transform .2s;
}
.pc-wish:hover { transform: scale(1.1); color: var(--accent); }
.pc-wish.on { color: var(--danger); }
.pc-wish svg { width: 17px; height: 17px; }
.pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-fw { display: flex; gap: 5px; flex-wrap: wrap; min-height: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pc-title { font-size: 15.5px; font-weight: 600; font-family: var(--font); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title:hover { color: var(--accent); }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.stars { color: var(--star); letter-spacing: 1px; font-size: 13px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.price.free { color: var(--success); }
.price s { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.pc-add {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); transition: background .2s, color .2s;
}
.pc-add:hover { background: var(--accent); color: #fff; }
.pc-add svg { width: 18px; height: 18px; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--radius-lg); }
.skeleton.card { height: 330px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Server pack showcase ---------- */
.pack {
  position: relative; overflow: hidden; border-radius: 24px; padding: 56px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(249,115,22,.25), transparent 60%), linear-gradient(135deg, var(--surface), var(--bg-2));
  border: 1px solid var(--accent-ring);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.pack h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 12px; }
.pack-sub { color: var(--text-2); font-size: 16.5px; margin-bottom: 26px; }
.pack-stats { display: flex; gap: 34px; margin-bottom: 26px; flex-wrap: wrap; }
.pack-stats b { display: block; font-family: var(--font-head); font-size: 34px; color: var(--accent); line-height: 1.1; }
.pack-stats span { font-size: 13.5px; color: var(--text-2); }
.pack-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pack-benefit {
  display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px;
}
.pack-benefit svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* ---------- About / FAQ ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--text-2); font-size: 16px; }
.about-points { display: grid; gap: 12px; }
.about-point { display: flex; gap: 14px; padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.about-point .ico { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 18px; }
.about-point b { display: block; margin-bottom: 2px; }
.about-point span { color: var(--text-2); font-size: 14px; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: var(--accent-ring); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--text-2); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 24px; padding: 48px; text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #fff;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.cta-band p { opacity: .92; margin-bottom: 22px; }
.cta-band .btn { background: #0a0e17; color: #fff; }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--text-2); font-size: 14px; margin: 14px 0 18px; max-width: 300px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 14px; font-family: var(--font); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--text-2); font-size: 14px; }
.footer ul a:hover { color: var(--accent); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; justify-content: center; }
.footer-badge {
  padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--accent-ring); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.footer-bottom { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- Category page ---------- */
.page-hero { padding: 40px 0 30px; border-bottom: 1px solid var(--border); background: var(--bg-2); position: relative; overflow: hidden; }
.page-hero.has-banner { background-size: cover; background-position: center; }
.page-hero.has-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,23,.95), rgba(10,14,23,.6)); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero.has-banner h1, .page-hero.has-banner p { color: #fff; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); display: flex; align-items: center; gap: 12px; }
.page-hero p { color: var(--text-2); margin-top: 8px; max-width: 700px; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.subcat {
  padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); font-size: 13.5px; font-weight: 500; color: var(--text-2);
}
.subcat:hover, .subcat.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.subcat small { color: var(--muted); margin-left: 4px; }

.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 60px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; display: grid; gap: 14px; }
.filter-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.filter-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; font-family: var(--font); color: var(--text-2); }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 2px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.filter-opt:hover { color: var(--text); }
.filter-opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-opt .n { margin-left: auto; font-size: 12px; color: var(--muted); }
.price-row { display: flex; gap: 8px; align-items: center; }
.input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px; outline: 0;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.input { cursor: pointer; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--text-2); font-size: 14px; }
.toolbar .right { display: flex; gap: 8px; align-items: center; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.active-filters button { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border-strong); color: var(--text-2); }
.pager button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--text-2); }
.empty b { display: block; font-size: 18px; color: var(--text); margin-bottom: 6px; }
.filters-toggle { display: none; }

/* Toast */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); box-shadow: var(--shadow); font-size: 14px; animation: tin .25s var(--ease); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
  .mq-track, .hv-card, .logo-ring, .logo-text, .logo-mark { animation: none !important; }
  .logo-mark svg path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
.pc-wish[hidden] { display: none; }
@media (max-width: 1500px) {
  .socials { display: none; }
}
@media (max-width: 1240px) {
  .header-inner { gap: 14px; }
  .nav-link { padding: 8px 7px; font-size: 13px; }
}
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-inner, .pack, .about { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; max-width: 600px; width: 100%; margin: 8px auto 0; }
  .page-hero.has-art::after { opacity: .3; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(320px, 88vw); z-index: 200; background: var(--bg-2); padding: 18px; overflow-y: auto; transform: translateX(-100%); transition: transform .28s var(--ease); border-right: 1px solid var(--border); }
  .filters-open .filters { transform: none; }
  .filters-open .drawer-backdrop { opacity: 1; visibility: visible; }
  .filters-toggle { display: inline-flex; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 52px; }
  .hero h1 { letter-spacing: -.035em; }
  .hero-kicker { font-size: 10px; letter-spacing: .09em; }
  .hero-kicker-index { display: none; }
  .hero-path { margin-top: 24px; }
  .hero-path .hero-quick { gap: 7px; }
  .hero-path .search-chip { font-size: 12px; padding: 6px 9px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .pack { padding: 28px 20px; }
  .pack-benefits { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 20px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
  .hero-cats { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .hero-visual-top, .hero-visual-bottom { left: 22px; right: 22px; font-size: 8px; }
  .hero-visual-top { top: 22px; }
  .hero-visual-bottom { bottom: 20px; }
  .hero-visual-bottom span:last-child { display: none; }
  .hv-1 { top: 21%; width: 58%; }
  .hv-2 { top: 42%; right: 6%; width: 47%; }
  .hv-3 { bottom: 11%; left: 8%; width: 39%; }
  .hv-label { padding: 6px 8px; }
  .hv-label b { font-size: 10px; }
  .hv-label small { font-size: 8px; }
  .mq-item { width: 220px; }
  .header-actions .hide-sm { display: none; }
}

/* ---------- Cart drawer ---------- */
.cd-wrap { position: fixed; inset: 0; z-index: 260; pointer-events: none; }
.cd-scrim { position: absolute; inset: 0; background: rgba(5,8,15,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.cd { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--border); box-shadow: -20px 0 60px rgba(0,0,0,.45);
  transform: translateX(105%); transition: transform .38s cubic-bezier(.22,1,.36,1); }
.cd-wrap.open { pointer-events: auto; }
.cd-wrap.open .cd-scrim { opacity: 1; }
.cd-wrap.open .cd { transform: none; }
body.cd-lock { overflow: hidden; }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cd-head h2 { font-size: 19px; }
.cd-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cd-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border);
  animation: cdIn .35s cubic-bezier(.22,1,.36,1) both; transition: opacity .2s, transform .2s; }
.cd-line.new { background: linear-gradient(90deg, var(--accent-soft), transparent); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.cd-line.out { opacity: 0; transform: translateX(30px); }
@keyframes cdIn { from { opacity: 0; transform: translateX(24px); } }
.cd-line img { width: 76px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; background: var(--surface); }
.cd-info { min-width: 0; display: grid; gap: 3px; }
.cd-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-title:hover { color: var(--accent); }
.cd-meta { font-size: 12px; color: var(--muted); }
.cd-save { font-size: 12px; color: var(--success); font-weight: 700; }
.cd-owned { font-size: 12px; color: var(--success); }
.cd-price { display: grid; justify-items: end; gap: 2px; font-size: 15px; }
.cd-price s { font-size: 12px; color: var(--muted); }
.cd-price button { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cd-price button:hover { color: var(--danger); }
.cd-hint { font-size: 12.5px; color: var(--muted); margin: 14px 0 6px; }
.cd-hint a { color: var(--accent); }
.cd-foot { padding: 16px 20px 20px; border-top: 1px solid var(--border); background: var(--surface); display: grid; gap: 8px; }
.cd-foot:empty { display: none; }
.cd-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.cd-total { font-size: 18px; font-weight: 800; color: var(--text); padding-top: 6px; border-top: 1px dashed var(--border-strong); margin-top: 2px; }
.cd-saved { text-align: center; font-size: 13px; font-weight: 700; color: var(--success); background: rgba(34,197,94,.1); border-radius: 8px; padding: 6px; }
.cd-checkout { margin-top: 4px; }
.cd-login { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-ring); margin-top: 4px; }
.cd-login span { font-size: 13px; color: var(--text-2); }
.cd-login-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.cd-trust { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: var(--muted); }
.cd-viewcart { text-align: center; font-size: 13px; color: var(--text-2); }
.cd-viewcart:hover { color: var(--accent); }
.cd-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 60px 10px; color: var(--text-2); }
.cd-empty-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.cd-empty-ico svg { width: 32px; height: 32px; }
.cd-empty b { color: var(--text); font-size: 17px; }
.cd-empty .btn { margin-top: 10px; }
.cart-btn.bump { animation: cartBump .6s cubic-bezier(.36,1.6,.5,1); }
.cart-btn.bump .badge-count { animation: badgePop .6s ease; }
@keyframes cartBump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }
@keyframes badgePop { 40% { transform: scale(1.5); background: var(--success); } }
.pc-claim { height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--success), #16a34a); box-shadow: 0 6px 18px rgba(34,197,94,.3); transition: filter .2s, transform .15s; }
.pc-claim:hover { filter: brightness(1.08); }
.pc-claim:active { transform: translateY(1px); }
.pc-claim.done { background: var(--surface-2); color: var(--success); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .cd, .cd-scrim, .cd-line { transition: none; animation: none; } .cart-btn.bump, .cart-btn.bump .badge-count { animation: none; } }

/* ---------- Account menu ---------- */
.acct-wrap { position: relative; }
.acct-avatar { border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #fff !important; font-weight: 800; font-size: 15px; }
.acct-avatar:hover { filter: brightness(1.1); background: linear-gradient(135deg, var(--accent), var(--accent-3)); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; z-index: 120; display: grid; padding: 8px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); animation: tin .18s var(--ease); }
.acct-menu .acct-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: grid; }
.acct-menu .acct-who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu a, .acct-menu button { text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.acct-menu a:hover, .acct-menu button:hover { background: var(--accent-soft); color: var(--accent); }
.acct-menu .acct-logout { border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; margin-top: 6px; color: var(--danger); }
.acct-menu .acct-logout:hover { background: rgba(239,68,68,.1); color: var(--danger); }
.drawer-who { display: block; padding: 14px 12px 6px; margin-top: 8px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#drawerAcct [data-logout] { color: var(--danger); }

/* ---------- Very small phones (≤ 400px, e.g. iPhone SE / small Android) ---------- */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .header-inner { gap: 6px; }
  .header-actions { gap: 0; }
  .header .icon-btn { width: 34px; height: 34px; }
  .header .icon-btn svg { width: 18px; height: 18px; }
  .logo { font-size: 16px; gap: 7px; }
  .header .logo-mark { width: 32px; height: 32px; }
  .header .logo-mark svg { width: 22px; height: 22px; }
  .ptab-pills { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .ptab-pills::-webkit-scrollbar { display: none; }
  .ptab-pills button { padding: 7px 11px; white-space: nowrap; }
  .hero h1 { font-size: 32px; }
  .hero-search { padding-left: 12px; }
  .hero-search .btn { padding: 0 12px; }
  .section-title { font-size: 24px; }
}

/* Grid children may shrink below their content width (prevents clipped hero text on small phones) */
.hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.hero-inner > *, .pack > *, .about > * { min-width: 0; }
@media (max-width: 1020px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }
.hero-sub, .hero h1 { overflow-wrap: anywhere; }

/* Large monitors (2K / 4K): use more of the screen */
@media (min-width: 1800px) {
  :root { --container: 1520px; --header-h: 76px; }
  body { font-size: 16px; }
  .nav-link { font-size: 15px; padding: 9px 12px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
}
@media (min-width: 2400px) {
  :root { --container: 1800px; }
  body { font-size: 17px; }
}

/* ============================================================
   Brand colour presets (Admin → Settings → Brand colour)
   ============================================================ */
:root[data-accent="crimson"] {
  --bg: #050507; --bg-2: #0a0a0e; --surface: #111116; --surface-2: #1a1a2160; --card: #0e0e13; --card-hover: #15151c;
  --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.15);
  --accent: #ff2e63; --accent-2: #ff4f7b; --accent-3: #ff8a65;
  --accent-soft: rgba(255, 46, 99, 0.12); --accent-ring: rgba(255, 46, 99, 0.38);
  --shadow-accent: 0 10px 30px rgba(255, 46, 99, 0.28);
}
:root[data-accent="orange"] { /* default palette defined at the top */ }
:root[data-accent="blue"] {
  --accent: #3b82f6; --accent-2: #60a5fa; --accent-3: #22d3ee; --accent-soft: rgba(59,130,246,.13); --accent-ring: rgba(59,130,246,.38); --shadow-accent: 0 10px 30px rgba(59,130,246,.28);
}
:root[data-accent="green"] {
  --accent: #10b981; --accent-2: #34d399; --accent-3: #a3e635; --accent-soft: rgba(16,185,129,.13); --accent-ring: rgba(16,185,129,.38); --shadow-accent: 0 10px 30px rgba(16,185,129,.26);
}
:root[data-accent="purple"] {
  --accent: #8b5cf6; --accent-2: #a78bfa; --accent-3: #f472b6; --accent-soft: rgba(139,92,246,.14); --accent-ring: rgba(139,92,246,.4); --shadow-accent: 0 10px 30px rgba(139,92,246,.3);
}
[data-theme="light"][data-accent] { --bg: #f6f7fb; --bg-2: #ffffff; --surface: #ffffff; --card: #ffffff; --card-hover: #fbfbfd; --border: rgba(15,23,42,.08); --border-strong: rgba(15,23,42,.16); }

/* ============================================================
   Hover & mouse effects (storefront)
   ============================================================ */
/* Top menu: text turns accent + underline grows from the left (like qbcore.store) */
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 9px; bottom: 2px; height: 2px; width: calc(100% - 18px);
  border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.nav-link:hover, .nav-link.active { background: transparent; }
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after, .nav-item:focus-within > .nav-link::after { transform: scaleX(1); }
.nav-link:hover .caret { transform: rotate(180deg); opacity: 1; }
.nav-link .caret { transition: transform .25s, opacity .2s; }

/* Dropdown + footer links: dot lights up and the text slides a little */
.nav-drop a { transition: background .2s, color .2s, padding-left .2s; }
.nav-drop a:hover { padding-left: 14px; }
.footer ul a { display: inline-flex; align-items: center; gap: 0; transition: color .2s, gap .2s; }
.footer ul a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .35; margin-right: 8px; transition: opacity .2s, transform .2s; }
.footer ul a:hover { gap: 3px; }
.footer ul a:hover::before { opacity: 1; transform: scale(1.3); box-shadow: 0 0 8px var(--accent); }

/* Buttons: light sweep on hover + click ripple */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg);
}
.btn-primary:hover::before { animation: fx-shine .75s ease; }
@keyframes fx-shine { to { left: 130%; } }
.fx-ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .25; transform: scale(0); animation: fx-ripple .6s ease-out forwards; }
@keyframes fx-ripple { to { transform: scale(1); opacity: 0; } }

/* Cards: soft light + glowing border that follow the mouse */
.product-card, .rv-card, .seller-card, .trust-item, .hero-cat { position: relative; }
.fx-spot { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%); }
.fx-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  padding: 1.5px; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
:hover > .fx-spot { opacity: 1; }
:root:not([data-theme="light"]) .fx-spot { mix-blend-mode: screen; }

/* Page: a soft glow that trails the cursor behind the content */
.fx-halo { position: fixed; left: 0; top: 0; z-index: -1; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%); opacity: 0; transition: opacity .5s; will-change: transform; }
.fx-halo.on { opacity: 1; }
[data-theme="light"] .fx-halo { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%); }

@media (hover: none), (pointer: coarse) { .fx-spot, .fx-halo { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .fx-halo, .fx-ripple { display: none; }
  .btn-primary:hover::before { animation: none; }
  .nav-link::after { transition: none; }
}
