/* ==========================================================================
   EXTREME GEAR — Design Tokens (v2)
   Black / White / Grey. Clean, photography-led layout closer to the
   Dromex reference. The hazard stripe is now a small accent only
   (footer top edge), not a repeating structural motif.
   ========================================================================== */

:root {
  --black: #0d0d0d;
  --charcoal: #1a1a19;
  --charcoal-soft: #242423;
  --white: #ffffff;
  --paper: #f6f6f5;
  --grey-100: #ececea;
  --grey-300: #d2d1cd;
  --grey-500: #8f8f89;
  --grey-700: #4a4a46;
  --line: #e2e1dd;

  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --stripe: repeating-linear-gradient(
    45deg,
    var(--black),
    var(--black) 12px,
    var(--white) 12px,
    var(--white) 24px
  );

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --max-width: 1280px;
  --header-h: 96px;
  --shadow-sm: 0 2px 10px rgba(13,13,13,0.06);
  --shadow-md: 0 16px 40px rgba(13,13,13,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { color: var(--grey-700); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-500);
  display: inline-flex;
  align-items: center;
}

/* -------------------------- Hazard stripe device ------------------------- */

.hazard {
  height: 10px;
  background: var(--stripe);
  width: 100%;
}

.hazard--thin { height: 6px; }

/* ------------------------------- Buttons --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border: 2px solid var(--black);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--solid {
  background: var(--black);
  color: var(--white);
}
.btn--solid:hover { background: var(--charcoal-soft); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn--outline {
  background: transparent;
  color: var(--black);
}
.btn--outline:hover { background: var(--black); color: var(--white); }

.btn--ghost-light {
  border-color: var(--white);
  color: var(--white);
}
.btn--ghost-light:hover { background: var(--white); color: var(--black); }

.btn--sm { padding: 11px 22px; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }

/* -------------------------------- Header --------------------------------- */

.topbar {
  display: none;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

.topbar-contact { display: flex; gap: 22px; }
.topbar-contact a:hover { color: var(--white); }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: var(--grey-500); }
.topbar-social a:hover { color: var(--white); }

@media (max-width: 760px) {
  .topbar-address { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--black);
  border-bottom: 1px solid var(--charcoal-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
}
.logo-mark { height: 68px; width: auto; display: block; }
.logo-fallback-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav > ul { display: flex; gap: 36px; align-items: center; }

.main-nav a.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--grey-300);
  position: relative;
  padding: 8px 0;
}

.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--white);
  transition: width 0.2s ease;
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link.active { color: var(--white); }
.main-nav a.nav-link:hover::after,
.main-nav li.has-mega:hover a.nav-link::after,
.main-nav a.nav-link.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--white); }

/* ---------------------------- Mega menu ----------------------------- */

li.has-mega { position: static; }

.mega {
  position: absolute;
  left: 0; right: 0;
  top: var(--header-h);
  background: var(--white);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 150;
}

li.has-mega:hover .mega,
li.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.mega-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--grey-700);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.mega-col ul li { margin-bottom: 11px; }
.mega-col ul li a {
  font-size: 0.95rem;
  transition: padding-left 0.15s ease;
}
.mega-col ul li a:hover {
  padding-left: 6px;
  color: var(--grey-700);
}

.mega-panel {
  background: var(--charcoal);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-sm);
}
.mega-panel h4 { color: var(--grey-300); border-color: var(--grey-700); }
.mega-panel p { color: var(--grey-300); font-size: 0.85rem; margin-bottom: 14px; }

/* -------------------------------- Hero ------------------------------------ */

.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .imgbox { position: absolute; inset: 0; }
.hero > .container { position: absolute; inset: 0; }

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.3) 35%, rgba(10,10,10,0.3) 65%, rgba(10,10,10,0.85) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 640px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.hero-content.is-active { opacity: 1; pointer-events: auto; }
.hero-content--right { right: 0; }
.hero-content--left { left: 0; }

