/* ════════════════════════════════════════════════════════
   WWJD — REFINED DESIGN SYSTEM
   Loaded AFTER main.css + site.css; overrides everything.
   Goal: feels like a serious fashion brand, not a clip-art demo.
   ════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..900,0..100&family=Inter:wght@300..800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Type */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Color — warmer, more editorial */
  --paper: #f4f0e8;
  --paper-deep: #ebe6d9;
  --paper-warm: #ede8db;
  --ink: #131210;
  --ink-soft: #2a2723;
  --muted: #767063;
  --line: #d8d2c2;
  --accent: #b88a3a;        /* warm bronze */
  --accent-deep: #8c6722;
  --signal: #c84b2e;        /* a real red, for emphasis */

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Always reserve scrollbar width so short pages (e.g. /account-settings)
     don't render with a wider viewport than long ones (e.g. /shop).
     Without this the topbar's 1fr auto 1fr grid shifts the right cluster
     ~15px outward on pages that fit without scrolling. */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ─── Texture / grain overlay (subtle film) ─────────── */
/* Grain texture removed — was sitting at z-index 999 on top of text
   with mix-blend-mode: multiply, causing fuzzy/muddy type rendering. */

/* ════════════════════════════════════════════════════════
   TYPE
   ════════════════════════════════════════════════════════ */
.eyebrow, .hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;          /* let Fraunces pick opsz from font-size */
  font-weight: 350;
  font-style: normal;                  /* upright by default — italic is an accent */
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--ink);
}
h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

/* Display sizes that mean it */
.display-xxl {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}
.display-xl {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.italic { font-style: italic !important; font-weight: 300 !important; }
.upright { font-style: normal !important; font-weight: 400 !important; }

/* Buttons */
.btn, button.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '→';
  font-family: var(--font-sans);
  transition: transform 0.3s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }
.btn-primary {
  background: var(--ink); color: var(--paper);
}
.btn-primary:hover { background: var(--ink-soft); }
.btn-ghost {
  border-color: var(--ink); background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.btn-light:hover { background: var(--paper-deep); }

/* ════════════════════════════════════════════════════════
   ANNOUNCE BAR
   ════════════════════════════════════════════════════════ */
.announce {
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em;
  padding: 10px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(244,240,232,0.1);
}
.announce-track {
  display: inline-flex; gap: 64px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.announce-track span::before {
  content: '◆'; color: var(--accent); margin-right: 16px;
}

/* ════════════════════════════════════════════════════════
   TOPBAR / NAV
   ════════════════════════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,240,232,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(216,210,194,0.5);
}
.topbar-inner {
  max-width: 100%; margin: 0;
  padding: 9px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
  /* As a grid item the anchor would stretch across the whole 1fr column,
     making empty header space clickable — keep it text-sized. */
  justify-self: start;
}
/* Brand lockup when the seal mark is present (header + mobile drawer);
   :has keeps the footer SWS brand — which has no mark — untouched. */
.brand:has(.brand-mark) { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { height: 30px; width: auto; flex-shrink: 0; display: block; }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
}
.nav {
  display: flex; justify-content: center; gap: 36px;
}
.nav-item {
  padding: 28px 0;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}
.nav-item > a { display: inline-block; padding: 4px 0; position: relative; }
.nav-item > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-item:hover > a::after { transform: scaleX(1); }

.nav-right {
  display: flex; align-items: center; gap: 6px;
  justify-content: flex-end;
}
.icon-btn {
  background: transparent; border: none;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
  border-radius: 50%;
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(19,18,16,0.05); }
.icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.cart-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 34px;
  padding: 0 18px;
  margin-left: 8px;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.25s;
  box-sizing: border-box;
  vertical-align: middle;
}
.cart-pill:hover { background: var(--ink); color: var(--paper); }
.cart-pill .dot { display: none; }

