/* ============================================================
   SEVEN DEGREES — EDITORIAL LUXURY DESIGN SYSTEM
   ------------------------------------------------------------
   One coherent system. Ivory ground, ink typography, graphite
   support, restrained champagne accent. Playfair Display for
   editorial headlines, Inter for interface. Sharp corners,
   generous space, hairline rules.

   NOTE FOR MAINTAINERS:
   - Class names in this file are a CONTRACT with the page
     JavaScript (main.js, shop.js, product.js, cart.js,
     checkout.js, pay.js, track.js, confirmation.js). Never
     rename them — restyle only.
   - The CSS custom properties below (—bg, —text, —border,
     --space-*, etc.) are referenced by inline <style> blocks
     on the product / cart / checkout / pay / confirmation /
     track / returns / contact pages. Keep every one of them
     defined.
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Grounds */
  --bg-ivory: #f7f4ed;              /* site ground — warm bone */
  --bg: #ffffff;                    /* raised surfaces (forms, info boxes) */
  --bg-warm: #efe9dd;               /* alternating editorial sections */
  --bg-alt: #f1ece1;                /* summary boxes */
  --bg-black: #12110e;              /* ink panels (campaign, footer) */
  --surface: #ffffff;

  /* Ink */
  --text: #17150f;                  /* primary ink */
  --text-muted: #6f6a5c;            /* graphite support */
  --text-light: rgba(247, 244, 237, 0.72);

  /* Hairlines */
  --border: #e5dfd1;
  --border-dark: rgba(247, 244, 237, 0.18);

  /* Accent — restrained champagne bronze */
  --accent: #b8954f;
  --accent-deep: #9a7a3a;
  --sale: #9c3d2e;                   /* oxblood, used sparingly */
  --hover: #b8954f;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Space scale — referenced by inline page styles */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;
  --space-4xl: 96px;

  /* Structure */
  --container: 1440px;
  --radius: 0;
  --transition: all 0.25s ease;

  /* Shadows — used only where elevation genuinely helps (drawers, menus) */
  --shadow-panel: 0 24px 60px rgba(18, 17, 14, 0.12);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sd-search-open {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  overflow-wrap: break-word;
}

/* Base scale is deliberately restrained (admin.html shares this
   stylesheet and must stay proportionate). Display sizes are set
   per storefront context below. */
h1 { font-size: 34px; letter-spacing: -0.01em; }
h2 { font-size: 28px; letter-spacing: -0.005em; }
h3 { font-size: 19px; }
h4 { font-size: 15px; }

.lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
}

.text-muted {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--space-sm);
}

/* ------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   ------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-head {
  margin-bottom: var(--space-2xl);
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: var(--space-xs);
}

.section-head-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gold-divider {
  width: 44px;
  height: 1px;
  background: var(--accent);
  margin-top: var(--space-md);
}

/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 15px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--text);
  color: var(--bg-ivory);
}

.btn-primary {
  background: var(--text);
  color: var(--bg-ivory);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #2b2921;
  border-color: #2b2921;
  color: var(--bg-ivory);
}

/* Outline on dark/photographic ground (hero, campaign) */
.btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--text);
}

.btn-outline-premium {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn-outline-premium:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ------------------------------------------------------------
   6. ANNOUNCEMENT BAR + HEADER + NAVIGATION
   ------------------------------------------------------------ */
.announcement-bar {
  background: var(--bg-black);
  color: var(--bg-ivory);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  padding: 11px 16px;
}

.header {
  position: relative;
  background: var(--bg-ivory);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 78px;
}

/* Logo — wordmark left */
.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  height: 30px;
  width: auto;
}

.logo-text,
#logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

/* Nav — centered */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 34px);
}

/* Nav — centered.
   NOTE: .nav-item is deliberately NOT position:relative — the mega-menu
   anchors to .header instead so it centers on the page and can never
   overflow the left/right viewport edge at narrow desktop widths. */
.nav-item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 30px 0;
  cursor: pointer;
  transition: color var(--transition);
}

