/* ──────────────────────────────────────────────────────────────
   BD Stadium theme — colours taken from the brand logo.
   Blue  #0749B5  primary actions, links, selected states
   Gold  #CBA446  highlights only (always with dark text on it)
   Ink   #0B0F1A  headings and body text
   Red / green are reserved for sale & errors / success.
   Every text colour below meets WCAG AA on its background.
   ────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand: #0749b5;
  --brand-dark: #053a91;
  --brand-50: #eef3fc;
  --brand-100: #d9e5f8;
  --gold: #cba446;
  --gold-dark: #8a6516;      /* gold text on white */
  --gold-50: #fbf5e6;

  /* Neutrals */
  --ink: #0b0f1a;
  --body: #2e3442;
  --muted: #5f6675;
  --silver: #b4bac6;
  --line: #e3e6ec;
  --line-strong: #cbd2dc;
  --mist: #f5f7fa;           /* light surface */
  --cloud: #eceff4;
  --paper: #ffffff;

  /* Status */
  --sale: #d10a11;
  --sale-50: #fdecec;
  --ok: #0b7a3e;
  --ok-50: #e9f6ee;
  --warn: #8a5300;
  --warn-50: #fff3dc;
  --accent: var(--brand);    /* legacy alias */

  /* Type */
  --head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.75rem;                         /* 12 */
  --fs-sm: 0.875rem;                        /* 14 */
  --fs-base: 1rem;                          /* 16 */
  --fs-lg: 1.125rem;                        /* 18 */
  --fs-xl: 1.25rem;                         /* 20 */
  --fs-2xl: 1.5rem;                         /* 24 */
  --fs-3xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.125rem);  /* 26–34 */
  --fs-4xl: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem);   /* 30–44 */
  --fs-5xl: clamp(2.25rem, 1.4rem + 3.8vw, 3.75rem);    /* 36–60 */
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  /* Spacing (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(48px, 6vw, 80px);

  /* Shape */
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 15, 26, .06);
  --shadow: 0 8px 24px -8px rgba(11, 15, 26, .14);

  --wrap: 1240px;
  --header-h: 68px;
}

