:root {
  --bg: #ffffff;
  --fg: #171717;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-fg: #737373;
  --border: #e5e5e5;
  --primary: #ff6e00;
  --primary-fg: #fff;
  --danger: #dc2626;
  --ok: #16a34a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  color-scheme: light;
}

html.dark {
  --bg: #171717;
  --fg: #fafafa;
  --card: #242424;
  --muted: #2a2a2a;
  --muted-fg: #a3a3a3;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: none; gap: 4px; }
.nav a, .icon-btn, .btn, .chip, .ghost {
  border: 0; background: transparent; cursor: pointer;
}
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted-fg); font-size: 14px; font-weight: 600; }
.nav a.active, .nav a:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.search {
  display: flex; flex: 1; min-width: 0; max-width: none; margin-left: 0;
  align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--muted);
}
.search input { flex: 1; border: 0; outline: 0; background: transparent; }
.search .ico { width: 26px; height: 26px; color: var(--muted-fg); }
.ico { width: 22px; height: 22px; display: block; }
.actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.wide-only, .brand span { display: none; }
.more { position: relative; }
.more-menu {
  display: none; position: absolute; right: 0; top: 46px; z-index: 60; min-width: 190px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.more-menu.open { display: grid; }
.more-menu a, .more-menu button {
  display: flex; align-items: center; gap: 10px;
  text-align: left; padding: 10px 12px; border: 0; background: transparent; border-radius: 10px;
  color: var(--fg); font-weight: 600; cursor: pointer;
}
.more-menu a:hover, .more-menu button:hover { background: var(--muted); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center; position: relative;
}
.icon-btn.wide-only { display: none; }
.icon-btn:hover { background: var(--muted); }
.badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--primary); color: white;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
.drawer {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45);
  display: none;
}
.drawer.open { display: block; }
.drawer nav {
  width: min(320px, 88vw); height: 100%; background: var(--bg);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.drawer a, .drawer button.linkish {
  text-align: left; padding: 12px 14px; border-radius: 12px; background: transparent; border: 0;
  color: var(--fg); font-weight: 600; cursor: pointer;
}
.drawer a:hover, .drawer button.linkish:hover { background: var(--muted); }
main { min-height: calc(100vh - 220px); padding: 20px 0 40px; }
.footer { margin-top: 28px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 50%, var(--bg)); color: var(--muted-fg); padding: 36px 0 16px; }
.footer-grid { display: grid; gap: 28px; }
.footer .brand span { color: var(--fg); }
.footer p { margin: 12px 0 0; max-width: 36ch; font-size: 14px; line-height: 1.6; }
.footer h3 { color: var(--fg); margin: 0 0 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer nav, .footer .contact { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer a { color: var(--muted-fg); }
.footer a:hover { color: var(--primary); }
.footer-bar { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; }

.grid { display: grid; gap: 16px; }
.products { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stars { color: #f5b301; letter-spacing: 1px; font-size: 13px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.card .media { height: 176px; overflow: hidden; background: var(--muted); }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.shots { position: relative; width: 100%; aspect-ratio: 1; background: var(--muted); }
.film { position: absolute; inset: 0; display: flex; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--muted); scrollbar-width: none; }
.film::-webkit-scrollbar { display: none; }
.film > a, .film > img { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
.film img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; display: block; }
.photo-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.photo-dots span { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.55); }
.photo-dots span.on { width: 14px; background: #fff; }
.shots .count { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; border-radius: 99px; font-size: 11px; padding: 2px 7px; }
.pair { display: flex; gap: 8px; padding: 0 14px 14px; }
.pair .btn { flex: 1; width: auto; }
.pair .cart-add { flex: 0 0 42px; width: 42px; padding: 0; }
.pair .cart-add svg { width: 20px; height: 20px; display: block; }
.skel { background: linear-gradient(90deg, var(--muted) 25%, var(--border) 37%, var(--muted) 63%); background-size: 400% 100%; animation: skel 1.2s ease infinite; border-radius: 10px; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skel-photo { height: auto; aspect-ratio: 1; }
.skel-hero { height: 280px; border-radius: 16px; }
.skel-line { height: 14px; margin: 10px 14px 0; }
.skel-line.short { width: 42%; }
.skel-block { height: 96px; }
.skel-thumb { width: 72px; height: 72px; flex: none; }
.skel-row { display: flex; gap: 12px; padding: 12px; align-items: center; margin-bottom: 10px; }
.hint { font-weight: 400; color: var(--muted-fg); font-size: 12px; }
.card .body { padding: 14px; }
.card h2 { margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted { color: var(--muted-fg); }
.price { font-weight: 800; }
.price.sale { color: #dc2626; }
.strike { text-decoration: line-through; color: var(--muted-fg); font-size: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 12px;
  background: var(--primary); color: white; font-weight: 700;
}
.btn.secondary { background: var(--muted); color: var(--fg); }
.btn.danger { background: var(--danger); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select, .input {
  width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); padding: 0 12px; outline: none;
}
.field textarea { height: auto; padding: 10px 12px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); }
.chips { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
.chip {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap; font-size: 13px; font-weight: 600;
}
.chip.on { background: var(--primary); color: white; border-color: var(--primary); }
.cats {
  position: sticky; top: 64px; z-index: 30;
  display: flex; gap: 18px; overflow: auto;
  margin: 0 -16px; padding: 8px 16px 12px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.cats button { border: 0; background: transparent; cursor: pointer; text-align: center; color: var(--muted-fg); min-width: 76px; }
.cats img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; margin: 0 auto 6px; border: 2px solid transparent; }
.cats button.on { color: var(--primary); }
.cats button.on img { border-color: var(--primary); }
.banner { position: relative; height: 220px; border-radius: 20px; overflow: hidden; background: #111; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 48px 18px 16px;
  background: linear-gradient(to top, #000, rgba(0,0,0,.75), transparent);
  color: white;
}
.banner h2 { margin: 0; font-size: 22px; }
.banner p { margin: 4px 0 0; color: rgba(255,255,255,.9); }
.banner .dots { position: absolute; top: 12px; right: 14px; z-index: 3; display: flex; gap: 6px; }
.banner .dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.banner .dots button.on { width: 22px; background: white; }
.ask {
  position: relative; overflow: hidden; margin-top: 28px; border-radius: 28px;
  background: var(--primary); color: white; padding: 32px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.ask::before, .ask::after {
  content: ""; position: absolute; border-radius: 999px; background: rgba(255,255,255,.12); pointer-events: none;
}
.ask::before { width: 180px; height: 180px; right: -50px; top: -70px; }
.ask::after { width: 220px; height: 220px; left: 28%; bottom: -140px; background: rgba(255,255,255,.08); }
.ask-art { position: relative; width: 112px; height: 112px; flex: none; display: grid; place-items: center; }
.ask-art svg { position: relative; z-index: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); }
.ask h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; max-width: 12ch; }
.ask p { margin: 8px 0 0; max-width: 42ch; color: rgba(255,255,255,.92); font-size: 16px; }
.ask-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ask .btn { position: relative; z-index: 1; background: white; color: #171717; border-radius: 999px; height: 48px; padding: 0 22px; font-size: 16px; }
.ask > div:not(.ask-art) { position: relative; z-index: 1; flex: 1; min-width: 220px; }
.getapp {
  margin-top: 18px; border-radius: 28px; padding: 28px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--border);
}
.getapp-mark {
  width: 84px; height: 84px; border-radius: 24px; flex: none;
  display: grid; place-items: center; color: white; background: var(--primary);
}
.getapp h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 900; letter-spacing: -0.03em; }
.getapp p { margin: 8px 0 0; color: var(--muted-fg); }
.getapp .ask-kicker { color: var(--primary); }
.getapp > div:not(.getapp-mark) { flex: 1; min-width: 220px; }
.getapp .btn { border-radius: 999px; }
.request {
  margin-top: 16px; border: 1px dashed var(--border); border-radius: 18px; padding: 18px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.detail-photos { max-width: 400px; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; background: #111; }
.gallery img { flex: 0 0 100%; width: 100%; height: 220px; object-fit: cover; scroll-snap-align: start; }
.thumbs, .shots { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; padding-bottom: 6px; }
.thumbs button { flex: 0 0 72px; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--muted); cursor: pointer; }
.thumbs img, .shot img { width: 100%; height: 100%; object-fit: cover; }
.shot { position: relative; flex: 0 0 128px; width: 128px; height: 128px; }
.shot img { border-radius: 14px; background: var(--muted); }
.shot button { position: absolute; top: 6px; right: 6px; border: 0; border-radius: 999px; background: #171717; color: white; cursor: pointer; padding: 2px 8px; }
.toast {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 12px; z-index: 80;
}
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; color: var(--muted-fg); background: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; }
.stack { display: grid; gap: 12px; }
.split { display: grid; gap: 18px; }
.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--muted); }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal .panel { background: var(--card); border-radius: 18px; padding: 18px; width: min(560px, 100%); }
.modal img.full { max-width: 92vw; max-height: 88vh; border-radius: 16px; }
.stars { color: #f5b400; letter-spacing: 1px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); cursor: pointer; }
.thanks { min-height: calc(100vh - 220px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; padding: 32px 0; }
.thanks-card { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 420px; }
.thanks-mark { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: radial-gradient(circle at 50% 40%, #ffb067, var(--primary)); box-shadow: 0 16px 40px rgba(255, 110, 0, .35); }
.thanks .ask-kicker { color: var(--primary); }
.thanks h1 { font-size: 48px; margin: 0; letter-spacing: -0.03em; }
.thanks .lead { font-size: 20px; margin: 0; }
.thanks-actions { width: min(420px, 100%); }
.auth { width: min(440px, 100%); margin: 32px auto; }
h1 { font-size: 30px; margin: 0 0 8px; }
h2 { margin: 0; }
.page-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.sub { color: var(--muted-fg); margin: 0; }
.pin { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); border-radius: 99px; padding: 2px 6px; }
.indent { padding-left: 28px; }
.shell { display: grid; min-height: 100vh; }
.side {
  display: none; border-right: 1px solid var(--border); padding: 12px;
  background: var(--card);
}
.side a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.side a.active { background: var(--primary); color: white; }
.side .brand { padding: 10px 8px 18px; }
.content { padding: 18px; }
.stat { border: 1px solid var(--border); border-radius: 18px; padding: 14px; background: var(--card); }
.stat span { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted-fg); }
.stat strong { font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hidden { display: none !important; }

@media (min-width: 800px) {
  .nav { display: flex; }
  .icon-btn.wide-only { display: grid; }
  .brand span { display: inline; }
  .search { max-width: 420px; margin-left: auto; }
  .more { display: none; }
  .menu-btn { display: none; }
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: 1.1fr .9fr; }
  .footer-grid { grid-template-columns: 1.4fr .8fr 1fr; }
  .gallery img { height: 280px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .banner { height: 320px; }
  .shell { grid-template-columns: 250px 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
  .admin-menu { display: none; }
}
@media (min-width: 1100px) {
  .products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
