/* ============================================================
   DUSKYR — Lemni-style override layer (loaded AFTER theme.css)
   Inter, near-black canvas, electric-blue accent, tighter rhythm.
   ============================================================ */

:root {
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* electric-blue, readable on dark */
  --accent: #2c5fff;
  --accent-fg: #ffffff;

  /* tighter radii (Lemni is crisp, not pillowy) */
  --r-xs: 5px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 13px;
  --r-xl: 18px;
  --r-btn: 9px;
  --r-card: 12px;

  /* less air */
  --pad-section: 64px;
  --gap-grid: 16px;
}

/* Softer LIGHT theme — off-white/grey, not blinding */
:root {
  --canvas: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f1f4;
  --sunken: #eceef2;
  --line: #e3e5ea;
  --line-soft: #eceef1;
  --line-strong: #d3d6dd;
  --ink: #2a2d36;
  --ink-strong: #14161c;
  --muted: #5e636e;
  --subtle: #868c98;
  --faint: #aab0bb;
  --accent-soft: color-mix(in oklab, var(--accent) 12%, #ffffff);
  --accent-line: color-mix(in oklab, var(--accent) 28%, var(--line));
}

[data-theme="dark"] {
  --canvas: #000000;
  --surface: #0b0b0e;
  --surface-2: #101014;
  --sunken: #08080a;
  --line: #1c1c22;
  --line-soft: #161619;
  --line-strong: #2a2a32;
  --ink: #ededf2;
  --ink-strong: #ffffff;
  --muted: #9a9aa6;
  --subtle: #6b6b76;
  --faint: #45454e;
  --accent-soft: color-mix(in oklab, var(--accent) 16%, var(--surface));
  --accent-line: color-mix(in oklab, var(--accent) 36%, var(--line));
  --inv-bg: #0b0b10;
  --inv-text: #ffffff;
  --inv-muted: #9a9aa6;
}

/* Headings a touch tighter, Inter weight */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; }

/* Buttons: crisp, blue primary */
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in oklab, var(--accent), #fff 10%); }
.btn { border-radius: var(--r-btn); font-weight: 550; }

/* Cards: flatter, hairline border */
.card { border-radius: var(--r-card); }

/* grad-text → solid blue gradient */
.grad-text {
  background: linear-gradient(100deg, #fff, var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.eyebrow { color: var(--accent); }

/* ===== App layout shell with left sidebar ===== */
.du-shell { display: flex; min-height: 100vh; background: var(--canvas); }
.du-side {
  width: 232px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 12px;
}
.du-side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.du-side-group { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.du-side-link {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: var(--r-sm); border: 0; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--ink); background: transparent;
  transition: background .15s ease, color .15s ease;
}
.du-side-link:hover { background: var(--sunken); }
.du-side-link[data-on="true"] { background: var(--accent-soft); color: var(--accent); }
.du-side-link .ico { display: inline-flex; color: inherit; }

.du-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.du-topbar {
  height: 60px; display: flex; align-items: center; gap: 14px;
  padding: 0 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--canvas) 85%, transparent);
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.du-content { padding: 0; }
.du-wrap { max-width: 1180px; margin: 0 auto; padding: 24px; width: 100%; }

/* mobile: hide sidebar, show as drawer */
.du-burger { display: none; }
@media (max-width: 900px) {
  .du-side { display: none; }
  .du-burger { display: inline-flex; }
  .du-side.du-side-drawer { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 700; box-shadow: var(--shadow-lg); }
  .du-wrap { padding: 16px; }
}

/* ===== Compact product card (neylstore-like) ===== */
.du-pcard {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.du-pcard:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.du-pcard-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0d12; }
.du-pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.du-pcard-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.du-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; backdrop-filter: blur(6px); }
.du-chip-dark { background: rgba(0,0,0,.55); color: #fff; }
.du-chip-hot { background: #ff8a3d; color: #1a0e02; }
.du-chip-new { background: var(--accent); color: #fff; }
.du-pcard-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.du-pcard-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.du-pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.du-price { font-weight: 700; font-size: 15px; color: var(--ink-strong); }
.du-price-old { font-size: 12px; color: var(--faint); text-decoration: line-through; margin-left: 5px; }
.du-sold { font-size: 11px; color: var(--subtle); display: inline-flex; align-items: center; gap: 4px; }

/* ===== Banner ===== */
.du-banner {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid var(--line); min-height: 200px; display: flex; align-items: center;
  padding: 32px; background: linear-gradient(120deg, #14142a, #0b0b10);
}

/* ===== Stat row ===== */
.du-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.du-stat { background: var(--surface); padding: 18px 20px; }
.du-stat-v { font-size: 26px; font-weight: 700; color: var(--ink-strong); letter-spacing: -.02em; }
.du-stat-l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 720px) { .du-stats { grid-template-columns: repeat(2, 1fr); } }

/* chips row for category filter */
.du-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.du-fchip { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500; cursor: pointer; border: 1px solid var(--line); background: var(--sunken); color: var(--muted); transition: all .15s ease; }
.du-fchip[data-on="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.du-fchip:hover[data-on="false"] { border-color: var(--line-strong); color: var(--ink); }

/* small icon button used in topbar/cards */
.icon-btn-sm { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:8px; background:var(--sunken); border:0; cursor:pointer; color:var(--ink); transition:background .15s ease; }
.icon-btn-sm:hover { background:var(--line); }

/* topbar search reuse from theme but ensure flex */
.du-topbar .search { flex:1; }
.du-topbar .search input { width:100%; padding:9px 14px 9px 38px; border-radius:999px; border:1px solid var(--line); background:var(--sunken); color:var(--ink); font-size:13.5px; outline:none; transition:border-color .15s ease; }
.du-topbar .search input:focus { border-color:var(--accent-line); }
.du-topbar .search { position:relative; }
.du-topbar .search-icon { position:absolute; left:13px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