/* ─── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: var(--fs-base); line-height: var(--lh-body); color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 var(--s-4); }
:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; box-shadow: 0 0 0 2px var(--brand); border-radius: var(--r-sm); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-4); }
@media (min-width: 768px) { .wrap { padding: 0 var(--s-5); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, .display { font-family: var(--head); font-weight: 700; color: var(--ink); line-height: var(--lh-tight); letter-spacing: -0.015em; margin: 0; }
.display-xl { font-size: var(--fs-5xl); letter-spacing: -0.025em; line-height: 1.08; }
.display-lg { font-size: var(--fs-4xl); letter-spacing: -0.02em; }
.display-md { font-size: var(--fs-3xl); }
.display-sm { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.01em; }
.label { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.price { font-weight: 700; color: var(--ink); }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: var(--s-2); }
.text-sale { color: var(--sale); } .text-ok { color: var(--ok); } .text-accent { color: var(--brand); }
.link { color: var(--brand); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: var(--s-3) var(--s-5); border: 1.5px solid var(--brand); border-radius: var(--r);
  background: var(--brand); color: #fff; font-family: var(--sans); font-weight: 600; font-size: var(--fs-base); line-height: 1.2; text-align: center; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.arrow::after { content: "→"; transition: transform .15s; }
.btn.arrow:hover::after { transform: translateX(3px); }
.btn-outline { background: var(--paper); color: var(--brand); }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-dark); border-color: var(--brand-dark); box-shadow: none; }
.btn-ok { background: var(--ok); border-color: var(--ok); } .btn-ok:hover { background: #096a35; border-color: #096a35; }
.btn-danger { background: var(--paper); color: var(--sale); border-color: var(--sale); } .btn-danger:hover { background: var(--sale); border-color: var(--sale); color: #fff; box-shadow: none; }
.btn-sm { min-height: 38px; padding: var(--s-2) var(--s-4); font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn:disabled { background: var(--silver); border-color: var(--silver); color: #fff; cursor: not-allowed; box-shadow: none; }
.btn-wa { background: #1fa855; border-color: #1fa855; } .btn-wa:hover { background: #178a45; border-color: #178a45; }

/* ─── Forms ──────────────────────────────────────────────────── */
/* 16px inputs stop iPhones from zooming in on focus. */
.field { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); color: var(--ink); font-size: var(--fs-base); transition: border-color .15s, box-shadow .15s; }
.field::placeholder { color: #8b92a0; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field.invalid { border-color: var(--sale); box-shadow: 0 0 0 3px var(--sale-50); }
select.field { appearance: none; padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235f6675' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea.field { min-height: 100px; resize: vertical; }
.form-row { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.form-row label, .form-label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.error { color: var(--sale); font-size: var(--fs-sm); }
.grid-2 { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; gap: 0; } }
.check { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert { padding: var(--s-3) var(--s-4); margin: var(--s-4) 0; border-radius: var(--r); border: 1px solid; font-weight: 500; font-size: var(--fs-sm); }
.alert-ok { background: var(--ok-50); border-color: #b7dfc6; color: #064d26; }
.alert-err { background: var(--sale-50); border-color: #f5c2c4; color: #8a060b; }

/* ─── Header ─────────────────────────────────────────────────── */
.topbar { background: var(--brand-dark); color: #fff; text-align: center; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .02em; padding: var(--s-2) var(--s-4); line-height: 1.4; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.logo { display: flex; align-items: center; gap: var(--s-2); font-family: var(--head); font-weight: 700; font-size: var(--fs-xl); color: var(--ink); white-space: nowrap; flex: none; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--brand); color: #fff; font-size: var(--fs-base); }
.logo-img { display: block; width: auto; max-width: 200px; object-fit: contain; }
.nav { display: flex; gap: var(--s-1); font-size: var(--fs-sm); font-weight: 500; }
.nav a { padding: var(--s-2) var(--s-3); border-radius: var(--r-pill); color: var(--body); transition: background .15s, color .15s; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.search { flex: 1; max-width: 320px; margin-left: auto; position: relative; }
.search input { width: 100%; min-height: 42px; padding: var(--s-2) var(--s-3) var(--s-2) 40px; background: var(--mist); border: 1px solid transparent; border-radius: var(--r-pill); font-size: var(--fs-base); }
.search input:focus { outline: none; background: var(--paper); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; border-radius: var(--r-pill); color: var(--ink); }
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--paper); }
.menu-btn { display: none; }
@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .nav, .header .search { display: none; }
  .menu-btn { display: grid; margin-left: -10px; }
  .header-in { gap: var(--s-2); }
  .logo { margin-right: auto; }
  .header .logo-img { height: 42px !important; max-width: 160px; }
}
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(11,15,26,.45); }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: var(--paper); padding: var(--s-5); overflow-y: auto; box-shadow: var(--shadow); }
.drawer-panel a { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.drawer-panel .search { display: block; max-width: none; margin: var(--s-4) 0; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { margin-top: var(--section); background: var(--mist); border-top: 4px solid var(--brand); padding: var(--s-7) 0 var(--s-6); font-size: var(--fs-sm); color: var(--muted); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 2fr 1fr 1fr; }
.footer h4 { color: var(--ink); margin: 0 0 var(--s-3); font-size: var(--fs-sm); font-weight: 600; }
.footer a:hover { color: var(--brand); text-decoration: underline; }
.footer p { margin: var(--s-2) 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line-strong); font-size: var(--fs-xs); }
.footer-bottom a { color: var(--brand); font-weight: 600; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ─── Home ───────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--brand-50) 0%, var(--paper) 60%, var(--gold-50) 100%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-6); align-items: center; padding-top: var(--s-8); padding-bottom: var(--s-8); }
.hero h1 { margin-bottom: var(--s-4); }
.hero h1 .accent { color: var(--brand); }
.hero p { font-size: var(--fs-lg); color: var(--body); max-width: 480px; margin: 0 0 var(--s-5); }
.hero-tag { display: inline-flex; align-items: center; gap: var(--s-2); background: var(--gold); color: var(--ink); padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); margin-bottom: var(--s-4); }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero-img { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 768px) {
  .hero-in { grid-template-columns: 1fr; gap: var(--s-5); padding-top: var(--s-6); padding-bottom: var(--s-6); text-align: left; }
  .hero-img { max-width: 240px; width: 100%; margin: 0 auto; order: -1; }
  .hero-actions .btn { flex: 1 1 140px; }
}
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--s-5); }
.trust > div { padding: var(--s-4); display: flex; gap: var(--s-3); align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.trust svg { width: 28px; height: 28px; flex: none; color: var(--brand); }
.trust b { display: block; font-size: var(--fs-sm); color: var(--ink); font-weight: 600; } .trust span { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust > div { flex-direction: column; align-items: flex-start; gap: var(--s-2); padding: var(--s-3); } .trust svg { width: 24px; height: 24px; } }
.section { margin-top: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); margin-bottom: var(--s-5); }
.section-head h2 { position: relative; padding-bottom: var(--s-2); }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--gold); }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.cat { position: relative; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-lg); aspect-ratio: 4 / 3; padding: var(--s-4); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.cat img { position: absolute; right: 6%; top: 8%; width: 44%; transition: transform .3s; }
.cat:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat:hover img { transform: scale(1.05) rotate(-3deg); }
.cat h3 { position: relative; font-size: var(--fs-xl); line-height: var(--lh-snug); }
.cat span { position: relative; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 768px) { .cats { grid-template-columns: 1fr 1fr; gap: var(--s-3); } .cat { aspect-ratio: 1; padding: var(--s-3); } .cat img { width: 58%; top: 6%; right: 6%; } .cat h3 { font-size: var(--fs-base); } }