.nav > a.nav-item {
  padding: 30px 0;
}

.nav-item:hover {
  color: var(--accent-deep);
}

/* Mega menu — editorial ivory panel */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  display: grid;
  grid-auto-flow: column;
  gap: clamp(32px, 4vw, 64px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--text);
  padding: clamp(32px, 3.4vw, 48px);
  box-shadow: var(--shadow-panel);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 120;
  max-width: min(960px, calc(100vw - 48px));
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.menu-col {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.menu-col h4 {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.menu-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.menu-col ul a {
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color var(--transition), padding-left var(--transition);
}

.menu-col ul a:hover {
  color: var(--accent-deep);
  padding-left: 4px;
}

.sub-menu {
  margin-top: 8px;
  padding-left: 14px;
  gap: 7px;
}

.sub-menu a {
  font-size: 12px;
  color: var(--text-muted);
}

.menu-cta {
  margin-top: auto;
  padding-top: var(--space-md);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  width: fit-content;
  transition: var(--transition);
}

.menu-cta:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* Feature card inside the mega menu — editorial imagery */
.menu-feature-card {
  position: relative;
  width: 240px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.menu-feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.menu-feature-card:hover img {
  transform: scale(1.05);
}

/* Wide variant used in the footwear mega menu */
.menu-feature-wide {
  width: 100%;
  min-width: 380px;
  aspect-ratio: 16 / 9;
}

.menu-feature-content {
  position: relative;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(18, 17, 14, 0.82), transparent);
  width: 100%;
}

.menu-feature-content h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}

.menu-feature-content p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.menu-feature-content .menu-cta {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  margin-top: 0;
  padding-top: 2px;
}

.menu-feature-content .menu-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Header actions — search + cart right */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  transition: color var(--transition);
}

.icon-btn:hover {
  color: var(--accent-deep);
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--bg-ivory);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   7. MOBILE DRAWER
   ------------------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  justify-self: start;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 380px);
  background: var(--bg-ivory);
  border-right: 1px solid var(--border);
  z-index: 300;
  padding: var(--space-xl) clamp(20px, 5vw, 32px);
  transform: translateX(-102%);
  transition: transform 0.32s ease;
  overflow-y: auto;
  box-shadow: var(--shadow-panel);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer .mobile-menu-toggle {
  display: flex;
  justify-self: unset;
  margin-bottom: var(--space-lg);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
}

.drawer-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color var(--transition), padding-left var(--transition);
}

.drawer-nav a:hover {
  color: var(--accent-deep);
  padding-left: 6px;
}

.drawer-nav hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-md) 0;
}

/* ------------------------------------------------------------
   8. GLOBAL SEARCH OVERLAY (created by main.js)
   ------------------------------------------------------------ */
.sd-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 14, 0.58);
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(56px, 14vh, 140px) 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.sd-search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sd-search-panel {
  position: relative;
  width: min(680px, 100%);
  background: var(--bg-ivory);
  border: 1px solid var(--border);
  border-top: 2px solid var(--text);
  padding: clamp(32px, 5vw, 56px);
  transform: translateY(12px);
  transition: transform 0.3s ease;
}

.sd-search-overlay.open .sd-search-panel {
  transform: translateY(0);
}

.sd-search-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.sd-search-close:hover {
  color: var(--text);
}

.sd-search-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--space-lg);
}

.sd-search-form {
  display: flex;
  gap: var(--space-md);
  align-items: stretch;
}

.sd-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-bottom: 1px solid var(--text);
  background: transparent;
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  padding: 8px 2px 12px;
  color: var(--text);
}

.sd-search-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.sd-search-input::placeholder {
  color: #b3ac9b;
  font-style: italic;
}

.sd-search-submit {
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg-ivory);
  padding: 0 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: var(--transition);
}

.sd-search-submit:hover {
  background: #2b2921;
}

