@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

@font-face {
  font-family: "Futura PT";
  src: url("../assets/fonts/FuturaPT-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Futura PT";
  src: url("../assets/fonts/FuturaPT-Medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Futura PT";
  src: url("../assets/fonts/FuturaPT-Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d0d0d;
  --paper: #f5f4f1;
  --white: #ffffff;
  --line: #0d0d0d;
  --line-soft: #d9d8d3;
  --mid: #7a7a76;
  --mid-2: #8c8c88;
  --danger: #8a2c2c;

  --font-display: "Futura PT", sans-serif;
  --font-body: "Futura PT", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.upper { text-transform: uppercase; letter-spacing: 0.08em; }
.mono { font-family: var(--font-mono); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }

.nav-desktop { display: none; gap: 28px; align-items: center; }
.nav-desktop button {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--mid-2);
}
.nav-desktop button.active { color: var(--ink); }

.icon-btn { position: relative; display: flex; align-items: center; }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: block; }

.nav-mobile { display: none; flex-direction: column; gap: 10px; padding: 0 20px 16px; }
.nav-mobile.open { display: flex; }
.nav-mobile button { text-align: left; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mid-2); }
.nav-mobile button.active { color: var(--ink); }

@media (min-width: 860px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 20px;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; z-index: 0;
}
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(13,13,13,0.78) 0%, rgba(13,13,13,0.55) 55%, rgba(13,13,13,0.35) 100%);
}
.hero-inner { z-index: 2; }
.hero-mark {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: min(42vw, 460px); opacity: 1; pointer-events: none;
}
.hero-mark img { width: 100%; height: auto; display: block; }
.hero-inner { position: relative; max-width: 620px; margin: 0 0 0 clamp(20px, 8vw, 140px); padding: 0; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.18em; color: var(--mid-2); margin-bottom: 18px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98; letter-spacing: -0.01em; margin: 0 0 20px;
}
.hero p { max-width: 460px; font-size: 19px; line-height: 1.5; color: #e4e3de; margin: 0; }
.hero-cta {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 8px;
  padding: 17px 32px; background: var(--paper); color: var(--ink);
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}

@media (min-width: 860px) { .hero { padding: 20px 40px; min-height: 560px; } }
@media (max-width: 640px) { .hero { min-height: 400px; } .hero-mark { width: 55vw; right: -8%; opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 10px 0; background: var(--ink);
  border-top: 1px solid #000; border-bottom: 1px solid #000;
}
.marquee-track {
  display: inline-block; white-space: nowrap; animation: marquee 22s linear infinite;
  font-family: var(--font-mono); color: var(--paper); font-size: 12px; letter-spacing: 0.08em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Catalog ---------- */
.catalog { padding: 40px 20px 56px; max-width: 1280px; margin: 0 auto; }
.catalog-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.catalog-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 6px 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid var(--line-soft); background: transparent; color: var(--ink);
}
.filter-chip.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 20px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; cursor: pointer;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder-mark { transform: scale(1.9); transition: transform .4s ease; opacity: .9; }
.card:hover .placeholder-mark { transform: scale(2.05); }
.badge-discount {
  position: absolute; top: 10px; left: 10px; padding: 4px 8px;
  font-family: var(--font-mono); font-size: 11px; background: var(--paper); color: var(--ink);
}
.badge-outofstock {
  position: absolute; inset: 0; background: rgba(13,13,13,0.55); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}

.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 14px; line-height: 1.35; margin: 0; cursor: pointer; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-family: var(--font-mono); font-size: 14px; }
.price-old { font-family: var(--font-mono); font-size: 12px; color: #a6a49e; text-decoration: line-through; }

.size-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.size-chip {
  padding: 5px 8px; font-family: var(--font-mono); font-size: 11px;
  border: 1px solid var(--line-soft); background: transparent;
}
.size-chip.selected { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.add-btn {
  margin-top: 8px; width: 100%; padding: 10px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.add-btn:disabled { background: var(--line-soft); color: var(--mid); cursor: not-allowed; }

.empty-state { color: var(--mid); font-size: 13px; padding: 40px 0; text-align: center; }

/* ---------- Info strip / footer ---------- */
.info-strip {
  padding: 48px 20px; max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--line-soft);
  display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .info-strip { grid-template-columns: repeat(3, 1fr); } }
.info-block-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.info-block p { margin: 0; font-size: 13px; color: #5c5c58; }

.site-footer {
  padding: 20px; border-top: 1px solid var(--line); max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--mid-2);
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(13,13,13,0.45);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100%; z-index: 50;
  width: min(420px, 100vw); background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); }

.cart-item { display: flex; gap: 12px; }
.cart-item-media {
  width: 64px; height: 78px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-top { display: flex; justify-content: space-between; gap: 8px; }
.cart-item-name { font-size: 13px; font-weight: 600; margin: 0; }
.cart-item-meta { font-family: var(--font-mono); font-size: 11px; color: var(--mid); margin-top: 2px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line-soft); }
.qty-control button { padding: 4px 8px; }
.qty-control span { padding: 0 8px; font-family: var(--font-mono); font-size: 12px; }
.cart-item-price { font-family: var(--font-mono); font-size: 13px; }

.subtotal-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; margin-bottom: 12px; }
.btn-primary {
  width: 100%; padding: 13px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.1em;
  font-weight: 700; background: var(--ink); color: var(--paper);
}
.btn-primary:disabled { background: var(--line-soft); color: var(--mid); cursor: not-allowed; }

/* ---------- Modal (checkout / success) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(13,13,13,0.55);
  display: none; align-items: flex-start; justify-content: center; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box { width: 100%; max-width: 560px; margin: 24px 16px; background: var(--paper); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 24px;
  border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em;
}
.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mid); font-weight: 600; }
.field input, .field textarea, .field select {
  padding: 10px 12px; font-size: 14px; background: var(--white); border: 1px solid var(--line-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.delivery-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-option {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  border: 1px solid var(--line-soft); cursor: pointer; font-size: 13px;
}
.delivery-option.selected { border-color: var(--ink); }
.delivery-option .left { display: flex; align-items: center; gap: 8px; }
.delivery-option .eta { color: var(--mid); }
.delivery-option .price { font-family: var(--font-mono); }

.totals { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 13px; }
.totals .grand { font-size: 15px; font-weight: 700; }
.totals .row { display: flex; justify-content: space-between; }

.error-text { font-size: 12px; color: var(--danger); margin-top: -8px; }
.hint-text { font-size: 11px; text-align: center; color: #a6a49e; }

.success-box { text-align: center; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.success-box h2 { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.08em; margin: 0; }
.success-box p { font-size: 13px; color: #4a4a47; margin: 0; }
.order-total-box { width: 100%; padding: 12px; border: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 14px; }

.section-title-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }

/* ---------- Product detail modal ---------- */
.product-detail-body {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 720px) { .product-detail-body { grid-template-columns: 1fr 1fr; } }

.gallery {
  position: relative; aspect-ratio: 4/5; overflow: hidden; background: #eae9e5;
  touch-action: pan-y;
}
.gallery-track {
  display: flex; height: 100%; transition: transform .3s ease;
}
.gallery-slide {
  min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide .placeholder-mark { transform: scale(1.9); }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

.gallery-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.gallery-dots button { width: 6px; height: 6px; border-radius: 50%; background: rgba(13,13,13,0.25); padding: 0; }
.gallery-dots button.active { background: var(--ink); width: 16px; border-radius: 3px; }

.detail-info { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.detail-price-row { display: flex; align-items: baseline; gap: 10px; }
.detail-price { font-family: var(--font-mono); font-size: 20px; }
.detail-price-old { font-family: var(--font-mono); font-size: 14px; color: #a6a49e; text-decoration: line-through; }
.detail-sku { font-family: var(--font-mono); font-size: 11px; color: var(--mid); }

.detail-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-soft); }
.detail-tab { padding: 8px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mid); border-bottom: 2px solid transparent; }
.detail-tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.detail-tab-panel { display: none; font-size: 13px; line-height: 1.6; color: #3d3d3a; white-space: pre-line; }
.detail-tab-panel.active { display: block; }

/* ---------- Newsletter glass popup ---------- */
.glass-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(13,13,13,0.25);
  display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .35s ease;
}
.glass-overlay.open { display: flex; }
.glass-overlay.visible { opacity: 1; }

.glass-card {
  position: relative;
  width: 100%; max-width: 380px;
  padding: 40px 32px 28px;
  border-radius: 20px;
  text-align: center;
  color: #0d0d0d;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.glass-overlay.visible .glass-card { transform: translateY(0) scale(1); }

.glass-close {
  position: absolute; top: 14px; right: 14px; color: rgba(13,13,13,0.6);
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.35);
}
.glass-close:hover { background: rgba(255,255,255,0.55); }

.glass-mark { margin: 0 auto 18px; width: 52px; }
.glass-mark img { width: 100%; height: auto; display: block; }

.glass-badge {
  display: inline-block; padding: 5px 12px; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  border: 1px solid rgba(13,13,13,0.25); border-radius: 999px; color: var(--ink);
  background: rgba(255,255,255,0.3);
}
.glass-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 0 0 10px;
  letter-spacing: -0.01em; color: var(--ink);
}
.glass-card p { font-size: 13px; line-height: 1.5; color: #000000; margin: 0 0 22px; }

.glass-form { display: flex; flex-direction: column; gap: 10px; }
.glass-form input {
  padding: 13px 14px; border-radius: 10px; font-size: 14px;
  border: 1px solid rgba(13,13,13,0.18); background: rgba(255,255,255,0.35); color: #000000;
}
.glass-form input::placeholder { color: rgba(0,0,0,0.5); }
.glass-form input:focus { outline: none; border-color: rgba(13,13,13,0.5); background: rgba(255,255,255,0.55); }
.glass-form .btn-primary { border-radius: 10px; }

.glass-error { color: #a02f2f; font-size: 12px; margin: 10px 0 0; }
.glass-success { color: #2c6a3f; font-size: 13px; margin: 10px 0 0; font-weight: 600; }
.glass-hint { font-size: 10.5px; color: rgba(13,13,13,0.5); line-height: 1.5; margin: 16px 0 0 !important; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card { background: rgba(20,20,20,0.94); }
}

/* ---------- Newsletter glass band (inline, under catalog) ---------- */
.glass-band-wrap { padding: 0 20px 48px; max-width: 1280px; margin: 0 auto; }
.glass-band {
  position: relative;
  display: flex; align-items: center; gap: 28px;
  padding: 32px 36px;
  border-radius: 20px;
  background: rgba(13, 13, 13, 0.94);
  color: var(--paper);
  overflow: hidden;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}
.glass-band-mark { width: 52px; flex-shrink: 0; opacity: 0.9; filter: invert(1) brightness(2); display: none; }
.glass-band-mark img { width: 100%; height: auto; display: block; }
.glass-band-text { flex: 1; min-width: 200px; }
.glass-band-text .glass-badge {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: var(--paper);
}
.glass-band-text h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.glass-band-text p { font-size: 13px; color: #c7c6c1; margin: 0; }
.glass-band-form { display: flex; gap: 10px; flex-shrink: 0; width: 100%; max-width: 380px; }
.glass-band-form input {
  flex: 1; padding: 13px 14px; border-radius: 10px; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); color: var(--paper);
}
.glass-band-form input::placeholder { color: rgba(255,255,255,0.5); }
.glass-band-form input:focus { outline: none; border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.14); }
.glass-band-form .btn-primary { border-radius: 10px; white-space: nowrap; padding-left: 22px; padding-right: 22px; }
.glass-band-msg { text-align: center; margin: 12px 0 0; font-size: 12px; }

@media (min-width: 760px) { .glass-band-mark { display: block; } }

@media (max-width: 760px) {
  .glass-band { flex-direction: column; align-items: stretch; text-align: center; padding: 28px 22px; }
  .glass-band-form { max-width: none; flex-direction: column; }
}