/* Mega menu — quieter */
.mega {
  position: fixed; left: 0; right: 0; top: 100%;
  background: rgba(244,240,232,0.96);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 64px 56px;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 40px;
}
.nav-item:hover .mega { opacity: 1; pointer-events: auto; transform: translateY(0); }
/* Keyboard path: tabbing into the panel's links keeps it open.
   Gated on :focus-visible so mouse-click focus (Chrome/Firefox focus links
   on click) can't pin the panel open after Cmd-click / Back-navigation. */
.nav-item:has(:focus-visible) .mega { opacity: 1; pointer-events: auto; transform: translateY(0); }
/* Invisible bridge over the ~9px gap between the topbar's bottom edge and
   the panel, so the pointer can travel straight down without dropping
   :hover. Outside the Shop link / bridge / panel, the panel closes at once. */
.mega::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -10px; height: 10px;
}
.mega h6 {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em; font-weight: 500;
  color: var(--muted); margin-bottom: 16px;
  text-transform: uppercase;
}
.mega a {
  display: block; padding: 6px 0;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  transition: color 0.2s, transform 0.2s;
}
.mega a:hover { color: var(--accent); transform: translateX(3px); }
.mega .mega-card {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
  background: var(--ink); color: var(--paper);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.mega .mega-card .tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--accent);
}
.mega .mega-card h4 {
  font-family: var(--font-display);
  font-weight: 300; font-style: italic;
  font-size: 36px; line-height: 0.95; letter-spacing: -0.02em;
  margin-top: 12px;
  color: var(--paper);
}
/* Next-drop product photo: soft background layer under the card text */
.mega .mega-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.25;
}
.mega .mega-card > div, .mega .mega-card > span { position: relative; }

/* ════════════════════════════════════════════════════════
   SHOE CARD / PRODUCT CARD
   ════════════════════════════════════════════════════════ */
.card {
  background: var(--paper);
  display: block;
  position: relative;
  color: inherit;
  transition: transform 0.5s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); }