.sd-search-hint {
  margin-top: var(--space-md);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   9. HERO — cinematic editorial opening
   ------------------------------------------------------------ */
.hero-premium {
  position: relative;
  min-height: clamp(480px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.02);
  animation: heroSettle 1.6s ease-out both;
}

@keyframes heroSettle {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 17, 14, 0.78) 0%,
    rgba(18, 17, 14, 0.32) 45%,
    rgba(18, 17, 14, 0.12) 100%
  );
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(48px, 7vw, 88px);
  color: #fff;
  animation: heroRise 0.9s ease-out 0.15s both;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content .eyebrow {
  color: #d8c194;
}

.hero-content h1 {
  font-size: clamp(42px, 7.5vw, 76px);
  color: #fff;
  max-width: 14ch;
  margin-bottom: var(--space-md);
}

.hero-content p {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: var(--space-xl);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.campaign-dots {
  display: flex;
  gap: 10px;
  margin-top: var(--space-2xl);
}

.campaign-dots span {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: var(--transition);
}

.campaign-dots span.active {
  background: var(--accent);
}

/* ------------------------------------------------------------
   10. CATEGORY STORY — asymmetric editorial grid
   ------------------------------------------------------------ */
.category-section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.category-grid-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}

.category-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e9e2d2;
  /* Editorial tiles stay a bounded fraction of the viewport, never screen-dominant */
  min-height: clamp(140px, 20vh, 240px);
}

/* Composition: menswear is the primary destination */
.category-tile:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 100%;
}
/* These two tiles size the grid rows the Menswear tile spans, so they cap its height too */
.category-tile:nth-child(2) { grid-column: span 5; min-height: clamp(170px, 25vh, 320px); }
.category-tile:nth-child(3) { grid-column: span 5; min-height: clamp(170px, 25vh, 320px); }
.category-tile:nth-child(4) { grid-column: span 4; }
.category-tile:nth-child(5) { grid-column: span 4; }
.category-tile:nth-child(6) { grid-column: span 4; }
.category-tile:nth-child(7) { grid-column: span 12; min-height: clamp(160px, 22vh, 300px); }

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.category-tile:hover img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(to top, rgba(18, 17, 14, 0.62), rgba(18, 17, 14, 0) 55%);
}

.category-overlay h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.category-tile:nth-child(1) .category-overlay h3 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.06em;
}

.explore {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(6px);
  opacity: 0.9;
  transition: var(--transition);
}

.category-tile:hover .explore {
  transform: translateY(0);
  color: #d8c194;
}

/* ------------------------------------------------------------
   11. PRODUCT GRID & CARDS — image-forward, 4:5
   ------------------------------------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(40px, 5vw, 64px) clamp(16px, 2vw, 28px);
}

.product-card {
  display: block;
  color: inherit;
}

.product-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #eae4d6;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.product-card:hover .product-image {
  transform: scale(1.045);
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

.product-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: rgba(23, 21, 15, 0.88);
  color: var(--bg-ivory);
}

.product-badge.sale {
  background: var(--sale);
}

.product-badge.premium {
  background: var(--accent);
  color: #17150f;
}

.quick-add {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 13px;
  background: rgba(23, 21, 15, 0.92);
  color: var(--bg-ivory);
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.product-card:hover .quick-add,
.product-card:focus-visible .quick-add {
  transform: translateY(0);
}

.product-details {
  padding-top: 14px;
}

.product-details .name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
}

.price-row .price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.original-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-details .meta {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   12. HOMEPAGE EDITORIAL SECTIONS
   ------------------------------------------------------------ */

/* Ink campaign band */
.editorial-campaign {
  background: var(--bg-black);
  padding: clamp(64px, 8vw, 112px) 0;
}

.editorial-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.editorial-image {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}

.editorial-text {
  color: var(--bg-ivory);
  padding: clamp(8px, 2vw, 32px) 0;
}

.editorial-text .eyebrow {
  color: #d8c194;
}

.editorial-text h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  color: #fff;
  margin-bottom: var(--space-md);
}

.editorial-text p {
  color: var(--text-light);
  max-width: 42ch;
  margin-bottom: var(--space-xl);
  line-height: 1.85;
}

/* Watches & accessories editorial tiles */
.wa-section {
  background: var(--bg-warm);
}

