/* ==========================================================================
   Roshious Footwear — Concept 03 "Editorial Luxury"
   Paper ground, navy ink, gold hairlines; orange/teal as tiny accents only.
   ========================================================================== */

:root {
  --paper: #F6F3EA;
  --paper-2: #F0ECDF;
  --cream: #E8E4D2;
  --cream-deep: #DCD6BF;
  --ink: #1E2B36;
  --ink-deep: #17212C;
  --muted: #55606A;
  --gold: #B8955A;
  --gold-ink: #7E6030;     /* gold for small text on paper (>= 4.5:1) */
  --gold-lg: #8A6A35;      /* gold for large display text */
  --orange: #F26A21;
  --orange-ink: #A3400D;
  --teal: #1FABAC;
  --teal-ink: #12726F;
  --hair: rgba(30, 43, 54, 0.16);
  --hair-gold: rgba(184, 149, 90, 0.55);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
em { font-style: italic; }

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

.ed-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ed-label {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.ed-h2 {
  font: 500 clamp(34px, 4.6vw, 60px)/1.02 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ed-h2 em { color: var(--gold-lg); font-weight: 400; }

/* ---------- Buttons & links ---------- */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.ed-btn:hover { background: transparent; color: var(--ink); }
.ed-btn--light { background: transparent; border-color: var(--cream); color: var(--cream); }
.ed-btn--light:hover,
.ed-btn--light[aria-pressed="true"] { background: var(--cream); color: var(--ink-deep); }

.ed-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.ed-link-arrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.ed-link-arrow:hover::after,
.ed-link-arrow:focus-visible::after { width: 48px; }
.ed-link-arrow--light { color: var(--cream); }

.ed-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.2s;
}
.ed-icon-btn:hover { background: rgba(30, 43, 54, 0.06); }
.ed-icon-btn--ring { border: 1px solid var(--hair); }
.ed-icon-btn--ring:disabled { opacity: 0.35; cursor: default; }

.ed-count {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font: 500 10px/16px var(--sans);
  text-align: center;
}
.ed-count.is-bump { animation: ed-bump 0.4s var(--ease); }
@keyframes ed-bump { 50% { transform: scale(1.35); } }

/* ---------- Promo bar ---------- */
.ed-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 36px;
  padding: 6px var(--gutter);
  background: var(--ink-deep);
  color: var(--cream);
  font: 400 12px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-align: center;
}
.ed-promo__msg { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; }
.ed-promo__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.ed-promo__link { color: var(--cream); text-underline-offset: 3px; white-space: nowrap; display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- Header ---------- */
.ed-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 234, 0.96);
  backdrop-filter: blur(6px);
}
.ed-header__top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--gutter);
}
.ed-header__logo {
  display: inline-flex;
  border-radius: 50%;
  transition: transform 0.4s var(--ease);
}
.ed-header__logo:hover { transform: rotate(-4deg); }
.ed-header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }

/* Search — elegant inline field */
.ed-search { position: relative; justify-self: start; width: min(300px, 100%); }
.ed-search__icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ed-search input {
  width: 100%;
  height: 44px;
  padding: 0 0 0 26px;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  font: italic 400 19px/1 var(--serif);
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s;
}
.ed-search input::placeholder { color: var(--muted); }
.ed-search input:focus { outline: none; border-bottom-color: var(--gold); }
.ed-search input:focus-visible { box-shadow: 0 2px 0 0 var(--teal-ink); }
.ed-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.ed-search__suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 320px);
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--hair);
  box-shadow: 0 24px 48px -24px rgba(23, 33, 44, 0.35);
  z-index: 5;
}
.ed-search__suggest li > * {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 8px 16px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.ed-search__suggest .s-name { font: 500 18px/1.2 var(--serif); }
.ed-search__suggest .s-meta { font: 400 11px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ed-search__suggest [aria-selected="true"],
.ed-search__suggest li > *:hover { background: var(--paper-2); }
.ed-search__suggest .s-empty { display: block; padding: 12px 16px; color: var(--muted); font-size: 14px; }

/* Primary nav */
.ed-nav { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.ed-nav__list {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.ed-nav__list > li > a,
.ed-nav__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.ed-nav__list > li > a::after,
.ed-nav__trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.ed-nav__list > li > a:hover::after,
.ed-nav__trigger:hover::after,
.ed-nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.ed-nav__trigger svg { transition: transform 0.3s var(--ease); }
.ed-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.ed-nav__sale { color: var(--orange-ink); }

/* Mega menu */
.ed-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 40px 60px -40px rgba(23, 33, 44, 0.35);
}
.ed-mega:not([hidden]) { animation: ed-fade 0.25s var(--ease); }
@keyframes ed-fade { from { opacity: 0; transform: translateY(-6px); } }
.ed-mega__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 48px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 40px var(--gutter) 48px;
}
.ed-mega__col ul { margin-top: 16px; display: grid; gap: 2px; }
.ed-mega__col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font: 500 22px/1.2 var(--serif);
  text-decoration: none;
  transition: color 0.2s, padding 0.3s var(--ease);
}
.ed-mega__col a:hover { color: var(--gold-ink); padding-left: 6px; }
.ed-mega__feature { display: grid; gap: 10px; text-decoration: none; }
.ed-mega__plinth { display: block; aspect-ratio: 16 / 9; background: var(--cream); padding: 10px; }
.ed-mega__plinth img { width: 100%; height: 100%; object-fit: cover; }
.ed-mega__title { font: 500 30px/1.1 var(--serif); }
.ed-mega__title em { color: var(--gold-lg); }

.ed-only-mobile { display: none; }

/* ---------- Drawer ---------- */
.ed-drawer { position: fixed; inset: 0; z-index: 400; }
.ed-drawer[hidden] { display: none; }
.ed-drawer__scrim { position: absolute; inset: 0; background: rgba(23, 33, 44, 0.45); animation: ed-fadein 0.3s var(--ease); }
@keyframes ed-fadein { from { opacity: 0; } }
.ed-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(88%, 380px);
  overflow-y: auto;
  padding: 16px 24px 96px;
  background: var(--paper);
  animation: ed-slide 0.35s var(--ease);
}
@keyframes ed-slide { from { transform: translateX(-100%); } }
.ed-drawer__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.ed-drawer__nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--hair);
  font: 500 28px/1 var(--serif);
  text-decoration: none;
}
.ed-drawer__sub { margin: 28px 0 8px; }
.ed-drawer__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-drawer__cats a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  font-size: 14px;
  text-decoration: none;
}
.ed-drawer__util { margin-top: 28px; display: grid; }
.ed-drawer__util a { display: flex; align-items: center; min-height: 44px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--muted); }

/* ---------- Hero ---------- */
.ed-hero { padding: clamp(40px, 6vw, 88px) 0 32px; overflow-x: clip; }
.ed-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.ed-hero__text { grid-column: 1 / 7; position: relative; z-index: 2; }
.ed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.ed-meta__rule { width: 40px; height: 1px; background: var(--gold); }
.ed-meta span:last-child { color: var(--muted); }
.ed-hero__title {
  margin-top: 28px;
  font: 500 clamp(52px, 7.6vw, 118px)/0.92 var(--serif);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.ed-hero__title em {
  display: block;
  font-weight: 400;
  color: var(--gold-lg);
  padding-left: 0.6em;
}
.ed-hero__lede {
  max-width: 46ch;
  margin-top: 32px;
  font-size: 17px;
  color: var(--muted);
}
.ed-dropcap::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font: 500 4.4em/0.78 var(--serif);
  color: var(--ink);
}
.ed-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 36px; }

.ed-hero__figure { grid-column: 7 / 13; position: relative; }
.ed-print {
  position: relative;
  padding: clamp(14px, 2vw, 26px);
  background: var(--cream);
}
.ed-print__photo { position: relative; aspect-ratio: 9 / 11; overflow: hidden; background: var(--cream-deep); }
.ed-print__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  transform: scale(1.02);
  transition: transform 1.6s var(--ease);
}
.ed-hero__figure:hover .ed-print__photo img { transform: scale(1.06); }
.ed-print__frame {
  position: absolute;
  inset: clamp(6px, 0.9vw, 12px);
  border: 1px solid var(--hair-gold);
  pointer-events: none;
}
.ed-print__num {
  position: absolute;
  z-index: 2;
  top: clamp(-30px, -2.4vw, -18px);
  left: clamp(-40px, -3vw, -14px);
  font: italic 400 clamp(64px, 8vw, 128px)/1 var(--serif);
  color: var(--gold-lg);
}
.ed-captions { margin-top: 16px; }
.ed-captions ol { display: grid; gap: 4px; }
.ed-captions li { display: flex; gap: 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--hair); padding: 6px 0; }
.ed-captions__n { width: 24px; font: italic 500 16px/1.2 var(--serif); color: var(--gold-ink); }

