/* ==========================================================================
   ADB2BMART design system
   --------------------------------------------------------------------------
   Tokens are emitted from the active theme row (see layouts/app.php), so every
   colour here is a fallback only. Changing the theme in admin restyles the site.
   No framework: 12 columns of utility-lite grid plus components.
   ========================================================================== */

:root {
  --primary: #0B5FFF;
  --secondary: #0A2540;
  --accent: #FF8A00;
  --bg: #FFFFFF;
  --surface: #F6F8FB;
  --text: #11202E;
  --muted: #5B6B7B;
  --border: #E3E9F0;
  --header: #FFFFFF;
  --footer: #0A2540;
  --btn: #0B5FFF;
  --btn-text: #FFFFFF;
  --grad-from: #0B5FFF;
  --grad-to: #00C2A8;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --shadow-1: 0 1px 2px rgba(16, 32, 48, .06), 0 2px 8px rgba(16, 32, 48, .05);
  --shadow-2: 0 2px 4px rgba(16, 32, 48, .06), 0 8px 24px rgba(16, 32, 48, .08);
  --shadow-3: 0 4px 8px rgba(16, 32, 48, .07), 0 18px 44px rgba(16, 32, 48, .13);

  --space: 16px;
  --container: 1280px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-size: 15px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.22; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.tiny { font-size: .78rem; }
.small { font-size: .86rem; }
.mono { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-main { display: flex; align-items: center; gap: 20px; padding: 14px 0; }

.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .9rem; letter-spacing: -.03em;
  box-shadow: 0 6px 16px rgba(11, 95, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-size: 1.06rem; letter-spacing: -.02em; }
.logo-text span { font-size: .66rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.search { flex: 1 1 auto; position: relative; max-width: 620px; }
.search input {
  width: 100%; height: 44px; padding: 0 46px 0 16px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: .94rem;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.search input:focus {
  outline: none; background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, .12);
}
.search button {
  position: absolute; right: 5px; top: 5px; width: 34px; height: 34px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--btn); color: var(--btn-text);
  display: grid; place-items: center; font-size: .95rem;
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: .92rem; white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, background .16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%), var(--btn);
  color: var(--btn-text);
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 6px 18px rgba(11, 95, 255, .26);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 26px rgba(11, 95, 255, .34); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .84rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

.nav-strip { border-top: 1px solid var(--border); background: #fff; }
.nav-strip ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.nav-strip a {
  display: block; padding: 11px 0; font-size: .88rem; font-weight: 550; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav-strip a:hover { color: var(--text); border-bottom-color: var(--primary); }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(0, 194, 168, .18) 0%, rgba(0, 194, 168, 0) 55%),
    radial-gradient(100% 100% at 0% 100%, rgba(11, 95, 255, .10) 0%, rgba(11, 95, 255, 0) 60%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center; padding: 58px 0 62px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(11, 95, 255, .08); color: var(--primary);
  font-size: .78rem; font-weight: 650; letter-spacing: .02em;
  border: 1px solid rgba(11, 95, 255, .16);
}
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.35rem); letter-spacing: -.03em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--grad-from), var(--grad-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.05rem; color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-size: 1.42rem; letter-spacing: -.02em; }
.hero-stats div span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

/* 3D floating product stage — the signature visual */
.stage { position: relative; height: 380px; perspective: 1100px; }
.stage-card {
  position: absolute; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  transform-style: preserve-3d;
}
.stage-main {
  inset: 22px 12px 46px 34px;
  transform: rotateY(-9deg) rotateX(5deg) translateZ(30px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px;
}
.stage-main .thumb {
  flex: 1; border-radius: var(--r-md); min-height: 150px;
  background:
    radial-gradient(70% 70% at 30% 25%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 60%),
    linear-gradient(145deg, #EEF3FF, #DCE8FF 55%, #CBDBFF);
  position: relative; overflow: hidden;
}
.stage-main .thumb::after {
  content: ''; position: absolute; inset: auto -10% -30% -10%; height: 70%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(11, 95, 255, .18), transparent 70%);
}
.stage-chip {
  position: absolute; padding: 8px 12px; border-radius: 10px;
  background: #fff; box-shadow: var(--shadow-2); font-size: .78rem; font-weight: 650;
  display: flex; align-items: center; gap: 7px;
}
.stage-chip.c1 { top: 2px; right: -8px; color: var(--primary); transform: translateZ(60px); }
.stage-chip.c2 { bottom: 8px; left: -14px; color: #0a8f5b; transform: translateZ(50px); }
.stage-chip.c3 { bottom: 84px; right: -18px; color: var(--accent); transform: translateZ(40px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ------------------------------------------------------------------ layout */
.section { padding: 46px 0; }
.section.alt {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(11,95,255,.04), transparent 60%),
    var(--surface);
  border-block: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 22px;
}
.section-head > div > h2 { position: relative; padding-top: 12px; }
.section-head > div > h2::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 34px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--grad-from), var(--grad-to));
}
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.section-link { font-size: .88rem; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pcard {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #fff, #feffff);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,32,48,.05), 0 4px 14px rgba(16,32,48,.05);
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s;
}
.pcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(16,32,48,.06), 0 14px 30px rgba(16,32,48,.10);
  border-color: rgba(11, 95, 255, .26);
}

/* Square media keeps every card the same height, and at ~160px wide it stops
   the image dominating the information. */
.pcard-media {
  position: relative; aspect-ratio: 1 / 1;
  background:
    radial-gradient(78% 78% at 30% 18%, #fff, rgba(255,255,255,0) 62%),
    linear-gradient(155deg, #F2F6FD, #E4EDFB);
  display: grid; place-items: center; overflow: hidden;
}
.pcard-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pcard-glyph {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.05em;
  color: rgba(11, 95, 255, .26); text-transform: uppercase; user-select: none;
}
/* Exactly one badge is allowed on the image. Nothing else may be positioned here. */
.pcard-flag {
  position: absolute; top: 7px; left: 7px;
  padding: 2px 6px; border-radius: 5px;
  background: var(--accent); color: #241200;
  font-size: .6rem; font-weight: 800; letter-spacing: .01em; line-height: 1.5;
  box-shadow: 0 1px 3px rgba(120, 70, 0, .18);
}

.pcard-body {
  padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 3px; flex: 1;
}
.pcard-brand {
  font-size: .6rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--primary); font-weight: 750;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcard-title {
  font-size: .82rem; font-weight: 600; line-height: 1.3; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.pcard-title a:hover { color: var(--primary); }
.pcard-prices {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  margin-top: auto; padding-top: 2px;
}
.price { font-size: 1rem; font-weight: 800; letter-spacing: -.03em; }
.price-was { font-size: .7rem; color: var(--muted); text-decoration: line-through; }
.price-off { font-size: .68rem; font-weight: 750; color: #0a8f5b; }

.pcard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  flex-wrap: nowrap; padding-top: 6px; margin-top: 5px;
  border-top: 1px dashed var(--border);
}
.pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 5px; background: var(--surface);
  border: 1px solid var(--border); font-size: .62rem; font-weight: 650; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Availability is a word with a dot, not a badge competing with the price. */
.stock {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .62rem; font-weight: 750; white-space: nowrap;
}
.stock .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.stock.in { color: #0a8f5b; }
.stock.out { color: #98a6b5; }

/* -------------------------------------------------------------- categories */
.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  padding: 18px 10px; border-radius: var(--r-md); text-align: center;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-1); transition: transform .16s, box-shadow .2s, border-color .2s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: rgba(11,95,255,.3); }
.cat-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.15rem; font-weight: 800; color: var(--primary);
  background: linear-gradient(150deg, rgba(11,95,255,.10), rgba(0,194,168,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.cat-tile b { font-size: .8rem; font-weight: 650; line-height: 1.25; }
.cat-tile span { font-size: .68rem; color: var(--muted); }

/* ------------------------------------------------------------------ brands */
.brand-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.brand-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-1);
  transition: transform .16s, box-shadow .2s;
}
.brand-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.brand-chip b { font-size: .9rem; }
.brand-chip span { font-size: .7rem; color: var(--muted); }

/* ------------------------------------------------------------------- trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: var(--r-md); background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-1);
}
.trust-icon {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(11,95,255,.10), rgba(0,194,168,.14));
  color: var(--primary); font-size: 1rem;
}
.trust-item b { display: block; font-size: .86rem; }
.trust-item span { font-size: .76rem; color: var(--muted); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.data th {
  text-align: left; padding: 10px 12px; background: var(--surface);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; white-space: nowrap;
  border-bottom: 1px solid var(--border); position: sticky; top: 0;
}
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(11, 95, 255, .03); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.tag-ok { background: rgba(10, 143, 91, .10); color: #0a8f5b; }
.tag-warn { background: rgba(255, 138, 0, .13); color: #a35a00; }
.tag-bad { background: rgba(210, 45, 60, .10); color: #c02a3c; }
.tag-info { background: rgba(11, 95, 255, .10); color: var(--primary); }
.tag-mute { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

/* ------------------------------------------------------------------- forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 650; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: #fff; font: inherit; font-size: .92rem; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 110px; padding: 11px 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,95,255,.12);
}
.field .hint { font-size: .74rem; color: var(--muted); margin-top: 5px; }
.field .err { font-size: .76rem; color: #c02a3c; margin-top: 5px; font-weight: 600; }
.field.invalid input { border-color: #c02a3c; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { margin: 0; min-width: 140px; flex: 1 1 140px; }
.filters .field label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.alert {
  padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 16px;
  font-size: .86rem; font-weight: 550; border: 1px solid transparent;
}
.alert-ok { background: rgba(10,143,91,.08); color: #0a7a4f; border-color: rgba(10,143,91,.2); }
.alert-bad { background: rgba(192,42,60,.07); color: #a82334; border-color: rgba(192,42,60,.2); }
.alert-info { background: rgba(11,95,255,.06); color: #0b4bc4; border-color: rgba(11,95,255,.18); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--footer); color: #cfd9e4; padding: 46px 0 26px; margin-top: 50px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.site-footer a { color: #cfd9e4; font-size: .86rem; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .78rem; color: #93a4b7;
}

/* ------------------------------------------------------------------ admin */
.admin-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.sidebar { background: var(--secondary); color: #c6d3e2; padding: 18px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 0 18px 18px; display: flex; align-items: center; gap: 10px; }
.sidebar .brand b { color: #fff; font-size: .96rem; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px;
  font-size: .86rem; color: #c6d3e2; border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar nav a.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--accent); }
.sidebar .group { padding: 16px 18px 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #7f93aa; }

.admin-main { background: var(--surface); min-height: 100vh; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 26px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.admin-body { padding: 24px 26px 60px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi {
  background: linear-gradient(180deg, #ffffff, #fcfdff);
  border: 1px solid var(--border); border-radius: 13px;
  padding: 15px 16px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(16,32,48,.04), 0 5px 14px rgba(16,32,48,.05);
  transition: transform .16s ease, box-shadow .2s ease;
}
.kpi:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(16,32,48,.09); }
.kpi span { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.kpi b { display: block; font-size: 1.62rem; letter-spacing: -.03em; margin-top: 5px; line-height: 1.1; }
.kpi em { font-style: normal; font-size: .74rem; color: var(--muted); }

.panel {
  background: linear-gradient(180deg, #ffffff, #fdfefe);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(16,32,48,.04), 0 6px 18px rgba(16,32,48,.055);
  margin-bottom: 18px; overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.panel-head h3 { margin: 0; font-size: .95rem; }
.panel-body { padding: 16px; }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 18px 0; }
.pagination a, .pagination span {
  min-width: 34px; height: 34px; padding: 0 10px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-sm); font-size: .84rem; font-weight: 600;
  background: #fff;
}
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: var(--border); }

/* ------------------------------------------------------------------ misc */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); padding: 16px 0; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { opacity: .5; }
.empty {
  padding: 46px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--border); border-radius: var(--r-md); background: #fff;
}
/* --------------------------------------------------------------- auth screens */
.auth-shell {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; padding: 28px 18px 44px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 60% at 12% -5%, rgba(11,95,255,.16), transparent 62%),
    radial-gradient(60% 55% at 92% 105%, rgba(0,194,168,.18), transparent 60%),
    linear-gradient(180deg, #F7FAFF, #EEF3FA 70%, #E9EFF7);
}
/* Soft depth shapes behind the card — the "3D" cue without an image asset. */
.auth-shell::before,
.auth-shell::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(2px);
}
.auth-shell::before {
  width: 320px; height: 320px; top: -110px; right: -80px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(11,95,255,.16) 55%, transparent 70%);
}
.auth-shell::after {
  width: 280px; height: 280px; bottom: -120px; left: -90px;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,.85), rgba(0,194,168,.18) 55%, transparent 72%);
}

.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 418px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(10,37,64,.06),
    0 14px 34px rgba(10,37,64,.10),
    0 34px 70px rgba(10,37,64,.10);
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth-title { font-size: 1.32rem; margin: 0 0 4px; letter-spacing: -.02em; }
.auth-sub { font-size: .855rem; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 18px;
  background: var(--surface); border-radius: 12px;
  border: 1px solid var(--border);
}
.auth-tab {
  text-align: center; padding: 9px 6px; border-radius: 9px;
  font-size: .85rem; font-weight: 650; color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.auth-tab.active {
  background: #fff; color: var(--text);
  box-shadow: 0 1px 3px rgba(16,32,48,.10), inset 0 1px 0 #fff;
}
.auth-tab:hover:not(.active) { color: var(--text); }

.auth-card .field input { height: 46px; }
.auth-alt { font-size: .8rem; text-align: center; color: var(--muted); margin: 14px 0 0; }
.auth-alt a { color: var(--primary); font-weight: 650; }
.auth-links {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: .8rem;
}
.auth-links a { color: var(--primary); font-weight: 650; }
.auth-note { font-size: .69rem; color: var(--muted); text-align: center; margin: 12px 0 0; line-height: 1.5; }

.otp-input {
  font-size: 1.35rem; font-weight: 800; letter-spacing: .42em;
  text-align: center; height: 54px !important; text-indent: .42em;
}
.dev-code {
  font-size: 1.5rem; font-weight: 800; letter-spacing: .3em;
  margin-top: 6px; color: var(--text);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-strip { grid-template-columns: repeat(4, 1fr); }
  .brand-row { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 40px; }
  .stage { height: 300px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid-3, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --font-size: 14px; }
  .container { padding-inline: 14px; }
  .header-main { flex-wrap: wrap; gap: 12px; padding: 10px 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 40px; font-size: .88rem; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo-text b { font-size: .98rem; }
  .logo-text span { display: none; }
  .nav-strip ul { gap: 18px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .section { padding: 30px 0; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .cat-tile { padding: 13px 7px; gap: 7px; }
  .cat-icon { width: 38px; height: 38px; border-radius: 11px; font-size: .98rem; }
  .cat-tile b { font-size: .73rem; }
  .brand-row { grid-template-columns: repeat(2, 1fr); }
  .pcard-body { padding: 9px 9px 11px; }

  /* Auth becomes a full-height app screen rather than a small card floating in
     whitespace — that was the worst screen on a phone. */
  .auth-shell { padding: 0; place-items: stretch; }
  .auth-card {
    max-width: 100%; min-height: 100vh; min-height: 100svh;
    border-radius: 0; border: 0; box-shadow: none;
    padding: 22px 18px 34px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .auth-shell::before, .auth-shell::after { display: none; }
  .auth-title { font-size: 1.22rem; }
  .auth-card .field input { height: 48px; font-size: 1rem; }
  .trust { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .hero-stats div b { font-size: 1.15rem; }
  .admin-body { padding: 16px 14px 50px; }
  .admin-top { padding: 12px 14px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 1.3rem; }
  table.data { font-size: .78rem; }
  table.data th, table.data td { padding: 8px 9px; }
}

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

/* ------------------------------------------------------- narrow phone tier */
/* 360-380px Android devices are the real target market. Tighten the card one
   more step rather than letting text truncate mid-word. */
@media (max-width: 380px) {
  .container { padding-inline: 12px; }
  .pcard-body { padding: 8px 8px 10px; }
  .pcard-title { font-size: .77rem; min-height: 2.7em; }
  .pcard-brand { font-size: .56rem; letter-spacing: .06em; }
  .price { font-size: .92rem; }
  .price-was { font-size: .64rem; }
  .pcard-foot { gap: 4px; padding-top: 5px; }
  .pill { font-size: .56rem; padding: 2px 4px; }
  .stock { font-size: .56rem; }
  .pcard-flag { font-size: .54rem; padding: 2px 5px; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tile b { font-size: .69rem; }
  .brand-row { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.72rem; }
  .hero-stats { gap: 14px; }
  .hero-stats div b { font-size: 1.02rem; }
  .hero-stats div span { font-size: .62rem; }
}

/* ------------------------------------------------------------ header cart */
.cart-link {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); transition: border-color .15s, background .15s, transform .12s;
}
.cart-link:hover { background: #fff; border-color: rgba(11,95,255,.35); transform: translateY(-1px); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--accent); color: #241200;
  border-radius: 999px; font-size: .66rem; font-weight: 800;
  box-shadow: 0 1px 4px rgba(120,70,0,.28);
}