.hero-content .eyebrow { color: var(--grey-300); }

.hero-content h1 { margin: 18px 0 20px; }

.hero-content p {
  color: var(--grey-100);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-nav {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(10,10,10,0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hero-arrow:hover { background: rgba(10,10,10,0.65); border-color: var(--white); }
.hero-arrow svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .hero-nav { bottom: 18px; gap: 10px; }
  .hero-arrow { width: 34px; height: 34px; }
  .hero-arrow svg { width: 15px; height: 15px; }
}

.hero-band-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

/* Page (category/about/contact) hero — shorter */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 70px 0 54px;
  position: relative;
}
.page-hero .eyebrow { color: var(--grey-300); }
.page-hero h1 { margin-top: 14px; }
.page-hero p { color: var(--grey-300); max-width: 620px; margin-top: 14px; }
.breadcrumb {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--grey-500);
  margin-bottom: 6px;
}
.breadcrumb a:hover { color: var(--white); }

/* ------------------------------ Sections ---------------------------------- */

section { padding: 92px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

.section--dark { background: var(--black); color: var(--white); }
.section--dark p { color: var(--grey-300); }
.section--dark .eyebrow { color: var(--grey-300); }
.section--paper { background: var(--paper); }

/* --------------------------- Category strip -------------------------------- */

.cat-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat-strip a {
  background: var(--white);
  padding: 18px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease;
}
.cat-strip a:hover { background: var(--black); color: var(--white); }
.cat-strip a:hover .cat-icon-fallback { border-color: var(--white); color: var(--white); }

.cat-icon-fallback {
  width: 44px; height: 44px;
  border: 2px solid var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: bold;
}

.cat-strip span { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; }

@media (max-width: 1180px) {
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .icon-slot { width: 120px; height: 120px; }
}

@media (max-width: 480px) {
  .icon-slot { width: 84px; height: 84px; }
  .cat-strip a { padding: 16px 8px; }
}

@media (max-width: 360px) {
  .icon-slot { width: 72px; height: 72px; }
}

/* ----------------------------- Card grids ---------------------------------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.range-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.range-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.range-card:hover img { transform: scale(1.05); opacity: 0.6; }
.range-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.88) 12%, rgba(13,13,13,0.05) 62%);
  z-index: 1;
}
.range-card-label {
  position: absolute;
  left: 24px; bottom: 22px; right: 24px;
  z-index: 2;
}
.range-card-label .count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--grey-300);
  display: block;
  margin-top: 6px;
}

/* Product card (category listing pages) */

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-media {
  aspect-ratio: 1/1;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-media > a { position: absolute; inset: 0; display: block; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .ph {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--grey-500);
  text-align: center;
  padding: 20px;
}
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-code { font-family: var(--font-body); font-size: 0.78rem; color: var(--grey-500); }
.product-body h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }
.product-specs {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--grey-700);
}
.product-specs span:not(:last-child)::after { content: " \00b7 "; color: var(--grey-300); }
.product-colors { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.color-dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}
.product-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
.product-footer a { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; }
.product-footer a:hover { color: var(--grey-700); }

/* ------------------------------ Search bar --------------------------------- */

.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.search-box {
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  border: 2px solid var(--black);
  padding: 4px 4px 4px 16px;
  min-width: 320px;
  max-width: 100%;
}
.search-box input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  flex: 1;
  padding: 10px 0;
  background: transparent;
}
.search-box button {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
}
.result-count { font-family: var(--font-body); font-size: 0.75rem; color: var(--grey-500); }
.no-results {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-body);
  color: var(--grey-500);
  display: none;
}

/* --------------------------- Trust badges band ------------------------------ */

