/* =========================================================
   TopMotherboard — global styles
   Industrial / technical identity: ink + signal-orange + verified-green.
   Board-number is the hero. Mono for tech bits.
   ========================================================= */

:root {
  --ink: #0a0e14;
  --navy: #0c1622;
  --navy-2: #15212f;
  --panel: #0f1822;
  --bg: #f5f6f8;
  --surface: #eef1f5;
  --surface-2: #e2e7ee;
  --accent: #ff6a1a;
  --accent-ink: #1a1206;
  --accent-2: #1fb979;
  --accent-soft: rgba(255, 106, 26, .12);
  --muted: #586474;
  --muted-2: #8b95a3;
  --line: #e5e9ee;
  --line-strong: #cbd3dc;
  --ok: #15905f;
  --warn: #b45309;
  --danger: #d23b3b;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-btn: 9px;
  --shadow: 0 1px 2px rgba(10, 14, 20, .05), 0 6px 20px rgba(10, 14, 20, .06);
  --shadow-lg: 0 16px 44px rgba(10, 14, 20, .12);
  --maxw: 1180px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.eyebrow { color: var(--accent); font-family: var(--mono); font-weight: 600; letter-spacing: 1.5px; font-size: 12px; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-btn); font-weight: 600;
  font-size: 15px; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-body);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn-accent:hover { background: #ff7d36; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-whatsapp { background: #20a85a; color: #fff; }
.btn-whatsapp:hover { background: #1a8e4c; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #9fb0c2; font-size: 13px; border-bottom: 1px solid #18222e; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #9fb0c2; }
.topbar a:hover { color: #fff; }

/* ---------- Nav ---------- */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 20px; letter-spacing: -.3px; color: var(--navy); }
.brand .logo {
  width: 42px; height: 42px; border-radius: 11px;
  background: transparent; color: #fff;
  display: grid; place-items: center; flex: none;
}
.brand .logo svg { width: 38px; height: 38px; display: block; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .5px; font-family: var(--font-body); }
.brand .bn-top { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--navy); position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
/* menu icons — muted by default, accent on hover / current page */
.nav-links a .nav-ico { width: 16px; height: 16px; flex: none; color: var(--muted-2); transition: color .15s ease; }
.nav-links a:hover .nav-ico, .nav-links a.active .nav-ico { color: var(--accent); }
/* NOTE: do NOT hide "Home" again. It was briefly hidden on desktop on the theory that
   the logo is enough — real visitors could not find their way back to the homepage. */
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; color: var(--navy);
}
.cart-pill:hover { border-color: var(--accent); color: var(--accent); }
.cart-pill svg { width: 19px; height: 19px; display: block; flex: none; }
.cart-count {
  background: var(--accent); color: var(--accent-ink); font-size: 12px; min-width: 20px; height: 20px; font-weight: 700;
  border-radius: 999px; display: inline-grid; place-items: center; padding: 0 5px;
}
.burger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; color: var(--navy); }
.burger:hover, .burger.is-open { border-color: var(--accent); color: var(--accent); }
.burger svg { width: 20px; height: 20px; display: block; }

