/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fafafa;
  color: #111111;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:root {
  --ink: #111111;
  --bg: #fafafa;
  --bg-alt: #f0efec;
  --accent: #e8622c;
  --accent-dark: #c94f1f;
  --line: #dedcd7;
  --max: 1200px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 12px 20px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.08;
  margin: 0 0 14px;
}
.section-desc { max-width: 620px; color: #4a4a4a; }
.section-head { max-width: 760px; margin: 0 auto 48px; padding: 0 24px; text-align: left; }
.section-head.light .section-desc { color: rgba(250,250,250,0.72); }
.accent-text { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; font-weight: 600; font-size: 0.95rem;
  border-radius: 3px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-small { padding: 10px 16px; font-size: 0.82rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}
.wordmark-dot { color: var(--accent); }
.main-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; position: relative; padding: 4px 0;
}
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative; background: none; border: none; color: var(--ink);
  display: inline-flex; padding: 6px;
}
.cart-count {
  position: absolute; top: -2px; right: -6px; background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 24px 90px;
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 0.94;
  margin: 10px 0 26px;
}
.hero-sub { max-width: 480px; color: #454545; font-size: 1.05rem; margin-bottom: 32px; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-art {
  position: relative; aspect-ratio: 400/520; border-radius: 18px;
  background-size: cover; background-position: center;
  box-shadow: 0 30px 60px -20px rgba(17,17,17,0.35);
}

