/* T&P WIRELESS — feuille de style
   Identité : papier chaud, encre profonde, un seul accent orange signal.
   Titres en Sora, texte en Inter. Les photos produits restent sur fond blanc. */

:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #ebe9e3;
  --ink: #111216;
  --ink-2: #3d3f45;
  --muted: #6d6f75;
  --line: #e0ddd5;
  --line-strong: #cbc8bf;
  --accent: #ff5a1f;
  --accent-hover: #e94a10;
  --accent-ink: #ffffff;
  --accent-soft: #ffe8dd;
  --accent-text: #c63d0b;
  --dark: #111216;
  --dark-2: #1c1d22;
  --on-dark: #f4f3ef;
  --on-dark-muted: #a7a8ad;
  --photo: #ffffff;
  --ok: #17864a;
  --shadow: 0 1px 2px rgba(17,18,22,.04), 0 8px 24px -12px rgba(17,18,22,.12);
  --shadow-lg: 0 24px 64px -24px rgba(17,18,22,.35);

  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e11; --surface: #17181c; --surface-2: #202227; --ink: #f2f1ed; --ink-2: #c9cacd; --muted: #91939a;
    --line: #2a2c32; --line-strong: #3a3d44; --accent: #ff6a33; --accent-hover: #ff7d4d; --accent-soft: #3a1f14; --accent-text: #ff8a5c;
    --dark: #17181c; --dark-2: #202227; --photo: #ffffff; --ok: #3ccf7f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 64px -24px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0e11; --surface: #17181c; --surface-2: #202227; --ink: #f2f1ed; --ink-2: #c9cacd; --muted: #91939a;
  --line: #2a2c32; --line-strong: #3a3d44; --accent: #ff6a33; --accent-hover: #ff7d4d; --accent-soft: #3a1f14; --accent-text: #ff8a5c;
  --dark: #17181c; --dark-2: #202227; --photo: #ffffff; --ok: #3ccf7f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 64px -24px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 99px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { opacity: .9; }
.btn-line { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--line); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { border-color: var(--ink); }
.round-btn:disabled { opacity: .35; cursor: default; border-color: var(--line-strong); }

