/* ============ Tokens ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --line: #ececec;
  --red: #e1251b;
  --red-d: #c11d14;
  --red-soft: #fdecea;
  --on-ink: #ffffff;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0d; --bg-alt: #121214; --surface: #161618; --ink: #f4f4f5; --fg: #ececec;
    --muted: #9a9a9f; --line: #26262a; --red: #ff3b30; --red-d: #ff5a50; --red-soft: #2a1513; --on-ink: #0c0c0d;
    color-scheme: dark;
  }
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; border: 1.5px solid var(--red); border-radius: 10px; padding: 12px 22px; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--red-d); border-color: var(--red-d); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.dark:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { padding: 9px 16px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn.disabled { opacity: .35; pointer-events: none; }
.arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Header ============ */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { height: 44px; width: auto; display: block; }
.logo .tag { font-weight: 600; font-size: .95rem; padding-left: 12px; border-left: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .93rem; }
.nav a:not(.btn):hover { color: var(--ink); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.cart-btn:hover { border-color: var(--ink); }
.cart-count { background: var(--red); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: .75rem; padding: 0 6px; }

/* ============ Footer ============ */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* ============ Home ============ */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.hero { padding: 96px 0 88px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -.035em; max-width: 13ch; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--muted); max-width: 560px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn { padding: 15px 26px; font-size: 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hero-list li { display: flex; align-items: center; gap: 18px; padding: 15px 2px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); font-size: 1.02rem; }
.hero-list li span:first-child { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; width: 20px; }
.hero-list .shop-li a { display: flex; align-items: center; gap: 18px; width: 100%; text-decoration: none; color: var(--red); font-weight: 600; }
.hero-list .shop-li a span:first-child { color: var(--red); }
.hero-list .shop-li .arrow { margin-left: auto; }
.hero-list .shop-li a:hover .arrow { transform: translateX(3px); }

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; margin-top: 12px; }
.section-head p { color: var(--muted); max-width: 420px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--surface); padding: 30px 26px 32px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: background .15s; }
.svc .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-alt); color: var(--ink); margin-bottom: 14px; }
.svc .ico svg { width: 22px; height: 22px; }
.svc h3 { font-size: 1.08rem; font-weight: 600; }
.svc p { color: var(--muted); font-size: .93rem; }
.svc.shop { background: var(--ink); color: var(--on-ink); }
.svc.shop h3 { color: var(--on-ink); }
.svc.shop p { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.svc.shop .ico { background: var(--red); color: #fff; }
.svc.shop .go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .9rem; color: var(--on-ink); }
.svc.shop:hover .arrow { transform: translateX(3px); }

.band { background: var(--ink); color: var(--on-ink); border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { color: var(--on-ink); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band p { color: color-mix(in srgb, var(--on-ink) 70%, transparent); margin-top: 8px; }
.band-wrap { padding: 0 0 88px; }

.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.about h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 12px; }
.about .about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }
.about .about-copy a { color: var(--red); text-decoration: none; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stats div { border-top: 2px solid var(--ink); padding-top: 12px; }
.stats strong { display: block; font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: .88rem; }

.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
a.contact:hover { border-color: var(--ink); }
.contact .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact strong { color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.contact .ico { color: var(--red); margin-bottom: 8px; }

/* ============ Shop ============ */
.shop-intro { padding: 48px 0 8px; }
.shop-intro h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; margin: 12px 0 10px; }
.shop-intro p { color: var(--muted); font-size: 1.05rem; }
.how { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9rem; color: var(--muted); }
.how li { display: flex; align-items: center; gap: 8px; }
.how b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: .75rem; }

main.shop { padding-bottom: 80px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 28px 0 24px; padding-top: 24px; border-top: 1px solid var(--line); }
#tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
#tabs::-webkit-scrollbar { display: none; }
#tabs button { flex: none; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 500; font-size: .88rem; cursor: pointer; }
#tabs button:hover { color: var(--ink); }
#tabs button.active { background: var(--ink); color: var(--on-ink); }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--muted); flex: 1 1 220px; max-width: 300px; background: var(--surface); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .92rem; color: var(--fg); padding: 9px 0; width: 100%; }
.search:focus-within { border-color: var(--ink); }

#grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.ph::before { content: attr(data-icon); font-size: 3rem; position: absolute; }
.ph img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 14px; background: #fff; transition: transform .25s; }
.card:hover .ph img { transform: scale(1.04); }
.ph.photo img { object-fit: cover; padding: 0; }
.credits { width: 100%; font-size: .8rem; }
.credits summary { cursor: pointer; }
.credits ul { margin: 8px 0 0; padding-left: 18px; columns: 2; }
@media (max-width: 640px) { .credits ul { columns: 1; } }
.ph.sm { width: 56px; height: 56px; flex: none; border-radius: 10px; }
.ph.sm::before { font-size: 1.5rem; }
.ph.sm img { padding: 4px; }
.meta { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.brand { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card h3 { font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
.size { color: var(--muted); font-size: .85rem; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; }
.price { font-weight: 600; color: var(--ink); }
.add { background: var(--ink); color: var(--on-ink); border: 0; border-radius: 8px; padding: 8px 18px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .15s; }
.add:hover { background: var(--red); color: #fff; }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.qty button { width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 1.05rem; cursor: pointer; }
.qty button:hover { background: var(--bg-alt); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .92rem; }
.none { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

#cartbar { position: fixed; z-index: 15; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 8px 8px 8px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.2); font-size: .95rem; }

#drawer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
#drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; }
#drawer .sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
#drawer.open { pointer-events: auto; }
#drawer.open .scrim { opacity: 1; }
#drawer.open .sheet { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.15rem; }
.x { border: 1px solid var(--line); background: transparent; color: var(--ink); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
#drawer .lines { flex: 1; overflow-y: auto; padding: 4px 20px; }
.sheet-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lines li:last-child { border-bottom: 0; }
.l-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.l-info strong { font-size: .92rem; font-weight: 600; color: var(--ink); }
.l-info span { color: var(--muted); font-size: .82rem; }
.l-info .qty { align-self: flex-start; margin-top: 6px; }
.l-info .qty span { color: var(--ink); }
.l-amt { font-weight: 600; white-space: nowrap; color: var(--ink); }
.empty-cart { justify-content: center; color: var(--muted); padding: 48px 0 !important; border: 0 !important; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-weight: 500; }
.total-row strong { font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.sheet-foot .total-row { padding-top: 0; }

/* ============ Checkout ============ */
.page { padding-top: 40px; padding-bottom: 72px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 28px; }
.co-grid, .done-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h2 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; }
.panel h2 small { font-weight: 400; font-size: .85rem; }
#form label { display: block; margin: 18px 0 0; font-weight: 500; font-size: .9rem; color: var(--ink); }
#form input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); }
#form input:focus { outline: 0; border-color: var(--ink); }
.pickup-note { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; border-left: 2px solid var(--red); padding: 4px 0 4px 14px; font-size: .88rem; color: var(--muted); }
.pickup-note strong { color: var(--ink); }
#error { color: var(--red); min-height: 1.4em; margin: 14px 0 8px; font-weight: 500; font-size: .9rem; }
.empty { text-align: center; padding: 56px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

.done-head { text-align: center; padding: 16px 0 36px; }
.done-head h1 { margin: 14px 0 8px; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.done-head p { color: var(--muted); margin: 0 0 24px; }
.tick { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: 1.5rem; }
.ref { display: inline-flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 14px 28px; background: var(--surface); }
.ref span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.ref strong { font-size: 1.6rem; letter-spacing: .08em; color: var(--red); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps { list-style: none; counter-reset: s; margin: 12px 0 0; padding: 0; }
.steps li { counter-increment: s; display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: .85rem; }
.steps li > div { flex: 1; min-width: 0; }
.steps b { color: var(--ink); }
.steps p { margin: 4px 0 0; color: var(--muted); }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 12px 0 0; background: var(--bg-alt); border-radius: 10px; padding: 14px 16px; font-size: .9rem; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-word; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 2px 10px; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.note { color: var(--muted); font-size: .88rem; margin: 6px 0 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-list { display: none; }
  .about { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 820px) {
  .co-grid, .done-grid { grid-template-columns: 1fr; }
  .co-grid > section { order: -1; }
  .contacts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav .txt { display: none; }
  .logo img { height: 32px; }
  .logo .tag { display: none; }
  .hero { padding: 56px 0 56px; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .section { padding: 64px 0; }
  .services { grid-template-columns: 1fr; }
  .band { padding: 32px 24px; }
  .band .btn { width: 100%; }
  .band-wrap { padding-bottom: 64px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  #grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .buy { flex-direction: column; align-items: stretch; }
  .add { width: 100%; }
  .qty { justify-content: space-between; }
  .cart-btn .lbl { display: none; }
  .search { max-width: none; }
}
@media print {
  .topbar, .actions, .copy, footer { display: none !important; }
  .done-grid { grid-template-columns: 1fr; }
}