.ed-hero__colophon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.ed-section { padding: clamp(64px, 9vw, 128px) 0; }
.ed-section--tint { background: var(--paper-2); }
.ed-section--flush { padding-top: 0; }
.ed-section--navy { background: var(--ink-deep); color: var(--cream); }

.ed-sechead {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 8px clamp(20px, 3vw, 40px);
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair);
}
.ed-sechead .ed-label { margin-bottom: 10px; }
.ed-sechead--split { grid-template-columns: auto 1fr auto; }
.ed-sechead__num {
  font: italic 400 clamp(44px, 5.5vw, 76px)/0.9 var(--serif);
  color: var(--gold);
  min-width: 1.4em;
  padding-right: clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--hair-gold);
}
.ed-sechead--light { border-color: rgba(232, 228, 210, 0.2); }
.ed-sechead--light .ed-h2 { color: var(--cream); }
.ed-sechead--light .ed-h2 em { color: var(--gold); }
.ed-sechead--light .ed-label { color: #B9B6A8; }

/* Category index */
.ed-wearers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.ed-wearer { position: relative; display: grid; gap: 16px; text-decoration: none; }
.ed-wearer__photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream); }
.ed-wearer__photo::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(246, 243, 234, 0.6); pointer-events: none; }
.ed-wearer__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ed-wearer:hover .ed-wearer__photo img,
.ed-wearer:focus-visible .ed-wearer__photo img { transform: scale(1.05); }
.ed-wearer__label { display: flex; justify-content: space-between; align-items: end; gap: 12px; border-top: 1px solid var(--ink); padding-top: 12px; }
.ed-wearer__name { font: 500 clamp(30px, 3.6vw, 52px)/1 var(--serif); }
.ed-wearer__note { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: right; }
.ed-wearer__idx {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 24px;
  padding: 6px 10px;
  background: var(--paper);
  font: italic 500 18px/1 var(--serif);
  color: var(--ink);
}