.wa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.wa-tile {
  display: block;
  overflow: hidden;
  min-height: 420px;
  background: #e9e2d2;
}

.wa-tile img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.wa-tile:hover img {
  transform: scale(1.04);
}

/* Values container */
.values-container {
  text-align: center;
}

.values-container .value-grid {
  text-align: left;
}

/* Closing brand moment */
.closing-band {
  background: var(--bg-black);
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}

.closing-inner h2 {
  font-size: clamp(32px, 5vw, 52px);
  color: #fff;
  margin-bottom: var(--space-md);
}

.closing-inner p {
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  font-size: 15px;
  line-height: 1.8;
}

/* Premium band */
.premium-editorial {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.premium-cta {
  margin-top: var(--space-2xl);
  text-align: center;
}

.premium-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.premium-header h2 {
  font-size: clamp(30px, 4.2vw, 42px);
}

.premium-header p {
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* Alternating feature splits */
.feature-split {
  padding: clamp(56px, 8vw, 104px) 0;
}

.feature-split + .feature-split {
  padding-top: 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature-split.reverse .split-grid {
  grid-template-columns: 1fr 1fr;
}

.feature-split.reverse .split-image {
  order: 2;
}

.feature-split.reverse .split-content {
  order: 1;
}

.split-image {
  overflow: hidden;
  background: #e9e2d2;
}

.split-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.split-image:hover img {
  transform: scale(1.03);
}

.split-content {
  padding: clamp(8px, 2vw, 32px) 0;
}

.split-content h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: var(--space-md);
}

.split-content p {
  color: var(--text-muted);
  max-width: 44ch;
  line-height: 1.85;
  margin-bottom: var(--space-xl);
}

/* Values / promise */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  text-align: left;
}

.value-item {
  border-top: 1px solid var(--text);
  padding-top: var(--space-lg);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent-deep);
  margin-bottom: var(--space-md);
}

.value-icon svg {
  width: 26px;
  height: 26px;
}

.value-item h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.value-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--bg-black);
  color: var(--bg-ivory);
  padding: clamp(56px, 7vw, 88px) 0 var(--space-2xl);
  margin-top: 0;
}

.footer .container {
  max-width: var(--container);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-dark);
}

.footer-col .logo-text,
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d8c194;
  margin-bottom: var(--space-md);
}

.footer-col p {
  font-size: 13px;
  color: var(--text-light);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 13px;
  color: var(--text-light);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-col ul a:hover {
  color: #d8c194;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

/* Floating support button (where present) */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--text);
  color: var(--bg-ivory);
  box-shadow: var(--shadow-panel);
  transition: var(--transition);
}

.wa-float:hover {
  background: var(--accent-deep);
}

/* Image fallback treatment (added by main.js on load error) */
.img-fallback {
  background: #e9e2d2;
  object-fit: contain;
  padding: 12%;
}

/* ------------------------------------------------------------
   14. SHOP — catalog, filters, toolbar
   ------------------------------------------------------------ */
.shop-header {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0 var(--space-xl);
}

.shop-header .breadcrumb {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.shop-header .breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.shop-header .breadcrumb a:hover {
  color: var(--text);
}

.shop-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.shop-header-text h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 6px;
}

.shop-header-text #cat-desc {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 60ch;
}

.shop-header-text #cat-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--space-sm);
}

.shop-controls {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.shop-controls .count {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--text);
  color: var(--text);
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.control-btn:hover {
  background: var(--text);
  color: var(--bg-ivory);
}

/* NOTE: .filters must never set `display` — shop.js toggles the
   `hidden` attribute on #filter-sidebar, which relies on the UA
   default [hidden] { display: none } not being overridden. */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(40px, 5vw, 64px) 0;
  align-items: start;
}

/* When the filter sidebar is hidden (shop.js `hidden` toggle),
   drop the reserved column so the product grid spans full width. */
.shop-layout:has(> #filter-sidebar[hidden]) {
  grid-template-columns: 1fr;
}

