/* ===== Manière De Voir — Footwear ===== */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --soft: #f4f3f1;
  --maxw: 1280px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

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

/* ===== Announcement ===== */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.wordmark {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.site-header .wordmark { margin-right: auto; }
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity 0.18s;
}
.main-nav a:hover { opacity: 0.55; }
@media (min-width: 761px) and (max-width: 1120px) {
  .main-nav { gap: 1rem; }
  .main-nav a { font-size: 0.66rem; letter-spacing: 0.06em; }
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
}
.menu-toggle { display: none; }
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.62rem;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { opacity: 0.84; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 74vh; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 5vw, 5rem);
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 38ch; margin: 0 0 2rem; }
.hero-copy .btn { align-self: flex-start; }
.hero-media { background: var(--soft); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Products ===== */
.products { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.products { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section-head { text-align: center; margin-bottom: 2.8rem; }
.section-head h2 {
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head p { color: var(--muted); margin: 0.6rem 0 0; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.product-media {
  background: var(--soft);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product:hover .product-media img { transform: scale(1.04); }
.product-info { text-align: center; padding-top: 1rem; }
.product-name { font-size: 0.98rem; }
.product-meta { color: var(--muted); font-size: 0.82rem; margin: 0.25rem 0 0; }
.product-price { font-size: 0.98rem; margin: 0.5rem 0 0; }
.btn-add {
  margin-top: 0.95rem;
  width: 100%;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.85rem;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-add:hover { background: var(--ink); color: #fff; }
.btn-add.added { background: var(--ink); color: #fff; }

/* ===== Size selector ===== */
.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.9rem;
}
.size {
  min-width: 46px;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.size:hover { border-color: var(--ink); }
.size.selected { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== Assurance ===== */
.assurance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.assurance-item {
  text-align: center;
  padding: 1.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.assurance-item + .assurance-item { border-left: 1px solid var(--line); }
.assurance-item strong { font-size: 0.84rem; letter-spacing: 0.04em; }
.assurance-item span { color: var(--muted); font-size: 0.8rem; }

/* ===== About ===== */
.about { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.about-inner { max-width: 620px; margin-inline: auto; text-align: center; padding-inline: 1.25rem; }
.about-inner h2 { font-size: 1.4rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.about-inner p { color: var(--muted); font-size: 1.05rem; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding-top: 3rem; background: var(--soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand .wordmark { display: inline-block; margin-bottom: 1.2rem; }
.newsletter label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; }
.newsletter-row { display: flex; gap: 0.5rem; max-width: 360px; }
.newsletter input {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.85rem;
}
.newsletter .btn { padding: 0.85rem 1.2rem; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted); font-size: 0.88rem; padding: 0.3rem 0; transition: color 0.18s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
}
.footer-bottom p { margin: 0; color: var(--muted); font-size: 0.8rem; }

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 50;
}
.cart-overlay.show { opacity: 1; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: #fff;
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cart-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.cart-empty { color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 80px; object-fit: cover; background: var(--soft); }
.cart-item-name { font-size: 0.9rem; }
.cart-item-price { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.cart-item-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.75rem; text-decoration: underline; padding: 0; align-self: start; }
.cart-item-remove:hover { color: var(--ink); }
.cart-foot { border-top: 1px solid var(--line); padding: 1.25rem 1.5rem; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 1rem; }
.cart-note { color: var(--muted); font-size: 0.8rem; text-align: center; margin: 0.9rem 0 0; }

/* ===== Checkout step (inside drawer) ===== */
.checkout-step { padding: 0.5rem 0; }
.checkout-title { font-size: 1.05rem; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.checkout-text { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.checkout-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.checkout-input:focus { outline: none; border-color: var(--ink); }
.checkout-error { color: #b00020; font-size: 0.8rem; margin: 0 0 0.9rem; }
.checkout-done { text-align: center; padding: 2.5rem 0.5rem; }
.checkout-done .check { color: var(--ink); margin: 0 auto 1rem; }
.checkout-done .checkout-text { margin-bottom: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 80vw);
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
    z-index: 45;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 52vh; order: -1; }
  .assurance { grid-template-columns: 1fr 1fr; }
  .assurance-item:nth-child(3) { border-left: 0; }
  .assurance-item:nth-child(odd) { border-left: 0; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
}

/* ===== Product page (PDP) ===== */
.product-media { display: block; }
.product-name a:hover { opacity: 0.6; }
.pdp-wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(4rem, 8vw, 6rem); }
.breadcrumb { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 clamp(1.5rem, 3vw, 2.2rem); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pdp .product-media { aspect-ratio: 3 / 4; }
.pdp-info { padding-top: 0.3rem; }
.pdp-eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.8rem; }
.pdp-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.12; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.pdp-color { color: var(--muted); margin: 0 0 1.1rem; font-size: 0.92rem; }
.pdp-price { font-size: 1.25rem; margin: 0 0 0.5rem; }
.pdp-replica { font-size: 0.78rem; color: #a3a3a3; letter-spacing: 0.03em; margin: 0 0 1.7rem; }
.pdp-size-label { font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; margin: 0 0 0.6rem; }
.pdp .size-row { justify-content: flex-start; margin: 0 0 1.7rem; }
.pdp .btn-add { background: var(--ink); color: #fff; max-width: 340px; margin-top: 0; }
.pdp .btn-add:hover { background: var(--ink); opacity: 0.85; color: #fff; }
.pdp-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin: 1.9rem 0 0; max-width: 48ch; }
.pdp-assure { list-style: none; padding: 0; margin: 1.7rem 0 0; display: grid; gap: 0.55rem; }
.pdp-assure li { font-size: 0.85rem; color: var(--muted); padding-left: 1.25rem; position: relative; }
.pdp-assure li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
@media (max-width: 760px) { .pdp { grid-template-columns: 1fr; } .pdp .btn-add { max-width: none; } }

/* ===== Sold out ===== */
.product.sold-out .product-media { position: relative; }
.product.sold-out .product-media img { opacity: 0.6; }
.product.sold-out .size-row { opacity: 0.45; pointer-events: none; }
.sold-badge { position: absolute; top: 0.7rem; left: 0.7rem; background: var(--ink); color: #fff; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; padding: 0.35rem 0.6rem; z-index: 1; }
.btn-add:disabled, .btn-add.is-soldout { background: #fff; color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-add:disabled:hover, .btn-add.is-soldout:hover { background: #fff; color: var(--muted); }
.pdp .product-media { position: relative; }
.pdp-soldout { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #b00020; font-weight: 600; margin: 0 0 1.2rem; }