.ed-catindex {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(40px, 5vw, 72px);
  counter-reset: cat 3;
}
.ed-catindex a {
  display: grid;
  grid-template-columns: 40px 64px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  transition: padding 0.35s var(--ease), color 0.2s;
}
.ed-catindex a:hover { padding-left: 10px; color: var(--gold-ink); }
.ed-catindex__thumb { width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: var(--cream); filter: grayscale(0.35); transition: filter 0.4s; }
.ed-catindex__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-catindex a:hover .ed-catindex__thumb { filter: none; }
.ed-catindex__n { font: italic 400 18px/1 var(--serif); color: var(--gold-ink); }
.ed-catindex__name { font: 500 clamp(24px, 2.6vw, 34px)/1.1 var(--serif); }
.ed-catindex__note { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Stories (collections) */
.ed-stories { display: grid; gap: clamp(64px, 9vw, 120px); }
.ed-story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.ed-story__media { grid-column: 1 / 8; position: relative; aspect-ratio: 4 / 3; background: var(--cream); padding: clamp(10px, 1.4vw, 18px); }
.ed-story__media::before { content: ""; position: absolute; inset: clamp(4px, 0.6vw, 8px); border: 1px solid var(--hair-gold); pointer-events: none; z-index: 1; }
.ed-story__media > span { display: block; width: 100%; height: 100%; overflow: hidden; }
.ed-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ed-story:hover .ed-story__media img { transform: scale(1.04); }
.ed-story__text { grid-column: 9 / 13; }
.ed-story--rev .ed-story__media { grid-column: 6 / 13; grid-row: 1; }
.ed-story--rev .ed-story__text { grid-column: 1 / 5; grid-row: 1; }
.ed-story:nth-child(2) .ed-story__media { background: #E1DAC4; }
.ed-story:nth-child(3) .ed-story__media { background: var(--ink); }
.ed-story__no { font: italic 400 20px/1 var(--serif); color: var(--gold-ink); }
.ed-story__title { margin-top: 12px; font: 500 clamp(36px, 4vw, 56px)/1 var(--serif); }
.ed-story__copy { margin-top: 16px; color: var(--muted); }
.ed-story__quote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 1px solid var(--gold);
  font: italic 400 clamp(22px, 2.2vw, 28px)/1.3 var(--serif);
  color: var(--ink);
}

/* ---------- Product cards ---------- */
.ed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(12px, 2vw, 28px);
}
.ed-card { position: relative; min-width: 0; }
.ed-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 10px;
  background: var(--cream);
}
.ed-card:nth-child(4n + 2) .ed-card__media { background: #E3DCC8; }
.ed-card:nth-child(4n + 3) .ed-card__media { background: #ECE7D8; }
.ed-card:nth-child(4n + 4) .ed-card__media { background: #DFD9C3; }
.ed-card__photo { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--paper-2); }
.ed-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.ed-card:hover .ed-card__photo img,
.ed-card:focus-within .ed-card__photo img { transform: scale(1.06); }
.ed-card__namelink { text-decoration: none; }
.ed-card__namelink::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ed-card__namelink:hover { color: var(--gold-ink); }
.ed-card__namelink:focus-visible { outline: none; }
.ed-card__namelink:focus-visible::after { outline: 2px solid var(--teal-ink); outline-offset: 4px; }
.ed-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 6px 8px 5px;
  background: var(--paper);
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
}
.ed-card__badge--sale { color: var(--orange-ink); border-color: var(--orange); }
.ed-card__badge--new { color: var(--teal-ink); border-color: var(--teal); }
.ed-card__wish {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(246, 243, 234, 0.92);
}
.ed-card__wish:hover { background: var(--paper); }
.ed-card__wish[aria-pressed="true"] svg path { fill: var(--ink); }
.ed-card__add {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  min-height: 44px;
  border: 1px solid var(--ink);
  background: rgba(246, 243, 234, 0.94);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s, color 0.2s;
}
.ed-card__add:hover { background: var(--ink); color: var(--paper); }
.ed-card:hover .ed-card__add,
.ed-card:focus-within .ed-card__add { opacity: 1; transform: none; }
@media (hover: none) {
  .ed-card__add { opacity: 1; transform: none; }
}
.ed-card__body { padding-top: 16px; display: grid; gap: 4px; }
.ed-card__cat { font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ed-card__name { font: 500 clamp(19px, 1.7vw, 23px)/1.15 var(--serif); }
.ed-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; letter-spacing: 0.04em; }
.ed-card__price s { color: var(--muted); font-size: 13px; }
.ed-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ed-swatches { display: flex; gap: 6px; }
.ed-swatch { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--hair); }
.ed-rating { display: inline-flex; align-items: center; gap: 4px; }
.ed-rating svg { color: var(--gold); }
.ed-card__sizes { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }

/* Rail */
.ed-rail-clip { overflow-x: clip; }
.ed-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 300px);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.ed-rail > * { scroll-snap-align: start; }
.ed-rail-ctrl { display: flex; gap: 8px; }

/* Promo tiles */
.ed-promos { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(12px, 2vw, 28px); }
.ed-promo-tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
  min-height: 340px;
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
}
.ed-promo-tile--navy { background: var(--ink); color: var(--cream); }
.ed-promo-tile--navy .ed-label { color: #C9C4B2; }
.ed-promo-tile--navy .ed-promo-tile__title em { color: var(--gold); }
.ed-promo-tile--cream { background: var(--cream); }
.ed-promo-tile__text { display: grid; gap: 14px; justify-items: start; position: relative; z-index: 1; }
.ed-promo-tile__title { font: 500 clamp(32px, 3.4vw, 48px)/1 var(--serif); }
.ed-promo-tile__title em { color: var(--gold-lg); font-weight: 400; }
.ed-promo-tile__text p:not(.ed-label) { font-size: 15px; max-width: 30ch; opacity: 0.9; }
.ed-promo-tile__media { align-self: stretch; position: relative; min-height: 260px; margin: calc(-1 * clamp(28px, 4vw, 56px)); margin-left: 0; overflow: hidden; }
.ed-promo-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ed-promo-tile:hover .ed-promo-tile__media img { transform: scale(1.05); }
.ed-promo-tile--navy .ed-promo-tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(30, 43, 54, 0) 35%); }
.ed-promo-tile--cream .ed-promo-tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0%, rgba(232, 228, 210, 0) 35%); }

