:root {
  --ink: #111318;
  --muted: #606774;
  --line: #e4e8ee;
  --soft: #f5f7f9;
  --paper: #ffffff;
  --steel: #dfe4e8;
  --teal: #0f766e;
  --teal-dark: #0a4f4a;
  --coral: #d94f3d;
  --gold: #b98a24;
  --shadow: 0 20px 60px rgba(17, 19, 24, 0.12);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--teal));
  text-transform: uppercase;
  font-size: 13px;
}
.nav-links { display: flex; align-items: center; justify-content: center; gap: 22px; color: var(--muted); font-weight: 650; }
.nav-links a:hover { color: var(--ink); }
.cart-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 9px 12px 9px 16px;
  cursor: pointer;
  font-weight: 700;
}
.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(38px, 6vw, 76px) clamp(18px, 4vw, 56px) 40px;
  background:
    linear-gradient(120deg, rgba(15,118,110,0.10), rgba(217,79,61,0.07) 44%, rgba(185,138,36,0.08)),
    var(--soft);
}
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(42px, 7vw, 84px); line-height: 0.94; letter-spacing: 0; }
.hero p { color: #3f4651; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}
.primary-button { background: var(--teal); color: #fff; box-shadow: 0 10px 25px rgba(15, 118, 110, 0.22); }
.primary-button:hover { background: var(--teal-dark); }
.secondary-button { background: #fff; border-color: var(--line); color: var(--ink); }
.full { width: 100%; }

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  gap: 14px;
  align-items: stretch;
}
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-visual .stack { display: grid; gap: 14px; }

.section { padding: clamp(42px, 6vw, 86px) clamp(18px, 4vw, 56px); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}
.section-head h2 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 46px); letter-spacing: 0; }
.section-head p { max-width: 700px; color: var(--muted); line-height: 1.7; }

.trust-grid, .collection-grid, .product-grid { display: grid; gap: 16px; }
.trust-grid { grid-template-columns: repeat(4, 1fr); }
.trust-item, .collection-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}
.trust-item strong, .collection-tile strong { display: block; margin-bottom: 6px; }
.trust-item p, .collection-tile p { margin: 0; color: var(--muted); line-height: 1.55; }
.collection-grid { grid-template-columns: repeat(4, 1fr); }
.collection-tile { min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.collection-tile span { color: var(--teal); font-weight: 800; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.filter-group { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}
.chip.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.sort-select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1 / 1; background: var(--soft); }
.product-media img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; padding: 18px; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}
.product-info { padding: 16px; }
.product-info h3 { min-height: 48px; margin-bottom: 10px; font-size: 16px; line-height: 1.45; }
.meta { color: var(--muted); font-size: 13px; font-weight: 650; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 14px; }
.price { font-size: 20px; font-weight: 850; }
.compare { color: var(--muted); text-decoration: line-through; }
.mini-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.gallery-main { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.gallery-main img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 28px; mix-blend-mode: multiply; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 5px; cursor: pointer; }
.thumbs button.active { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14); }
.thumbs img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.detail-copy h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.04; }
.detail-copy .description { color: var(--muted); font-size: 17px; line-height: 1.75; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; margin: 22px 0; list-style: none; }
.spec-list li { border: 1px solid var(--line); border-radius: 8px; padding: 12px; color: #39404a; background: #fff; }
.quantity-row { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.quantity-row input { width: 78px; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-weight: 800; }
.breadcrumbs { margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.policy-strip {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.policy-strip p { margin: 0; color: #39404a; line-height: 1.5; }
.related-block { margin-top: 28px; }
.related-block h2 { font-size: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-grid .product-card .product-info h3 { min-height: auto; font-size: 14px; }

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}
.form-card, .summary-card, .contact-card, .legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-bottom: 24px; }
.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.field { display: grid; gap: 7px; }
.field.full-span { grid-column: 1 / -1; }
.field span { color: #373f4b; font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.terms-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.terms-check input { width: 18px; min-height: 18px; }
.terms-check span { font-size: 14px; font-weight: 700; }
.stripe-placeholder {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed #aeb8c5;
  border-radius: 8px;
  background: #f8fbfb;
}
.stripe-card-shell {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}
.summary-lines { display: grid; gap: 12px; margin: 18px 0; }
.summary-lines div, .cart-summary div { display: flex; justify-content: space-between; gap: 14px; }

.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.info-list { display: grid; gap: 14px; }
.info-list div { border: 1px solid var(--line); border-radius: 8px; padding: 15px; }
.info-list strong { display: block; margin-bottom: 5px; }
.info-list p { margin: 0; color: var(--muted); }
.legal-card { max-width: 900px; margin: 0 auto; line-height: 1.75; color: #333b46; }
.legal-card h1 { font-size: clamp(32px, 5vw, 52px); }
.legal-card h2 { margin-top: 28px; }
.notice { padding: 12px; border: 1px solid #f1d58b; border-radius: 8px; background: #fff8e5; color: #6d4e08; }

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr 1fr;
  gap: 24px;
  padding: 44px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #101217;
  color: #fff;
}
.site-footer p, .site-footer a { color: #c8d0da; line-height: 1.7; }
.site-footer a { display: block; margin: 8px 0; }
.site-footer h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; }
.footer-brand { color: #fff; margin-bottom: 14px; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: end;
  background: rgba(17, 19, 24, 0.38);
}
.cart-drawer.open { display: flex; }
.cart-panel {
  width: min(460px, 100%);
  min-height: 100%;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: var(--shadow);
}
.cart-head { display: flex; justify-content: space-between; align-items: start; padding: 22px; border-bottom: 1px solid var(--line); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 800; }
.cart-items { padding: 18px; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 74px; height: 74px; border-radius: 8px; object-fit: contain; background: var(--soft); }
.cart-line h3 { margin-bottom: 4px; font-size: 14px; line-height: 1.35; }
.cart-line-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-line-controls button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.remove-button { border: 0; background: transparent; color: var(--coral); cursor: pointer; font-weight: 800; }
.cart-summary { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-summary p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty { padding: 32px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  transition: 180ms ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  width: min(760px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: var(--muted); line-height: 1.45; }

@media (max-width: 1050px) {
  .hero, .detail, .checkout, .contact-layout, .cart-page { grid-template-columns: 1fr; }
  .product-grid, .trust-grid, .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { grid-column: 1 / -1; justify-content: start; overflow-x: auto; }
  .hero { min-height: auto; }
  .hero-visual, .product-grid, .trust-grid, .collection-grid, .form-grid, .spec-list, .site-footer, .search-form, .related-grid, .cookie-banner { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .product-info h3 { min-height: auto; }
  .cart-button span { display: none; }
  .quantity-row { align-items: stretch; flex-direction: column; }
  .quantity-row input { width: 100%; }
}