/* ---------- header search (board-number first) ---------- */
.nav-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.nav-search:focus-within { border-color: var(--accent); background: #fff; }
.nav-search .ns-icon { width: 17px; height: 17px; flex: none; color: var(--muted); }
.nav-search input { border: 0; background: transparent; outline: none; font-family: var(--font-body); font-size: 14px; color: var(--navy); width: 150px; }
/* the cart shows as icon + count only — the word "Cart" was just extra width */
.cart-label { display: none; }
.nav-search input::placeholder { color: var(--muted-2); }
/* The compact menu carries its own search box, account row and sign-out row.
   NOTE: the anchors need the ".nav-links a" prefix — a bare ".nav-account-m"
   (0,1,0) loses to ".nav-links a { display:inline-flex }" (0,1,1) and would leak
   a duplicate "Sign in" into the desktop bar. */
.nav-search-m { display: none; }
.nav-links a.nav-account-m, .nav-links a.nav-signout-m { display: none; }
.topbar-contact { display: flex; align-items: center; gap: 8px; }
.tb-sep { opacity: .45; }

/* ---------- signed-in account dropdown (My account / Sign out) ---------- */
.nav-acct { position: relative; }
.nav-acct-menu {
  display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 70;
  min-width: 178px; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.nav-acct-menu.open { display: block; }
.nav-acct-menu a {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--navy);
}
.nav-acct-menu a .nav-ico { width: 16px; height: 16px; flex: none; color: var(--muted-2); }
.nav-acct-menu a:hover { background: var(--surface); color: var(--accent); }
.nav-acct-menu a:hover .nav-ico { color: var(--accent); }
.nav-acct-menu a[data-signout], .nav-acct-menu a[data-signout] .nav-ico { color: var(--danger); }
.nav-acct-menu a[data-signout]:hover { background: #fef2f2; }
/* caret hint that the name opens a menu */
body.signed-in #account-link::after { content: "▾"; font-size: 9px; margin-left: 5px; opacity: .55; vertical-align: 1px; }

/* ---------- Hero (terminal) ---------- */
.hero { background: linear-gradient(180deg, #ffffff 0%, #eef3f9 100%); color: var(--navy); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(12, 22, 34, .045) 1px, transparent 0);
  background-size: 26px 26px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, .10), transparent 62%); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; gap: 46px; align-items: center; padding: 70px 20px 76px; }
.hero h1 { font-size: 46px; line-height: 1.06; letter-spacing: -.8px; margin: 14px 0 16px; color: var(--navy); }
.hero p.lead { font-size: 17px; color: var(--muted); margin: 0 0 26px; max-width: 520px; }

.lookup { display: flex; gap: 10px; }
.lookup input {
  flex: 1; background: #fff; border: 1px solid var(--line-strong); color: var(--navy);
  border-radius: 11px; padding: 15px 16px; font-family: var(--mono); font-size: 16px; min-width: 0;
}
.lookup input::placeholder { color: var(--muted-2); }
.lookup input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 26, .2); }
.chip-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.chip-label { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); }
.chip {
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--navy);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; transition: all .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(255, 106, 26, .08); }
.kpi { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.kpi div { display: flex; flex-direction: column; }
.kpi strong { font-family: var(--font-display); font-size: 24px; color: var(--navy); }
.kpi span { font-size: 13px; color: var(--muted); }

.hero-art { display: grid; place-items: center; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 20px 50px rgba(255, 106, 26, .18)); }