/* 360 viewer */
.ed-viewer { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.ed-viewer__text > p { max-width: 46ch; color: #C9C4B2; }
.ed-viewer__text > p + p { margin-top: 16px; }
.ed-viewer__note { padding-left: 16px; border-left: 1px solid var(--gold); font-size: 14px; }
.ed-viewer__text .ed-btn { margin-top: 32px; }
.ed-turntable { display: grid; gap: 16px; }
.ed-turntable__stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 7;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  perspective: 1200px;
}
.ed-turntable__stage:active { cursor: grabbing; }
.ed-turntable__stage:focus-visible { outline-color: var(--gold); outline-offset: 4px; }
.ed-turntable__frame { position: absolute; inset: 0; border: 1px solid rgba(184, 149, 90, 0.45); }
.ed-turntable__card {
  position: relative;
  z-index: 2;
  width: 82%;
  aspect-ratio: 9 / 7;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.ed-turntable__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity 0.25s; }
.ed-turntable__card img.is-swapping { opacity: 0.35; }
.ed-turntable__ring {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 4%;
  height: 14%;
  border: 1px solid rgba(184, 149, 90, 0.6);
  border-radius: 50%;
}
.ed-turntable figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 228, 210, 0.2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B9B6A8;
}
.ed-turntable__deg { font: italic 400 22px/1 var(--serif); color: var(--gold); letter-spacing: 0; }

