:root {
  --ink: #12111a;
  --ink-2: #3d3b4a;
  --muted: #6b6878;
  --line: #e7e5ee;
  --bg: #ffffff;
  --soft: #f6f5fa;
  --accent: #6d28d9;
  --accent-2: #8b5cf6;
  --accent-soft: #efe9fd;
  --ok: #15803d;
  --bad: #b91c1c;
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.45rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.section { padding: 40px 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }

/* header */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .85rem; padding: 8px 12px; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); position: relative; }
.logo-mark::after { content: ""; position: absolute; left: 7px; top: 5px; width: 10px; height: 16px; background: #fff; clip-path: polygon(60% 0, 0 58%, 45% 58%, 30% 100%, 100% 38%, 55% 38%); }
.logo-light { color: #fff; }
.nav { display: flex; gap: 18px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; white-space: nowrap; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.bag { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }
.bag-count { background: var(--accent); color: #fff; font-size: .75rem; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: inherit; transition: background .15s, transform .05s; }
.btn:hover { background: #5b21b6; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #b8b5c4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-block { width: 100%; }

/* hero */
.hero { background: radial-gradient(1200px 400px at 80% 0%, var(--accent-soft), transparent 60%), var(--soft); border-bottom: 1px solid var(--line); }
.hero-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { position: relative; height: 380px; }
.hero-img { position: absolute; background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(30,20,60,.14); object-fit: cover; }
.hero-img-0 { width: 58%; left: 4%; top: 6%; z-index: 2; }
.hero-img-1 { width: 44%; right: 2%; top: 0; }
.hero-img-2 { width: 42%; right: 10%; bottom: 0; z-index: 3; }

/* perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 6px; }
.perks div { background: var(--soft); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.perks strong { font-size: .95rem; }
.perks span { color: var(--muted); font-size: .85rem; }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 10px 30px rgba(30,20,60,.10); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 1; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: .75rem; padding: 4px 8px; border-radius: 6px; }
.card-body { padding: 12px 14px 16px; }
.card-body h3 { font-size: .95rem; font-weight: 600; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: 0; }
.price { font-weight: 700; }
.was { color: var(--muted); font-weight: 400; }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--soft); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(10,8,20,.75)); }

/* crumbs */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.count { margin-bottom: 18px; }

/* product */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.gallery { position: sticky; top: 84px; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; background: var(--soft); cursor: pointer; overflow: hidden; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); }
.buy h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.buy-price { font-size: 1.5rem; margin: 6px 0 4px; }
.buy-form { margin: 18px 0; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.field select, .field input { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.qty input { width: 110px; }
.msg { min-height: 1.4em; margin: 0; font-size: .92rem; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.assure { list-style: none; padding: 14px 16px; margin: 0 0 22px; background: var(--soft); border-radius: var(--radius); font-size: .9rem; display: grid; gap: 4px; }
.assure li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.desc { border-top: 1px solid var(--line); padding-top: 18px; color: var(--ink-2); }
.desc ul { padding-left: 1.2em; }
.desc li { margin: 4px 0; }

/* prose pages */
.prose { color: var(--ink-2); }
.prose h2 { margin-top: 1.6em; color: var(--ink); }
.prose h3 { margin-top: 1.2em; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* cart */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--soft); }
.line h3 { font-size: 1rem; margin: 0 0 4px; letter-spacing: 0; }
.line h3 a { color: var(--ink); text-decoration: none; }
.line-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.line-ctrl input { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; padding: 0; }
.summary { background: var(--soft); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; }
.summary .row { display: flex; justify-content: space-between; margin: 6px 0; }
.summary .total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.code-row { display: flex; gap: 8px; margin: 12px 0; }
.code-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-transform: uppercase; }
.code-row button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0 14px; font: inherit; font-weight: 600; cursor: pointer; }
.notice { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin-top: 12px; }
.empty { text-align: center; padding: 40px 0; }

/* footer */
.site-footer { background: var(--ink); color: #d9d6e4; margin-top: 48px; padding: 44px 0 20px; }
.site-footer a { color: #d9d6e4; text-decoration: none; display: block; margin: 5px 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { display: inline-flex; margin-bottom: 8px; }
.site-footer .muted { color: #9c98ab; font-size: .92rem; }
.site-footer .muted a { display: inline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 8px; font-size: .95rem; }
.legal { border-top: 1px solid #2b2938; margin-top: 28px; padding-top: 16px; font-size: .82rem; color: #8b879a; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; gap: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; padding-bottom: 4px; }
  .hero-row { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
  .hero-art { height: 240px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 28px 16px; }
}
