:root {
  --ink: #14171c;
  --muted: #5e6772;
  --line: #e6e8ee;
  --bg: #f3f4f6;
  --paper: #fff;
  --teal: #0f766e;
  --teal-d: #115e59;
  --soft: #f6f7f8;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --no: #b42318;
  --no-bg: #fef3f2;
  --shadow: 0 10px 30px rgba(20, 23, 28, .06);
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 15px/1.55 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
a { color: var(--teal); }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.util { background: var(--ink); color: #d5d8df; font-size: 12.5px; letter-spacing: .01em; }
.util-row { display: flex; justify-content: center; gap: 22px; min-height: 36px; align-items: center; }
.util-row span { display: inline-flex; align-items: center; gap: 8px; }
.util-row span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #8b919a; }

.head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: .14em; font-size: 18px; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 16px; letter-spacing: 0; }
.search { display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid transparent; border-radius: 999px; padding: 4px 4px 4px 14px; color: var(--muted); }
.search:focus-within { border-color: #cfd3da; background: #fff; color: var(--ink); }
.search svg { width: 18px; height: 18px; flex: 0 0 auto; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 38px; }
.search button, .btn, .ghost {
  border: 0; cursor: pointer; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.search button { background: var(--ink); color: #fff; height: 38px; padding: 0 16px; font-weight: 650; }
.search button:hover, .btn:hover { background: var(--teal); }
.bag { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 650; padding: 8px 10px; border-radius: 999px; }
.bag:hover { background: var(--soft); }
.bag svg { width: 22px; height: 22px; }
.bag b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 12px; display: grid; place-items: center; }

.menu { border-top: 1px solid #f1f2f4; }
.menu-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.menu-row::-webkit-scrollbar { display: none; }
.menu a { color: #2c333b; text-decoration: none; font-weight: 620; font-size: 14px; padding: 12px 12px 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.menu a:hover { color: var(--teal); }
.menu a.on { color: var(--teal); border-bottom-color: var(--teal); }

main { padding: 22px 0 56px; }
.crumbs { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs span { color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; min-height: 380px; }
.hero-copy { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.kicker { margin: 0 0 10px; color: var(--teal); font-weight: 750; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: 44px; line-height: 1.08; letter-spacing: -.035em; }
.lead { margin: 14px 0 0; color: #3c4450; font-size: 17px; max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; }
.btn { background: var(--ink); color: #fff; height: 48px; padding: 0 18px; font-weight: 700; }
.ghost { background: #fff; color: var(--ink); height: 48px; padding: 0 18px; border: 1px solid #d7dae1; font-weight: 700; }
.ghost:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.hero-visual { background: radial-gradient(circle at 50% 40%, #fff, #eef1f4 70%); display: flex; align-items: center; justify-content: center; padding: 28px; }
.hero-visual img { width: auto; max-width: 100%; max-height: 340px; object-fit: contain; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.sec-head h2, .sec-head h3, .pagehead h1 { margin: 0; letter-spacing: -.03em; }
.sec-head h2, .sec-head h3 { font-size: 24px; }
.sec-head a { text-decoration: none; font-weight: 700; font-size: 14px; }
.pagehead { margin: 8px 0 18px; }
.pagehead h1 { font-size: 36px; line-height: 1.15; }
.sub { margin: 8px 0 0; color: var(--muted); max-width: 68ch; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; min-height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pic { background: var(--soft); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 18px; }
.pic img { width: auto; max-width: 86%; max-height: 78%; object-fit: contain; }
.info { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; flex: 1; }
.info strong { font-size: 14.5px; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.info em { margin-top: auto; font-style: normal; font-weight: 760; font-size: 16px; }

.pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 28px; align-items: start; }
.gallery { position: sticky; top: 108px; }
.stage { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; min-height: 460px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.stage img { width: auto; max-width: 100%; max-height: 460px; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 74px; height: 74px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.thumbs button.on, .thumbs button:hover { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.buy h1 { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: -.03em; }
.dek { color: #3d4652; margin: 12px 0 0; }
.price { margin: 18px 0 0; font-size: 34px; font-weight: 760; letter-spacing: -.03em; }
.price small { display: block; font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: 0; margin-bottom: 2px; }
.pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.in { color: var(--ok); background: var(--ok-bg); }
.pill.out { color: var(--no); background: var(--no-bg); }
.sku { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.buybox { display: flex; gap: 10px; margin-top: 18px; }
.buybox input[type="number"] { width: 76px; height: 52px; border-radius: 12px; border: 1px solid #d7dae1; text-align: center; background: #fff; }
.buybox .btn { flex: 1; height: 52px; border-radius: 12px; font-size: 16px; }
.sold { margin: 18px 0 0; color: var(--no); font-weight: 700; }
.perks { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: #3d4652; font-size: 13.5px; }
.perks li { display: flex; gap: 8px; align-items: center; }
.perks svg { width: 16px; height: 16px; color: var(--teal); flex: 0 0 auto; }

.story { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 34px 40px 42px; margin-top: 28px; }
.story h2 { font-size: 28px; letter-spacing: -.03em; margin: 28px 0 10px; }
.story h2:first-child { margin-top: 0; }
.story h3 { font-size: 20px; letter-spacing: -.02em; margin: 22px 0 8px; }
.story h4 { font-size: 17px; margin: 18px 0 8px; }
.story p { margin: 0 0 14px; }
.story ul, .story ol { margin: 0 0 16px; padding-left: 20px; }
.story li { margin: 4px 0; }
.story img { display: block; max-width: min(100%, 560px); max-height: 460px; object-fit: contain; margin: 16px auto; background: var(--soft); border-radius: 12px; }
.story table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.story th, .story td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.story th { background: var(--soft); }
.story a { text-underline-offset: 2px; }

.cartlay { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.lines, .summary, .empty { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.lines { padding: 8px 18px; }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.thumb { width: 84px; height: 84px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.thumb img { max-width: 74%; max-height: 74%; object-fit: contain; }
.line .name { color: var(--ink); font-weight: 720; text-decoration: none; }
.line .name:hover { color: var(--teal); }
.muted { color: var(--muted); font-size: 13px; margin-top: 4px; }
.line input[type="number"] { width: 68px; height: 40px; border-radius: 10px; border: 1px solid #d7dae1; text-align: center; }
.line-sum { font-weight: 760; min-width: 108px; text-align: right; }
.linkish { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; font-size: 13px; }
.linkish:hover { color: var(--no); }
.summary { padding: 20px; position: sticky; top: 108px; }
.summary h2 { margin: 0 0 14px; font-size: 18px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 760; }
.summary .btn, .summary .ghost { width: 100%; margin-top: 10px; border-radius: 12px; }
.fine { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.empty { padding: 48px 28px; text-align: center; }
.empty h1 { margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

.site-foot { background: #101216; color: #c5c8d0; margin-top: 12px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 28px; padding: 36px 0 28px; }
.site-foot .logo { color: #fff; }
.site-foot p { margin: 10px 0 0; max-width: 36ch; }
.site-foot strong { display: block; color: #fff; margin-bottom: 10px; }
.site-foot a { display: block; color: #c5c8d0; text-decoration: none; padding: 4px 0; }
.site-foot a:hover { color: #fff; }
.legal { border-top: 1px solid #262a31; }
.legal p { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 14px 0; font-size: 12.5px; color: #8d939d; }

@media (max-width: 980px) {
  .hero, .pdp, .cartlay, .foot-grid { grid-template-columns: 1fr; }
  .gallery, .summary { position: static; }
  .hero-copy { padding: 28px 22px 8px; }
  .hero h1, .pagehead h1 { font-size: 32px; }
  .hero-visual { min-height: 240px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { min-height: 280px; }
  .stage img { max-height: 320px; }
  .story { padding: 22px 16px 28px; }
  .head-row { grid-template-columns: 1fr auto; grid-template-areas: "logo bag" "search search"; gap: 10px; padding: 12px 0; }
  .logo { grid-area: logo; }
  .bag { grid-area: bag; }
  .search { grid-area: search; }
  .util-row span:nth-child(n+3) { display: none; }
  .line { grid-template-columns: 72px minmax(0, 1fr); }
  .line input, .line-sum, .linkish { grid-column: 2; }
  .line-sum { text-align: left; }
  .thumb { width: 72px; height: 72px; }
}
