/* Storefront clickable prototype (W-8b20e28e). Role tokens only, no brand: the store owner sets these. */
:root {
  --bg: #ffffff; --surface: #f4f4f6; --ink: #16161a; --muted: #6b6b76; --rule: #e3e3e8;
  --accent: #5b4bdb; --on-accent: #ffffff; --link: #5b4bdb; --header: #16161a; --on-header: #ffffff;
  --b-new: #1f7a4d; --b-pre: #2b5fd9; --b-best: #8a6200; --b-ltd: #8e3bb8; --b-out: #6b6b76;
  --radius: 10px; --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --link:#a99cff; --bg:#121216; --surface:#1d1d23; --ink:#ececf1; --muted:#9d9daa; --rule:#2c2c35; --header:#0a0a0d; color-scheme: dark; } }
:root[data-theme="dark"] { --link:#a99cff; --bg:#121216; --surface:#1d1d23; --ink:#ececf1; --muted:#9d9daa; --rule:#2c2c35; --header:#0a0a0d; color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2 { letter-spacing: -0.01em; line-height: 1.15; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.placeholder { opacity: .6; cursor: default; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--bg); padding: 8px; }
.muted { color: var(--muted); } .center { text-align: center; } .right { text-align: right; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.proto-bar { background: #fff3c4; color: #3d3200; font-size: 13px; text-align: center; padding: 6px 12px; }

.btn { display: inline-block; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font: 600 14px var(--font); padding: 10px 18px; text-decoration: none; cursor: pointer; text-align: center; }
.btn:disabled { background: var(--rule); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-wide { width: 100%; padding: 14px; font-size: 16px; }
.link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; text-decoration: underline; }
.icon-btn { background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; padding: 6px 8px; text-decoration: none; position: relative; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px 24px; background: var(--header); color: var(--on-header); }
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a, .mega-btn { color: var(--on-header); text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; cursor: pointer; font-family: var(--font); }
.logo { font-weight: 800; letter-spacing: .12em; font-size: 20px; text-decoration: none; color: inherit; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.search input { width: 160px; border: 0; border-radius: 8px; padding: 8px 10px; background: rgba(255,255,255,.12); color: var(--on-header); }
.search input::placeholder { color: rgba(255,255,255,.6); }
.count { position: absolute; top: -2px; right: -4px; background: var(--accent); color: var(--on-accent); font-size: 11px; border-radius: 999px; padding: 1px 6px; }
.mega { position: relative; }
.mega-panel { position: fixed; left: 0; right: 0; background: var(--surface); color: var(--ink); padding: 28px 40px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.mega-panel ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.mega-panel a { color: var(--ink); font-size: 17px; }
.menu-btn { display: none; color: var(--on-header); }
.mobile-menu { display: flex; flex-direction: column; background: var(--surface); padding: 12px 24px; }
.mobile-menu a { padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }

/* hero */
.hero { position: relative; height: 460px; overflow: hidden; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s; display: flex; align-items: center; padding: 0 8%; }
.slide.active { opacity: 1; }
.slide-text { color: #fff; max-width: 520px; background: rgba(0,0,0,.45); padding: 20px 24px; border-radius: var(--radius); }
.slide-text h2 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 8px; }
.hero-controls { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.35); color: #fff; border-radius: 999px; padding: 4px 12px; }
.dot { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.dot.on::after { background: #fff; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px; }
.tile { aspect-ratio: 16/9; border-radius: var(--radius); background-size: cover; display: flex; align-items: end; padding: 14px; color: #fff; font-weight: 800; font-size: 20px; text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

.band { padding: 32px 24px; text-align: center; }
.band h2 { text-align: left; font-size: 30px; text-transform: uppercase; margin: 0 0 20px; }
.band .btn-ghost { margin-top: 24px; }
.banner { margin: 16px 24px; border-radius: var(--radius); height: 280px; background-size: cover; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }

/* product grid + card */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.card-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .hover { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.card:hover .card-img .hover { opacity: 1; }
.card-body { flex: 1; }
.card h3 { font-size: 15px; margin: 0; } .card h3 a { text-decoration: none; }
.sub { color: var(--muted); font-size: 13px; margin: 2px 0; }
.price { font-weight: 700; margin: 4px 0 0; } .price s { color: var(--muted); font-weight: 400; } .price small { color: var(--muted); font-weight: 400; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; border-radius: 4px; padding: 2px 7px; background: var(--b-new); vertical-align: middle; }
.card > .badge { position: absolute; top: 16px; left: 16px; }
.badge-pre-order { background: var(--b-pre); } .badge-best-selling { background: var(--b-best); } .badge-limited-edition { background: var(--b-ltd); } .badge-sold-out { background: var(--b-out); }

/* collection */
.coll-banner { height: 200px; background-size: cover; display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.coll-banner h1 { font-size: 40px; margin: 0; }
.crumbs { padding: 16px 24px 0; font-size: 14px; } .crumbs a { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; padding: 16px 24px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.filters label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); gap: 4px; }
.filters select, .filters input, .co-form input { font: inherit; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); color: var(--ink); }
#coll-grid { padding: 0 24px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 0; }
#showing { margin-top: 24px; } #more { margin-bottom: 32px; }

/* product */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 20px 24px; }
.gallery { position: sticky; top: 90px; align-self: start; }
.gallery > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { border: 1px solid var(--rule); border-radius: 8px; padding: 0; overflow: hidden; width: 72px; cursor: pointer; background: none; }
.info h1 { font-size: 32px; margin: 0 0 4px; }
.big { font-size: 22px; }
.spec-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.spec-tiles div { background: var(--surface); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; }
.spec-tiles span { font-size: 12px; color: var(--muted); }
.notice { background: var(--surface); border-left: 4px solid var(--b-pre); padding: 10px 12px; border-radius: 6px; }
.opt { border: 0; padding: 0; margin: 0 0 16px; } .opt legend { font-weight: 700; margin-bottom: 8px; }
.pill { display: inline-block; margin: 0 6px 6px 0; position: relative; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.pill input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pill input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 14px; }
.qty button { background: none; border: 0; font-size: 18px; width: 36px; height: 36px; cursor: pointer; color: inherit; }
.qty input { width: 48px; text-align: center; border: 0; background: none; color: inherit; font: inherit; }
.qty span { min-width: 28px; text-align: center; }
.acc { border-bottom: 1px solid var(--rule); padding: 12px 0; } .acc summary { cursor: pointer; font-weight: 600; }

/* cart + checkout */
.narrow { max-width: 900px; margin: 0 auto; padding: 32px 24px 48px; }
.cart { width: 100%; border-collapse: collapse; }
.cart th { text-align: left; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--rule); padding: 8px 0; }
.cart th.right { text-align: right; }
.cart td { border-bottom: 1px solid var(--rule); padding: 16px 0; vertical-align: top; }
.line { display: flex; gap: 14px; } .line img { width: 88px; border-radius: 8px; }
.cart-foot { margin-left: auto; max-width: 340px; text-align: right; padding-top: 18px; }
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; padding: 32px 24px 48px; }
.co-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.co-form input:not([type=checkbox]):not([type=radio]) { width: 100%; min-width: 0; }
.checkout > * { min-width: 0; }
.mobile-menu input { width: 100%; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 6px; font: inherit; }
.conf-lines { list-style: none; padding: 0; } .conf-lines li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--rule); } .co-form h2 { font-size: 18px; margin: 18px 0 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio, .optin { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.precontract { background: var(--surface); border-radius: 8px; padding: 12px; font-size: 14px; }
.co-summary { background: var(--surface); border-radius: var(--radius); padding: 20px; align-self: start; }
.co-summary ul { list-style: none; padding: 0; } .co-summary li { display: flex; justify-content: space-between; padding: 6px 0; }

/* footer */
.site-footer { background: var(--header); color: var(--on-header); padding: 40px 24px 20px; margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr; gap: 24px; }
.footer-cols h3 { font-size: 14px; color: rgba(255,255,255,.6); margin: 0 0 10px; }
.footer-cols a { display: block; text-decoration: none; padding: 3px 0; color: var(--on-header); }
.newsletter { display: flex; flex-direction: column; gap: 8px; } .newsletter input[type=email] { padding: 9px; border-radius: 8px; border: 0; }
.copy { color: rgba(255,255,255,.55); font-size: 13px; margin-top: 30px; }

/* below the lg stop (1024 px): 2-up grid, mobile menu */
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav, .search { display: none; }
  .menu-btn { display: block; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .logo { text-align: center; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .pdp, .checkout { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .hero { height: 360px; }
  .site-header { padding: 10px 12px; }
  .band, .tiles { padding-left: 12px; padding-right: 12px; }
  .grid { gap: 10px; }
}
