/* Skatixx — retro-rink storefront styles */
:root {
  --cream: #FFF6EA;
  --paper: #FFFFFF;
  --ink: #1C1433;
  --ink-2: #463E60;
  --muted: #7C7592;
  --line: #EDE2D2;
  --line-2: #E2D5C2;
  --pink: #FF3D6E;
  --pink-d: #DE2558;
  --pink-soft: #FFE3EA;
  --teal: #00A396;
  --teal-soft: #D9F4F1;
  --sun: #FFC23D;
  --sun-soft: #FFF0C9;
  --violet: #6A4DF4;
  --violet-soft: #ECE7FF;
  --red: #D93636;
  --green: #1C8A4E;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 0 rgba(28,20,51,.04), 0 8px 24px -12px rgba(28,20,51,.18);
  --font-head: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 15.5px/1.55 var(--font); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-d); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ico { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,246,234,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font: 800 26px/1 var(--font-head); letter-spacing: -.04em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .mark { width: 34px; height: 34px; }
.logo b { color: var(--pink); font-weight: 800; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 6px 0 16px; height: 44px; max-width: 520px; }
.search:focus-within { border-color: var(--ink); }
.search input[type=search] { flex: 1; border: 0; outline: 0; background: none; font: inherit; min-width: 0; padding: 0; border-radius: 0; width: auto; }
.search button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; height: 32px; width: 36px; display: grid; place-items: center; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav button.linkish { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-weight: 600; font-size: 14.5px; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }
.nav .sell { background: var(--pink); color: #fff; }
.nav .sell:hover { background: var(--pink-d); color: #fff; }
.badge-count { background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }

.subnav { border-bottom: 1px solid var(--line); background: var(--cream); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; color: var(--ink-2); }
.subnav a:hover, .subnav a.on { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }

/* bottom tab bar (mobile app feel) */
.tabbar { display: none; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 700 15px/1 var(--font); padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff; transition: transform .08s, background .15s; text-align: center; }
.btn:hover { color: #fff; background: #2d2350; }
.btn:active { transform: translateY(1px); }
.btn.pink { background: var(--pink); }
.btn.pink:hover { background: var(--pink-d); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn.teal { background: var(--teal); }
.btn.danger { background: var(--red); }
.btn.sm { padding: 9px 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled] { background: var(--line-2); color: var(--muted); cursor: not-allowed; }
button.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linkish.u { text-decoration: underline; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line-2); border-radius: var(--radius-s); padding: 11px 13px; outline: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--pink); width: 17px; height: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span { display: inline-block; padding: 9px 14px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.chip-radio input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.chip-radio small { display: block; font-size: 11.5px; font-weight: 500; opacity: .7; }

/* ---------- alerts ---------- */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-s); font-weight: 600; font-size: 14.5px; }
.flash.success { background: var(--teal-soft); color: #00645c; }
.flash.error { background: var(--pink-soft); color: #A3123D; }
.flash.info { background: var(--sun-soft); color: #7A5200; }
.errors { background: var(--pink-soft); color: #A3123D; border-radius: var(--radius-s); padding: 12px 16px 12px 34px; margin-bottom: 18px; }
.errors li { margin: 2px 0; }

/* ---------- cards & tags ---------- */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; }
.tag.new { background: var(--teal-soft); color: #00665e; }
.tag.used { background: var(--sun-soft); color: #7A5200; }
.tag.verified { background: var(--teal); color: #fff; }
.tag.community { background: var(--violet-soft); color: #4A2FD1; }
.tag.off { background: var(--pink); color: #fff; }
.tag.grey { background: #F0EAE1; color: var(--ink-2); }
.tag.held { background: var(--ink); color: #fff; }
.tag .ico { width: 13px; height: 13px; }

/* status pill */
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #F0EAE1; color: var(--ink-2); white-space: nowrap; }
.st-live, .st-delivered, .st-paid { background: var(--teal-soft); color: #00665e; }
.st-pending, .st-placed, .st-held, .st-awaiting_item { background: var(--sun-soft); color: #7A5200; }
.st-changes, .st-due, .st-packed, .st-confirmed { background: var(--violet-soft); color: #4A2FD1; }
.st-shipped { background: #E1EEFF; color: #1A4FA0; }
.st-rejected, .st-cancelled, .st-failed, .st-returned, .st-expired { background: var(--pink-soft); color: #A3123D; }
.st-sold { background: var(--ink); color: #fff; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pcard { position: relative; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(28,20,51,.04), 0 18px 34px -16px rgba(28,20,51,.3); color: var(--ink); }
.pcard .img { aspect-ratio: 1; background: #F6EEE2; position: relative; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; }
.pcard .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.pcard .vid { position: absolute; bottom: 10px; right: 10px; background: rgba(28,20,51,.78); color: #fff; border-radius: 99px; padding: 4px 8px; font-size: 11.5px; font-weight: 700; display: flex; gap: 4px; align-items: center; }
.pcard .vid .ico { width: 13px; height: 13px; }
.pcard .body { padding: 12px 14px 15px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard .brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pcard .t { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta { font-size: 12.5px; color: var(--muted); }
.pcard .price { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.price b { font: 800 19px/1 var(--font-head); }
.price s { color: var(--muted); font-size: 13px; }
.pcard.held .img::after { content: "In someone's cart"; position: absolute; inset: auto 0 0; background: rgba(28,20,51,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 6px; text-align: center; }

/* ---------- home ---------- */
.hero { padding: 36px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.hero-intro { padding: 10px 6px 0 0; }
.hero-intro h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 14px; }
.hero-intro h1 em { font-style: normal; color: var(--pink); }
.hero-intro p { font-size: 17px; color: var(--ink-2); max-width: 36ch; }
.lane { position: relative; overflow: hidden; border-radius: 26px; padding: 24px; min-height: 290px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink); isolation: isolate; }
.lane:hover { color: var(--ink); }
.lane h2 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.lane p { margin: 0 0 14px; font-weight: 500; max-width: 28ch; }
.lane .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 16px; align-self: flex-start; }
.lane .art { position: absolute; z-index: -1; right: -24px; top: -34px; width: 200px; opacity: .55; transition: transform .3s; }
.lane:hover .art { transform: rotate(-6deg) translateY(4px); }
.lane.new { background: linear-gradient(160deg, #7FE3D8, #00A396); }
.lane.used { background: linear-gradient(160deg, #FFE08A, #FFB21E); }
.lane .count { position: absolute; top: 20px; left: 24px; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.65); border-radius: 99px; padding: 5px 11px; }

.shopby { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 8px; }
.shopby a { background: var(--paper); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); font-weight: 700; }
.shopby a span.circle { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 18px var(--font-head); }
.shopby a small { display: block; font-weight: 500; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cats a { background: var(--paper); border-radius: var(--radius); padding: 16px 10px 14px; text-align: center; font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow); }
.cats a svg { width: 44px; height: 44px; margin: 0 auto 8px; display: block; color: var(--ink); }
.cats a:hover svg { color: var(--pink); }

.section { padding: 34px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; color: var(--pink-d); white-space: nowrap; }

.sellband { margin: 40px 0 10px; background: var(--ink); color: #fff; border-radius: 28px; padding: 34px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.sellband h2 { font-size: clamp(26px, 3.4vw, 36px); color: #fff; }
.sellband p { color: #CFC9E3; max-width: 46ch; }
.steps3 { display: grid; gap: 10px; }
.steps3 div { background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.steps3 b { width: 30px; height: 30px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; flex: none; font-family: var(--font-head); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0; }
.trust div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.trust svg { width: 26px; height: 26px; color: var(--pink); flex: none; }
.trust b { display: block; }

/* ---------- shop / filters ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; padding: 26px 0 40px; }
.filters { position: sticky; top: 130px; align-self: start; max-height: calc(100vh - 150px); overflow: auto; padding-right: 4px; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; font-family: var(--font); }
.filters .opt { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-weight: 500; font-size: 14.5px; cursor: pointer; }
.filters .opt input { accent-color: var(--pink); }
.seg { display: flex; background: var(--paper); border-radius: 99px; padding: 4px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.seg a { flex: 1; text-align: center; padding: 8px 6px; border-radius: 99px; font-weight: 700; font-size: 13.5px; }
.seg a.on { background: var(--ink); color: #fff; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar h1 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.toolbar select { width: auto; padding: 8px 12px; border-radius: 99px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 14px; }
.active-filters a { font-size: 13px; font-weight: 600; background: var(--paper); padding: 5px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.active-filters a::after { content: ' ×'; color: var(--pink); }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 50px 20px; }
.empty svg { width: 70px; height: 70px; margin: 0 auto 10px; color: var(--line-2); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 99px; font-weight: 700; background: var(--paper); }
.pager span { background: var(--ink); color: #fff; }

/* ---------- product page ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; padding: 18px 0 30px; align-items: start; }
.gallery .main { background: #F6EEE2; border-radius: 24px; overflow: hidden; aspect-ratio: 1; position: relative; }
.gallery .main img, .gallery .main video { width: 100%; height: 100%; object-fit: contain; background: #F6EEE2; }
.gallery .main video { background: #000; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #F6EEE2; position: relative; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .vthumb { display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; gap: 2px; }
.thumbs .vthumb svg { width: 22px; height: 22px; }
.buybox h1 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 6px; }
.buybox .brandline { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--muted); }
.buybox .price { margin: 14px 0 4px; }
.buybox .price b { font-size: 34px; }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.stars { color: #F5A300; letter-spacing: 1px; }
.grade-box { margin: 16px 0; background: var(--sun-soft); border-radius: 14px; padding: 14px 16px; }
.grade-box .scale { display: flex; gap: 4px; margin: 8px 0; }
.grade-box .scale span { flex: 1; height: 7px; border-radius: 9px; background: rgba(122,82,0,.18); }
.grade-box .scale span.on { background: #B67C00; }
.grade-box p { margin: 0; font-size: 14px; }
.verified-box { display: flex; gap: 12px; background: var(--teal-soft); border-radius: 14px; padding: 13px 16px; margin: 12px 0; font-size: 14px; color: #00544d; }
.verified-box svg { width: 26px; height: 26px; flex: none; color: var(--teal); }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 10px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 8px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--muted); font-weight: 500; }
.seller-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--violet-soft); margin: 14px 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font: 800 17px var(--font-head); flex: none; }
.perks { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin-top: 12px; }
.perks div { display: flex; gap: 8px; align-items: center; }
.perks svg { width: 18px; height: 18px; color: var(--teal); }
.desc { white-space: pre-line; }

.reviews { display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding: 10px 0 30px; }
.rev-summary .big { font: 800 52px/1 var(--font-head); }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review .who { font-weight: 700; font-size: 14px; }
.review .reply { margin-top: 10px; background: var(--cream); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 30px; color: var(--line-2); cursor: pointer; margin: 0; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #F5A300; }
.star-input input:focus-visible + label { outline: 2px solid var(--pink); border-radius: 4px; }

/* ---------- cart / checkout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 26px; padding: 26px 0 40px; align-items: start; }
.line-item { display: grid; grid-template-columns: 86px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item img, .line-item .ph { width: 86px; height: 86px; border-radius: 12px; object-fit: cover; background: #F6EEE2; }
.line-item .t { font-weight: 600; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty input { width: 64px; padding: 7px 8px; }
.summary { position: sticky; top: 90px; }
.summary .r { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .tot { border-top: 1.5px dashed var(--line-2); margin-top: 8px; padding-top: 12px; font: 800 20px var(--font-head); }
.hold-note { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.hold-note svg { width: 14px; height: 14px; color: var(--pink); }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-2); margin-bottom: 10px; cursor: pointer; background: var(--paper); }
.pay-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.pay-opt.disabled { opacity: .55; cursor: not-allowed; }
.pay-opt input { accent-color: var(--pink); margin-top: 4px; }

/* ---------- account / tables ---------- */
.page { padding: 26px 0 50px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.tabs a.on { background: var(--ink); color: #fff; box-shadow: none; }
.tabs a .n { opacity: .65; margin-left: 4px; }
table.t { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; background: #FBF5EC; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t .thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #F6EEE2; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.listing-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.listing-row img, .listing-row .ph { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; background: #F6EEE2; }
.note { background: var(--sun-soft); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; margin-top: 8px; }
.note.pink { background: var(--pink-soft); }
.note.teal { background: var(--teal-soft); }
.timeline { display: flex; gap: 0; margin: 18px 0 8px; }
.timeline div { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); position: relative; padding-top: 22px; }
.timeline div::before { content: ''; position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); transform: translateX(-50%); z-index: 1; }
.timeline div::after { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 3px; background: var(--line-2); }
.timeline div:first-child::after { display: none; }
.timeline div.done { color: var(--ink); }
.timeline div.done::before, .timeline div.done::after { background: var(--teal); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi .v { font: 800 30px/1.1 var(--font-head); margin-top: 4px; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 600; }
a.kpi:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.kpi.alert .v { color: var(--pink-d); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: 10px; }
.bars div { flex: 1; background: var(--pink); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; }
.bars div:hover::after { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 6px; white-space: nowrap; margin-bottom: 4px; }
.bars-x { display: flex; gap: 6px; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.bars-x span { flex: 1; text-align: center; }

/* admin shell */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 69px); }
.admin-nav { background: var(--ink); color: #CFC9E3; padding: 18px 12px; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.on { background: var(--pink); color: #fff; }
.admin-nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8C85A6; margin: 16px 12px 6px; }
.admin-main { padding: 26px 28px 50px; min-width: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.media-grid .m { position: relative; border-radius: 12px; overflow: hidden; background: #F6EEE2; aspect-ratio: 1; }
.media-grid img { width: 100%; height: 100%; object-fit: cover; }
.media-grid label { position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 7px; font-size: 12px; margin: 0; display: flex; gap: 5px; align-items: center; }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 18px; text-align: center; background: #FFFCF7; }
.dropzone input { width: 100%; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.form-card { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.form-card h3 { margin-bottom: 14px; }
.decision { display: grid; gap: 10px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--cream) 30%); padding: 18px 0 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.auth { max-width: 440px; margin: 40px auto 60px; }
.auth .card { padding: 30px; }
footer.foot { background: var(--ink); color: #BDB6D6; margin-top: 40px; padding: 40px 0 30px; font-size: 14px; }
footer.foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
footer.foot h4 { color: #fff; font-family: var(--font); font-size: 14px; margin-bottom: 10px; }
footer.foot a { display: block; padding: 3px 0; }
footer.foot a:hover { color: #fff; }
footer.foot .logo { color: #fff; margin-bottom: 10px; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 16px; font-size: 12.5px; grid-column: 1 / -1; }
.prose h2 { margin-top: 1.4em; font-size: 22px; }
.prose { max-width: 760px; }
.size-table td, .size-table th { text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-intro { grid-column: 1 / -1; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .admin-nav .grp { display: none; }
  .admin-nav a { white-space: nowrap; gap: 6px; }
  .admin-main { padding: 18px 16px 40px; }
}
@media (max-width: 820px) {
  body { padding-bottom: 72px; }
  .top .wrap { height: auto; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
  .nav .hide-m { display: none; }
  .logo { font-size: 23px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); position: relative; padding: 4px 0; }
  .tabbar a .ico { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.sell-tab .ico { background: var(--pink); color: #fff; border-radius: 12px; padding: 4px; width: 34px; height: 30px; }
  .tabbar .badge-count { position: absolute; top: 0; right: 22%; }
  .shop-layout, .pdp, .two-col, .reviews, .sellband { grid-template-columns: 1fr; }
  .pdp { gap: 18px; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: var(--cream); z-index: 60; padding: 20px; max-height: none; transform: translateX(105%); transition: transform .25s; visibility: hidden; }
  .filters.open { box-shadow: -20px 0 40px rgba(0,0,0,.2); visibility: visible; }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .shopby { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard .body { padding: 10px 11px 12px; }
  .pcard .t { font-size: 14px; }
  .price b { font-size: 17px; }
  .lane { min-height: 220px; padding: 18px; }
  .lane h2 { font-size: 24px; }
  .lane .art { width: 170px; }
  .summary { position: static; }
  footer.foot .wrap { grid-template-columns: 1fr 1fr; }
  .listing-row { grid-template-columns: 70px 1fr; }
  .listing-row img, .listing-row .ph { width: 70px; height: 70px; }
  .listing-row .actions { grid-column: 1 / -1; }
  .subnav { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 20px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi .v { font-size: 24px; }
  .buy-actions { grid-template-columns: 1fr; }
  .sellband { padding: 24px; }
}