.card .badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.22em;
  padding: 5px 9px;
  background: var(--ink); color: var(--paper);
  text-transform: uppercase;
  z-index: 3;
}
.card .wishlist {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(244,240,232,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.card .wishlist:hover { background: var(--paper); transform: scale(1.08); }
.card .wishlist svg { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 1.6; transition: stroke 0.18s, fill 0.18s; }

/* Saved-to-wishlist state — filled red heart */
.card .wishlist.active { background: var(--paper); }
.card .wishlist.active svg { stroke: #c4413c; fill: #c4413c; }
.btn-wishlist.active { color: #c4413c; border-color: #c4413c; }

/* ════════════════════════════════════════════════════════
   PDP CUSTOMIZER — Make-it-yours panel
   ════════════════════════════════════════════════════════ */
.customizer {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
}
.cust-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.cust-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
}
.cust-cost {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.cust-lead {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.cust-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.cust-toggle input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--ink);
  background: transparent;
  position: relative;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}
.cust-toggle input[type="checkbox"]:checked {
  background: var(--ink);
}
.cust-toggle input[type="checkbox"]:checked::after {
  content: '✓';
  color: var(--paper);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.cust-toggle-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.cust-toggle-text em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.cust-pill {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.22em;
  padding: 3px 8px;
  background: rgba(19,18,16,0.08);
  border-radius: 999px;
  color: var(--muted);
  text-transform: uppercase;
  align-self: center;
  white-space: nowrap;
}
.cust-toggle input[type="checkbox"]:not(:checked) ~ .cust-pill {
  background: #fdecea;
  color: #8a2f25;
}
.cust-toggle input[type="checkbox"]:not(:checked) ~ .cust-pill::before {
  content: 'REMOVED · ';
}
/* Heritage mark picker — pill grid */
.cust-marks {
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}
.cust-marks-head { margin-bottom: 14px; }
.cust-marks-head strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
}
.cust-marks-head em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.cust-marks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 480px) {
  .cust-marks-grid { grid-template-columns: repeat(4, 1fr); }
}
.cust-mark {
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 12px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}
.cust-mark:hover { border-color: var(--ink); }
.cust-mark.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.cust-mark-glyph {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}
.cust-mark-name {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cust-field {
  display: block;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cust-field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.cust-opt {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.cust-field input {
  display: block;
  width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--ink);
}
.cust-field input:focus { outline: none; }
.cust-field-hint {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.cust-summary {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px dashed var(--accent);
}
.cust-summary-head {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cust-summary ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
.cust-summary ul li {
  display: flex; align-items: baseline; gap: 8px;
}
.cust-summary .x { color: #c4413c; font-weight: 700; width: 14px; }
.cust-summary .ok { color: #2c5f3f; font-weight: 700; width: 14px; }
.cust-summary .add { color: var(--accent); font-weight: 700; width: 14px; }

/* Live "CUSTOM BUILD" badge floating on the gallery image */
.gallery-main.is-customized { position: relative; }
.cust-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 4;
  display: flex; gap: 10px; align-items: center;
  animation: cust-fade 0.3s ease;
}
.cust-badge .init {
  background: var(--accent);
  color: var(--ink);
  padding: 2px 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
@keyframes cust-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cart-drawer "CUSTOM" line on each cart line item */
.drawer-item-custom {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 6px;
}
.drawer-item-finalsale {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: #c2391c;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════
   CUSTOM-ORDER POLICY (PDP)
   ════════════════════════════════════════════════════════ */
.cust-policy {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid #d44a3a;
  border-left-width: 3px;
  transition: background 0.25s, box-shadow 0.25s;
}
.cust-policy-warn {
  background: #fdecea;
  box-shadow: 0 0 0 3px rgba(194,57,28,0.25);
}
.cust-policy-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.cust-policy-head strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.cust-policy-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  background: #c2391c;
  color: #fff;
  padding: 4px 9px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.cust-policy-line {
  display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer;
}
.cust-policy-line input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--ink);
  background: transparent;
  position: relative;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}
.cust-policy-line input[type="checkbox"]:checked {
  background: var(--ink);
}
.cust-policy-line input[type="checkbox"]:checked::after {
  content: '✓';
  color: var(--paper);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.cust-policy-line span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cust-policy-line strong {
  color: #c2391c;
  font-weight: 600;
}
.cust-policy-line a {
  color: var(--ink);
  text-decoration: underline;
  font-size: 11px;
  white-space: nowrap;
}
.drawer-item-preorder {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #c98a3a;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ════════════════════════════════════════════════════════
   PREORDER (PDP + HOMEPAGE RAIL)
   ════════════════════════════════════════════════════════ */
.preorder-callout {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 8px 0 20px;
  padding: 14px 16px;
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
}
.preorder-tag {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.22em;
  background: var(--ink); color: var(--paper);
  padding: 5px 10px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.preorder-line strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.preorder-line span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* Homepage "The next drop" rail */
.drop-rail {
  background: var(--ink); color: var(--paper);
  padding: clamp(72px, 8vw, 120px) clamp(24px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.drop-rail::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(184,138,58,0.18), transparent 70%);
  pointer-events: none;
}
.drop-rail-inner {
  position: relative; z-index: 2;
  max-width: 1480px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.drop-rail-text .hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.drop-rail-text h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 16px;
}
.drop-rail-text h2 .italic { font-style: italic; color: var(--accent); }
.drop-rail-text p {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em;
  color: rgba(244,240,232,0.6);
  text-transform: uppercase;
  margin: 0 0 24px;
}
.drop-rail-text .btn {
  background: var(--paper); color: var(--ink); border: 1px solid var(--paper);
}
.drop-rail-text .btn:hover { background: var(--accent); border-color: var(--accent); }

.drop-countdown {
  display: inline-flex; gap: 14px;
  margin-bottom: 28px;
}
.drop-countdown .cd-cell {
  background: rgba(244,240,232,0.05);
  border: 1px solid rgba(244,240,232,0.12);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: rgba(244,240,232,0.6);
  text-transform: uppercase;
}
.drop-countdown .cd-cell b {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-right: 4px;
}

.drop-rail-photo {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 32px;
  background: var(--paper);
  border: 1px solid rgba(244,240,232,0.15);
}
.drop-rail-photo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.4)); }

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

/* ════════════════════════════════════════════════════════
   FUNDRAISER MODAL
   ════════════════════════════════════════════════════════ */
.fund-modal {
  position: fixed; inset: 0;
  z-index: 250;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
}
.fund-modal.open { visibility: visible; opacity: 1; }
.fund-backdrop {
  position: absolute; inset: 0;
  background: rgba(19,18,16,0.55);
  backdrop-filter: blur(6px);
}
.fund-panel {
  position: relative;
  max-width: 520px;
  margin: clamp(40px, 6vh, 80px) auto;
  background: var(--paper);
  padding: 0;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease, cubic-bezier(0.4, 0, 0.2, 1));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.fund-modal.open .fund-panel { transform: translateY(0); }
.fund-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none;
  width: 36px; height: 36px;
  font-size: 24px; line-height: 1;
  cursor: pointer;
  color: var(--ink);
  border-radius: 50%;
  transition: background 0.15s;
  z-index: 2;
}
.fund-close:hover { background: rgba(19,18,16,0.06); }
.fund-body { padding: 48px 40px 36px; }
.fund-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
#fund-title, .fund-thanks {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 12px;
}
#fund-title .italic, .fund-thanks .italic {
  font-style: italic;
  color: var(--accent);
}
.fund-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.fund-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.fund-form input,
.fund-form select,
.fund-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  box-sizing: border-box;
}
.fund-form input:focus,
.fund-form select:focus,
.fund-form textarea:focus { outline: none; border-color: var(--ink); }
.fund-form textarea { resize: vertical; min-height: 72px; }
.fund-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fund-status {
  font-size: 13px;
  margin: 10px 0;
  min-height: 18px;
}
.fund-submit {
  display: block;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 15px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}
.fund-submit:hover { opacity: 0.88; }
.fund-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.fund-skip {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  margin-top: 4px;
}
.fund-skip:hover { color: var(--ink); }

@media (max-width: 600px) {
  .fund-panel { margin: 24px 16px; max-height: calc(100vh - 48px); }
  .fund-body { padding: 40px 24px 28px; }
  .fund-row { grid-template-columns: 1fr; }
}

.card .pic {
  aspect-ratio: 5 / 4;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card .pic .shoe-svg {
  width: 88%;
  transition: transform 0.7s var(--ease);
}
.card:hover .pic .shoe-svg { transform: translateY(-4px) rotate(-2deg) scale(1.04); }
.card .pic::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(0,0,0,0.18), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.card .info {
  padding: 22px 24px 26px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.card .info .coll {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.card .info h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 2px;
}
.card .info .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px;
  font-size: 13px; color: var(--muted);
}
.card .info .meta .price {
  font-family: var(--font-mono);
  color: var(--ink); font-weight: 500;
  font-size: 14px;
}
.card .info .colors {
  display: flex; gap: 5px; margin-top: 12px;
}
.card .info .colors span {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}

/* ════════════════════════════════════════════════════════
   FOOTER — premium, dark, comprehensive
   ════════════════════════════════════════════════════════ */
footer {
  background: var(--ink); color: var(--paper);
  padding: 96px 40px 32px;
  position: relative;
}
footer::before {
  content: ''; position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,138,58,0.4), transparent);
}
.footer-mast {
  max-width: 1480px; margin: 0 auto 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(244,240,232,0.1);
  text-align: center;
}
.footer-mast .question {
  font-family: var(--font-display);
  font-style: italic; font-weight: 300;
  font-size: clamp(40px, 7vw, 120px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--paper);
}
.footer-mast .question em {
  color: var(--accent); font-style: italic;
}
.footer-mast .sub {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.25em;
  color: rgba(244,240,232,0.5);
  text-transform: uppercase;
}

.footer-inner {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 64px;
}
.footer-brand .brand { color: var(--paper); font-size: 28px; }
.footer-brand .brand small { color: rgba(244,240,232,0.5); }
.footer-brand p {
  margin-top: 20px;
  color: rgba(244,240,232,0.6);
  font-size: 14px;
  max-width: 360px;
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 500;
}
.footer-col a {
  display: block; padding: 6px 0;
  color: rgba(244,240,232,0.78);
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: color 0.2s, transform 0.2s;
}
.footer-col a:hover { color: var(--paper); transform: translateX(3px); }

.footer-newsletter {
  margin: 32px 0 28px;
  display: flex;
  max-width: 380px;
  border: 1px solid rgba(244,240,232,0.2);
  transition: border-color 0.2s;
}
.footer-newsletter:focus-within { border-color: var(--accent); }
.footer-newsletter input {
  flex: 1; padding: 14px 16px;
  background: transparent;
  border: none; outline: none;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
}
.footer-newsletter input::placeholder { color: rgba(244,240,232,0.4); }
.footer-newsletter button {
  padding: 12px 22px;
  background: transparent; color: var(--paper);
  border: none; border-left: 1px solid rgba(244,240,232,0.2);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  cursor: pointer;
}
.footer-newsletter button:hover { background: var(--accent); color: var(--ink); }

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(244,240,232,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: rgba(244,240,232,0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.25s;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.footer-base {
  max-width: 1480px; margin: 64px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(244,240,232,0.1);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: rgba(244,240,232,0.45);
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════
   DRAWER / SEARCH / MOBILE — refined
   ════════════════════════════════════════════════════════ */
.drawer-panel {
  background: var(--paper);
  width: min(460px, 100%);
}

/* ════════════════════════════════════════════════════════
   ACCOUNT DRAWER (Nordstrom-style sign-in/profile flyout)
   ════════════════════════════════════════════════════════ */
.drawer-account .drawer-panel { width: min(420px, 100%); }
.drawer-account .drawer-head {
  padding: 24px 28px 20px;
}
.drawer-account .drawer-head h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.drawer-account .drawer-body { padding: 0; }

/* Sign-in CTA block at the top (unauthed) */
.acct-cta-block {
  background: var(--paper-warm);
  padding: 24px 28px 28px;
  border-bottom: 1px solid var(--line);
}
.acct-cta-hint {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
  text-align: center;
}
.acct-cta-btn {
  display: block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 16px 24px;
  text-decoration: none;
  transition: background 0.15s;
}
.acct-cta-btn:hover { background: #2a2418; }
.acct-cta-sep { opacity: 0.4; margin: 0 8px; }

/* Logged-in user header */
.acct-user-block {
  background: var(--paper-warm);
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
}
.acct-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.01em;
}
.acct-user-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.acct-user-email {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
}
.acct-badge {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.acct-badge.ok { background: #e8f3ee; color: #2c5f3f; }
.acct-badge.warn { background: #fdecea; color: #8a2f25; }

/* Section blocks */
.acct-section {
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
}
.acct-section:last-child { border-bottom: none; }
.acct-section h6 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 16px 28px 4px;
  margin: 0;
}
.acct-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s;
}
.acct-row:hover { background: var(--paper-warm); }
.acct-row-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px;
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Sign-out button */
.acct-signout {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 20px;
  margin: 20px 28px;
  width: calc(100% - 56px);
  cursor: pointer;
  transition: all 0.15s;
}
.acct-signout:hover { background: var(--ink); color: var(--paper); }

.acct-loading {
  padding: 60px 28px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.drawer-head {
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-family: var(--font-display);
  font-weight: 400; font-size: 26px;
  letter-spacing: -0.02em;
}
.drawer-body { padding: 0 32px; }
.drawer-item {
  grid-template-columns: 100px 1fr;
  padding: 20px 0;
}
.drawer-item-pic {
  aspect-ratio: 1; padding: 8px;
  background: var(--paper-warm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.drawer-item-pic img,
.drawer-item-pic svg {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.drawer-item-name {
  font-family: var(--font-display);
  font-weight: 400; font-size: 17px;
  letter-spacing: -0.01em;
}

/* In-drawer quantity stepper — small inline version */
.qty-mini {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.qty-mini-btn {
  background: transparent; border: none;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  transition: background 0.15s;
}
.qty-mini-btn:hover { background: var(--ink); color: var(--paper); }
.qty-mini-num {
  min-width: 28px; text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.drawer-foot {
  padding: 24px 32px 32px;
  background: var(--paper-warm);
}
.drawer-row {
  display: flex; justify-content: space-between;
  margin-bottom: 10px; font-size: 14px;
}

.search-overlay {
  background: rgba(19,18,16,0.95);
  backdrop-filter: blur(16px);
}
.search-inner { padding: 80px 32px; }
#search-input {
  font-family: var(--font-display);
  font-weight: 300; font-style: italic;
  border-bottom: 1px solid rgba(244,240,232,0.25);
  letter-spacing: -0.03em;
}
.chip {
  font-family: var(--font-mono);
  border-radius: 999px;
}
.search-row .rname {
  font-family: var(--font-display);
  font-weight: 400; font-size: 17px;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .topbar-inner { grid-template-columns: auto 1fr auto; padding: 16px 24px; }
  .nav { display: none; }
  footer { padding: 64px 24px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .topbar-inner { padding: 14px 20px; }
  /* Header wordmark is the full "Souls with Soles" — keep it on one line on
     mobile (smaller type) instead of letting it wrap. Footer lockup keeps SWS. */
  .topbar .brand { font-size: 17px; white-space: nowrap; }
  .topbar .brand-mark { height: 22px; }
  /* Cart: the "BAG (n)" text is hidden on mobile — render a bag icon
     (matching the search / account / menu icon buttons) so the button
     is never a blank pill. Count shows as a small badge when non-empty. */
  .cart-pill {
    width: 34px; height: 34px; min-width: 34px;
    padding: 0; gap: 0; margin-left: 4px;
    border: none; border-radius: 50%;
    justify-content: center; position: relative;
    color: var(--ink);
  }
  .cart-pill:hover { background: rgba(19,18,16,0.05); color: var(--ink); }
  .cart-pill .label { display: none; }
  .cart-pill::before {
    content: ''; width: 18px; height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-1 12H7z'/%3E%3Cpath d='M9 8V5.5a3 3 0 0 1 6 0V8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-1 12H7z'/%3E%3Cpath d='M9 8V5.5a3 3 0 0 1 6 0V8'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .cart-pill .dot.has-items {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: -2px; right: -2px;
    min-width: 15px; height: 15px; padding: 0 3px;
    background: var(--ink); color: var(--paper);
    border-radius: 999px; font-size: 9px; font-weight: 600; line-height: 1;
    box-sizing: border-box;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 8px; text-align: center; justify-content: center; }
}

/* ════════════════════════════════════════════════════════
   UTILITY ANIMATIONS
   ════════════════════════════════════════════════════════ */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.8s var(--ease-out) both;
}
.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.3s; }
.fade-up.delay-3 { animation-delay: 0.45s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}
.float { animation: float 6s var(--ease) infinite; }

@keyframes pan-bg {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}


/* Visible keyboard focus for a11y — site-wide, light variant on dark pages */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
body.soulless :focus-visible { outline-color: var(--accent); }
#search-input:focus-visible,
.cust-field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