.product-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 24px; margin-top: -60px; margin-left: 24px; position: relative; z-index: 2;
  max-width: 320px; box-shadow: 0 20px 40px -18px rgba(17,17,17,0.25);
}
.panel-sku { font-size: 0.7rem; letter-spacing: 0.08em; color: #8a8a8a; text-transform: uppercase; margin-bottom: 6px; }
.panel-name { font-size: 1.25rem; margin-bottom: 8px; }
.panel-price { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.panel-swatches { display: flex; gap: 10px; margin-bottom: 10px; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent;
  padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.swatch.is-active { border-color: var(--ink); }
.swatch-onyx { background: #17171a; }
.swatch-fog { background: #a9a9a4; }
.swatch-rust { background: #a24422; }
.panel-color-label { font-size: 0.85rem; color: #555; margin-bottom: 18px; }
.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Categories ---------- */
.categories { padding: 90px 24px; max-width: var(--max); margin: 0 auto; }
.category-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0 24px;
}
.category-card {
  aspect-ratio: 3/4; border-radius: 8px; padding: 22px; display: flex; flex-direction: column;
  justify-content: flex-end; position: relative; overflow: hidden; color: #fff;
  transition: transform .2s ease; background-size: cover; background-position: center;
}
.category-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
}
.category-card > * { position: relative; z-index: 1; }
.category-card:hover { transform: translateY(-6px); }
.category-name { font-family: 'Archivo Black', sans-serif; font-size: 1.4rem; }
.category-sub { font-size: 0.82rem; opacity: 0.85; margin-top: 4px; }
.cat-men { background-color: #1c1c1c; }
.cat-women { background-color: #2b2320; }
.cat-accessories { background-color: #14201f; }
.cat-customise { background-color: #1a1a2b; }

/* ---------- Collection ---------- */
.collection { padding: 40px 24px 100px; max-width: var(--max); margin: 0 auto; }
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0 24px;
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 18px 34px -20px rgba(17,17,17,0.3); transform: translateY(-4px); }
.product-media {
  aspect-ratio: 4/5; position: relative; display: flex; align-items: flex-end; justify-content: center;
  padding: 18px 0 0; background-size: cover; background-position: center;
}
.mini-silhouette { display: none; }
.tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.9); color: var(--ink);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 3px;
}
.grad-1 { background-color: #1a1a1a; }
.grad-2 { background-color: #2c2620; }
.grad-3 { background-color: #26201f; }
.grad-4 { background-color: #1f1f24; }
.grad-5 { background-color: #101414; }
.grad-6 { background-color: #191919; }
.grad-7 { background-color: #14151c; }
.grad-8 { background-color: #1c1c1c; }

.product-info { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-info h3 { font-size: 1.05rem; }
.product-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 600; }
.product-desc { font-size: 0.87rem; color: #565656; flex: 1; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.product-price { font-weight: 700; font-size: 1.05rem; }
.product-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- About ---------- */
.about { background: var(--bg-alt); padding: 100px 24px; }
.about-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-copy p { color: #3f3f3f; }
.values-grid { display: flex; flex-direction: column; gap: 26px; }
.value-card { border-left: 3px solid var(--accent); padding-left: 20px; }
.value-num { font-family: 'Archivo Black', sans-serif; color: var(--accent); font-size: 0.9rem; }
.value-card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.value-card p { color: #4a4a4a; font-size: 0.92rem; margin: 0; }

/* ---------- Lookbook ---------- */
.lookbook { background: var(--ink); color: #fafafa; padding: 100px 0; }
.lookbook .section-head { margin-bottom: 40px; }
.lookbook-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 0 4px; margin-bottom: 46px;
}
.look-frame {
  margin: 0; aspect-ratio: 3/4; position: relative; display: flex; align-items: flex-end;
  padding: 16px; overflow: hidden; background-size: cover; background-position: center;
}
.look-frame::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.8) 100%);
}
.look-frame figcaption { position: relative; z-index: 1; font-size: 0.78rem; color: rgba(250,250,250,0.85); }
.look-a { background-color: #2a2a2a; }
.look-b { background-color: #23201d; }
.look-c { background-color: #16211f; }
.look-d { background-color: #1b1b26; }
.editorial-quote {
  max-width: 640px; margin: 0 auto; text-align: center; padding: 0 24px;
  font-family: 'Archivo Black', sans-serif; font-size: 1.3rem; line-height: 1.4;
}
.editorial-quote cite { display: block; margin-top: 18px; font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-style: normal; color: var(--accent); }

/* ---------- Size guide ---------- */
.size-guide { padding: 90px 24px; max-width: var(--max); margin: 0 auto; }
.table-wrap { overflow-x: auto; padding: 0 24px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
thead th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #7c7c7c; padding: 10px 14px; border-bottom: 2px solid var(--ink); }
tbody th, tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
tbody th { font-weight: 700; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--accent); color: #fff; padding: 70px 24px; }
.newsletter-inner {
  max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.newsletter p { color: rgba(255,255,255,0.88); margin: 0; }
.field-group { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 220px; padding: 15px 16px; border-radius: 3px; border: 2px solid transparent;
  background: #fff; color: var(--ink);
}
.newsletter-form input:focus-visible { outline: 3px solid var(--ink); }
.newsletter .btn-primary { background: var(--ink); }
.newsletter .btn-primary:hover { background: #000; }
.field-error { color: #ffe2d3; font-size: 0.85rem; margin: 10px 0 0; min-height: 1em; font-weight: 600; }
.newsletter .field-success { color: #fff; background: rgba(17,17,17,0.25); }

.field-success {
  font-size: 0.88rem; margin: 10px 0 0; min-height: 0; font-weight: 600; color: #1f7a3d;
}
.field-success:empty { margin: 0; }
.field-error:empty { margin: 0; }

/* ---------- Contact ---------- */
.contact { padding: 100px 24px; max-width: var(--max); margin: 0 auto; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 0 24px; }
.store-block { margin-bottom: 26px; }
.store-block h3 { font-size: 1rem; margin-bottom: 6px; }
.store-block p { margin: 0 0 2px; color: #444; font-size: 0.92rem; }
.store-block a:hover { color: var(--accent); }
.map-block {
  margin-top: 20px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  position: relative; background: #fff;
}
.map-lines { width: 100%; display: block; }
.map-label {
  position: absolute; bottom: 10px; left: 12px; background: #fff; padding: 5px 10px;
  font-size: 0.75rem; font-weight: 600; border-radius: 3px; border: 1px solid var(--line);
}

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 32px;
}
.contact-form h3 { margin-bottom: 20px; font-size: 1.25rem; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-row label { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 4px; background: #fdfdfc;
  resize: vertical;
}
.form-row input:focus-visible, .form-row select:focus-visible, .form-row textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-row.has-error input, .form-row.has-error select, .form-row.has-error textarea {
  border-color: #c0392b;
}
.form-row .field-error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d9d9; padding: 70px 24px 30px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px; }
.footer-brand .wordmark { color: #fff; }
.footer-brand p { color: #9c9c9c; margin-top: 12px; max-width: 320px; font-size: 0.9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-cols a { display: block; margin-bottom: 10px; font-size: 0.9rem; color: #b8b8b8; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max); margin: 50px auto 0; padding-top: 24px; border-top: 1px solid #2a2a2a;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; color: #7c7c7c;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 6px;
  font-size: 0.9rem; font-weight: 600; opacity: 0; pointer-events: none; z-index: 300;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Quick view modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(17,17,17,0.6); z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: #fff; max-width: 640px; width: 100%; border-radius: 10px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; position: relative; max-height: 90vh;
}
.modal-media { background: linear-gradient(155deg, #1c1c1c, #4a4a4a 55%, #e8622c 140%); min-height: 220px; }
.modal-body { padding: 30px; overflow-y: auto; }
.modal-body h3 { font-size: 1.4rem; margin: 6px 0 10px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.9); border: none;
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; z-index: 2;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .product-panel { margin-left: 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .lookbook-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal-media { min-height: 160px; }
}

@media (max-width: 680px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fafafa;
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-grid { grid-template-columns: 1fr; padding: 0; }
  .category-grid { padding: 0; }
  .section-head { padding: 0; }
  .categories, .collection, .about, .size-guide, .contact { padding-left: 16px; padding-right: 16px; }
  .about-inner, .contact-inner { padding: 0; }
  .lookbook-strip { grid-template-columns: 1fr 1fr; }
  .hero { padding: 44px 16px 60px; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 4rem); }
}