.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--grey-700);
}
.badge {
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  padding: 40px 28px;
  text-align: center;
}
.badge-icon-fallback {
  width: 46px; height: 46px;
  border: 2px solid var(--white);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.badge h4 { font-size: 0.95rem; margin-bottom: 8px; }
.badge p { color: var(--grey-300); font-size: 0.85rem; }

@media (max-width: 900px) { .badges { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------ Testimonials -------------------------------- */

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.testimonial {
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 30px;
  border-left: 3px solid var(--black);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial p { color: var(--charcoal); font-size: 0.95rem; font-style: italic; }
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 0.78rem;
}
.avatar-fallback {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}

@media (max-width: 980px) { .testimonial-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testimonial-track { grid-template-columns: 1fr; } }

/* -------------------------------- Quote band --------------------------------- */

.quote-band {
  background: var(--black);
  color: var(--white);
  padding: 90px 0;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.quote-grid p { color: var(--grey-300); margin-top: 16px; }
.quote-contacts { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.quote-contacts a { font-family: var(--font-body); font-size: 0.95rem; display: flex; gap: 12px; align-items: center; }
.quote-contacts a:hover { color: var(--grey-300); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--grey-300);
  display: block;
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--grey-700);
  color: var(--white);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--white);
}
textarea { resize: vertical; min-height: 110px; }

@media (max-width: 760px) {
  .quote-grid, .form-grid { grid-template-columns: 1fr; }
}

/* ------------------------------- Clients strip -------------------------------- */

.clients-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  opacity: 0.75;
}
.client-fallback {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--grey-500);
  border: 1px dashed var(--grey-300);
  padding: 18px 22px;
}

/* --------------------------------- Footer -------------------------------------- */

.site-footer { background: var(--charcoal); color: var(--grey-300); }
.footer-top { padding: 70px 0 50px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo { color: var(--white); }
.footer-brand p { margin-top: 18px; color: var(--grey-500); font-size: 0.9rem; max-width: 320px; }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--grey-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 0.7rem;
}
.footer-social a:hover { border-color: var(--white); color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 12px; font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--grey-700);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--grey-500);
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------ About page ------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media {
  aspect-ratio: 4/3;
  background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .ph { font-family: var(--font-body); font-size: 0.75rem; color: var(--grey-500); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); margin-top: 40px; }
.stat { background: var(--white); padding: 28px; text-align: center; border-radius: var(--radius-sm); }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; }
.stat .label { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; color: var(--grey-500); margin-top: 6px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.value-card { background: var(--white); padding: 36px; border-radius: var(--radius-sm); }
.value-card .num { font-family: var(--font-body); font-size: 0.75rem; color: var(--grey-500); }
.value-card h3 { margin: 16px 0 10px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .stat-row, .values-grid { grid-template-columns: 1fr; }
}

/* ------------------------------ Contact page ------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
.contact-info-card {
  background: var(--paper);
  padding: 28px 32px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--black);
  margin-bottom: 18px;
}
.contact-info-card h4 { font-size: 0.85rem; margin-bottom: 10px; }
.contact-info-card a, .contact-info-card p { font-size: 0.92rem; color: var(--grey-700); }
.map-embed {
  aspect-ratio: 16/9;
  background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 0.75rem; color: var(--grey-500);
  margin-top: 30px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------- Utilities -------------------------------------- */

.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 60px; }
.hide-mobile { display: block; }

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 24px; overflow-y: auto; transform: translateX(100%);
    transition: transform 0.25s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a.nav-link { padding: 16px 0; display: block; color: var(--black); }
  .main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--black); }
  .main-nav a.nav-link::after { background: var(--black); }
  .mega { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    display: none; border-top: none; border-left: 2px solid var(--black); }
  li.has-mega:hover .mega, li.has-mega.open .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr; padding: 16px 0 16px 16px; gap: 20px; }
  .mega-panel { display: none; }
  .menu-toggle { display: flex; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
}

/* --------------------------------- Reduced motion --------------------------------- */

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