/* Reviews & trust */
.ed-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.ed-review { display: grid; gap: 16px; align-content: start; }
.ed-review__mark { font: italic 400 72px/0.6 var(--serif); color: var(--gold); height: 32px; }
.ed-review__text { font: italic 400 clamp(21px, 2vw, 26px)/1.35 var(--serif); }
.ed-review__by { font: 500 11px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ed-review__stars { display: flex; gap: 3px; color: var(--gold); }
.ed-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.ed-trust li { padding: 28px clamp(12px, 2vw, 28px); display: grid; gap: 8px; align-content: start; }
.ed-trust li + li { border-left: 1px solid var(--hair); }
.ed-trust svg { color: var(--gold-ink); }
.ed-trust strong { font: 500 22px/1.15 var(--serif); }
.ed-trust span { font-size: 13px; color: var(--muted); }
.ed-note { margin-top: 20px; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* Newsletter */
.ed-news { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.ed-news .ed-label { margin-bottom: 12px; }
.ed-news__copy { margin-top: 16px; color: var(--muted); max-width: 42ch; }
.ed-news__form label { display: block; }
.ed-news__row { display: flex; gap: 16px; align-items: stretch; }
.ed-news__row input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font: italic 400 22px/1 var(--serif);
}
.ed-news__row input:focus { outline: none; border-bottom-color: var(--gold); }
.ed-news__row input:focus-visible { box-shadow: 0 2px 0 0 var(--teal-ink); }
.ed-news__row input[aria-invalid="true"] { border-bottom-color: var(--orange-ink); }
.ed-news__msg { min-height: 24px; margin-top: 12px; font-size: 14px; }
.ed-news__msg.is-error { color: var(--orange-ink); }
.ed-news__msg.is-ok { color: var(--teal-ink); }

/* ---------- Footer ---------- */
.ed-footer { background: var(--ink-deep); color: #C9C4B2; padding: clamp(56px, 7vw, 96px) 0 96px; }
.ed-footer .ed-label { color: var(--gold); }
.ed-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.ed-footer__logo { display: inline-flex; border-radius: 50%; }
.ed-footer__brand p { margin-top: 20px; max-width: 36ch; font-size: 14px; }
.ed-footer__store .ed-label { display: block; margin-bottom: 6px; }
.ed-footer__col ul { display: grid; margin-top: 12px; }
.ed-footer__col a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; text-decoration: none; color: var(--cream); transition: color 0.2s; }
.ed-footer__col a:hover { color: var(--gold); }
.ed-footer__social-h { margin-top: 28px; }
.ed-footer__social { display: flex !important; gap: 4px; }
.ed-footer__social a { width: 44px; height: 44px; justify-content: center; border: 1px solid rgba(232, 228, 210, 0.2); border-radius: 50%; }
.ed-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 228, 210, 0.15);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.ed-footer :focus-visible { outline-color: var(--gold); }
.ed-footer__credit { flex-basis: 100%; color: #9AA3AA; font-size: 11px; }

/* ---------- Floating help & toast ---------- */
.ed-help {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--gold);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(23, 33, 44, 0.5);
  transition: transform 0.3s var(--ease);
}
.ed-help svg { color: var(--teal); }
.ed-help:hover { transform: translateY(-2px); }

.ed-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 76px;
  z-index: 950;
  max-width: 440px;
  margin-inline: auto;
  padding: 14px 18px;
  background: var(--ink-deep);
  color: var(--cream);
  border-left: 2px solid var(--gold);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.ed-toast.is-on { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .ed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .ed-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .ed-only-mobile { display: inline-flex; }
  .ed-only-desktop { display: none; }
  .ed-nav { display: none; }
  .ed-header { border-bottom: 1px solid var(--hair); }
  .ed-header__top { grid-template-columns: 1fr auto 1fr; padding-block: 8px; }
  .ed-header__logo .rf-logo { --rf-logo-size: 52px !important; }
  .ed-search {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    padding: 8px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
    display: none;
  }
  .ed-search.is-open { display: block; }
  .ed-search__icon { left: var(--gutter); top: 30px; transform: none; }
  .ed-search__suggest { left: var(--gutter); right: var(--gutter); width: auto; max-width: none; }

  .ed-hero__text { grid-column: 1 / -1; }
  .ed-hero__figure { grid-column: 2 / 12; margin-top: 24px; }
  .ed-print__photo { aspect-ratio: 4 / 3.6; }

  .ed-story,
  .ed-story--rev { grid-template-columns: 1fr; }
  .ed-story__media,
  .ed-story__text,
  .ed-story--rev .ed-story__media,
  .ed-story--rev .ed-story__text { grid-column: 1 / -1; grid-row: auto; }
  .ed-story__text { max-width: 560px; }

  .ed-promos { grid-template-columns: 1fr; }
  .ed-viewer { grid-template-columns: 1fr; }
  .ed-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-trust li:nth-child(3) { border-left: 0; }
  .ed-trust li:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .ed-news { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .ed-promo { font-size: 11px; gap: 12px; }
  .ed-promo__link { display: none; }
  .ed-hero__figure { grid-column: 1 / -1; }
  .ed-hero__colophon span:nth-child(2) { display: none; }
  .ed-wearers { grid-template-columns: 1fr; gap: 32px; }
  .ed-wearer__photo { aspect-ratio: 4 / 3; }
  .ed-catindex { grid-template-columns: 1fr; }
  .ed-catindex__note { display: none; }
  .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-card__wish { top: 0; right: 0; }
  .ed-card__badge { top: 10px; left: 10px; }
  .ed-card__add { left: 8px; right: 8px; bottom: 8px; letter-spacing: 0.14em; }
  .ed-sechead--split { grid-template-columns: auto 1fr; }
  .ed-sechead--split > :last-child { grid-column: 1 / -1; justify-self: start; }
  .ed-promo-tile { grid-template-columns: 1fr; min-height: 0; }
  .ed-promo-tile__media { margin: 8px calc(-1 * clamp(28px, 4vw, 56px)) calc(-1 * clamp(28px, 4vw, 56px)); min-height: 220px; }
  .ed-promo-tile--navy .ed-promo-tile__media::after { background: linear-gradient(180deg, var(--ink) 0%, rgba(30, 43, 54, 0) 30%); }
  .ed-promo-tile--cream .ed-promo-tile__media::after { background: linear-gradient(180deg, var(--cream) 0%, rgba(232, 228, 210, 0) 30%); }
  .ed-catindex a { grid-template-columns: 32px 52px 1fr; }
  .ed-catindex__thumb { width: 52px; height: 52px; }
  .ed-print__num { left: -6px; top: -26px; }
  .ed-reviews { grid-template-columns: 1fr; }
  .ed-trust { grid-template-columns: 1fr; }
  .ed-trust li + li { border-left: 0; border-top: 1px solid var(--hair); }
  .ed-footer__top { grid-template-columns: 1fr 1fr; }
  .ed-news__row { flex-direction: column; }
  .ed-turntable figcaption { flex-direction: column; gap: 8px; }
}

@media (max-width: 400px) {
  .ed-grid { column-gap: 10px; }
  .ed-card__name { font-size: 18px; }
  .ed-card__meta { flex-direction: column; align-items: flex-start; }
  .ed-footer__top { grid-template-columns: 1fr; }
  .ed-hero__title em { padding-left: 0.3em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ed-card:hover .ed-card__photo img,
  .ed-card:focus-within .ed-card__photo img,
  .ed-wearer:hover .ed-wearer__photo img,
  .ed-story:hover .ed-story__media img,
  .ed-promo-tile:hover .ed-promo-tile__media img,
  .ed-hero__figure:hover .ed-print__photo img { transform: none; }
}