/* ─── Product grid & cards ───────────────────────────────────── */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
@media (max-width: 1024px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); } }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 1; background: var(--mist); overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform .4s; }
.card-img img.alt { opacity: 0; }
.card:hover .card-img img.alt { opacity: 1; }
.card-badges { position: absolute; top: var(--s-2); left: var(--s-2); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); z-index: 1; }
.card-price { display: none; }
.card-body { padding: var(--s-3) var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-name { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); line-height: var(--lh-snug); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.card-cost { margin-top: var(--s-1); font-size: var(--fs-base); }
.card-cost .price-old { font-size: var(--fs-sm); margin-left: var(--s-1); }
.card-sizes { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); margin-top: var(--s-2); font-size: 11px; font-weight: 600; color: var(--body); }
.card-sizes .out { color: var(--silver); text-decoration: line-through; font-weight: 400; }
.soldout-cover { position: absolute; inset: 0; background: rgba(255,255,255,.6); display: grid; place-items: center; z-index: 1; }

.badge { display: inline-flex; align-items: center; gap: var(--s-1); padding: 3px var(--s-2); border-radius: var(--r-pill); font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; background: var(--paper); color: var(--ink); white-space: nowrap; }
.badge-sale { background: var(--sale); color: #fff; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-gold { background: var(--gold); color: var(--ink); }
.badge-ok { background: var(--ok); color: #fff; }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-blue { background: var(--brand); color: #fff; }
.badge-grey { background: var(--cloud); color: var(--muted); }

/* ─── Shop listing ───────────────────────────────────────────── */
.crumbs { font-size: var(--fs-sm); color: var(--muted); padding: var(--s-4) 0; overflow-wrap: anywhere; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.page-title { margin-bottom: var(--s-5); }
.shop-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.shop-layout .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.filters h4 { font-size: var(--fs-sm); font-weight: 600; margin: 0 0 var(--s-2); }
.filters .group { padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.filters .group:first-child { border-top: 0; padding-top: 0; }
.filters a.opt { display: flex; justify-content: space-between; padding: var(--s-2) var(--s-3); margin: 0 calc(-1 * var(--s-3)); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.filters a.opt:hover { background: var(--mist); }
.filters a.opt.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { min-width: 46px; min-height: 40px; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); display: inline-grid; place-items: center; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
.toolbar select { width: auto; min-height: 42px; padding-top: var(--s-2); padding-bottom: var(--s-2); }
.filter-toggle { display: none; }
@media (max-width: 960px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .filters { position: static; display: none; padding: var(--s-4); background: var(--mist); border-radius: var(--r-lg); }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
}
@media (max-width: 640px) { .shop-layout .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.empty { text-align: center; padding: var(--s-8) var(--s-4); background: var(--mist); border-radius: var(--r-lg); }
.empty p { margin-top: var(--s-2); }
.pagination { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-7); }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: var(--fs-sm); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .disabled { color: var(--silver); }

/* ─── Product page ───────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
@media (max-width: 960px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s-3); position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.thumbs { display: flex; flex-direction: column; gap: var(--s-2); }
.thumb { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--r); background: var(--mist); overflow: hidden; transition: border-color .15s; }
.thumb:hover { border-color: var(--line-strong); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--brand); }
.stage { position: relative; aspect-ratio: 1; background: var(--mist); border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; touch-action: pan-y; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.zoom-lens { position: absolute; inset: 0; background-repeat: no-repeat; background-color: var(--mist); opacity: 0; pointer-events: none; transition: opacity .15s; }
.stage.zooming .zoom-lens { opacity: 1; }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: var(--r-pill); background: rgba(255,255,255,.95); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 22px; line-height: 1; color: var(--ink); z-index: 2; }
.stage-nav:hover { background: var(--paper); color: var(--brand); }
.stage-nav.prev { left: var(--s-3); } .stage-nav.next { right: var(--s-3); }
.stage-hint, .stage-count { position: absolute; bottom: var(--s-3); z-index: 2; background: rgba(255,255,255,.95); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); font-size: var(--fs-xs); font-weight: 600; color: var(--ink); display: flex; gap: var(--s-1); align-items: center; pointer-events: none; box-shadow: var(--shadow-sm); }
.stage-hint { right: var(--s-3); } .stage-count { left: var(--s-3); }
@media (max-width: 960px) {
  .gallery { grid-template-columns: minmax(0, 1fr); position: static; }
  .thumbs { order: 2; flex-direction: row; overflow-x: auto; padding-bottom: 2px; }
  .thumb { flex: none; width: 64px; height: 64px; }
}
@media (hover: none) { .zoom-lens { display: none; } }

.info .cat-name { font-size: var(--fs-sm); color: var(--brand); font-weight: 600; margin: 0; }
.info h1 { margin: var(--s-2) 0 var(--s-3); font-size: var(--fs-3xl); line-height: var(--lh-snug); }
.info .price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2) var(--s-3); font-size: var(--fs-2xl); }
.info .price-row .price-old { font-size: var(--fs-lg); margin-left: 0; }
.stock-note { margin: var(--s-3) 0 0; font-size: var(--fs-sm); font-weight: 600; }
.size-head { display: flex; justify-content: space-between; align-items: center; margin: var(--s-5) 0 var(--s-3); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--s-2); }
.size { position: relative; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { display: grid; place-items: center; height: 50px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--paper); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.size span:hover { border-color: var(--brand); }
.size input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.size input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-100); }
.size.out span { color: var(--silver); background: var(--mist); text-decoration: line-through; cursor: not-allowed; border-color: var(--line); }
.size small { position: absolute; top: -9px; right: -4px; background: var(--sale); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: var(--r-pill); }
.sizes.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.qty { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.qty button { width: 46px; min-height: 48px; background: var(--paper); border: 0; font-size: var(--fs-lg); color: var(--ink); }
.qty button:hover { background: var(--mist); color: var(--brand); }
.qty input { width: 48px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); margin-top: var(--s-5); }
.buy-buttons { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.perks { margin-top: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.perks div { display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); align-items: center; }
.perks div:last-child { border-bottom: 0; }
.perks svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.desc { margin-top: var(--s-6); }
.desc details { border-top: 1px solid var(--line); }
.desc details:last-child { border-bottom: 1px solid var(--line); }
.desc summary { list-style: none; padding: var(--s-4) 0; font-family: var(--head); font-weight: 600; font-size: var(--fs-base); color: var(--ink); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.desc summary::-webkit-details-marker { display: none; }
.desc summary::after { content: "+"; font-size: var(--fs-xl); line-height: 1; color: var(--brand); }
.desc details[open] summary::after { content: "−"; }
.desc .body { padding-bottom: var(--s-4); color: var(--body); white-space: pre-line; }
.chart-wrap { overflow-x: auto; }
table.chart { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); white-space: normal; }
table.chart th, table.chart td { border: 1px solid var(--line); padding: var(--s-2) var(--s-3); text-align: center; }
table.chart th { background: var(--brand-50); color: var(--ink); font-weight: 600; }
.sticky-buy { display: none; }
@media (max-width: 960px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(11,15,26,.2); }
  .sticky-buy .btn { flex: 1; }
  body.has-sticky { padding-bottom: 80px; }
}

/* Lightbox (full-screen zoom) */
.lightbox { position: fixed; inset: 0; z-index: 80; background: var(--paper); display: none; flex-direction: column; }
.lightbox.open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.lb-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: zoom-in; background: var(--mist); }
.lb-stage.zoomed { cursor: grab; }
.lb-stage img { position: absolute; left: 50%; top: 50%; max-width: 100%; max-height: 100%; transform: translate(-50%, -50%) scale(1); transform-origin: center; transition: transform .2s; user-select: none; -webkit-user-drag: none; }
.lb-stage.dragging img { transition: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 22px; z-index: 2; }
.lb-nav.prev { left: var(--s-3); } .lb-nav.next { right: var(--s-3); }
.lb-bottom { display: flex; gap: var(--s-2); justify-content: center; padding: var(--s-3); overflow-x: auto; border-top: 1px solid var(--line); }
.lb-bottom .thumb { width: 56px; height: 56px; flex: none; }
@media (max-width: 640px) { .lb-hint { display: none; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; background: rgba(11,15,26,.45); padding: var(--s-4); }
.modal.open { display: grid; }
.modal-box { background: var(--paper); width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: var(--s-5); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }

/* ─── Cart & checkout ────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-6); align-items: start; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.line img { width: 96px; height: 96px; object-fit: cover; background: var(--mist); border-radius: var(--r); }
.line-name { font-weight: 600; color: var(--ink); }
.line-actions { display: flex; gap: var(--s-3); align-items: center; margin-top: var(--s-3); flex-wrap: wrap; }
.line-actions select { width: auto; min-height: 40px; padding-top: var(--s-1); padding-bottom: var(--s-1); }
@media (max-width: 480px) { .line { grid-template-columns: 72px minmax(0, 1fr); } .line img { width: 72px; height: 72px; } .line > .price { grid-column: 2; } }
.remove { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: var(--fs-sm); padding: var(--s-1) 0; }
.remove:hover { color: var(--sale); }
.summary { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.summary h2 { font-size: var(--fs-xl); margin-bottom: var(--s-4); }
@media (max-width: 960px) { .summary { position: static; } }
.sum-row { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; font-size: var(--fs-sm); }
.sum-total { border-top: 1px solid var(--line-strong); margin-top: var(--s-2); padding-top: var(--s-3); font-weight: 700; font-size: var(--fs-lg); color: var(--ink); }
.mini-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-2) 0; font-size: var(--fs-sm); }
.mini-line img { width: 56px; height: 56px; object-fit: cover; background: var(--paper); border-radius: var(--r-sm); }
.radio-card { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-4); border: 1.5px solid var(--line-strong); border-radius: var(--r); cursor: pointer; margin-bottom: var(--s-2); transition: border-color .15s, background .15s; }
.radio-card:hover { border-color: var(--brand); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.radio-card input { accent-color: var(--brand); width: 20px; height: 20px; flex: none; }
.radio-card .rc-left { display: flex; gap: var(--s-3); align-items: center; }
.cod-box { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4); border: 1.5px solid var(--brand); background: var(--brand-50); border-radius: var(--r); }
.cod-box svg { color: var(--brand); }
.promo-box { border-top: 1px solid var(--line-strong); margin-top: var(--s-3); padding-top: var(--s-4); }
.promo-input { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.promo-input .field { min-width: 0; }
.promo-input .btn { padding: 0 var(--s-4); }
.promo-applied { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); padding: var(--s-3); background: var(--gold-50); border: 1px dashed var(--gold); border-radius: var(--r); color: var(--ink); font-size: var(--fs-sm); }
.thanks { max-width: 640px; margin: var(--s-7) auto; text-align: center; }
.thanks .tick { width: 72px; height: 72px; margin: 0 auto var(--s-4); display: grid; place-items: center; border-radius: var(--r-pill); background: var(--ok); color: #fff; font-size: 34px; }
.thanks .box { text-align: left; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); margin-top: var(--s-5); }

/* WhatsApp floating button */
.wa-float { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 44; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.wa-float svg { width: 28px; height: 28px; }
body.has-sticky .wa-float { bottom: 92px; }
/* Product page on phones already has an "Order on WhatsApp" button. */
@media (max-width: 960px) { body.has-sticky .wa-float { display: none; } }

/* Spacing helpers */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }

@media print { .no-print { display: none !important; } body { font-size: 13px; } }

/* ─── Admin ──────────────────────────────────────────────────── */
.admin { background: var(--mist); min-height: 100vh; }
.admin-bar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.admin-bar .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; flex-wrap: wrap; padding-top: var(--s-2); padding-bottom: var(--s-2); }
.admin-nav { display: flex; gap: var(--s-1); flex-wrap: wrap; flex: 1; }
.admin-nav a { padding: var(--s-2) var(--s-3); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--body); }
.admin-nav a:hover { background: var(--mist); color: var(--ink); }
.admin-nav a.active { background: var(--brand); color: #fff; }
.admin-nav .count { background: var(--sale); color: #fff; padding: 0 6px; margin-left: var(--s-1); border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
@media (max-width: 760px) {
  .admin-bar .wrap { gap: var(--s-2); }
  .admin-nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--s-1); }
  .admin-nav a { white-space: nowrap; }
  .admin-bar .link { margin-left: auto; }
}
.admin-main { padding-top: var(--s-5); padding-bottom: var(--s-8); }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-pad { padding: var(--s-5); }
@media (max-width: 640px) { .panel-pad { padding: var(--s-4); } }
.tabs { display: flex; gap: var(--s-2); overflow-x: auto; margin-bottom: var(--s-4); padding-bottom: 2px; }
.tabs a { padding: var(--s-2) var(--s-4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.tabs a:hover { border-color: var(--brand); color: var(--brand); }
.tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabs a span { opacity: .75; margin-left: var(--s-1); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-bottom: var(--s-4); }
.stats a { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); transition: border-color .15s, box-shadow .15s; }
.stats a:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.stats b { display: block; font-family: var(--head); font-weight: 700; font-size: var(--fs-3xl); line-height: 1.1; color: var(--ink); margin-top: var(--s-1); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: var(--s-3); overflow: hidden; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.order-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: var(--fs-lg); color: var(--brand); }
.order-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-5); padding: var(--s-4); }
@media (max-width: 760px) { .order-body { grid-template-columns: 1fr; gap: var(--s-4); } }
.pkg-item { display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-3); }
.pkg-item img { width: 52px; height: 52px; object-fit: cover; background: var(--mist); border-radius: var(--r-sm); flex: none; }
.size-box { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 var(--s-2); border-radius: var(--r); background: var(--ink); color: #fff; font-family: var(--head); font-size: var(--fs-lg); font-weight: 700; flex: none; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); background: var(--mist); }
.collect { background: var(--ink); color: #fff; padding: var(--s-2) var(--s-3); border-radius: var(--r); font-weight: 700; }
.actions { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: var(--s-3); background: var(--mist); }
.table th:first-child { border-top-left-radius: var(--r-lg); } .table th:last-child { border-top-right-radius: var(--r-lg); }
.table td { padding: var(--s-3); border-top: 1px solid var(--line); vertical-align: middle; }
.table img { width: 56px; height: 56px; object-fit: cover; background: var(--mist); border-radius: var(--r-sm); }
.stock-list { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.stock-list span { padding: 2px var(--s-2); border-radius: var(--r-pill); background: var(--mist); font-size: var(--fs-xs); font-weight: 600; }
.stock-list span.zero { background: var(--sale-50); color: var(--sale); }
.stock-list span.low { background: var(--warn-50); color: var(--warn); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s-3); }
.photo { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--mist); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo .photo-actions { display: flex; }
.photo .photo-actions button { flex: 1; border: 0; border-top: 1px solid var(--line); background: var(--paper); padding: var(--s-2); font-size: var(--fs-xs); font-weight: 600; }
.photo .photo-actions button:hover:not(:disabled) { background: var(--brand-50); color: var(--brand); }
.photo .main-tag { position: absolute; top: var(--s-2); left: var(--s-2); }
.dropzone { display: grid; place-items: center; gap: var(--s-2); padding: var(--s-6) var(--s-4); border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--paper); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-50); }
.size-rows { display: grid; gap: var(--s-2); }
.size-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--s-2); align-items: center; }
.x-btn { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); font-size: var(--fs-lg); }
.x-btn:hover { border-color: var(--sale); color: var(--sale); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-5); align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1fr); } .form-layout > aside { position: static !important; } }
.step { font-family: var(--head); font-weight: 600; font-size: var(--fs-xl); color: var(--ink); margin: 0 0 var(--s-3); }
@media print {
  .admin { background: #fff; }
  .admin-bar, .admin-head .actions, .actions { display: none !important; }
  .panel { border: 0; }
}