/* --------------------------------- Image drop-in / fallback system --------------------------------- */
/* Every real image on the site sits in an .imgbox. If the file named in src=""
   is missing, onerror hides it and reveals the sibling .fallback placeholder —
   so pages never show a broken-image icon while photos are still being supplied. */

.imgbox { position: relative; width: 100%; height: 100%; }
.imgbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.imgbox .fallback {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  text-align: center;
  background: var(--grey-100);
  color: var(--grey-500);
  font-family: var(--font-body);
  font-size: 0.64rem;
  line-height: 1.4;
  padding: 8px;
}
.imgbox--circle, .imgbox--circle img, .imgbox--circle .fallback { border-radius: 50%; }
.imgbox--dark .fallback {
  background: var(--black);
  color: var(--grey-300);
  border: none;
}
.imgbox--dark:not(.imgbox--icon) .fallback {
  background-image: var(--stripe);
  background-blend-mode: soft-light;
  background-color: var(--black);
}
.imgbox--dark:not(.imgbox--icon) .fallback svg { width: 72px; height: 72px; color: var(--grey-300); }
.imgbox--contain img { object-fit: contain; }

.imgbox--icon .fallback {
  background: transparent;
  border: none;
  color: var(--black);
  padding: 0;
}
.imgbox--icon .fallback svg { width: 28px; height: 28px; }
.imgbox--icon.imgbox--dark .fallback { color: var(--white); }

.icon-slot { width: 108px; height: 108px; margin: 0 auto; }
.badge-icon-slot { width: 46px; height: 46px; margin: 0 auto 16px; }
.avatar-slot { width: 40px; height: 40px; flex-shrink: 0; }
.client-slot { width: 150px; height: 64px; }

.product-media { position: relative; }
.range-card-media { position: absolute; inset: 0; }
.imgbox-fill { position: absolute; inset: 0; }
.hero .imgbox img { opacity: 0; transition: opacity 1.6s ease; }
.hero .imgbox img.is-active { opacity: 0.55; }
.hero .imgbox .fallback { opacity: 0.9; }

/* --------------------------------- Product Detail Page (PDP) --------------------------------- */
/* Standard template for individual garment pages: model shot + isolated piece
   shots on the left, spec/info panel on the right. Reuse this pattern for
   every product page going forward. */

.pdp-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Gallery: one large hero shot with the two isolated-piece shots presented
   as a pair of floating cards overlapping its lower edge. Keeps the model
   shot clearly the biggest image while both pieces stay large enough to
   read at a glance, no click required. */
.pdp-gallery {
  display: block;
}

.pdp-model {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  max-height: 620px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-100);
}

.pdp-pieces {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  margin: -72px 28px 0;
}

.pdp-piece {
  position: relative;
  flex: 1;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-100);
  border: 5px solid var(--white);
  box-shadow: 0 18px 32px rgba(13,13,13,0.18);
}

.pdp-piece-label {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(13,13,13,0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.pdp-info { position: sticky; top: calc(var(--header-h) + 24px); }
.pdp-info h2 { margin-bottom: 14px; }
.pdp-info > p { margin-bottom: 26px; color: var(--grey-700); }

.pdp-specs { border-top: 1px solid var(--line); margin-bottom: 26px; }
.pdp-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.pdp-spec-row span:first-child { color: var(--grey-500); font-weight: 500; }
.pdp-spec-row span:last-child { text-align: right; font-weight: 500; }

.pdp-colors { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }

.pdp-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--paper);
  border-radius: var(--radius-sm);
}
.pdp-cta .price-note { font-size: 0.85rem; color: var(--grey-500); font-weight: 600; }

@media (max-width: 900px) {
  .pdp-layout { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
}

@media (max-width: 640px) {
  .pdp-model { max-height: 440px; }
  .pdp-pieces { margin: 14px 0 0; gap: 14px; }
  .pdp-piece { border-width: 3px; box-shadow: 0 8px 16px rgba(13,13,13,0.14); }
}

/* --------------------------------- Focus visibility --------------------------------- */

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
