:root {
  --ink: #1c1915;
  --paper: #ffffff;
  --muted: #6f6a64;
  --line: #e4e0da;
  --soft: #f5f3f0;
  --sale: #1c1915;
  --header-h: 64px;
  --ann-h: 38px;
  --shadow: 0 16px 40px rgba(28, 25, 21, 0.12);
  --radius: 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: #fff;
  padding: 8px 12px; z-index: 80;
}
.skip:focus { top: 8px; }

.ann {
  height: var(--ann-h);
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.ann p { margin: 0; text-align: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.ann button, .icon-btn {
  background: transparent; border: 0; color: inherit; width: 40px; height: 40px;
  display: grid; place-items: center;
}
.head {
  position: sticky;
  top: var(--ann-h);
  z-index: 40;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 10px 0 6px;
}
.logo {
  text-decoration: none;
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.head-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.cart-link { position: relative; text-decoration: none; width: 40px; height: 40px; display: grid; place-items: center; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--ink); color: #fff; font-size: 10px;
  display: grid; place-items: center;
}
.icon-btn svg, .cart-link svg { width: 22px; height: 22px; }

.drawer, .search-pop {
  position: fixed; inset: 0; z-index: 60; background: rgba(28, 25, 21, 0.35);
  display: none;
}
.drawer.open, .search-pop.open { display: block; }
.drawer-panel, .search-panel {
  background: #fff; height: 100%; width: min(420px, 92vw); padding: 18px 18px 32px;
  overflow: auto; box-shadow: var(--shadow);
}
.search-panel { margin-left: auto; }
.drawer-head, .search-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer a, .foot a { text-decoration: none; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav > a, .drawer details summary, .sub a {
  display: block; padding: 12px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 16px;
}
.drawer details summary { cursor: pointer; list-style: none; font-weight: 650; }
.drawer details summary::-webkit-details-marker { display: none; }
.sub a { font-size: 14px; color: #3a3632; padding-left: 10px; }
.search-panel form, .inline-search { display: flex; gap: 8px; }
.search-panel input, .field input, .field select, .field textarea, .inline-search input, .coupon-row input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px; background: #fff;
}
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 8px;
  padding: 12px 16px; text-decoration: none; min-height: 44px;
}
.btn.light { background: #fff; color: var(--ink); }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pill {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px;
  text-decoration: none; font-size: 13px;
}

.wrap { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.hero { position: relative; background: #d7e4ee; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: min(62vw, 560px); object-fit: cover; object-position: center; }
.hero-nav {
  position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.hero-nav button {
  pointer-events: auto; margin: 0 8px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.88);
}
.hero-dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0; background: #fff; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #ccc; padding: 0; }
.hero-dots button.on { background: var(--ink); }

.section { padding: 28px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { min-width: 0; }
.pcard-media { position: relative; border-radius: 18px; overflow: hidden; background: var(--soft); }
.pcard-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.badge {
  position: absolute; left: 10px; top: 10px; background: rgba(28,25,21,0.88); color: #fff;
  border-radius: 999px; font-size: 11px; padding: 4px 8px;
}
.wish {
  position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink);
}
.wish.on { background: var(--ink); color: #fff; }
.pcard h3 { font-size: 14px; font-weight: 550; margin: 10px 0 4px; line-height: 1.35; }
.pcard h3 a { text-decoration: none; }
.price { margin: 0 0 8px; font-size: 14px; }
.price s { color: var(--muted); margin-right: 6px; }
.card-row { display: flex; gap: 6px; }
.card-row select { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
.card-row .btn { padding: 8px 10px; min-height: 38px; }

.coll-grid, .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.coll-grid a, .cat-grid a { text-decoration: none; }
.coll-grid img, .cat-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; background: var(--soft); }
.cat-grid figcaption, .coll-grid span { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.review, .panel, .notice {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff;
}
.review p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.stars { letter-spacing: 2px; font-size: 12px; }

.layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 22px 0 40px; }
.filters h2, .page-title { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.03em; }
.filters label, .check { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.filters h3 { margin: 16px 0 6px; font-size: 14px; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }

.pdp { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; padding: 22px 0 48px; }
.gallery-main { border-radius: 18px; overflow: hidden; background: var(--soft); }
.gallery-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 1px solid transparent; border-radius: 10px; background: none; }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; }
.crumb { font-size: 13px; color: var(--muted); margin: 14px 0; }
.crumb a { color: var(--muted); }
.pdp h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.sizes button, .qty button {
  min-width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
}
.sizes button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sizes button:disabled { text-decoration: line-through; opacity: 0.4; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty input { width: 48px; border: 0; text-align: center; }
.buy-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.buy-row .btn { flex: 1; }
.prose { line-height: 1.65; font-size: 15px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; letter-spacing: -0.02em; }
.prose h3 { font-size: 18px; margin: 22px 0 8px; }
.prose p { margin: 0 0 12px; }
.legal { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 64px; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding-bottom: 8px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.cart-line img { width: 88px; height: 110px; object-fit: cover; border-radius: 12px; }
.summary { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.summary row, .sum-row { display: flex; justify-content: space-between; margin: 8px 0; }
.coupon-row { display: flex; gap: 8px; margin: 10px 0; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.err { color: #8d2a1f; font-size: 13px; min-height: 1em; }
.account-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding-bottom: 40px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-nav button, .side-nav a { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; }
.foot { background: var(--soft); margin-top: 28px; padding: 28px 0 16px; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.foot h3 { margin: 0 0 10px; font-size: 15px; }
.foot a, .foot p { display: block; margin: 6px 0; font-size: 14px; color: #3d3935; text-decoration: none; }
.legal-note { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px; z-index: 80;
  display: none;
}
.toast.show { display: block; }
.modal { position: fixed; inset: 0; background: rgba(28,25,21,.45); z-index: 70; display: none; place-items: center; padding: 16px; }
.modal.open { display: grid; }
.modal .panel { width: min(560px, 100%); max-height: 80vh; overflow: auto; }
.pass-wrap { display: flex; gap: 6px; }
.pass-wrap input { flex: 1; }
.empty { padding: 24px; text-align: center; }

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .layout, .pdp, .account-grid { grid-template-columns: 1fr; }
  .filters { border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
}
@media (max-width: 768px) {
  .logo { font-size: 18px; }
  .grid, .reviews { grid-template-columns: repeat(2, 1fr); }
  .coll-grid, .cat-grid, .foot-cols, .form-grid.two { grid-template-columns: 1fr 1fr; }
  .hero-slide img { height: 62vw; min-height: 210px; }
  .section-head h2, .pdp h1, .page-title { font-size: 22px; }
  .cookie { flex-direction: column; align-items: stretch; }
}
@media (max-width: 390px) {
  .wrap { width: min(1280px, calc(100% - 20px)); }
  .grid { gap: 10px; }
  .foot-cols, .coll-grid { grid-template-columns: 1fr; }
}

.ann > div { overflow: hidden; }
.head > div:first-child { display: flex; align-items: center; }
.logo { font-size: 24px; text-transform: lowercase; }
.wish svg { width: 18px; height: 18px; margin: auto; display: block; }
.wish.on svg { fill: currentColor; }
.hero-slide img { height: auto; aspect-ratio: 1600 / 608; min-height: 190px; max-height: 620px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.rail .pcard { scroll-snap-align: start; }
.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 22px 0 4px; }
.cat-strip a { text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; }
.cat-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--soft); margin-bottom: 6px; }
.size-row { display: flex; flex-wrap: wrap; gap: 10px; }
.size-pill { min-width: 64px; text-align: center; padding: 12px 18px; font-size: 15px; }
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.featured img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; }
.featured h3 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.03em; }
.mood { background: var(--soft); border-radius: 18px; padding: 40px 24px; text-align: center; }
.mood h2 { font-size: clamp(28px, 5vw, 46px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.03em; }
.mood p { max-width: 560px; margin: 0 auto 14px; }
.mood .inline-search { max-width: 460px; margin: 0 auto; }
.help-box { text-align: center; padding: 10px 0 20px; }
.pdp .price { margin: 0 0 10px; }
.cart-line > div p { margin: 4px 0; }
.legal .muted { margin-top: 0; }
.crumb { margin: 14px 0 8px; }
@media (max-width: 1024px) { .rail { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (max-width: 768px) {
  .rail { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .card-row { flex-direction: column; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img { width: 72px; height: 90px; }
  .cart-line > strong { grid-column: 2; }
}
@media (max-width: 390px) { .coll-grid { grid-template-columns: 1fr 1fr; } .logo { font-size: 20px; } }

[hidden] { display: none !important; }