.filters {
  position: sticky;
  top: var(--space-lg);
}

.filter-group {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group h4 {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 7px 0;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition);
}

.filter-option:hover {
  color: var(--text);
}

.filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  width: 11px;
  height: 11px;
  border: 1px solid var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.filter-option:has(input:checked) {
  color: var(--text);
  font-weight: 500;
}

.filter-option:has(input:checked) .custom-check {
  background: var(--text);
  border-color: var(--text);
}

.filter-option input:focus-visible + .custom-check {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filter-option .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

/* Size chips */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.chip:hover {
  border-color: var(--text);
  color: var(--text);
}

.chip.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg-ivory);
}

/* Color swatches */
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(23, 21, 15, 0.25);
  cursor: pointer;
  transition: var(--transition);
}

.color-swatch:hover {
  transform: scale(1.12);
}

.color-swatch.active {
  box-shadow: 0 0 0 1px var(--bg-ivory), 0 0 0 3px var(--text);
}

/* Price inputs */
.price-inputs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.price-inputs input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
}

.price-inputs input:focus {
  outline: none;
  border-color: var(--text);
}

.price-inputs span {
  color: var(--text-muted);
  font-size: 12px;
}

.clear-filters {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1px solid var(--text-muted);
  transition: var(--transition);
}

.clear-filters:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.toolbar .results-count {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.sort-select {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 26px 8px 2px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2317150f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.sort-select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

/* Empty / no-results state */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
}

/* Breadcrumb (product page + shop) */
.breadcrumb,
.product-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-lg) 0;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb span {
  color: var(--text);
}

/* ------------------------------------------------------------
   15. PRODUCT PAGE
   ------------------------------------------------------------ */
.product-page {
  padding: 0 0 var(--space-3xl);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-bottom: var(--space-2xl);
}

/* Gallery — editorial vertical stack, 4:5 */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #eae4d6;
}

/* Sticky info panel */
.product-detail {
  position: sticky;
  top: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.detail-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--space-sm);
}

.detail-name {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: var(--space-md);
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.detail-price .original {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-price .save {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sale);
}

.desc-block {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-xl);
  max-width: 56ch;
}

/* Variant options */
.option-group {
  margin-bottom: var(--space-lg);
}

.option-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.option-group .selected {
  font-weight: 500;
  color: var(--text);
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.color-btn:hover {
  border-color: var(--text);
}

.color-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg-ivory);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  min-width: 48px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.size-btn:hover {
  border-color: var(--text);
}

.size-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg-ivory);
}

.size-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Size guide link */
.size-guide-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: var(--space-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.size-guide-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Purchase row — quantity + add to cart */
.product-purchase-row {
  display: flex;
  gap: var(--space-md);
  align-items: stretch;
  margin-top: var(--space-md);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--text);
}

.qty-btn {
  width: 44px;
  height: 48px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: rgba(23, 21, 15, 0.06);
}

.qty-value {
  min-width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.add-to-cart {
  flex: 1;
}

/* Meta info + assurance strips */
.product-meta-info {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.product-assurance {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Accordion */
.product-accordion {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.product-accordion details {
  border-bottom: 1px solid var(--border);
}

.product-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.product-accordion summary::-webkit-details-marker {
  display: none;
}

.product-accordion summary::after {
  content: '+';
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.product-accordion details[open] summary::after {
  content: '−';
}

.product-accordion details p {
  padding: 0 2px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Size guide modal (created by product.js) */
.size-guide-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 14, 0.58);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.size-guide-modal.open {
  opacity: 1;
  visibility: visible;
}

.size-guide-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-ivory);
  border: 1px solid var(--border);
  border-top: 2px solid var(--text);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-panel);
}

.size-guide-card h3 {
  margin-bottom: var(--space-md);
}

.size-guide-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.size-guide-close:hover {
  color: var(--text);
}

.size-guide-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
}

/* ------------------------------------------------------------
   16. CART
   ------------------------------------------------------------ */
.cart-page {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.cart-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--space-sm);
}