/* Tags */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .01em; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag-accent { background: var(--accent); color: #fff; }
.tag-new { background: var(--accent-soft); color: var(--accent-text); }
.tag-refurb { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag-pre { background: var(--ink); color: var(--bg); }

/* Top bar */
.topbar { background: var(--dark); color: var(--on-dark-muted); font-size: 13px; }
.topbar-in { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); height: 36px; align-items: center; overflow: hidden; white-space: nowrap; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; color: var(--accent); }
@media (max-width: 760px) { .topbar span:nth-child(n+2) { display: none; } }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name b { font-weight: 700; }
.hsearch { position: relative; flex: 1; max-width: 560px; margin-inline: auto; }
.hsearch input { width: 100%; height: 46px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 44px 0 46px; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.hsearch input::placeholder { color: var(--muted); }
.hsearch input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); }
.hsearch-ico { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.hsearch-kbd { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font: 600 12px var(--font-text); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px; }
.hsearch input:focus ~ .hsearch-kbd, .hsearch input:not(:placeholder-shown) ~ .hsearch-kbd { display: none; }
.hsearch input::-webkit-search-cancel-button { cursor: pointer; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; max-height: min(70vh, 520px); overflow: auto; }
.sg-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); width: 100%; border: 0; background: none; text-align: left; }
.sg-item:hover, .sg-item.on { background: var(--surface-2); }
.sg-item img, .sg-item .sg-ph { width: 48px; height: 48px; object-fit: contain; background: var(--photo); border-radius: 8px; }
.sg-name { font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-name small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.sg-price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.sg-all { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 12px; margin-top: 4px; border: 0; border-top: 1px solid var(--line); background: none; font-weight: 600; font-size: 14px; color: var(--accent-text); }
.sg-all svg { width: 16px; height: 16px; }
.sg-empty { padding: 16px; color: var(--muted); font-size: 14px; }
.hlinks { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.hlinks a:hover { color: var(--ink); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border-radius: 99px; border: 0; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14.5px; flex: none; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.catbar { border-top: 1px solid var(--line); }
.catbar-in { display: flex; gap: 4px; height: 52px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.catbar a svg { width: 18px; height: 18px; }
.catbar a:hover { background: var(--surface-2); color: var(--ink); }
.catbar a.on { background: var(--ink); color: var(--bg); }
@media (max-width: 1020px) { .hlinks { display: none; } }
@media (max-width: 760px) {
  .header-in { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 10px 12px; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .hsearch input { height: 44px; }
  .brand { margin-right: auto; }
  .cart-label, .hsearch-kbd { display: none; }
  .cart-btn { padding: 0 12px; }
  html { scroll-padding-top: 190px; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.5vw, 40px); }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); }
.sec-sub { color: var(--muted); margin-top: 10px; max-width: 52ch; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.eyebrow-light { color: var(--accent); }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.more-link svg { width: 18px; height: 18px; transition: translate .25s var(--ease); }
.more-link:hover svg { translate: 4px 0; }
.note { color: var(--muted); font-size: 13px; margin-top: 20px; }

/* Hero bento */
.hero { padding-top: clamp(16px, 3vw, 28px); }
.bento { display: grid; grid-template-columns: 1.55fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.tile { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); isolation: isolate; }
.tile-main { grid-row: span 2; background: var(--dark); border-color: transparent; color: var(--on-dark); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 560px; }
.tile-main::before { content: ""; position: absolute; inset: auto -20% -45% 30%; height: 90%; background: radial-gradient(closest-side, rgba(255,90,31,.55), transparent); filter: blur(10px); z-index: -1; }
.tile-main-mark { position: absolute; right: -6%; top: 8%; width: 46%; color: rgba(255,255,255,.04); z-index: -1; }
.tile-main h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; max-width: 13ch; }
.tile-main h1 span { display: block; color: var(--on-dark-muted); font-weight: 500; font-size: .52em; line-height: 1.2; letter-spacing: -0.02em; margin-top: 16px; max-width: 24ch; }
.hero-sub { color: var(--on-dark-muted); margin-top: 18px; max-width: 46ch; font-size: 16.5px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.stats dt { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.stats dd { margin: 4px 0 0; font-size: 13px; color: var(--on-dark-muted); }
.tile-duo { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 300px; background: linear-gradient(135deg, #fff 0%, #f3efe8 100%); color: #111216; border-color: var(--line); }
.tile-duo img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; padding: 20px 20px 0; align-self: end; transition: transform .6s var(--ease); }
.tile-duo:hover img { transform: translateY(-6px) scale(1.03); }
.tile-copy { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.tile-copy h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; }
.tile-copy p { color: #55575d; max-width: 26ch; }
.tile-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; margin-top: 6px; }
.tile-link svg { width: 17px; height: 17px; transition: translate .25s var(--ease); }
.tile:hover .tile-link svg { translate: 4px 0; }
.tile-sm { min-height: 244px; background: var(--photo); color: #111216; display: flex; flex-direction: column; }
.tile-sm .tile-copy { padding-bottom: 0; }
.tile-sm h2 { font-size: clamp(20px, 2vw, 25px); }
.tile-sm .tag { background: #f0eee8; color: #3d3f45; }
.tile-sm img { position: absolute; right: -4%; bottom: -6%; width: 58%; aspect-ratio: 1; object-fit: contain; z-index: 0; transition: transform .6s var(--ease); }
.tile-sm:hover img { transform: scale(1.06) rotate(-2deg); }
.tile-sm .tile-link { margin-top: auto; }
@media (max-width: 1020px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-main { grid-column: span 2; grid-row: auto; min-height: 0; }
  .tile-duo { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile-main, .tile-duo { grid-column: auto; }
  .tile-duo { grid-template-columns: 1fr; min-height: 0; }
  .tile-duo img { max-height: 220px; padding-top: 0; }
  .tile-sm { min-height: 200px; }
  .tile-sm img { width: 46%; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats dd { font-size: 12px; }
  .hero-cta .btn { width: 100%; }
}

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 28px 0; }
.trust > div { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.trust svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.trust p { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.trust b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
@media (max-width: 1020px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust { gap: 10px; } .trust > div { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; } }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat { position: relative; grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: 22px; border-radius: var(--r-xl); background: var(--photo); color: #111216; border: 1px solid var(--line); overflow: hidden; isolation: isolate; text-align: left; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cat:nth-child(1), .cat:nth-child(2) { grid-column: span 3; min-height: 280px; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat h3 { font-size: 22px; letter-spacing: -0.025em; }
.cat-count { font-size: 13.5px; color: #6d6f75; margin-top: 4px; }
.cat-subs { display: flex; flex-wrap: wrap; gap: 6px; max-width: 60%; }
.cat-subs span { font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 99px; background: #f0eee8; color: #3d3f45; }
.cat img { position: absolute; right: -2%; bottom: -4%; width: 52%; height: 78%; object-fit: contain; object-position: bottom right; z-index: -1; transition: transform .6s var(--ease); }
.cat:hover img { transform: scale(1.06); }
.cat-ico { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #111216; color: #fff; }
.cat-ico svg { width: 22px; height: 22px; }
.cat-dark { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.cat-dark .cat-count { color: var(--on-dark-muted); }
.cat-dark .cat-subs span { background: rgba(255,255,255,.1); color: var(--on-dark); }
.cat-dark .cat-ico { background: var(--accent); }
@media (max-width: 1020px) { .cats { grid-template-columns: repeat(2, 1fr); } .cat, .cat:nth-child(1), .cat:nth-child(2) { grid-column: auto; min-height: 220px; } }
@media (max-width: 520px) { .cats { gap: 10px; } .cat, .cat:nth-child(1), .cat:nth-child(2) { min-height: 180px; padding: 16px; } .cat h3 { font-size: 18px; } .cat-subs { display: none; } .cat img { width: 70%; height: 62%; } .cat-ico { width: 34px; height: 34px; top: 14px; right: 14px; } }

/* Segmented control */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--surface-2); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg button { height: 36px; padding: 0 16px; border-radius: 99px; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* iPhone configurator */
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.icard { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.icard .pic { height: 200px; border-radius: var(--r-lg); background: var(--photo); display: grid; place-items: center; overflow: hidden; }
.icard .pic img { height: 100%; width: 100%; object-fit: contain; padding: 14px; }
.icard .pic svg { height: 82%; }
.icard-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.icard h3 { font-size: 21px; }
.icard .from { color: var(--muted); font-size: 14px; margin-top: 4px; }
.opt-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13.5px; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip.out { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.chip.on.out { text-decoration: none; }
.ibuy { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.iprice { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.iprice small { display: block; font-family: var(--font-text); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.iprice.na { font-size: 17px; }
.iprice.flash { animation: flash .5s var(--ease); }
@keyframes flash { 30% { color: var(--accent); } }
.ask { color: var(--muted); font-size: 14.5px; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; min-width: 0; transition: box-shadow .3s var(--ease), border-color .3s, transform .3s var(--ease); }
.card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.card.enter { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card-pic { display: block; width: 100%; aspect-ratio: 1 / .9; padding: 0; border: 0; background: var(--photo); position: relative; overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .6s var(--ease); }
.card:hover .card-pic img { transform: scale(1.06); }
.card-pic .tag { position: absolute; top: 12px; left: 12px; }
.card-pic .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #b8b6ae; }
.card-pic .ph svg { width: 42%; height: 42%; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; border-top: 1px solid var(--line); }
.card-brand { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-name { font: 600 15px/1.3 var(--font-text); letter-spacing: -0.01em; text-align: left; padding: 0; border: 0; background: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-name:hover { color: var(--accent-text); }
.card-spec { font-size: 13px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.add { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; transition: background-color .2s, transform .2s var(--ease); }
.add svg { width: 19px; height: 19px; }
.add:hover { background: var(--accent); color: #fff; }
.add:active { transform: scale(.9); }
.add.done { background: var(--ok); color: #fff; }

/* Rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 3 * 16px - 2 * var(--gutter)) / 4); } }
@media (max-width: 600px) { .rail { grid-auto-columns: 72%; gap: 12px; } .rail-nav { display: none; } }
.rail-nav { display: flex; gap: 8px; }

/* Shop */
.shop-sec { background: var(--surface); border-top: 1px solid var(--line); }
.shop-sec .card { background: var(--bg); }
.shop-sec .card-pic { background: var(--photo); }
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 150px; max-height: calc(100vh - 170px); display: flex; flex-direction: column; }
.filters-head { display: none; }
.filters-body { overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.filters-foot { display: none; }
.fgroup { padding-block: 18px; border-bottom: 1px solid var(--line); }
.fgroup:first-child { padding-top: 0; }
.fgroup h4 { font: 600 12px var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.fcats { display: grid; gap: 2px; }
.fcats button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 0; background: none; text-align: left; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.fcats button svg { width: 18px; height: 18px; flex: none; }
.fcats button span { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fcats button:hover { background: var(--surface-2); color: var(--ink); }
.fcats button.on { background: var(--ink); color: var(--bg); }
.fcats button.on span { color: inherit; opacity: .7; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.fchip:hover { border-color: var(--ink); color: var(--ink); }
.fchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fchip small { opacity: .6; margin-left: 3px; }
.fbrands { display: grid; gap: 2px; max-height: 300px; overflow: auto; scrollbar-width: thin; }
.fbrand { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.fbrand:hover { background: var(--surface-2); }
.fbrand input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.fbrand span { margin-left: auto; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filters-open { display: none; }
.filters-open svg { width: 18px; height: 18px; }
.filters-open span:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.results { font-size: 14.5px; color: var(--muted); margin-right: auto; }
.results b { color: var(--ink); font-weight: 600; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { height: 40px; padding: 0 34px 0 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%236d6f75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; appearance: none; -webkit-appearance: none; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active:empty { display: none; }
.pill-x { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 99px; border: 0; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; }
.pill-x svg { width: 15px; height: 15px; }
.pill-clear { background: none; border: 0; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-xl); }
.empty h3 { font-size: 22px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 10px auto 20px; }
.more { display: flex; justify-content: center; margin-top: 32px; }
@media (max-width: 1020px) {
  .shop { grid-template-columns: 1fr; }
  .filters-open { display: inline-flex; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 80; max-height: 88vh; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .4s var(--ease); visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
  .filters-head h3 { font-size: 20px; }
  .filters-body { padding: 8px 20px; }
  .filters-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .scrim { position: fixed; inset: 0; z-index: 70; background: rgba(10,10,12,.5); backdrop-filter: blur(3px); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-pic img { padding: 10px; }
  .card-body { padding: 10px 12px 12px; gap: 4px; }
  .card-name { font-size: 13.5px; }
  .card-spec { display: none; }
  .card-brand { font-size: 11px; }
  .price { font-size: 15px; }
  .add { width: 34px; height: 34px; }
  .add svg { width: 17px; height: 17px; }
  .card-pic .tag { top: 8px; left: 8px; height: 21px; font-size: 11px; padding: 0 8px; }
  .sort span { display: none; }
  .results { order: 3; flex-basis: 100%; }
}

/* Brands marquee */
.brands { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); padding-block: 26px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands-track { display: flex; gap: 56px; width: max-content; animation: marquee 60s linear infinite; }
.brands:hover .brands-track { animation-play-state: paused; }
.brands-track button { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--muted); white-space: nowrap; border: 0; background: none; padding: 0; transition: color .2s; }
.brands-track button:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.svc-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 8px; }
.svc-ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 19px; }
.svc p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

/* Visit */
#contact { padding-bottom: clamp(56px, 8vw, 96px); }
.visit { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: var(--dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.visit::before { content: ""; position: absolute; inset: -40% auto auto -10%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(255,90,31,.35), transparent); z-index: -1; }
.visit h2 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.035em; font-weight: 700; }
.visit-copy p:not(.eyebrow) { color: var(--on-dark-muted); margin: 14px 0 26px; max-width: 42ch; }
.hours { display: grid; gap: 10px; margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.hours dt { color: var(--on-dark-muted); font-size: 14.5px; }
.hours dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .hours div { flex-direction: column; gap: 2px; } .hours dd { text-align: left; } }

/* Footer */
.footer { background: var(--dark); color: var(--on-dark-muted); padding-block: 56px 28px; font-size: 14.5px; }
.footer .brand-mark { background: var(--on-dark); color: var(--dark); }
.footer .brand-name { color: var(--on-dark); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 32px; }
.foot-grid h4 { font: 600 13px var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.foot-grid ul { display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--on-dark); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
:root[data-theme="dark"] .footer, :root[data-theme="dark"] .topbar { background: #08090b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer, :root:not([data-theme="light"]) .topbar { background: #08090b; } }

/* Product dialog */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(10,10,12,.55); backdrop-filter: blur(4px); }
.pdlg { width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: var(--r-xl); background: var(--surface); overflow: auto; box-shadow: var(--shadow-lg); }
.pdlg[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pdlg-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pdlg-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pdlg-pic { background: var(--photo); display: grid; place-items: center; padding: 40px; min-height: 420px; position: sticky; top: 0; }
.pdlg-pic img { width: 100%; max-height: 440px; object-fit: contain; }
.pdlg-pic .ph { color: #b8b6ae; width: 50%; }
.pdlg-body { padding: 40px 36px 32px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd-brand { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.pdlg-body h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; padding-right: 36px; }
.pd-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.pd-price { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.pd-actions { display: flex; gap: 10px; }
.pd-perks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pd-perks li { display: inline-flex; align-items: center; gap: 6px; }
.pd-perks svg { width: 16px; height: 16px; color: var(--ok); }
.pd-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.pd-desc p, .pd-desc ul, .pd-desc h3 { margin: 0 0 12px; }
.pd-desc h3 { font-size: 15px; font-family: var(--font-text); color: var(--ink); letter-spacing: 0; }
.pd-desc ul { padding-left: 0; display: grid; gap: 6px; }
.pd-desc li { position: relative; padding-left: 16px; }
.pd-desc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pd-desc strong { color: var(--ink); font-weight: 600; }
.pd-similar { padding: 24px 36px 32px; border-top: 1px solid var(--line); }
.pd-similar h4 { font-size: 18px; margin-bottom: 14px; }
.pd-similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; text-align: left; min-width: 0; }
.mini img, .mini .ph { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--photo); border-radius: var(--r-md); padding: 10px; border: 1px solid var(--line); }
.mini span { font-size: 13px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini b { font-size: 13px; font-weight: 600; }
.mini:hover span { color: var(--accent-text); }
@media (max-width: 760px) {
  .pdlg { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .pdlg-grid { grid-template-columns: 1fr; }
  .pdlg-pic { position: static; min-height: 0; padding: 24px; }
  .pdlg-pic img { max-height: 260px; }
  .pdlg-body { padding: 20px 20px 24px; }
  .pd-similar { padding: 20px; }
  .pd-similar-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-actions .btn { flex: 1; }
}

/* Cart drawer */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); height: 100dvh; max-height: 100dvh; background: var(--surface); display: none; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer[open] { display: flex; animation: slidein .35s var(--ease); }
@keyframes slidein { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 22px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); }
.cart-total b { font-family: var(--font-display); font-size: 24px; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cart-note { font-size: 12.5px; color: var(--muted); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img, .line .ph { width: 64px; height: 64px; object-fit: contain; background: var(--photo); border-radius: 12px; padding: 6px; border: 1px solid var(--line); }
.line-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.line-price { font-size: 13.5px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 99px; margin-top: 8px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 17px; line-height: 1; border-radius: 50%; }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.line-rm { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; align-self: start; padding: 4px 0; }
.line-rm:hover { color: var(--ink); }
.cart-empty { text-align: center; padding: 64px 12px; color: var(--muted); }
.cart-empty svg { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--line-strong); }
.cart-empty b { display: block; color: var(--ink); font-size: 18px; font-family: var(--font-display); margin-bottom: 6px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120; translate: -50% 20px; opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity .3s, translate .4s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }

/* Tinted tiles: photos are multiplied so their white background melts into the tint */
.cat, .tile-sm { background: var(--tint, #f6f5f1); border-color: transparent; }
.cat img, .tile-sm img { mix-blend-mode: multiply; }
.cat img { width: 62%; height: 92%; right: -3%; bottom: -6%; }
.cat:nth-child(1) img, .cat:nth-child(2) img { width: 52%; }
.cat .cat-subs span, .tile-sm .tag { background: rgba(255,255,255,.7); }
.cat[data-cat="tel"] { --tint: #e9eef7; }
.cat[data-cat="pc"] { --tint: #efece6; }
.cat[data-cat="game"] { --tint: #e8f1ec; }
.cat[data-cat="photo"] { --tint: #f6ece3; }
.cat[data-cat="audio"] { --tint: #ece9f4; }
.cat[data-cat="watch"] { --tint: #f3efe4; }
.cat[data-cat="tab"] { --tint: #e6f0f1; }
.cat[data-cat="acc"] { --tint: #f4e9ea; }
.tile-sm[data-cat="tel"] { --tint: #e8f1ec; }
.tile-sm[data-cat="game"] { --tint: #e9eef7; }
.tile-sm img { width: 66%; right: -6%; bottom: -10%; }
@media (max-width: 520px) { .cat img, .cat:nth-child(1) img, .cat:nth-child(2) img { width: 74%; height: 66%; } }

/* Uniform photo surface: white and light-grey product shots melt into the same tone */
:root { --photo: #f3f3f1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --photo: #f3f3f1; } }
:root[data-theme="dark"] { --photo: #f3f3f1; }
.card-pic img, .mini img, .line img, .sg-item img, .pdlg-pic img, .icard .pic img { mix-blend-mode: multiply; }
.card-pic .tag { mix-blend-mode: normal; }
.mini img, .line img, .sg-item img { mix-blend-mode: normal; background: #fff; }
@media (max-width: 520px) { .cat-ico { display: none; } .cat h3 { font-size: 17px; } }
