/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e4e7ef;
  --accent: #111111;
  --accent-hover: #2b2b2b;
  --accent-soft: #efefef;
  --accent-text: #ffffff;
  --volt: #c8f31d;
  --volt-text: #111111;
  --success: #15803d;  --success-soft: #e8f7ee;
  --warning: #b45309;  --warning-soft: #fff5e0;
  --danger: #dc2626;   --danger-soft: #fdecec;
  --info: #1d4ed8;     --info-soft: #e8f0ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06);
  --shadow: 0 8px 24px -8px rgb(15 23 42 / .12), 0 2px 6px rgb(15 23 42 / .05);
  --shadow-lg: 0 24px 48px -16px rgb(15 23 42 / .22);
  --ring: 0 0 0 3px rgb(17 17 17 / .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e1a;
    --surface: #111827;
    --surface-2: #1a2233;
    --text: #e8ecf4;
    --muted: #94a3b8;
    --border: #232d42;
    --accent: #f5f5f5;
    --accent-hover: #ffffff;
    --accent-soft: #222222;
    --accent-text: #0a0a0a;
    --success: #4ade80;  --success-soft: #11291c;
    --warning: #fbbf24;  --warning-soft: #2e2410;
    --danger: #f87171;   --danger-soft: #32161a;
    --info: #93c5fd;     --info-soft: #162240;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 8px 24px -8px rgb(0 0 0 / .55);
    --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / .7);
    --ring: 0 0 0 3px rgb(245 245 245 / .3);
    color-scheme: dark;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.container-sm { width: min(480px, 100% - 2rem); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
[hidden] { display: none !important; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ==========================================================================
   Header & footer
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: #111; color: var(--volt); box-shadow: 0 4px 12px -2px rgb(0 0 0 / .35);
}
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a.nav-link { color: var(--muted); font-weight: 500; padding: .45rem .8rem; border-radius: 999px; }
.nav a.nav-link:hover, .nav a.nav-link.active { color: var(--text); background: var(--surface-2); }
.btn.nav-toggle { display: none; margin-left: auto; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: .85rem;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); overflow: hidden; object-fit: cover; flex: none;
}
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; z-index: 50;
}
.menu-panel .who { padding: .5rem .75rem .75rem; border-bottom: 1px solid var(--border); margin-bottom: .35rem; }
.menu-panel .who strong { display: block; }
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .75rem; border: 0; background: none;
  color: var(--text); font: inherit; border-radius: var(--radius-sm); cursor: pointer; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); color: var(--text); }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2rem 0; margin-top: 4rem; color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 760px) {
  .btn.nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: .75rem 1rem 1rem; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .menu-panel { position: static; width: 100%; box-shadow: none; margin-top: .5rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .62rem 1.1rem; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; white-space: nowrap;
  transition: transform .06s ease, background .15s, border-color .15s, box-shadow .15s; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 16px -6px rgb(0 0 0 / .45); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 10px; }
form.inline { display: inline; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field .req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: .65rem .85rem; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input[type=file] { width: 100%; font: inherit; color: var(--muted); }
input[type=file]::file-selector-button {
  margin-right: .8rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); vertical-align: middle; margin-right: .5rem; }
.field.check label { display: flex; align-items: center; font-weight: 500; margin: 0; }
.help { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.errorlist { list-style: none; margin: .35rem 0 0; padding: 0; color: var(--danger); font-size: .85rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: .7rem .9rem; margin-bottom: 1rem; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 .8rem; background: var(--surface-2); border: 1px solid var(--border); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ==========================================================================
   Cards, badges, misc
   ========================================================================== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card.flush { padding: 0; overflow: hidden; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-title h2, .card-title h3 { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.danger  { background: var(--danger-soft); color: var(--danger); }
.badge.info    { background: var(--info-soft); color: var(--info); }
.badge.accent  { background: var(--accent-soft); color: var(--accent); }

.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); font-size: .92rem; }
.alert.warning { background: var(--warning-soft); color: var(--warning); }
.alert.success { background: var(--success-soft); color: var(--success); }
.alert form { margin-left: auto; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .i { width: 2.5rem; height: 2.5rem; margin-bottom: .75rem; opacity: .6; }
.empty h3 { color: var(--text); }

.toasts { position: fixed; top: 76px; right: 1rem; z-index: 100; display: grid; gap: .6rem; width: min(380px, calc(100% - 2rem)); }
.toast {
  display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--info); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); animation: toast-in .25s ease;
}
.toast.success { border-left-color: var(--success); } .toast.error { border-left-color: var(--danger); } .toast.warning { border-left-color: var(--warning); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.verify-banner { background: var(--warning-soft); color: var(--warning); border-bottom: 1px solid color-mix(in srgb, var(--warning) 20%, transparent); font-size: .9rem; }
.verify-banner .container { display: flex; gap: .75rem; align-items: center; justify-content: center; padding: .5rem 0; flex-wrap: wrap; }
.verify-banner button { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 .7rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 500; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination a:hover { background: var(--surface-2); }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
  position: relative; overflow: hidden; color: #fff; padding: 4rem 3rem; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(1200px 500px at 0% 0%, #7c3aed 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #2563eb 0%, transparent 55%), #312e81;
}
.auth-aside h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: #fff; max-width: 14ch; }
.auth-aside p { color: rgb(255 255 255 / .8); max-width: 38ch; }
.auth-aside ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.auth-aside li { display: flex; gap: .7rem; align-items: center; color: rgb(255 255 255 / .92); }
.auth-aside li .i { background: rgb(255 255 255 / .16); border-radius: 50%; padding: .3rem; width: 1.7rem; height: 1.7rem; }
.auth-main { display: grid; place-items: center; padding: 2.5rem 1.25rem; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.5rem; }
.auth-links { margin-top: 1.25rem; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-links a { font-weight: 600; }
@media (max-width: 880px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-aside { display: none; } }

/* ==========================================================================
   Home / hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; margin-top: 1.5rem; padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  color: #fff; background: radial-gradient(900px 420px at 10% 0%, #8b5cf6 0%, transparent 60%), radial-gradient(800px 480px at 100% 100%, #0ea5e9 0%, transparent 55%), #312e81;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; max-width: 16ch; letter-spacing: -.03em; }
.hero p { font-size: 1.15rem; color: rgb(255 255 255 / .85); max-width: 46ch; }
.hero .btn-light { background: #fff; color: #312e81; }
.hero .btn-light:hover { background: #eef0ff; color: #312e81; }
.hero .btn-outline { border-color: rgb(255 255 255 / .5); color: #fff; }
.hero .btn-outline:hover { background: rgb(255 255 255 / .12); color: #fff; }
.section { margin-top: 3.5rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; }
.section-head h2 { margin: 0; font-size: 1.5rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: .9rem; }
@media (max-width: 800px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Products & storefront
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.grid.shops { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); color: var(--text); }
.thumb { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.04); }
.thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); opacity: .5; }
.thumb .placeholder .i { width: 2.4rem; height: 2.4rem; }
.thumb .badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.thumb .badges .badge { box-shadow: var(--shadow-sm); }
.product-card .body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.product-card .name { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .shop-name { font-size: .8rem; color: var(--muted); }
.price { font-weight: 700; font-size: 1.05rem; }
.price s { color: var(--muted); font-weight: 500; font-size: .85em; margin-left: .35rem; }
.price-lg { font-size: 1.8rem; letter-spacing: -.02em; }

.shop-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: transform .18s, box-shadow .18s; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.shop-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: #fff; background: #111; color: var(--volt); }

.shop-hero { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--surface); }
.shop-cover { height: 140px; background: radial-gradient(600px 220px at 0% 0%, #8b5cf6 0%, transparent 65%), radial-gradient(500px 240px at 100% 100%, #38bdf8 0%, transparent 60%), #4338ca; }
.shop-info { display: flex; gap: 1.25rem; align-items: flex-end; padding: 0 1.75rem 1.5rem; margin-top: -40px; flex-wrap: wrap; }
.shop-info .shop-logo { width: 96px; height: 96px; border-radius: 24px; border: 4px solid var(--surface); font-size: 1.8rem; box-shadow: var(--shadow); }
.shop-info .text { flex: 1; min-width: 220px; padding-top: 44px; }
.shop-info h1 { margin: 0 0 .15rem; }

.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1.5rem 0 1rem; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 2.6rem; border-radius: 999px; }
.toolbar select { width: auto; border-radius: 999px; padding-right: 2rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.chip { padding: .38rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .88rem; font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.crumbs { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .88rem; margin: 1.5rem 0 1rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--accent); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.gallery .main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery .thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface-2); opacity: .75; }
.gallery .thumbs button.active, .gallery .thumbs button:hover { border-color: var(--accent); opacity: 1; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { position: sticky; top: 88px; }
.buy-box .shop-line { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; color: var(--muted); }
.buy-box .shop-line .shop-logo { width: 28px; height: 28px; border-radius: 8px; font-size: .7rem; }
.prose { white-space: pre-line; color: var(--text); }
@media (max-width: 860px) { .product-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .buy-box { position: static; } }

/* ==========================================================================
   Dashboard layout
   ========================================================================== */
.side-link { display: flex; align-items: center; gap: .7rem; padding: .6rem .85rem; border-radius: var(--radius-sm); color: var(--muted); font-weight: 550; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: var(--accent-soft); color: var(--accent); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { padding: 1.1rem 1.25rem; }
.stat .label { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: .4rem; }
.stat .value { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: .25rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.copy-box { display: flex; gap: .5rem; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .35rem .35rem .35rem .85rem; }
.copy-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; color: var(--text); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: .5rem 0 1rem; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #111, #7a8f10); transition: width .4s; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.steps li a, .steps li > span { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: var(--radius-sm); color: var(--text); }
.steps li a:hover { background: var(--surface-2); }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; flex: none; color: #fff; }
.steps .done .dot { background: var(--success); border-color: var(--success); }
.steps .done .dot .i { width: 14px; height: 14px; stroke-width: 3; }
.steps .done .label { color: var(--muted); text-decoration: line-through; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .dash-cols { grid-template-columns: minmax(0, 1fr); } }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: .75rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table .num { text-align: right; white-space: nowrap; }
.cell-product { display: flex; align-items: center; gap: .85rem; min-width: 220px; }
.cell-product .mini { width: 46px; height: 46px; border-radius: 10px; background: var(--surface-2); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--muted); }
.cell-product .mini img { width: 100%; height: 100%; object-fit: cover; }
.cell-product a { color: var(--text); font-weight: 600; }
.actions { display: flex; gap: .35rem; justify-content: flex-end; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; padding: 1rem; border-bottom: 1px solid var(--border); }
.filters .search { min-width: 220px; }
.filters select { width: auto; }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.image-tile { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.image-tile img { width: 100%; height: 100%; object-fit: cover; }
.image-tile .tile-actions { position: absolute; inset: auto 0 0 0; display: flex; gap: .3rem; justify-content: center; padding: .4rem; background: linear-gradient(transparent, rgb(0 0 0 / .65)); opacity: 0; transition: opacity .15s; }
.image-tile:hover .tile-actions, .image-tile:focus-within .tile-actions { opacity: 1; }
.image-tile .tile-actions button { border: 0; border-radius: 8px; padding: .25rem .5rem; font-size: .72rem; font-weight: 600; cursor: pointer; background: #fff; color: #111; }
.image-tile .tile-actions button.del { background: #ef4444; color: #fff; }
.image-tile .cover-tag { position: absolute; top: .4rem; left: .4rem; }
@media (hover: none) { .image-tile .tile-actions { opacity: 1; } }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; background: var(--surface-2); transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: .6rem; margin-top: .75rem; }
.preview-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .layout-2 { grid-template-columns: minmax(0, 1fr); } }

.dash > section, .layout-2 > *, .dash-cols > * { min-width: 0; }
.copy-box code { min-width: 0; }

/* ==========================================================================
   Cart, checkout & orders
   ========================================================================== */
.cart-link { position: relative; display: inline-flex; align-items: center; gap: .4rem; }
.cart-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } }
.cart-shop { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.cart-shop .shop-logo { width: 32px; height: 32px; border-radius: 9px; font-size: .75rem; }
.cart-shop a { color: var(--text); }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 110px auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.cart-line.has-issue { background: var(--danger-soft); }
.cart-line .mini-lg { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.cart-line .mini-lg img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cart-line .name { color: var(--text); font-weight: 600; }
.cart-line .line-total { text-align: right; font-weight: 700; white-space: nowrap; }
.qty input, .qty-input { width: 76px; text-align: center; padding: .5rem; }
.cart-subtotal { display: flex; justify-content: space-between; padding: 1rem 1.25rem; }
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; row-gap: .6rem; }
  .cart-line .mini-lg { width: 64px; height: 64px; grid-row: span 2; }
  .cart-line .qty { grid-column: 2; }
  .cart-line .line-total { grid-column: 3; grid-row: 1; }
  .cart-line > form:last-child { grid-column: 3; grid-row: 2; justify-self: end; }
}
.summary { position: sticky; top: 88px; }
.summary h3 { margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; color: var(--muted); }
.sum-row.total { color: var(--text); font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--border); margin-top: .6rem; padding-top: .9rem; }
.sum-shop { font-weight: 650; margin-top: .75rem; font-size: .9rem; }
@media (max-width: 960px) { .summary { position: static; } }
.buy-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.buy-form .btn { flex: 1; }
.buy-form .qty-input { flex: 0 0 76px; width: 76px; }
.option { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; margin-top: .75rem; }
.option.selected, .option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { margin-top: .25rem; }
.option-body { display: flex; flex-direction: column; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 1rem; }
.success-mark .i { width: 32px; height: 32px; stroke-width: 2.6; }
.order-card { transition: transform .15s, box-shadow .15s; }
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.order-thumbs { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.order-thumbs .mini { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.order-thumbs .mini img { width: 100%; height: 100%; object-fit: cover; }
.tracker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.tracker li { display: flex; flex-direction: column; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); position: relative; text-align: center; }
.tracker li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker li.done::before, .tracker li.current::before { background: var(--accent); }
.tracker .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); background: var(--surface); display: grid; place-items: center; color: #fff; }
.tracker .done .dot { background: var(--accent); border-color: var(--accent); }
.tracker .done .dot .i { width: 14px; height: 14px; stroke-width: 3; }
.tracker .current .dot { border-color: var(--accent); box-shadow: var(--ring); }
.tracker .current, .tracker .done { color: var(--text); font-weight: 600; }
.nav-label { display: inline; }
@media (min-width: 761px) { .nav-label { display: none; } }
.show-sm { display: none; }
@media (max-width: 560px) { .hide-sm { display: none; } .show-sm { display: block; } .cell-product { min-width: 0; } }

/* Payment page */
.pay-icon { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; }
.pay-icon[hidden] { display: none; }
.pay-icon .i { width: 32px; height: 32px; stroke-width: 2.2; position: relative; z-index: 1; }
.pay-icon.waiting { background: var(--accent-soft); color: var(--accent); }
.pay-icon.failed { background: var(--danger-soft); color: var(--danger); }
.pay-icon.paid { background: var(--success-soft); color: var(--success); }
.pay-icon .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pay-icon .pulse { animation: none; } }

/* ==========================================================================
   Admin console
   ========================================================================== */
.attention { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.attention a.alert { color: inherit; }
.attention a.alert:hover { filter: brightness(1.06); }
.bars { display: flex; gap: .5rem; align-items: stretch; height: 180px; }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.bar { width: 100%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #d9ff5a, #8fb10a); min-height: 0; transition: height .4s ease; }
.bar-col:hover .bar { background: linear-gradient(180deg, #e6ff8a, #a3c70c); }
.bar-label { font-size: .72rem; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.timeline li { display: flex; gap: .75rem; align-items: flex-start; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: .45rem; flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.25rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
pre.code { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; overflow: auto; font-size: .8rem; margin: 0; }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 6px; font-size: .85em; }

/* ==========================================================================
   Shop selector & switcher
   ========================================================================== */
.shop-bar { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.shop-switch > summary { list-style: none; cursor: pointer; }
.shop-switch > summary::-webkit-details-marker { display: none; }
.shop-pick { display: inline-flex; align-items: center; gap: .75rem; padding: .45rem .75rem .45rem .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .15s; }
.shop-switch[open] .shop-pick, .shop-pick:hover { border-color: var(--accent); }
.shop-pick .shop-logo { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; }
.shop-pick-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.shop-pick-text strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-pick .chev { color: var(--muted); transition: transform .15s; }
.shop-switch[open] .chev { transform: rotate(180deg); }
.shop-panel { left: 0; right: auto; width: min(320px, 88vw); }
.shop-panel a.current { background: var(--accent-soft); color: var(--accent); }
.menu-sep { height: 1px; background: var(--border); margin: .35rem 0; }
.grid.shops-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.shop-tile { display: flex; flex-direction: column; gap: 1.1rem; }
.shop-tile-head { display: flex; align-items: center; gap: .85rem; color: var(--text); }
.shop-tile-head:hover { color: var(--text); }
.shop-tile-head .shop-logo { width: 48px; height: 48px; border-radius: 14px; font-size: 1rem; }
.tile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; padding: .85rem 0; border-block: 1px solid var(--border); }
.tile-stats dt { color: var(--muted); font-size: .78rem; }
.tile-stats dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.shop-tile-new { align-items: center; justify-content: center; text-align: center; border-style: dashed; color: var(--text); min-height: 220px; transition: border-color .15s, background .15s; }
.shop-tile-new:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.shop-tile-new .plus { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* Admin console: shop switcher with search, sidebar group labels */
.menu-search { padding: .35rem .35rem .5rem; }
.menu-search input { padding: .5rem .75rem; border-radius: 999px; font-size: .9rem; }
.menu-scroll { max-height: 320px; overflow-y: auto; display: grid; gap: .1rem; }
.menu-scroll a[hidden] { display: none; }
.side-label { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; color: var(--muted); padding: .9rem .85rem .3rem; }
.side-label:first-child { padding-top: 0; }

/* Customer shop selector in the header */
.header-switch { min-width: 0; }
.shop-pick.compact { padding: .3rem .6rem .3rem .35rem; border-radius: 999px; box-shadow: none; gap: .55rem; background: var(--surface-2); border-color: transparent; }
.shop-pick.compact .shop-logo { width: 30px; height: 30px; border-radius: 50%; font-size: .7rem; }
.shop-pick.compact .shop-pick-text strong { max-width: 170px; font-size: .9rem; }
.shop-pick.compact .shop-pick-text .small { font-size: .7rem; line-height: 1.1; }
.header-switch .shop-panel { left: 0; }
.choose-tile { color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s; }
.choose-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); border-color: var(--accent); }
.choose-tile.is-current { border-color: var(--accent); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
  .brand-name { display: none; }
  .shop-pick.compact .shop-pick-text strong { max-width: 110px; }
  .header-switch .shop-panel { position: fixed; left: 1rem; right: 1rem; top: 70px; width: auto; }
}

/* Login and signup pages */

/* Each shop's own customer pages */
.shop-nav { display: flex; gap: .25rem; padding: .5rem 1rem; border-top: 1px solid var(--border); background: var(--surface); overflow-x: auto; }
.shop-nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.shop-nav a:hover { background: var(--surface-2); color: var(--text); }
.shop-nav a.active { background: var(--accent-soft); color: var(--accent); }

/* ==========================================================================
   Sneaker store
   ========================================================================== */
.promo-bar { background: #111; color: var(--volt); text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: .4rem 1rem; text-transform: uppercase; }

/* header */
.site-header .container { gap: 1.25rem; }
.brand-logo { height: 34px; width: auto; max-width: 160px; object-fit: contain; }
.brand-name { font-weight: 900; letter-spacing: -.03em; font-size: 1.2rem; text-transform: uppercase; }
.brand-mark { border-radius: 8px; font-weight: 900; }
.main-nav { display: flex; gap: .15rem; margin-right: auto; }
.main-nav a { color: var(--text); font-weight: 650; padding: .5rem .8rem; border-radius: 999px; font-size: .92rem; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a.sale-link { color: #e5321b; }
.header-search { position: relative; width: 220px; }
.header-search .i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.header-search input { padding: .5rem .9rem .5rem 2.4rem; border-radius: 999px; background: var(--surface-2); border-color: transparent; font-size: .9rem; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.icon-link { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
.icon-link:hover { background: var(--surface-2); color: var(--text); }
.icon-link .i { width: 1.35rem; height: 1.35rem; }
.icon-link .cart-badge { position: absolute; top: 2px; right: 0; background: var(--volt); color: var(--volt-text); }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: .5rem 1rem 1rem; }
.mobile-nav a { display: block; padding: .7rem .5rem; font-weight: 650; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav.open { display: block; }
.btn.nav-toggle { display: none; }
@media (max-width: 960px) {
  .main-nav, .header-search { display: none; }
  .btn.nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 961px) { .mobile-nav, .mobile-nav.open { display: none; } }
@media (max-width: 520px) { .header-actions .nav-link { display: none; } }

/* badges */
.badge.sale { background: #e5321b; color: #fff; }
.badge.volt { background: var(--volt); color: var(--volt-text); }

/* hero */
.sneaker-hero {
  position: relative; overflow: hidden; margin-top: 1.5rem; border-radius: 28px; color: #fff;
  background: radial-gradient(900px 420px at 85% 20%, rgb(200 243 29 / .28) 0%, transparent 60%), linear-gradient(135deg, #0b0b0b 0%, #1d1d1d 100%);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; min-height: 440px;
}
.hero-copy { padding: clamp(2rem, 5vw, 4rem); position: relative; z-index: 1; }
.hero-kicker { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: rgb(200 243 29 / .16); color: var(--volt); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sneaker-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 900; max-width: 14ch; margin: 1rem 0; }
.sneaker-hero p { color: rgb(255 255 255 / .72); max-width: 44ch; font-size: 1.05rem; }
.btn-volt { background: var(--volt); color: var(--volt-text); box-shadow: 0 8px 24px -8px rgb(200 243 29 / .6); }
.btn-volt:hover { background: #d8ff3a; color: var(--volt-text); }
.btn-outline-light { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / .1); color: #fff; }
.hero-art { position: relative; height: 100%; min-height: 320px; }
.hero-shoe { position: absolute; border-radius: 24px; object-fit: cover; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7); border: 1px solid rgb(255 255 255 / .1); }
.hero-shoe.s1 { width: 58%; aspect-ratio: 1; right: 6%; top: 8%; transform: rotate(6deg); z-index: 2; }
.hero-shoe.s2 { width: 40%; aspect-ratio: 1; left: 6%; bottom: 10%; transform: rotate(-8deg); z-index: 1; }
.hero-shoe.s3 { width: 32%; aspect-ratio: 1; right: 4%; bottom: 4%; transform: rotate(-3deg); z-index: 3; }
@media (max-width: 820px) { .sneaker-hero { grid-template-columns: 1fr; } .hero-art { min-height: 240px; } }

.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.perks > div { display: flex; gap: .75rem; align-items: center; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.perks > div > div { display: flex; flex-direction: column; line-height: 1.3; }
.perks .i { width: 1.5rem; height: 1.5rem; flex: none; }
@media (max-width: 900px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.brand-tile { display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .15s, border-color .15s; }
.brand-tile strong { font-size: 1.05rem; letter-spacing: -.01em; text-transform: uppercase; }
.brand-tile:hover { transform: translateY(-2px); border-color: var(--text); color: var(--text); }
.sale-band { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 1.5rem; }

/* product cards */
.product-card .brand-line, .buy-box .brand-line { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product-card .colorway { font-size: .82rem; color: var(--muted); }
.thumb { background: var(--surface-2); }

/* product page */
.perk-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; color: var(--muted); font-size: .9rem; }
.perk-list li { display: flex; align-items: center; gap: .6rem; }
hr.rule { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: .5rem; }
.size-opt { position: relative; }
.size-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.size-opt span { display: grid; place-items: center; padding: .7rem 0; border: 1.5px solid var(--border); border-radius: 12px; font-weight: 700; background: var(--surface); transition: border-color .12s, background .12s, color .12s; }
.size-opt:hover span { border-color: var(--text); }
.size-opt input:checked + span { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.size-opt input:focus-visible + span { box-shadow: var(--ring); }
.size-opt.sold-out span { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface-2) 6px 8px); text-decoration: line-through; border-style: dashed; }
.size-opt.sold-out input { cursor: not-allowed; }
.size-grid.compact { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: .35rem; }
.size-grid.compact .size-opt span { padding: .45rem 0; font-size: .85rem; }
.size-pill { display: inline-block; min-width: 26px; text-align: center; padding: .05rem .35rem; margin: 0 .15rem .15rem 0; border-radius: 6px; background: var(--surface-2); font-size: .75rem; font-weight: 600; }
.gallery .main .badges { z-index: 2; }

/* shop page with filters */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.filters-panel { position: sticky; top: 90px; }
.filters-toggle { display: none; cursor: pointer; list-style: none; }
.filters-toggle::-webkit-details-marker { display: none; }
.filters-body { display: grid; gap: 1.25rem; }
.filters-body fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.filters-body legend { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .55rem; padding: 0; }
.check-row { display: flex; align-items: center; gap: .6rem; padding: .25rem 0; cursor: pointer; }
.check-row > span:first-of-type { flex: 1; }
.check-row input { margin: 0; }
.chip-radio { position: relative; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-radio:has(input:checked) { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.filters-body input[type=number] { padding: .5rem .6rem; }
@media (min-width: 901px) { .filters-details > summary { display: none; } .filters-details > .filters-body { display: grid; } }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .filters-panel { position: static; }
  .filters-toggle { display: inline-flex; margin-bottom: .75rem; }
  .filters-body { padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
}

/* admin: size stock grid */
.size-stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .6rem; }
.size-stock-cell label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: .2rem; color: var(--muted); }
.size-stock-cell input { padding: .5rem .55rem; text-align: center; }
.size-stock-cell.has-error input { border-color: var(--danger); }

/* footer */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 1.5rem; }
.footer-grid > div { display: flex; flex-direction: column; gap: .35rem; }
.footer-grid a, .footer-grid span { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-brand { font-size: 1.1rem; text-transform: uppercase; letter-spacing: -.02em; font-weight: 900; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .85rem; flex-wrap: wrap; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* auth pages follow the black / volt theme */
.auth-aside { background: radial-gradient(900px 420px at 100% 0%, rgb(200 243 29 / .25) 0%, transparent 60%), #0b0b0b; }
.auth-aside li .i { background: rgb(200 243 29 / .18); color: var(--volt); }
.hero { display: none; }

/* Wishlist */
.product-card .card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.product-card .card-link:hover { color: inherit; }
.product-card .wish-form { position: absolute; top: .6rem; right: .6rem; z-index: 3; }
.wish-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); cursor: pointer; backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); transition: transform .15s ease, color .15s, background .15s; }
.wish-btn:hover { transform: scale(1.08); }
.wish-btn .i { width: 1.15rem; height: 1.15rem; fill: none; }
.wish-btn.on { color: #ef4444; }
.wish-btn.on .i { fill: currentColor; }
.wish-btn.labelled { width: auto; height: 44px; padding: 0 1.1rem; border-radius: 999px; font-weight: 600; font-size: .95rem; box-shadow: none; background: var(--surface); }
.wish-row { margin-top: .75rem; }
.wish-link .cart-badge[hidden] { display: none; }
.wish-list { display: grid; gap: 1rem; }
.wish-item { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: start; }
.wish-item .wish-thumb { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); display: block; }
.wish-item .wish-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wish-item .wish-info { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.wish-item .wish-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
.wish-item select { min-width: 8.5rem; }
@media (min-width: 700px) { .wish-list { grid-template-columns: 1fr 1fr; } }

/* Reviews and ratings */
.stars { --r: 0; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: .08em; color: transparent; background: linear-gradient(90deg, #f5b301 calc(var(--r) / 5 * 100%), var(--border) calc(var(--r) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; white-space: nowrap; }
.rating-line { display: inline-flex; align-items: center; gap: .4rem; color: inherit; }
.product-card .rating-line { margin-top: .1rem; }
.review-summary { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .review-summary { grid-template-columns: 170px 1fr 1fr; align-items: center; } }
.review-score { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.review-score strong { font-size: 2.6rem; line-height: 1; }
.review-score .stars { font-size: 1.3rem; }
.review-bars, .review-fit { display: grid; gap: .35rem; }
.rbar-row { display: grid; grid-template-columns: 5.5rem 1fr 2.2rem; align-items: center; gap: .6rem; color: inherit; font-size: .9rem; }
.review-bars .rbar-row { grid-template-columns: 2.2rem 1fr 2rem; }
.rbar-row:hover:not(.static), .rbar-row.active { color: var(--accent); }
.rbar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rbar > span { display: block; height: 100%; background: #f5b301; border-radius: 99px; }
.review-meta { gap: .75rem; font-size: .9rem; }
.review-meta .badge .i { width: .8rem; height: .8rem; }
.btn.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.rate-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .1rem; }
.rate-input input { position: absolute; opacity: 0; pointer-events: none; }
.rate-input label { font-size: 2.2rem; line-height: 1; color: color-mix(in srgb, var(--muted) 55%, transparent); cursor: pointer; padding: 0 .1rem; transition: color .1s, transform .1s; }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { color: #f5b301; }
.rate-input label:hover { transform: scale(1.12); }
.rate-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Promo codes */
.promo-form { display: flex; gap: .5rem; margin: .75rem 0 1rem; }
.promo-form input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-applied { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .75rem 0 1rem; padding: .55rem .75rem; border: 1px dashed var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); font-size: .92rem; }
.promo-applied .i { width: 1rem; height: 1rem; vertical-align: -.15em; }
.promo-row { color: var(--success); font-weight: 600; }

/* Colour themes: volt is the default; the store can switch to orange in Store settings */
html[data-palette="orange"] { --accent: #ff6b35; --accent-hover: #e8541d; --accent-soft: #ffe9df; --accent-text: #ffffff; --volt: #ff6b35; --volt-text: #ffffff; --ring: 0 0 0 3px rgb(255 107 53 / .3); }
@media (prefers-color-scheme: dark) {
  html[data-palette="orange"] { --accent: #ff7a47; --accent-hover: #ff9368; --accent-soft: #3a2218; --accent-text: #1a0d07; --volt: #ff6b35; --volt-text: #ffffff; --ring: 0 0 0 3px rgb(255 122 71 / .35); }
}
html[data-palette="orange"] .bar { background: linear-gradient(180deg, #ff9a73, #ff6b35); }
html[data-palette="orange"] .brand-mark, html[data-palette="orange"] .shop-logo { color: #ff6b35; }
html[data-palette="orange"] .sneaker-hero { background: radial-gradient(900px 420px at 85% 20%, rgb(255 107 53 / .3) 0%, transparent 60%), linear-gradient(135deg, #0b0b0b 0%, #1d1d1d 100%); }
html[data-palette="orange"] .hero-kicker { background: rgb(255 107 53 / .18); }
html[data-palette="orange"] .btn-volt { box-shadow: 0 8px 24px -8px rgb(255 107 53 / .6); }
html[data-palette="orange"] .btn-volt:hover { background: #ff8458; color: var(--volt-text); }
html[data-palette="orange"] .auth-aside { background: radial-gradient(900px 420px at 100% 0%, rgb(255 107 53 / .28) 0%, transparent 60%), #0b0b0b; }
html[data-palette="orange"] .auth-aside li .i { background: rgb(255 107 53 / .2); }

/* Newsletter and footer signup */
.newsletter-form { display: flex; gap: .5rem; min-width: 0; }
.newsletter-form input[type=email] { flex: 1; min-width: 0; }
.newsletter-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-band { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin: 3rem 0 0; padding: 2rem; border-radius: 24px; background: #0b0b0b; color: #f5f5f5; }
.newsletter-band h2 { margin: 0 0 .25rem; color: #fff; }
.newsletter-band p { margin: 0; color: #cbd5e1; }
.newsletter-band .newsletter-form { flex: 1 1 320px; max-width: 460px; }
.newsletter-band input[type=email] { background: #1a1a1a; border-color: #333; color: #fff; }
.footer-news { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; border-top: 1px solid var(--border); }
.footer-news .newsletter-form { flex: 1 1 280px; max-width: 420px; }

/* Review photos */
.review-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.review-photos > a img, .review-photo-edit img, .review-photo-admin img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); display: block; }
.review-photo-edit { display: grid; gap: .3rem; font-size: .85rem; text-align: center; cursor: pointer; }
.review-photo-admin { display: grid; gap: .25rem; justify-items: center; }

/* Admin console shell: a separate app with its own top bar and sidebar */
.admin-body { background: var(--bg); }
.admin-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .6rem; height: 60px; padding: 0 1rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.admin-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; letter-spacing: -.01em; min-width: 0; }
.admin-brand:hover { color: var(--text); }
.admin-brand .brand-logo { height: 30px; width: auto; border-radius: 8px; }
.admin-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-top .spacer { flex: 1; }
.admin-top .icon-link.is-active { background: var(--accent-soft); color: var(--accent); }
.admin-top .menu { position: relative; }
.admin-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; min-height: calc(100vh - 60px); }
.admin-side { position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; padding: 1rem .85rem 2rem; background: var(--surface); border-right: 1px solid var(--border); }
.admin-side nav { display: grid; gap: .2rem; }
.admin-main { min-width: 0; padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 3rem; max-width: 1320px; width: 100%; }
.admin-overlay { display: none; }
.admin-menu-btn { display: none; }
@media (max-width: 900px) {
  .admin-menu-btn { display: inline-flex; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: fixed; z-index: 60; top: 0; left: 0; height: 100vh; width: min(300px, 86vw); padding-top: 4.5rem; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .admin-side.open { transform: none; }
  .admin-overlay { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .5); }
  .admin-overlay:not([hidden]) { display: block; }
  .admin-view-store span { display: none; }
  .admin-brand .badge { display: none; }
}

/* Customer account area: the storefront header plus a navigation of its own */
.account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; margin: 2rem 0 3rem; align-items: start; }
.account-nav { position: sticky; top: 88px; display: grid; gap: .25rem; }
.account-who { display: flex; align-items: center; gap: .75rem; padding: .85rem; margin-bottom: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.account-who .avatar { flex: none; }
.account-who div > strong, .account-who div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav form button.side-link { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.account-main { min-width: 0; }
@media (max-width: 900px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; }
  .account-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-who { grid-column: 1 / -1; }
}
.account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 800px) { .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.mini-list a { display: flex; align-items: center; gap: .75rem; color: inherit; }
.mini-list img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
.mini-list .grow { flex: 1; min-width: 0; }
.mini-list .grow > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   Colour layer
   Prices, names, brands, links and key figures each get a colour of their own instead of plain black or white.
   --hi    prices, active states, key figures (lime by default, orange in the orange theme)
   --name  product names, order numbers, customer names
   --brand brand labels      --link text links      --sale discounted prices
   --cta   primary buttons and selected states
   ========================================================================== */
:root {
  --hi: #4d7c0f;       --hi-soft: #ecfccb;
  --cta: #c8f31d;      --cta-hover: #b6e00f;   --cta-text: #111111;
  --name: #4338ca;     --brand: #0f766e;       --link: #4338ca;      --sale: #be123c;
  --ring: 0 0 0 3px rgb(132 204 22 / .35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --hi: #c8f31d;     --hi-soft: #222d0c;
    --cta: #c8f31d;    --cta-hover: #d8ff3a;  --cta-text: #111111;
    --name: #c7d2fe;   --brand: #5eead4;      --link: #a5b4fc;      --sale: #fb7185;
    --ring: 0 0 0 3px rgb(200 243 29 / .35);
  }
}
html[data-palette="orange"] {
  --hi: #c2410c;       --hi-soft: #ffedd5;
  --cta: #c2410c;      --cta-hover: #9a3412;   --cta-text: #ffffff;
  --ring: 0 0 0 3px rgb(217 72 15 / .3);
}
@media (prefers-color-scheme: dark) {
  html[data-palette="orange"] {
    --hi: #ff8a5c;     --hi-soft: #3a2218;
    --cta: #ff7a47;    --cta-hover: #ff9368;  --cta-text: #1a0d07;
    --ring: 0 0 0 3px rgb(255 122 71 / .35);
  }
}

/* prices */
.price, .money { color: var(--hi); }
.price s { color: var(--muted); }
.price.on-sale { color: var(--sale); }
.money { font-weight: 700; }
.cart-line .line-total, .cart-subtotal strong, .sum-row.total span:last-child, .table td.num strong, .steps li a strong { color: var(--hi); }

/* names, brands and links */
.product-card .name, .cart-line .name, .cell-product a, .buy-box h1, .wish-item .item-name, .mini-list strong, .order-card > .row strong:first-child { color: var(--name); }
.product-card .brand-line, .buy-box .brand-line, .wish-item .brand-line { color: var(--brand); }
.table td a:not(.btn):not(.small), .card-title a.small, .section-head > a, main p a:not([class]), .small a:not([class]), .help a, .auth-links a, .crumbs a:hover { color: var(--link); }
.table td a:hover, .card-title a.small:hover, .section-head > a:hover, main p a:not([class]):hover { text-decoration: underline; }
.footer-brand, .footer-grid a:hover { color: var(--hi); }
.footer-grid > div > strong { color: var(--name); }
.main-nav a:hover, .header-actions .nav-link:hover { color: var(--hi); }

/* key figures and section headings */
.stat .value { color: var(--hi); }
.section-head h2 { display: flex; align-items: center; gap: .6rem; }
.section-head h2::before { content: ""; width: 5px; height: 1.1em; border-radius: 3px; background: var(--hi); flex: none; }

/* primary buttons, selected states, badges */
.btn-primary { background: var(--cta); color: var(--cta-text); }
.btn-primary:hover { background: var(--cta-hover); color: var(--cta-text); }
.chip.active, .chip-radio:has(input:checked), .size-opt input:checked + span, .pagination .current { background: var(--cta); border-color: var(--cta); color: var(--cta-text); }
.cart-badge { background: var(--cta); color: var(--cta-text); }
.icon-link .cart-badge { background: var(--cta); color: var(--cta-text); }
.chip:hover, .size-opt:hover span { border-color: var(--hi); }
.chip:hover { color: var(--hi); }
.side-link:hover { color: var(--hi); }
.side-link.active { background: var(--hi-soft); color: var(--hi); }
input:focus, select:focus, textarea:focus { border-color: var(--hi); }
input[type=checkbox], input[type=radio] { accent-color: var(--hi); }
.tracker li.done::before, .tracker li.current::before { background: var(--hi); }
.tracker .done .dot { background: var(--hi); border-color: var(--hi); color: var(--cta-text); }
.tracker .current .dot { border-color: var(--hi); }
.tracker .current, .tracker .done { color: var(--name); }

/* more colour: brand tiles, icons, selected options, the Admin badge */
.brand-tile strong { color: var(--brand); }
.brand-tile:hover { border-color: var(--hi); }
.perks .i, .perk-list .i, .stat .label .i, .card-title h3 .i { color: var(--hi); }
.option.selected, .option:has(input:checked) { border-color: var(--hi); background: var(--hi-soft); }
.badge.accent { background: var(--hi-soft); color: var(--hi); }
.avatar { background: var(--hi-soft); color: var(--hi); }

/* Brand logos: shown on a light chip so a dark logo still reads in dark mode */
.brand-chip { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 3px 9px; background: #fff; border: 1px solid rgb(15 23 42 / .08); border-radius: 8px; vertical-align: middle; line-height: 0; }
.brand-chip img { display: block; height: 100%; width: auto; max-width: 110px; object-fit: contain; }
.brand-chip-sm { height: 22px; padding: 2px 7px; border-radius: 7px; }
.brand-chip-sm img { max-width: 80px; }
.brand-chip-lg { height: 36px; padding: 4px 12px; border-radius: 10px; }
.brand-chip-lg img { max-width: 150px; }
.brand-chip-tile { height: 48px; padding: 6px 14px; border-radius: 12px; }
.brand-chip-tile img { max-width: 150px; }
.brand-tile.has-logo { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.brand-line .brand-chip { margin-top: .1rem; }
.check-row .brand-chip { vertical-align: -.5em; }

/* Admin: the Logo | Text switch of a brand */
form.display-switch { display: inline-flex; flex-direction: row; align-items: stretch; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); box-shadow: none; }
form.display-switch button { flex: none; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; background: none; font: inherit; font-size: .85rem; font-weight: 600; line-height: 1.2; padding: .35rem .85rem; color: var(--muted); cursor: pointer; }
form.display-switch button:hover { color: var(--text); }
form.display-switch button.on { background: var(--cta); color: var(--cta-text); }
