:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #4f46e5;
  --primary-ink: #ffffff;
  --primary-soft: #eef2ff;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --err: #dc2626;
  --err-soft: #fef2f2;
  --top: #0b1020;
  --top-ink: #e2e8f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 4px 16px rgb(15 23 42 / 5%);
  --tile-l: 55%;
  --tile-s: 70%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f1a;
    --surface: #121829;
    --surface-2: #1a2236;
    --ink: #e5e9f2;
    --ink-2: #c4cad8;
    --muted: #8b95a9;
    --line: #243049;
    --primary: #818cf8;
    --primary-ink: #0b0f1a;
    --primary-soft: #1e2347;
    --ok: #34d399;
    --ok-soft: #0f2a22;
    --warn: #fbbf24;
    --warn-soft: #2b2210;
    --err: #f87171;
    --err-soft: #2d1416;
    --top: #070a12;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%);
    --tile-l: 42%;
    --tile-s: 55%;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 .75em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; font-size: .92em; word-break: break-all; }
pre { background: var(--surface-2); padding: 12px 14px; border-radius: 10px; white-space: pre-wrap; word-break: break-all; margin: .5em 0; font-size: .95em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
.neg { color: var(--err); }
.pos { color: var(--ok); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }

/* top bar */
.topbar { background: var(--top); color: var(--top-ink); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #22d3ee); color: #fff; font-weight: 800; }
.footer .logo { color: var(--ink); }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 10px 0 0 10px; padding: 0 14px; background: #1c2338; color: #fff; font: inherit; }
.search input::placeholder { color: #8d97ad; }
.search button { width: 46px; border: 0; border-radius: 0 10px 10px 0; background: #6366f1; color: #fff; font-size: 1.2rem; cursor: pointer; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.top-link, .cart-link { color: var(--top-ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 500; }
.wallet { background: #1c2338; padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: .85rem; }
.cart-link { position: relative; background: #1c2338; padding: 8px 14px; border-radius: 10px; }
/* language menu (works without JS: <details>) */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; color: var(--top-ink); font-weight: 600; font-size: .85rem; padding: 6px 10px; border: 1px solid #2a3350; border-radius: 999px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; font-size: .7rem; opacity: .7; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.lang-list a { color: var(--ink); padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.lang-list a:hover { background: var(--surface-2); text-decoration: none; }
.lang-list a.on { font-weight: 700; color: var(--primary); }
.badge-count { background: #22d3ee; color: #0b1020; border-radius: 999px; font-size: .75rem; font-weight: 800; padding: 0 7px; }
.pill { padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pill-dark { background: #312e81; color: #e0e7ff; }
.catbar { border-top: 1px solid #1a2134; }
.catbar-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a { color: #b8c1d6; padding: 10px 12px; white-space: nowrap; font-size: .9rem; border-bottom: 2px solid transparent; }
.catbar a:hover, .catbar a.on { color: #fff; text-decoration: none; border-bottom-color: #22d3ee; }

.hue-0 { --h: 0; }
.hue-1 { --h: 30; }
.hue-2 { --h: 60; }
.hue-3 { --h: 95; }
.hue-4 { --h: 140; }
.hue-5 { --h: 170; }
.hue-6 { --h: 195; }
.hue-7 { --h: 215; }
.hue-8 { --h: 235; }
.hue-9 { --h: 260; }
.hue-10 { --h: 285; }
.hue-11 { --h: 320; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--primary); color: var(--primary-ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-danger { background: var(--err); color: #fff; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 4px; }
.link-btn:hover { color: var(--err); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .92rem; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.check input { width: auto; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.two, .three { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: 1fr 1fr 1fr; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input { flex: 1; min-width: 160px; width: auto; }
.inline-form select { width: auto; }
.w-sm { max-width: 110px; min-width: 90px !important; }
.w-md { max-width: 180px; }
.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0 0; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-err { background: var(--err-soft); color: var(--err); }
.card-pad { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 36px; border-radius: 20px; margin-bottom: 32px;
  background: radial-gradient(1200px 400px at 0% 0%, #312e81 0%, transparent 60%), linear-gradient(135deg, #0b1020, #111a33); color: #e5e9f2; }
.hero h1 { font-size: 2.3rem; color: #fff; }
.eyebrow { color: #67e8f9; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.lead { color: #b8c1d6; font-size: 1.05rem; max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero .btn { background: #6366f1; color: #fff; }
.hero .btn-ghost { background: transparent; color: #e0e7ff; border-color: #3b4566; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-points li { background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 8%); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.hero-points strong { color: #fff; }
.hero-points span { color: #aab3c8; font-size: .9rem; }

/* sections & grids */
.section { margin: 32px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); box-shadow: var(--shadow); }
.cat-card:hover { text-decoration: none; border-color: hsl(var(--h) 60% 60%); }
.cat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: 1.1rem; margin-bottom: 6px;
  background: hsl(var(--h) var(--tile-s) var(--tile-l) / 15%); color: hsl(var(--h) var(--tile-s) var(--tile-l)); }
.cat-name { font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.card:hover { transform: translateY(-2px); border-color: var(--primary); }
.card-link { color: inherit; flex: 1; display: flex; flex-direction: column; }
.card-link:hover { text-decoration: none; }
.tile { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--h) var(--tile-s) var(--tile-l)), hsl(calc(var(--h) + 40) var(--tile-s) calc(var(--tile-l) - 12%))); }
.tile span { color: #fff; font-weight: 800; font-size: 1.7rem; letter-spacing: -.01em; text-shadow: 0 2px 8px rgb(0 0 0 / 20%); padding: 0 12px; text-align: center; line-height: 1.1; }
.tile-lg { border-radius: 18px; aspect-ratio: 4 / 3; }
.tile-lg span { font-size: 4rem; }
.tile-sm { width: 56px; aspect-ratio: 1; border-radius: 10px; flex-shrink: 0; }
.tile-sm span { font-size: .7rem; padding: 0 4px; overflow: hidden; }
.ribbon { position: absolute; top: 10px; left: 10px; background: #f59e0b; color: #1f1300; font-style: normal; font-weight: 700; font-size: .72rem; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.card-body { padding: 12px 14px 0; flex: 1; }
.card-brand { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.card-title { font-size: .98rem; font-weight: 600; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-muted { color: var(--muted); }
.input-sm { width: 6em; display: inline-block; padding: 5px 8px; }
/* Admin → Settings → PayPal: ready-made texts under a field */
.pp-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -4px; }
.pp-presets button { font: inherit; font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); cursor: pointer; width: auto; text-align: left; overflow-wrap: anywhere; }
.pp-presets button:hover, .pp-presets button[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); }
.pp-presets button small { color: var(--muted); font-weight: 400; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 14px; gap: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.25; }
.price strong { font-size: 1.15rem; }
.price small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.brand-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-cloud a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); font-weight: 500; font-size: .9rem; }

/* list */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.list-head h1 { margin-bottom: .1em; }
.list-head p { margin: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: 4px; }
.filters select, .filters input { width: auto; min-width: 150px; padding: 7px 10px; }
.empty { text-align: center; padding: 60px 16px; }

/* product */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.product-media { position: sticky; top: 130px; }
.product h1 { font-size: 1.6rem; }
.facts { display: grid; gap: 8px; margin: 16px 0; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.price-lg strong { font-size: 2rem; font-weight: 800; }
.buy-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.qty { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.qty input { width: 72px; }
.info-block { margin-top: 22px; }
.info-block h2 { font-size: 1rem; }
.info-block .pre { color: var(--ink-2); font-size: .93rem; }

/* cart */
.cart { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 56px 1fr 80px 110px 28px; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-name a { color: var(--ink); font-weight: 600; }
.cart-qty input { padding: 6px 8px; }
.cart-price { text-align: right; white-space: nowrap; }
.cart-price small { color: var(--muted); }
.methods { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.methods legend { font-weight: 600; margin-bottom: 8px; font-size: .92rem; }
.method { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; }
.method:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.method:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.method input { width: auto; }
.method span { display: flex; flex-direction: column; }
.checkout .field { margin-bottom: 8px; }

/* order */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.order-chat { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.order-chat p { margin: 0; flex: 1 1 260px; }
.order-head h1 { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.status-pending { background: var(--warn-soft); color: var(--warn); }
.status-paid { background: var(--primary-soft); color: var(--primary); }
.status-delivered { background: var(--ok-soft); color: var(--ok); }
.status-cancelled { background: var(--surface-2); color: var(--muted); }
.pay { border-color: var(--warn); }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 8px; }
/* crypto payment: network picker + instructions */
.nets-label { margin-bottom: 6px; }
.nets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.net { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.net:hover { border-color: var(--primary); text-decoration: none; }
.net.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.net-panel { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.net-panel .steps { margin: 6px 0 10px; }
.net-panel code { background: var(--surface); }
.net-title { margin: 0; }
.addr { display: inline-block; margin-top: 4px; font-size: .9em; }
.qr { background: #fff; border-radius: 10px; padding: 6px; width: 168px; height: 168px; }
.warn-text { color: var(--warn); }
.wallet-pay { background: var(--ok-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.wallet-pay span { flex: 1; }
.nets-table input[type="checkbox"] { width: auto; }
.nets-table td { vertical-align: middle; }
@media (max-width: 600px) {
  .net-panel { grid-template-columns: 1fr; }
  .qr { justify-self: center; }
}
.copy { cursor: pointer; }
.copy.copied { background: var(--ok-soft); color: var(--ok); }
.order-items { display: flex; flex-direction: column; gap: 10px; }
.order-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.order-item-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-item-head a { color: var(--ink); }
.delivery { margin-top: 10px; }
.delivery-label { font-size: .85rem; font-weight: 600; color: var(--ok); display: flex; gap: 8px; align-items: center; }
.delivery pre { border: 1px dashed var(--ok); background: var(--ok-soft); color: var(--ink); font-size: 1rem; }
details summary { cursor: pointer; margin-top: 8px; }
.order-total { text-align: right; margin-top: 14px; font-size: 1.1rem; }

/* account & auth */
.auth { max-width: 440px; margin: 20px auto; }
.auth form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.account { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0 20px; }
.account > section:first-child { grid-row: span 2; }
.balance { font-size: 1.1rem; }
.balance strong { font-size: 2rem; font-weight: 800; }
.account details form { margin: 12px 0; }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-dense td { padding: 7px 10px; font-size: .9rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-off td { opacity: .55; }

/* admin */
.admin-nav { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 10px 14px; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.admin-nav a.on, .admin-nav a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--primary); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; color: var(--ink); box-shadow: var(--shadow); }
.stat:hover { text-decoration: none; border-color: var(--primary); }
.stat span { color: var(--muted); font-size: .85rem; }
.stat strong { font-size: 1.9rem; font-weight: 800; }
.stat em { font-style: normal; color: var(--muted); font-size: .78rem; }
.stat-warn { border-color: var(--warn); background: var(--warn-soft); }
.admin-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.supplier-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
details.supplier { border-bottom: 1px solid var(--line); padding: 8px 0; }
details.supplier form { margin: 12px 0; }

/* footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 16px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-links { display: flex; flex-direction: column; gap: 4px; }
.footer h4 { margin: 6px 0 10px; }
.footer p { margin-bottom: .4em; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-logos span { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: .8rem; font-weight: 600; }
.copy.muted { margin-top: 24px; cursor: default; }

/* information pages */
.info-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: start; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; max-width: 800px; line-height: 1.65; color: var(--ink-2); }
.prose h1 { color: var(--ink); margin-bottom: 4px; }
.prose h2 { color: var(--ink); font-size: 1.12rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--primary); }
.info-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.info-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.info-nav a:hover { background: var(--surface-2); }
.info-nav a.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.contact-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact-card:hover { border-color: var(--primary); }
.contact-card span { color: var(--primary); }

@media (max-width: 900px) {
  .info-layout { grid-template-columns: 1fr; }
  .info-nav { position: static; flex-direction: row; flex-wrap: wrap; order: -1; }
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero h1 { font-size: 1.8rem; }
  .product, .cart, .account, .admin-cols { grid-template-columns: 1fr; }
  .account > section:first-child { grid-row: auto; }
  .product-media { position: static; max-width: 420px; }
  .footer-in { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .topbar-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .top-actions { margin-left: auto; }
  .hide-sm { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .btn { width: 100%; }
  .two, .three { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 48px 1fr auto; }
  .cart-line .cart-qty { grid-column: 2; }
  .cart-line .cart-price { grid-column: 3; grid-row: 1; }
  .tile-sm { width: 48px; }
  .facts div { grid-template-columns: 100px 1fr; }
  h1 { font-size: 1.45rem; }
}

/* ---- website chat window (public/js/chat.js) ---- */
.wc { position: fixed; right: 16px; bottom: 16px; z-index: 60; font-size: .95rem; }
.wc-fab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--primary); color: var(--primary-ink); font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgb(15 23 42 / 22%); }
.wc-fab:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
.wc-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--err); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.wc-badge[hidden], .wc-open .wc-fab { display: none; }
.wc-panel { position: fixed; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px));
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 40px rgb(15 23 42 / 25%); overflow: hidden; }
.wc-panel[hidden] { display: none; }
.wc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--primary); color: var(--primary-ink); }
.wc-head strong { display: block; }
.wc-sub { margin: 2px 0 0; font-size: .8rem; opacity: .9; }
.wc-x { border: 0; background: transparent; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.wc-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.wc-lang { height: 28px; padding: 0 6px; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 8px; background: transparent; color: inherit;
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.wc-lang option { color: var(--ink); background: var(--surface); }
.wc-log { flex: 1; overflow-y: auto; margin: 0; padding: 12px; list-style: none; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.wc-msg { align-self: flex-start; max-width: 85%; padding: 8px 11px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.wc-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.wc-customer { align-self: flex-end; background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.wc-customer a { color: inherit; }
.wc-note { align-self: center; max-width: 92%; padding: 2px 6px; background: transparent; border: 0; color: var(--muted); font-size: .82rem; text-align: center; }
.wc-typing { font-style: italic; }
.wc-who { display: block; margin-bottom: 2px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.wc-msg time { display: block; margin-top: 3px; font-size: .7rem; opacity: .65; text-align: right; }
.wc-products { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: .86rem; }
.wc-human { display: block; margin-top: 4px; padding-left: 0; color: var(--primary); }
.wc-failed { opacity: .55; }
.wc-mode { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line);
  background: var(--warn-soft); font-size: .82rem; }
.wc-mode[hidden] { display: none; }
.wc-ai-back { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--surface); color: var(--primary);
  font: inherit; font-weight: 600; cursor: pointer; }
.wc-about { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; background: var(--primary-soft); border-top: 1px solid var(--line); font-size: .82rem; }
.wc-about[hidden] { display: none; }
.wc-about span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-about-x { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.wc-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.wc-form textarea { flex: 1; min-height: 38px; max-height: 120px; padding: 8px 10px; resize: none; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; }
.wc-tg { margin: 0; padding: 0 12px 10px; background: var(--surface); }
@media (max-width: 520px) {
  .wc { right: 12px; bottom: 12px; }
  .wc-fab { width: 52px; height: 52px; padding: 0; justify-content: center; font-size: 1.3rem; }
  .wc-fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wc-panel { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
}