.cart-header {
  font-size: clamp(30px, 4.4vw, 44px);
  margin-bottom: var(--space-sm);
}

.cart-intro {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: var(--space-2xl);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.cart-items {
  border-top: 1px solid var(--border);
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.cart-item-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #eae4d6;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.cart-item-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
}

.remove-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.remove-btn:hover {
  color: var(--sale);
  border-color: var(--sale);
}

.cart-item-price {
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

/* Summary panel */
.cart-summary {
  position: sticky;
  top: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-xl);
}

.cart-summary h3 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--text-muted);
  padding: 7px 0;
}

.summary-row strong {
  color: var(--text);
  font-weight: 500;
}

.summary-row.total {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
}

.cart-summary .btn-block {
  margin-top: var(--space-lg);
}

.summary-note {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.cart-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.cart-empty .text-muted {
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

/* Shared summary rows also used by checkout's inline block */
.summary-row .btn-block + .summary-note {
  margin-top: 0;
}

/* ------------------------------------------------------------
   17. CHECKOUT / PAY / CONFIRMATION / TRACK — shared fallbacks
   (most of these pages carry their own inline <style>; these
   rules only apply where the page does not define them)
   ------------------------------------------------------------ */
.checkout-page h1,
.pay-page h1,
.confirm-page h1,
.track-page h1,
.policy-page h1,
.contact-page h1 {
  font-size: clamp(30px, 4.4vw, 44px);
}

.subtitle {
  color: var(--text-muted);
  max-width: 60ch;
}

.steps {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.step {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.step.done {
  color: var(--text);
}

.step.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ------------------------------------------------------------
   18. RESPONSIVE LADDER — 320 → 1440+
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  /* Navigation collapses to drawer */
  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-actions {
    justify-self: end;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .wa-grid {
    grid-template-columns: 1fr;
  }

  .menu-feature-wide {
    min-width: 280px;
  }

  /* Filters become a togglable panel via the `hidden` attribute */
  .filters {
    position: static;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-detail {
    position: static;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-tile:nth-child(1) { grid-column: span 12; min-height: clamp(200px, 40vh, 340px); }
  .category-tile:nth-child(2) { grid-column: span 6; min-height: clamp(160px, 26vh, 280px); }
  .category-tile:nth-child(3) { grid-column: span 6; min-height: clamp(160px, 26vh, 280px); }
  .category-tile:nth-child(4) { grid-column: span 4; }
  .category-tile:nth-child(5) { grid-column: span 4; }
  .category-tile:nth-child(6) { grid-column: span 4; }
  .category-tile:nth-child(7) { grid-column: span 12; min-height: clamp(160px, 26vh, 280px); }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .section {
    padding: clamp(48px, 10vw, 72px) 0;
  }

  .header-inner {
    height: 64px;
  }

  .hero-premium {
    min-height: 74vh;
  }

  .hero-content {
    padding-bottom: var(--space-2xl);
  }

  .hero-btns .btn {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl) var(--space-md);
  }

  .quick-add {
    display: none;
  }

  .editorial-container {
    grid-template-columns: 1fr;
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .feature-split.reverse .split-image {
    order: 0;
  }

  .feature-split.reverse .split-content {
    order: 0;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .category-tile:nth-child(1),
  .category-tile:nth-child(2),
  .category-tile:nth-child(3),
  .category-tile:nth-child(4),
  .category-tile:nth-child(5),
  .category-tile:nth-child(6),
  .category-tile:nth-child(7) {
    grid-column: span 12;
    min-height: clamp(170px, 32vh, 280px);
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .cart-item-price {
    grid-column: 2;
    text-align: left;
  }

  .product-purchase-row {
    flex-wrap: wrap;
  }

  .add-to-cart {
    flex: 1 1 100%;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .sd-search-form {
    flex-direction: column;
  }

  .sd-search-submit {
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: var(--space-md);
  }

  .btn {
    padding: 13px 22px;
    letter-spacing: 0.12em;
  }
}

/* ------------------------------------------------------------
   19. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-bg {
    transform: none;
    animation: none;
  }
}