:root {
  --ink: #171717;
  --muted: #6e716c;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #e7e0d4;
  --green: #087a4a;
  --green-dark: #075533;
  --brick: #9d4438;
  --gold: #c59b51;
  --blue: #234d72;
  --shadow: 0 20px 50px rgba(23, 23, 23, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: 72px;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 10px clamp(16px, 4vw, 52px);
  background: rgba(251, 250, 246, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 7px;
}
.desktop-nav {
  display: flex;
  gap: 24px;
  margin-left: 18px;
  color: #3c3e3b;
  font-size: 15px;
}
.desktop-nav a:hover { color: var(--green); }
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.icon-btn, .cart-button, .bottom-nav button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
}
.icon-btn:hover { background: #eee8dc; }
.icon-btn svg, .cart-button svg, .bottom-nav svg, .wish-dot svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}
.menu-toggle { display: none; }
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}
.cart-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
}
.cart-button span {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: white;
  background: var(--brick);
  border-radius: 9px;
  font-size: 12px;
  line-height: 18px;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 68px);
  max-height: 850px;
  overflow: hidden;
  background: #30302e;
}
.hero picture, .hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.28) 52%, rgba(0,0,0,.08));
}
.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 720px;
  padding: clamp(36px, 8vw, 96px);
  color: white;
}
.hero-content p, .section-title p, .custom-copy p, .stores p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 108px);
  line-height: .92;
  letter-spacing: 0;
}
.hero-content span {
  display: block;
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(18px, 2.4vw, 25px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.primary, .secondary, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}
.primary { color: white; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { color: var(--green); background: #e5f2ec; }
.ghost { color: white; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.wide { width: 100%; }

.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}
.quick-row div {
  min-height: 98px;
  padding: 22px clamp(16px, 3vw, 36px);
  border-right: 1px solid var(--line);
}
.quick-row strong, .quick-row span { display: block; }
.quick-row span { margin-top: 4px; color: var(--muted); }

.section {
  padding: clamp(44px, 7vw, 86px) clamp(16px, 4vw, 52px);
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-title h2, .custom-copy h2, .stores h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}
.link-btn {
  border: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 18px;
}
.category-tabs button, .step-list button {
  min-width: max-content;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  color: #3d403c;
  background: white;
  cursor: pointer;
}
.category-tabs button.active, .step-list button.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 88px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
label, fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: #343633;
  font-size: 14px;
  font-weight: 700;
}
fieldset {
  border: 0;
  padding: 0;
}
legend { margin-bottom: 8px; font-weight: 800; }
fieldset label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  margin: 0 0 8px;
  font-weight: 500;
}
input, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: #fffdf8;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(23,23,23,.10);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #eee8dc;
}
.product-info { padding: 12px; }
.badge {
  display: inline-block;
  min-height: 19px;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.product-info h3 {
  min-height: 42px;
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
}
.product-info p {
  min-height: 20px;
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.product-info div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.add-mini, .wish-dot {
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 7px;
}
.add-mini {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fffdf8;
  font-size: 24px;
  line-height: 1;
}
.wish-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 0;
  color: #fff;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(8px);
}
.wish-dot.active { color: #ffdad4; background: var(--brick); }

.custom-band {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(44px, 7vw, 86px) clamp(16px, 4vw, 52px);
  color: white;
  background: #1e302b;
}
.custom-copy span {
  display: block;
  max-width: 480px;
  margin-top: 18px;
  color: rgba(255,255,255,.72);
  font-size: 18px;
}
.custom-panel {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.step-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
}
.custom-preview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}
.custom-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.custom-preview p { color: rgba(255,255,255,.74); }

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lookbook figure {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}
.lookbook img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lookbook figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 11px;
  color: white;
  background: rgba(0,0,0,.46);
  border-radius: 7px;
  font-weight: 800;
}

.stores {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 28px;
  padding: clamp(44px, 7vw, 86px) clamp(16px, 4vw, 52px);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stores address {
  max-width: 600px;
  margin: 16px 0;
  color: #3e413d;
  font-style: normal;
  line-height: 1.6;
}
.stores a { color: var(--green); font-weight: 800; }
.store-finder {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.store-finder p { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.help-grid button, .help-grid a {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}
.help-grid span { color: var(--muted); }

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: min(340px, 86vw);
  padding: 18px;
  transform: translateX(-105%);
  background: white;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.drawer a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(0,0,0,.42);
}
.scrim.show { display: block; }

.modal {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: auto;
}
.modal::backdrop { background: rgba(0,0,0,.48); }
.modal-close {
  position: sticky;
  top: 10px;
  left: calc(100% - 52px);
  z-index: 5;
  background: rgba(255,255,255,.9);
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding: 0 26px 26px;
}
.detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}
.detail-copy h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); }
.detail-copy .price { font-size: 24px; font-weight: 900; }
.options {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}
.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-buttons button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  cursor: pointer;
}
.option-buttons button.active { color: white; background: var(--green); border-color: var(--green); }
.measure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.side-modal {
  margin-left: auto;
  margin-right: 0;
  width: min(430px, 100vw);
  min-height: 100svh;
  border-radius: 0;
  padding: 0 18px 20px;
}
.side-modal h2, .login-modal h2 { margin: 0 0 18px; }
.cart-line, .wish-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img, .wish-line img {
  width: 72px;
  height: 86px;
  object-fit: cover;
  border-radius: 7px;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty button, .remove-btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  cursor: pointer;
}
.qty button { width: 28px; height: 28px; }
.remove-btn { padding: 8px; color: var(--brick); }
.cart-summary {
  position: sticky;
  bottom: 0;
  margin-top: 18px;
  padding: 16px 0 0;
  background: white;
}
.cart-summary div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cart-summary p { color: var(--muted); font-size: 13px; }
.login-modal {
  width: min(420px, calc(100vw - 28px));
  padding: 0 22px 24px;
}
.login-modal p { color: var(--muted); }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  min-height: 64px;
  background: white;
  border-top: 1px solid var(--line);
}
.bottom-nav a, .bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #3c3e3b;
  font-size: 11px;
}
.bottom-nav svg { width: 21px; height: 21px; }

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .quick-row { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .filter-head, .filters fieldset { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-band, .stores, .product-detail { grid-template-columns: 1fr; }
  .custom-preview { grid-template-columns: 1fr; }
  .lookbook-grid, .help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { padding-bottom: 72px; }
  .topbar { min-height: 60px; padding: 8px 12px; }
  .brand span:last-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .top-actions .icon-btn:not(:last-child) { display: none; }
  .hero {
    min-height: calc(100svh - 60px);
    max-height: none;
  }
  .hero-content { padding: 34px 18px 86px; align-self: end; }
  .hero h1 { font-size: clamp(44px, 15vw, 64px); }
  .quick-row { grid-template-columns: 1fr; }
  .quick-row div { min-height: 76px; }
  .section-title { align-items: start; }
  .filters { grid-template-columns: 1fr; }
  .product-grid { gap: 12px; }
  .product-info h3 { font-size: 14px; }
  .measure-grid { grid-template-columns: 1fr 1fr; }
  .modal { width: 100vw; max-height: 100svh; border-radius: 0; }
  .bottom-nav { display: grid; }
}