/* ---------- Board-number marquee (signature) ---------- */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; border-top: 1px solid #e25a10; border-bottom: 1px solid #e25a10; }
.marquee-row { display: flex; white-space: nowrap; width: max-content; animation: scrollx 30s linear infinite; padding: 11px 0; font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .5px; }
.marquee-row span { padding: 0 26px; position: relative; }
.marquee-row span::after { content: "◆"; position: absolute; right: -5px; opacity: .55; font-size: 10px; top: 2px; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section.block { padding: 66px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--accent); }
.section-head h2 { font-size: 32px; letter-spacing: -.5px; margin: 10px 0 8px; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Value tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.tile .tnum { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 1.5px; }
.tile h3 { margin: 10px 0 8px; font-size: 19px; color: var(--navy); }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.verify-line { margin-top: 26px; text-align: center; font-family: var(--mono); font-size: 13.5px; color: var(--muted); letter-spacing: .3px; }
.verify-line b { color: var(--navy); }

/* ---------- Brand strip ---------- */
.brands { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands .brand-chip { font-weight: 800; font-size: 22px; color: var(--muted-2); letter-spacing: .5px; }
.brands a.brand-chip { transition: color .15s ease; }
.brands a.brand-chip:hover { color: var(--accent); }
.brandstrip { background: #fff; border-bottom: 1px solid var(--line); }
.brandstrip .bs-label {
  display: block; text-align: center; padding-top: 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted);
}
.brandstrip .brands { border: 0; padding: 10px 0 26px; gap: 26px; }

/* ---------- Category cards ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: block; transition: box-shadow .15s ease, transform .15s ease;
}
.cat:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cat .cat-body { padding: 20px; }
.cat h3 { margin: 0 0 6px; color: var(--navy); font-size: 19px; }
.cat p { margin: 0; color: var(--muted); font-size: 14px; }
.cat .cat-foot { padding: 0 20px 18px; color: var(--accent); font-weight: 700; font-size: 14px; }

/* ---------- Product grid / cards ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.toolbar .search { flex: 1; min-width: 220px; position: relative; display: flex; }
.toolbar .search input {
  flex: 1; width: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--line-strong); border-right: none; border-radius: 999px 0 0 999px; font-size: 15px; font-family: var(--font-body);
}
.toolbar .search-btn {
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-family: var(--font-body);
  padding: 0 24px; border-radius: 0 999px 999px 0; cursor: pointer; font-size: 15px; white-space: nowrap;
}
.toolbar .search-btn:hover { background: #ff7d36; }
.toolbar .search::before { content: "⌕"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 18px; }
select.filter {
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-family: var(--font-body); background: #fff; color: var(--navy); font-weight: 600;
}
/* ---------- Catalog header (light, consistent with the rest of the site) ---------- */
.cat-head { background: #fff; color: var(--navy); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.cat-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(12, 22, 34, .045) 1px, transparent 0);
  background-size: 26px 26px;
}
.cat-head::after {
  content: ""; position: absolute; right: -120px; top: -170px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, .10), transparent 62%); pointer-events: none;
}
.cat-head .container { position: relative; z-index: 1; padding: 42px 20px 38px; }
.cat-head .eyebrow { color: var(--accent); }
.cat-head h1 { font-size: 34px; letter-spacing: -.6px; margin: 10px 0 10px; color: var(--navy); }
.cat-head p.lead { color: var(--muted); font-size: 16px; margin: 0 0 22px; max-width: 660px; }
.cat-head .toolbar { margin-bottom: 0; }
.cat-head .toolbar .search { flex: 1 1 340px; }
.cat-head .toolbar .search input {
  background: #fff; border: 1px solid var(--line-strong); border-right: none; color: var(--navy); font-family: var(--mono);
}
.cat-head .toolbar .search input::placeholder { color: var(--muted-2); }
.cat-head .toolbar .search input:focus { outline: none; border-color: var(--accent); }
.cat-head .toolbar .search::before { color: var(--muted-2); }
.cat-head .toolbar .search-btn { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.cat-head .toolbar .search-btn:hover { background: #ff7d36; }
.cat-head select.filter { background: #fff; border-color: var(--line-strong); color: var(--navy); }
.cat-head select.filter option { background: #fff; color: var(--navy); }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-strong); }
.card .thumb { background: linear-gradient(160deg, #101b2a, #0c1420); aspect-ratio: 4/3; display: grid; place-items: center; position: relative; overflow: hidden; }
.card .thumb svg { width: 100%; height: 100%; }
.card .thumb .bn-badge {
  position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 7px; background: rgba(10, 14, 20, .72); color: var(--accent); border: 1px solid rgba(255, 106, 26, .4);
}
.card .thumb .avail { position: absolute; bottom: 12px; right: 12px; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: rgba(31, 185, 121, .92); color: #07261a; }
.cond-badge { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.enc-badge { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .brandline { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--accent); letter-spacing: .4px; text-transform: uppercase; }
.card h3 { margin: 0; font-size: 17px; color: var(--navy); }
.card .meta { font-size: 13px; color: var(--muted); }
.card .meta b { color: var(--ink); font-weight: 600; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
/* Card "View" cue — a light, refined pill (the whole card is already a link) */
.card .foot .view {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px;
  color: var(--navy); cursor: pointer; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.card .foot .view:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 2px 10px rgba(255, 106, 26, .15); }
.card .foot .view .view-ar { transition: transform .15s ease; }
.card .foot .view:hover .view-ar { transform: translateX(3px); }
.card .price { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--navy); }
.card .price small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- breadcrumbs (a visible way back, esp. for search-engine landings) ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; font-size: 14px; }
.crumbs a { color: var(--navy); font-weight: 600; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--line-strong); }
.crumbs .here { color: var(--muted); }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd .gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pd .gallery .g-main { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(160deg, #101b2a, #0c1420); display: grid; place-items: center; cursor: zoom-in; }
.pd .gallery .g-main img.g-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd .gallery .g-main svg { width: 100%; height: 100%; }
.pd .gallery .zoom-btn { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(10, 14, 20, .62); color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.pd .gallery .g-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd .gallery .g-thumb { width: 76px; height: 62px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line); background: #101b2a; cursor: pointer; padding: 0; }
.pd .gallery .g-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd .gallery .g-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 26, .18); }
.pd h1, .pd .pd-title { font-size: 30px; margin: 0 0 6px; color: var(--navy); letter-spacing: -.4px; line-height: 1.15; }
.pd .sub { color: var(--muted); margin: 0 0 16px; }
.pd .price-lg { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--navy); }
.pd .price-lg small { font-size: 14px; color: var(--muted); font-weight: 500; }
.pd .stock-ok { color: var(--ok); font-weight: 700; }
.pd .buy-row { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 42px; border: 0; background: #fff; font-size: 18px; cursor: pointer; color: var(--navy); }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 46px; height: 42px; border: 0; text-align: center; font-size: 16px; font-weight: 700; }
.specs { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs .srow { display: grid; grid-template-columns: 180px 1fr; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs .srow:last-child { border-bottom: 0; }
.specs .skey { color: var(--muted); font-weight: 600; font-family: var(--mono); font-size: 13px; }
.specs .sval { color: var(--ink); }
.specs .sval.enc { color: var(--danger); font-weight: 700; }
.notes-box { background: #fff6ec; border: 1px solid #ffd8b0; border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; font-size: 14px; color: #8a4b16; }
.hl-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hl-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.hl-list li::before { content: "✓"; color: var(--accent-2); font-weight: 800; }
.card .meta.cpu-line { font-weight: 600; color: var(--ink); }
.pd .cpu-line { color: var(--ink); font-weight: 600; }
.pd .stock-out { color: var(--danger); font-weight: 700; }
.variant-pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.vopt { flex: 1 1 150px; text-align: left; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 11px 13px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, box-shadow .15s; }
.vopt:hover { border-color: var(--accent); }
.vopt.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 26, .15); background: #fff7f1; }
.vopt .vtop { font-weight: 700; color: var(--navy); font-size: 14px; }
.vopt .vbot { font-size: 12px; color: var(--muted); }
.enc-inline { color: var(--danger); }

/* ---------- Product photos: card / gallery / thumbnails / lightbox ---------- */
.card .thumb svg { width: 100%; height: 100%; object-fit: contain; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
/* full product title — never truncated */
.card .ptitle { font-size: 15px; line-height: 1.35; margin: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(10, 14, 20, .92); display: none; align-items: center; justify-content: center; z-index: 200; }
.lightbox.open { display: flex; }
.lightbox .lb-img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; display: grid; place-items: center; }
.lightbox .lb-close { top: 20px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0, 0, 0, .4); padding: 6px 14px; border-radius: 999px; }

/* ---------- Cart thumbnails (real photos) ---------- */
.cart-item .ci-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Admin: multi-image editor ---------- */
.irow { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.irow .i_url { flex: 1; }
.irow .i-prev { width: 66px; height: 50px; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--surface); font-size: 11px; color: var(--muted); flex: none; }
.irow .i-prev img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; align-items: center; }
.cart-item .ci-thumb { background: linear-gradient(160deg, #101b2a, #0c1420); border-radius: 10px; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.cart-item .ci-thumb svg { width: 100%; height: 100%; }
.cart-item h4 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.cart-item .ci-meta { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.cart-item .ci-right { text-align: right; }
.cart-item .ci-price { font-weight: 700; color: var(--navy); }
.link-btn { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 13px; font-weight: 600; padding: 4px 0; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.summary h3 { margin: 0 0 14px; color: var(--navy); }
.summary .srow { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; color: var(--muted); }
.summary .srow.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 20px; font-weight: 700; color: var(--navy); }
.summary .srow.total span:last-child { color: var(--navy); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font-body); background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.pay-methods { display: grid; gap: 12px; margin: 8px 0 18px; }
.pay-opt { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.pay-opt input { accent-color: var(--accent); width: 18px; height: 18px; }
.pay-opt .pt { font-weight: 700; color: var(--navy); }
.pay-opt .pd2 { font-size: 13px; color: var(--muted); }
.pay-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.demo-note { background: #fff6ec; border: 1px solid #ffd8b0; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; color: #8a4b16; margin-bottom: 16px; }

/* ---------- About / pages ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { color: var(--navy); font-size: 26px; margin: 30px 0 12px; }
.prose p { color: #334155; font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 10px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.step .num { width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; margin: 0 auto 12px; font-family: var(--font-display); }
.step h4 { margin: 0 0 6px; color: var(--navy); }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font-size: 30px; color: var(--navy); font-family: var(--font-display); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- How-it-works flow (homepage) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.flow .fstep { position: relative; padding: 8px 22px 8px 0; }
.flow .fstep::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent);
}
.flow .fstep::after {
  content: ""; position: absolute; left: 0; top: 30px; height: 2px; width: calc(100% - 22px);
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
}
.flow .fstep:last-child::after { display: none; }
.flow .fstep h4 { margin: 8px 0 6px; color: var(--navy); font-size: 17px; }
.flow .fstep p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: #eef3f9; color: var(--navy); padding: 60px 0; border-top: 1px solid var(--line); }
.cta-band h2 { color: var(--navy); font-size: 30px; margin: 0 0 10px; }
.cta-band p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 22px; }
.cta-band .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 10px;
  background: #20a85a; color: #fff; padding: 13px 18px; border-radius: var(--radius-btn); font-weight: 700; box-shadow: 0 6px 18px rgba(32, 168, 90, .28);
}
.wa-float:hover { background: #1ebe5b; }
.wa-float .dot { width: 9px; height: 9px; border-radius: 999px; background: #d1fae5; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #cbd5e1; padding: 54px 0 28px; margin-top: 0; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer a { color: #cbd5e1; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .brand small { color: #94a3b8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #94a3b8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Account entry (header) ---------- */
/* Border-less by default (only the search field + cart are "boxes" in the header);
   the border/background only appears once a buyer is signed in. */
.account-pill {
  padding: 7px 12px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--navy); background: transparent;
}
.account-pill:hover { color: var(--accent); }
.account-pill.signed-in { background: var(--accent-soft); border-color: var(--accent); color: #a2400b; }

/* ---------- Price gate (prices are for registered buyers) ---------- */
/* The locked price is rendered as a distinct "chip" — a lock icon + a sign-in
   prompt — so it is unmistakably a hidden price, never a real number. */
.price-locked {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .1px;
  color: #a2400b; background: var(--accent-soft);
  border: 1px solid rgba(255, 106, 26, .38);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; line-height: 1;
}
.price-locked .lk-ico { width: 13px; height: 13px; display: block; flex: none; }
.price-locked .lk-txt { display: inline-block; }
.card .price .price-locked { font-size: 13px; }
.vopt .price-locked { font-size: 12px; padding: 3px 8px; }
/* when the chip lands inside a price column, keep it aligned with the /ea note */
.price .price-locked { vertical-align: middle; }
.gate-banner {
  background: #fff6ec; border: 1px solid #ffd8b0; color: #8a4b16;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin-bottom: 14px;
}
.gate-banner a { font-weight: 700; text-decoration: underline; }
/* Home / catalog inline notices also carry the gate banner — style their link + lock. */
[data-gate-note] a { color: var(--accent); font-weight: 700; text-decoration: underline; }
[data-gate-note] svg { vertical-align: -2px; }
.gate-lock {
  background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.gate-lock .gl-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); }
.gate-lock .gl-sub { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.mono-soft { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ---------- Account page ---------- */
.acct-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.acct-signed { max-width: 620px; margin: 0 auto; }
.acct-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.acct-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 22px; }
.acct-card p.hint { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.acct-msg { display: none; border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13.5px; margin-bottom: 14px; }
.acct-msg.err { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #9b1c1c; }
.acct-msg.ok { display: block; background: #effaf3; border: 1px solid #b6e6c9; color: #12653f; }
.phone-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; }
.phone-row select, .phone-row input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font-body); background: #fff;
}
.ok-badge { display: inline-block; background: #effaf3; border: 1px solid #b6e6c9; color: #12653f; font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.acct-rows { margin: 6px 0 20px; }
.acct-user-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.acct-user-row b { color: var(--navy); font-weight: 600; }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.acct-note b { color: var(--navy); }
.acct-note .hl-list { margin-top: 10px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; margin-bottom: 18px; }
.seg-btn { border: 0; background: transparent; font-family: var(--font-body); font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 7px 18px; border-radius: 999px; cursor: pointer; }
.seg-btn.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.seg-btn:hover:not(.active) { color: var(--navy); }
.ok-badge.warn { background: #fff6ec; border-color: #ffd8b0; color: #8a4b16; }
.msku-badge { display: inline-block; background: #eef4ff; border: 1px solid #b9d2ff; color: #1d4ed8; font-weight: 700; font-size: 12.5px; padding: 4px 11px; border-radius: 999px; margin: 8px 0 2px; }
.msku-badge.single { background: #f3f4f6; border-color: #e0e0e0; color: #6b7280; font-weight: 600; }
.sku-mini { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; max-width: 340px; }
.sku-mini .sku-cfg { display: inline-block; margin-right: 10px; white-space: nowrap; }
.recent-flag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 7px; vertical-align: middle; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-btn);
  background: #fff; color: var(--navy); font-weight: 600; font-size: 15px;
}
.oauth-btn:hover { border-color: #b9c3cf; background: #fafbfc; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; }
.or-sep::before, .or-sep::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.acct-wrap-single { grid-template-columns: 1fr; max-width: 560px; }
.acct-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.acct-avatar { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; }
@media (max-width: 860px) { .acct-wrap { grid-template-columns: 1fr; } }

/* ---------- currency picker (injected into the nav) ----------
   The collapsed trigger is deliberately compact — a globe glyph + the
   currency code only (e.g. "USD") — so it never widens the header bar.
   The full "CODE — Country" list lives inside the dropdown panel, which
   keeps the earlier "show the country name so the choice is unambiguous"
   requirement without crowding the nav. The exchange-rate hint is shown in
   the topbar (desktop) and inside this panel's footer, never as a separate
   inline element in the bar. */
.cur-pick { position: relative; display: inline-flex; }
.cur-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--navy);
  padding: 6px 4px; line-height: 1;
}
.cur-trigger:hover { color: var(--accent); }
.cur-trigger .cur-icon { font-size: 14px; line-height: 1; }
.cur-trigger .cur-caret { font-size: 9px; opacity: .6; margin-left: 1px; }
.cur-panel {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 80;
  min-width: 226px; max-height: 340px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px;
}
.cur-panel[hidden] { display: none; }
.cur-optlist { display: flex; flex-direction: column; gap: 2px; }
.cur-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: transparent; text-align: left; cursor: pointer;
  padding: 9px 11px; border-radius: 8px; font-family: var(--font-body);
}
.cur-option:hover { background: var(--surface); }
.cur-option.selected { background: var(--accent-soft); }
.cur-opt-code { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--navy); min-width: 38px; }
.cur-opt-name { font-size: 13.5px; color: var(--muted); flex: 1; }
.cur-option.selected .cur-opt-name { color: var(--navy); font-weight: 600; }
.cur-opt-check { color: var(--accent); font-weight: 700; }
.cur-foot {
  margin-top: 6px; padding: 9px 11px 8px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); white-space: nowrap;
  cursor: pointer; border-radius: 0 0 10px 10px;
}
.cur-foot:hover { background: #f1f5f9; color: var(--navy); }
.cur-foot-sub { opacity: .7; }

/* exchange-rate hint in the slim topbar (desktop) — keeps it visible
   site-wide without taking any room in the main navigation bar */
.topbar-rate { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; color: #c7d3df; white-space: nowrap; cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: background .15s ease, color .15s ease; }
.topbar-rate:hover { background: rgba(255,255,255,.08); color: #fff; }
.topbar-rate:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.topbar-rate .tb-rate-val { color: #fff; font-weight: 600; }
.topbar-rate .tb-rate-text { color: #fff; font-weight: 600; }
.topbar-rate .tb-flip { color: #FF8A1E; font-size: 11px; opacity: .85; }
.topbar-rate:hover .tb-flip { opacity: 1; }
.topbar-rate.tb-base { cursor: default; }
.topbar-rate.tb-base:hover { background: transparent; color: #c7d3df; }

/* rate note under the product-detail price */
.rate-note { font-size: 12px; color: var(--muted); margin-top: 6px; font-family: var(--mono); }
.rate-note b { color: var(--navy); font-weight: 700; }

/* ---------- product-detail price gate (makes "price hidden" obvious) ---------- */
.gate-lock {
  background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.gate-lock .gl-head { display: flex; align-items: flex-start; gap: 12px; }
.gate-lock .gl-badge {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: #a2400b;
  background: var(--accent-soft); border: 1px solid rgba(255, 106, 26, .38);
}
.gate-lock .gl-badge svg { width: 22px; height: 22px; }
.gate-lock .gl-htext { flex: 1; }
.gate-lock .gl-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); }
.gate-lock .gl-sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

/* The blurred "$000.00" + lock is the universal "censored price" metaphor:
   the buyer instantly reads it as a price that has been hidden, not missing. */
.price-masked { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 16px 0 16px; }
.price-masked .pm-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 11px;
  background: #f1f5f9; border: 1px dashed var(--line-strong);
}
.price-masked .pm-faux {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--muted); filter: blur(3.5px); user-select: none; letter-spacing: 1px;
}
.price-masked .pm-lock { width: 22px; height: 22px; color: var(--accent); flex: none; }
.price-masked .pm-cap { font-size: 13px; color: var(--muted); font-weight: 600; }

.gate-lock .gl-cta { display: flex; align-items: center; justify-content: center; gap: 9px; }
.gate-lock .gl-cta .g-ico { flex: none; }
.gate-lock .gl-foot {
  display: flex; align-items: center; gap: 6px;
  margin: 12px 0 0; font-size: 13px; color: var(--muted);
}
.gate-lock .gl-foot svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* ---------- one-step profile modal ---------- */
body.pm-lock { overflow: hidden; }
.pm-bg {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(12, 22, 38, .55);
}
.pm-bg.open { display: flex; }
.pm-card {
  position: relative; width: 100%; max-width: 470px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: 0 24px 60px rgba(6, 16, 31, .32); animation: pmPop .18s ease-out;
}
@keyframes pmPop { from { transform: translateY(10px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.pm-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 22px; }
.pm-card p.hint { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.pm-x {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
  font-size: 26px; line-height: 1; color: var(--muted-2); cursor: pointer; padding: 4px 8px;
}
.pm-x:hover { color: var(--navy); }

/* ---------- Admin: registered users table ---------- */
.ut-wrap { overflow-x: auto; }
table.utable { width: 100%; border-collapse: collapse; font-size: 14px; }
table.utable th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
table.utable td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--navy); }
table.utable tr:hover td { background: var(--surface); }
table.utable .u-sub { display: block; font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* ---------- Responsive ---------- */
/* The full header (brand + 4 links + search + currency + account + cart) only fits
   the 1180px container, so below that width the links, search and account entry
   all move into the burger menu. */
@media (max-width: 1180px) {
  .nav-search { display: none; }
  .nav-search-m { display: flex; }
  .nav-acct { display: none; }                       /* pill + dropdown leave the bar */
  .nav-links a.nav-account-m { display: inline-flex; }
  body.signed-in .nav-links a.nav-signout-m { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; z-index: 60;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); padding: 14px 20px 18px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .burger { display: inline-flex; }
  .nav-search-m { height: 44px; margin-bottom: 14px; background: #fff; }
  .nav-search-m input { flex: 1; width: auto; }
  .nav-search-m button {
    flex: none; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer;
    font-family: var(--font-body); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px;
  }
}
@media (max-width: 1080px) {
  /* 4-up gets cramped before the phone breakpoints — drop to 3 */
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; }
  .hero h1 { font-size: 38px; }
  .hero-art { order: -1; }
  .tiles, .cats, .products-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pd, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .flow, .steps { grid-template-columns: repeat(2, 1fr); }
  .flow .fstep::after { display: none; }
  .summary { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  /* the utility strip is the first thing to go on small screens */
  .topbar { display: none; }
}
@media (max-width: 620px) {
  .tiles, .cats, .products-grid, .stat-grid, .steps, .flow { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 26px; }
  .lookup { flex-direction: column; }
  .lookup .btn { justify-content: center; }
}
@media (max-width: 480px) {
  /* keep brand + currency + cart + burger on one line */
  .brand { font-size: 17px; gap: 9px; }
  .brand .logo { width: 38px; height: 38px; border-radius: 10px; }
  .brand .logo svg { width: 34px; height: 34px; }
  .brand small { display: none; }
  .nav .container { gap: 10px; }
  .nav-actions { gap: 8px; }
  .cart-pill { padding: 8px 11px; }
  .cur-pick select { font-size: 11.5px; }
}

/* ---------- Admin: site settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.set-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.set-card h4 { margin: 0 0 14px; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.set-card .field { margin-bottom: 12px; }
.set-card label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.set-card input, .set-card textarea, .set-card select { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; font-family: inherit; font-size: 14px; }
.set-card .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }

/* ---------- Admin: pager + analytics ---------- */
.pager { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pager .muted { font-size: 13px; }
.pager select.small-btn { padding: 6px 8px; }
.pager button:disabled { opacity: .4; cursor: default; }
.an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.an-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.an-card h4 { margin: 0 0 14px; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 1fr 90px 34px; align-items: center; gap: 10px; font-size: 13px; }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.bar-track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.bar-num { text-align: right; font-weight: 700; color: var(--navy); }
.an-recent { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.rc-row { display: grid; grid-template-columns: 120px 1fr 130px auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.rc-ip { font-family: var(--mono, monospace); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-align: center; }
.rc-type.type-search { background: #fef3c7; color: #92400e; }
.rc-type.type-whatsapp_click { background: #dcfce7; color: #166534; }
.rc-type.type-add_to_cart { background: #dbeafe; color: #1e40af; }
.rc-detail { color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-time { font-size: 12px; white-space: nowrap; }
@media (max-width: 860px) { .an-grid { grid-template-columns: 1fr; } }
