/* ==========================================================
   Blackboy's Vault: white & red storefront
   ========================================================== */
:root {
  --bg: #ffffff;
  --surface: #f5f5f4;
  --surface-2: #ececea;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #74716d;
  --line: #e7e5e2;
  --red: #d7141a;
  --red-dark: #a50e13;
  --red-soft: #fdeceb;
  --gold: #c9a227;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(17, 17, 17, 0.18);
  --shadow-red: 0 12px 28px -10px rgba(215, 20, 26, 0.55);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tabbar-h: 74px;
  --topbar-h: 64px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
body.no-tabbar { padding-bottom: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.brand-text { font-family: var(--display); font-size: 21px; letter-spacing: .5px; white-space: nowrap; }
.brand-text b { color: var(--red); font-weight: 400; }
.topnav { display: none; gap: 6px; margin: 0 auto; }
.topnav a { padding: 9px 16px; border-radius: 99px; font-weight: 600; color: var(--muted); transition: .2s; }
.topnav a:hover { color: var(--ink); }
.topnav a.active { background: var(--ink); color: #fff; }
.top-actions { display: flex; gap: 8px; margin-left: auto; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); transition: .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 21px; height: 21px; }
.dot-badge {
  position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff; line-height: 1;
}
.hide-sm { display: none; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; z-index: 45; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 24px));
  height: 64px; padding: 7px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: 99px;
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.04);
}
.tabbar a {
  position: relative; height: 50px; min-width: 50px; padding: 0 13px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-2); transition: background .25s, color .25s, padding .25s;
}
.tabbar a span { display: none; font-weight: 700; font-size: 13.5px; }
.tabbar a.active { background: var(--red); color: #fff; padding: 0 18px; box-shadow: var(--shadow-red); }
.tabbar a.active span { display: inline; }
.tab-badge {
  position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800;
  border-radius: 99px; display: grid; place-items: center; border: 2px solid #fff;
}
.tabbar a.active .tab-badge { background: #fff; color: var(--red); border-color: var(--red); }
body.no-tabbar .tabbar { display: none; }

/* ---------- Generic ---------- */
.page { padding-top: 8px; padding-bottom: 32px; animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section { margin-top: 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.section-head h2 em { font-family: var(--serif); font-weight: 700; color: var(--red); }
.see-all { color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.see-all:hover { color: var(--red); }
.see-all svg { width: 16px; height: 16px; }

.page-title { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: .3px; margin: 12px 0 4px; }
.page-title span { color: var(--red); }
.page-sub { color: var(--muted); margin: 0 0 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 99px; font-weight: 700; font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-red { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-block { width: 100%; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); flex: none; transition: .2s;
}
.round-btn:hover { background: var(--surface-2); }
.round-btn.red { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }

/* ---------- Greeting & search ---------- */
.hello { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; }
.hello-pill { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 99px; background: var(--surface); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 15px; flex: none;
}
.hello-pill strong { font-size: 15px; }
.hello-sub { color: var(--muted); font-size: 13px; margin-left: auto; text-align: right; line-height: 1.3; }
.hello-sub b { display: block; color: var(--ink); font-size: 14px; }

.search-row { display: flex; gap: 10px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px;
  border-radius: 99px; background: var(--surface); border: 1.5px solid transparent; transition: .2s;
}
.search:focus-within { background: #fff; border-color: var(--ink); }
.search svg { color: var(--muted); width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search input::placeholder { color: #9c9893; }
.filter-btn { position: relative; width: 52px; height: 52px; }
.filter-btn .count {
  position: absolute; top: -3px; right: -3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}

/* ---------- Hero carousel ---------- */
.hero { margin-top: 18px; position: relative; }
.hero-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: var(--radius);
}
.hero-track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden;
  border-radius: var(--radius); min-height: 200px; padding: 22px 22px 22px 22px;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 10px;
  color: #fff; isolation: isolate;
}
.slide.s-red { background: linear-gradient(135deg, #e3191f 0%, #a50e13 100%); }
.slide.s-ink { background: linear-gradient(135deg, #1b1b1b 0%, #000 100%); }
.slide.s-cream { background: linear-gradient(135deg, #f6efe6 0%, #ead9c6 100%); color: var(--ink); }
.slide::before {
  content: ""; position: absolute; z-index: -1; right: -60px; top: 50%; width: 300px; height: 300px;
  transform: translateY(-50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.18) 0 1.5px, transparent 1.5px 14px);
}
.slide.s-cream::before { background: repeating-radial-gradient(circle, rgba(215,20,26,.22) 0 1.5px, transparent 1.5px 14px); }
.slide-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; opacity: .85; }
.slide h3 { margin: 6px 0 4px; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 8vw, 54px); line-height: .98; letter-spacing: .3px; }
.slide h3 em { font-family: var(--serif); font-style: italic; font-weight: 700; text-transform: none; }
.slide p { margin: 0 0 16px; font-size: 13.5px; opacity: .9; max-width: 34ch; }
.slide .btn { height: 44px; padding: 0 20px; font-size: 14px; }
.slide.s-cream .btn { background: var(--red); color: #fff; }
.slide-img {
  justify-self: end; width: 100%; max-width: 230px; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden;
  transform: rotate(4deg); box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); border: 4px solid rgba(255,255,255,.9);
}
.slide-img img { width: 100%; height: 100%; object-fit: cover; }
.dots { position: absolute; left: 22px; bottom: 14px; display: flex; gap: 6px; }
.dots button { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.5); transition: .3s; }
.dots button.on { width: 22px; background: #fff; }
.dots.dark button { background: rgba(0,0,0,.2); }
.dots.dark button.on { background: var(--red); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; margin: 0 -16px; scroll-padding: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 42px; padding: 0 18px; border-radius: 99px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line); white-space: nowrap; transition: .2s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.on::before { content: "✦"; color: var(--red); font-size: 12px; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.card { position: relative; min-width: 0; }
.card-media {
  position: relative; display: block; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: var(--surface);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.tag {
  position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 99px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  background: #fff; color: var(--ink);
}
.tag.t-hot, .tag.t-deal { background: var(--red); color: #fff; }
.tag.t-new { background: var(--ink); color: #fff; }
.heart {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--ink);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.2); transition: transform .2s;
}
.heart svg { width: 18px; height: 18px; }
.heart:active { transform: scale(.85); }
.heart.on { color: var(--red); }
.heart.pop { animation: pop .4s ease; }
@keyframes pop { 40% { transform: scale(1.3); } }
.card-body { padding: 10px 4px 0; }
.card-cat { font-size: 12px; color: var(--muted); font-weight: 500; }
.card-name { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.3; margin: 2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font-weight: 800; font-size: 16px; letter-spacing: -.2px; }
.price small { font-size: .72em; font-weight: 700; margin-right: 2px; color: var(--muted); }
.swatch-count { font-size: 11.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.swatch-count i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }

/* Horizontal scrollers */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 16px 6px; margin: 0 -16px; scroll-padding: 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.rail .card { width: 46%; max-width: 230px; }

.cat-tile { width: 112px; text-align: center; }
.cat-tile .ring {
  width: 112px; height: 112px; border-radius: 50%; overflow: hidden; padding: 4px;
  background: conic-gradient(from 200deg, var(--red), #ff6b6b, var(--red-dark), var(--red));
}
.cat-tile .ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #fff; }
.cat-tile span { display: block; font-weight: 700; font-size: 13.5px; margin-top: 8px; }
.cat-tile small { color: var(--muted); font-size: 12px; }

.look {
  position: relative; width: 62%; max-width: 280px; aspect-ratio: 3/4.2; border-radius: var(--radius); overflow: hidden; color: #fff;
}
.look img { width: 100%; height: 100%; object-fit: cover; }
.look::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 55%); }
.look span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-family: var(--display); font-size: 22px; line-height: 1.05; letter-spacing: .3px; }
.look small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #ffb3b3; margin-bottom: 4px; }

/* Promo strip */
.promo {
  margin-top: 30px; border-radius: var(--radius); overflow: hidden; position: relative; color: #fff;
  background: var(--ink); padding: 26px 22px; display: grid; gap: 16px; isolation: isolate;
}
.promo::before {
  content: "VAULT"; position: absolute; z-index: -1; right: -10px; bottom: -34px;
  font-family: var(--display); font-size: 150px; line-height: 1; color: rgba(255,255,255,.05); letter-spacing: 4px;
}
.promo h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: .3px; }
.promo h3 em { font-family: var(--serif); color: #ff4d52; }
.promo p { margin: 0; color: #bdbab6; max-width: 46ch; }
.promo .btn { justify-self: start; }

.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; }
.perk { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); }
.perk .pi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--red); flex: none; }
.perk b { display: block; font-size: 13.5px; }
.perk small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }

.footer { margin-top: 40px; padding: 28px 0 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer .brand-text { color: var(--ink); font-size: 18px; }
.socials { display: flex; gap: 8px; }

/* ---------- Shop ---------- */
.shop-top { position: sticky; top: var(--topbar-h); z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 0 12px; }
.shop-top .chips { margin-top: 12px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.results-bar b { color: var(--ink); }
.sort-select { border: 0; background: var(--surface); padding: 9px 14px; border-radius: 99px; font-weight: 600; font-size: 13.5px; }

.empty { text-align: center; padding: 50px 20px; }
.empty .ei { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.empty .ei svg { width: 40px; height: 40px; }
.empty h3 { margin: 0 0 6px; font-size: 22px; }
.empty p { margin: 0 auto 22px; color: var(--muted); max-width: 34ch; }

/* ---------- Product details ---------- */
.detail-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; }
.detail-head h1 { margin: 0; font-size: 18px; font-weight: 800; }
.gallery { position: relative; border-radius: 26px; overflow: hidden; background: var(--surface); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4/4.6; object-fit: cover; scroll-snap-align: start; }
.gallery .dots { left: 50%; transform: translateX(-50%); bottom: 14px; }
.gallery .dots button { background: rgba(0,0,0,.18); }
.gallery .dots button.on { background: var(--red); }
.gallery .tag { left: 14px; top: 14px; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; padding: 3px; box-shadow: inset 0 0 0 2px var(--line); transition: .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.thumb.on { box-shadow: inset 0 0 0 2.5px var(--red); }

.info { margin-top: 18px; }
.info-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.info h2 { margin: 0; font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.4px; }
.info .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.info .price { font-size: 25px; white-space: nowrap; }
.opt-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.opt-head b { font-size: 15.5px; }
.opt-head b span { color: var(--muted); font-weight: 500; }
.link-btn { color: var(--muted); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--red); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 50px; height: 50px; padding: 0 12px; border-radius: 99px; font-weight: 700; font-size: 14px;
  box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; transition: .15s;
}
.size:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.size.on { background: var(--red); color: #fff; box-shadow: 0 0 0 4px var(--red-soft); }
.sizes.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.desc { color: var(--ink-2); font-weight: 400; line-height: 1.65; margin: 18px 0 0; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface); }
.qty button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.qty button svg { width: 16px; height: 16px; }
.qty output { min-width: 26px; text-align: center; font-weight: 800; }
.detail-perks { display: grid; gap: 8px; margin-top: 20px; }
.detail-perks div { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.detail-perks svg { color: var(--red); }
.buybar {
  position: sticky; bottom: 0; z-index: 30; display: flex; gap: 10px; align-items: center;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0));
  margin-top: 18px;
}
.buybar .btn-red { flex: 1; }
.wa-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; font-weight: 700; font-size: 14px; color: #128c4a; }
.wa-link svg { width: 18px; height: 18px; }

/* ---------- Cart ---------- */
.cart-list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 10px; border-radius: 20px; background: var(--surface); }
.cart-item img { width: 92px; height: 108px; object-fit: cover; border-radius: 14px; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.ci-name { font-weight: 700; line-height: 1.3; }
.ci-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.ci-meta b { color: var(--ink); font-weight: 600; }
.ci-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.ci-remove { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.ci-remove:hover { color: var(--red); background: #fff; }
.ci-remove svg { width: 18px; height: 18px; }

.summary { margin-top: 22px; padding: 20px; border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); }
.summary h3 { margin: 0 0 12px; font-size: 17px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); }
.sum-row b { color: var(--ink); }
.sum-row.total { border-top: 1.5px dashed var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink); font-size: 18px; font-weight: 800; }
.sum-row.total b { color: var(--red); }
.fields { display: grid; gap: 12px; margin: 18px 0; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 700; }
.field input, .field textarea {
  height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; outline: 0; transition: .2s;
}
.field textarea { height: 80px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.err input { border-color: var(--red); background: var(--red-soft); }
.fine { color: var(--muted); font-size: 12.5px; text-align: center; margin: 12px 0 0; }

/* ---------- Profile ---------- */
.profile-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, #e3191f, #8f0b10);
}
.profile-card::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.16) 0 1.5px, transparent 1.5px 13px); }
.pc-row { display: flex; align-items: center; gap: 14px; }
.pc-avatar { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-family: var(--display); font-size: 28px; flex: none; }
.pc-name { font-size: 21px; font-weight: 800; line-height: 1.2; }
.pc-sub { opacity: .85; font-size: 13.5px; }
.pc-edit { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; background: rgba(0,0,0,.18); border-radius: 18px; }
.stats a { padding: 12px 6px; text-align: center; }
.stats a + a { border-left: 1px solid rgba(255,255,255,.15); }
.stats b { display: block; font-size: 22px; font-weight: 800; }
.stats span { font-size: 12px; opacity: .85; }

.menu { margin-top: 22px; border-radius: var(--radius); background: var(--surface); padding: 6px; }
.menu-title { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 24px 4px 8px; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; text-align: left; transition: .15s; }
.menu-item:hover { background: #fff; }
.menu-item .mi { width: 42px; height: 42px; border-radius: 13px; background: #fff; color: var(--red); display: grid; place-items: center; flex: none; }
.menu-item:hover .mi { background: var(--red-soft); }
.menu-item b { display: block; font-size: 14.5px; }
.menu-item small { color: var(--muted); font-size: 12.5px; }
.menu-item > svg:last-child { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }

.order { padding: 14px; border-radius: 16px; background: #fff; margin: 6px; }
.order-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.order-top b { color: var(--ink); }
.order-items { display: flex; gap: 6px; margin: 10px 0; }
.order-items img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.order-bottom { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Sheet / modal ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,10,.45); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 28px 28px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  animation: up .3s cubic-bezier(.2,.9,.3,1);
}
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet-head h3 { margin: 0; font-size: 20px; font-weight: 800; }
.sheet h4 { margin: 18px 0 10px; font-size: 14px; }
.sheet .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
.sheet-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 24px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 6px; }
.table th, .table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.table td:first-child { font-weight: 800; color: var(--red); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); transition: .3s; white-space: nowrap; max-width: calc(100% - 32px);
}
.toast svg { color: #ff4d52; width: 18px; height: 18px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.no-tabbar .toast { bottom: 100px; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .rail .card { width: 31%; }
  .look { width: 38%; }
  .perks { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) {
  .slide { min-height: 320px; padding: 40px; }
  .slide p { font-size: 15px; }
  .promo { grid-template-columns: 1fr auto; align-items: center; padding: 36px; }
  .promo .btn { justify-self: end; }
  .cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
  .cart-layout .summary { margin-top: 0; position: sticky; top: calc(var(--topbar-h) + 16px); }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; transform: translate(-50%, -50%); border-radius: 28px; animation: fade .2s; }
  .sheet .grab { display: none; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .hide-sm { display: grid; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rail .card { width: 23%; }
  .look { width: 23%; }
  .toast { bottom: 30px; }
  body.no-tabbar .toast { bottom: 30px; }
  .detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
  .detail .info { margin-top: 0; position: sticky; top: calc(var(--topbar-h) + 20px); }
  .detail .info h2 { font-size: 30px; }
  .buybar { position: static; background: none; padding-bottom: 0; }
  .hero .slide { grid-template-columns: 1.2fr .8fr; }
  .page-title { font-size: 54px; }
}
@media (max-width: 380px) {
  .brand-text { font-size: 18px; }
  .slide { grid-template-columns: 1fr; }
  .slide-img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   Reference-matched refinements
   ========================================================== */
.hello { margin: 6px 0 14px; }
.hello-pill svg { width: 16px; height: 16px; transform: rotate(90deg); color: var(--muted); }

/* Compact hero banner */
.hero { margin-top: 16px; }
.slide {
  min-height: 0; height: 172px; padding: 0 0 0 20px; gap: 0;
  grid-template-columns: 1.15fr .85fr; align-items: stretch;
}
.slide > div:first-child { align-self: center; padding: 16px 0; }
.slide::before { width: 220px; height: 220px; right: -40px; }
.slide-kicker { font-size: 10.5px; letter-spacing: 1.4px; }
.slide h3 {
  font-family: var(--sans); font-weight: 800; font-size: 22px; line-height: 1.15;
  letter-spacing: -.4px; margin: 4px 0 12px;
}
.slide h3 em { font-family: var(--serif); font-weight: 700; color: #ffd1d2; }
.slide.s-cream h3 em { color: var(--red); }
.slide.s-ink h3 em { color: #ff4d52; }
.slide .btn { height: 36px; padding: 0 18px; font-size: 13px; }
.slide-img {
  transform: none; border: 0; box-shadow: none; border-radius: 0; max-width: none;
  width: 100%; height: 100%; aspect-ratio: auto; justify-self: stretch;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
          mask-image: linear-gradient(to right, transparent 0, #000 22%);
}
.dots { left: auto; right: 14px; bottom: 12px; }
.dots button { width: 6px; height: 6px; }
.dots button.on { width: 18px; }

/* Product cards: clean like the reference */
.card-media { border-radius: 18px; }
.card-name { margin-bottom: 4px; }

/* Shop header */
.shop-head { margin: 4px 0 14px; align-items: center; }
.shop-head small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.shop-top { padding-top: 4px; }

/* Page header (Details style) */
.detail-head h1 { font-size: 19px; }
.head-count {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); font-weight: 800;
}

/* Product description */
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.learn { font-weight: 800; color: var(--ink); font-size: 14px; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.learn:hover { color: var(--red); }

@media (max-width: 959px) {
  body.no-tabbar .topbar { display: none; }
  .brand-text { font-size: 22px; }
}
@media (min-width: 760px) {
  .slide { height: 240px; padding-left: 40px; }
  .slide h3 { font-size: 34px; }
  .slide .btn { height: 44px; padding: 0 24px; font-size: 14px; }
}
@media (max-width: 380px) {
  .slide { grid-template-columns: 1.2fr .8fr; }
  .slide-img { display: block; }
}

/* Hero cutouts (background removed) */
.slide-img {
  -webkit-mask-image: none; mask-image: none;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 12px 12px 0; overflow: visible;
}
.slide-img img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .35));
  transform: rotate(-6deg); transition: transform .5s ease;
}
.slide:hover .slide-img img { transform: rotate(-2deg) scale(1.04); }
.slide.s-cream .slide-img img { filter: drop-shadow(0 14px 16px rgba(80, 40, 10, .3)); }
.slide.s-ink .slide-img img { transform: rotate(4deg); filter: drop-shadow(0 14px 18px rgba(255, 255, 255, .08)); }

/* Mobile-first safety */
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
img { height: auto; }
.card-media img, .gallery-track img, .slide-img img, .look img, .cat-tile img, .cart-item img, .order-items img { height: 100%; }
@media (max-width: 359px) {
  .brand-text { font-size: 19px; }
  .slide { padding-left: 16px; }
  .slide h3 { font-size: 19px; }
  .grid { gap: 14px 10px; }
  .card-name { font-size: 13.5px; }
  .tabbar a { padding: 0 10px; min-width: 44px; }
  .tabbar a.active { padding: 0 14px; }
}
@media (min-width: 560px) and (max-width: 959px) {
  .slide { height: 210px; }
}
.search { min-width: 0; }
.search-row > * { flex-shrink: 0; }
.search-row > .search { flex-shrink: 1; }
.perk { min-width: 0; }
.perk > div { min-width: 0; }
@media (max-width: 359px) { .perks { grid-template-columns: 1fr; } }
.slide-img img { max-height: 92%; }
@media (min-width: 560px) and (max-width: 959px) {
  .slide { height: 220px; padding-left: 32px; }
  .slide h3 { font-size: 28px; }
  .slide .btn { height: 40px; padding: 0 20px; }
}
@media (min-width: 960px) {
  .slide { height: 280px; padding-left: 48px; }
  .slide h3 { font-size: 40px; }
}
.slide { grid-template-rows: minmax(0, 1fr); }
.slide > * { min-height: 0; }
.slide-img { height: 100%; }

/* Sale / stock states */
.price-wrap { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-wrap .price { color: var(--red); }
.was { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.info .was { font-size: 15px; }
.tag.t-sale { background: var(--red); color: #fff; }
.tag.t-out { background: var(--ink); color: #fff; }
.card.sold-out .card-media img { filter: grayscale(.85); opacity: .65; }
.promo-note { margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--red-soft); color: var(--red-dark); font-weight: 700; font-size: 13.5px; }
.promo-note svg { width: 16px; height: 16px; }
.stock-note { margin-top: 10px; color: #b45309; font-weight: 700; font-size: 13.5px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; flex: 1; }

/* Boot loader */
.boot-loader { min-height: 60vh; display: flex; align-items: center; justify-content: center; gap: 8px; }
.boot-loader span { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: bl 1s infinite ease-in-out; }
.boot-loader span:nth-child(2) { animation-delay: .15s; }
.boot-loader span:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Delivery / pickup choice */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method label { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method label > span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: .15s; height: 100%; }
.method label > span svg { color: var(--red); width: 20px; height: 20px; margin-bottom: 4px; }
.method b { font-size: 14px; }
.method small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.method input:checked + span { border-color: var(--red); background: var(--red-soft); }
.method input:focus-visible + span { outline: 2.5px solid var(--red); outline-offset: 2px; }
a.perk:hover { background: var(--surface-2); }
