/* Editorial-minimal design: white & warm ivory, serif display type, one red for sale only.
   Follows the conventions of the stores we aggregate: portrait photos, top-left discount badge,
   heart top-right, red new price + grey struck old price, 4 columns desktop / 2 mobile. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ivory: #faf7f2;
  --ink: #1d1b19;
  --muted: #8a847c;
  --line: #ebe6de;
  --photo: #f4f1ec;
  --sale: #b0231b;
  --sale-ink: #ffffff;
  --focus: #1d1b19;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1440px;
  --gutter: 24px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.no-js .js-only { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- type ---------- */
h1, h2, .logo, .section__title { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; margin: 0 0 14px; }
.lead { font-size: 16px; line-height: 1.6; max-width: 62ch; margin: 0 0 16px; color: #4a4540; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: #fff; cursor: pointer;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.icon-btn svg { fill: none; stroke: var(--ink); stroke-width: 1.5; }

/* ---------- promo strip + header ---------- */
.promo {
  margin: 0; padding: 8px var(--gutter); background: var(--ink); color: #fff; text-align: center;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.header__row > :first-child { justify-self: start; }
.header__row > :last-child { justify-self: end; }
.logo { font-size: 30px; line-height: 1; white-space: nowrap; }
.logo span { color: var(--sale); }
.fav-link__count {
  position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--sale); color: #fff; font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}
.search-bar { border-top: 1px solid var(--line); padding: 12px 0; background: #fff; }
.search-bar input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0; font-size: 18px; background: none; outline: none; }
.catnav { border-top: 1px solid var(--line); }
.catnav__row { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; height: 44px; align-items: center; justify-content: center; }
.catnav__row::-webkit-scrollbar { display: none; }
.catnav a { flex: none; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid transparent; }
.catnav a:hover, .catnav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- hero (home) + page heads ---------- */
.hero { text-align: center; padding: 56px 0 36px; }
.hero .lead { margin: 0 auto 26px; }
.hero__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.hero__cats a { font-family: var(--serif); font-size: 22px; border-bottom: 1px solid transparent; }
.hero__cats a:hover { border-bottom-color: var(--ink); }
.hero__cats small, .pill small { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-left: 4px; }
.page-head { padding: 22px 0 18px; max-width: 900px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 18px 0 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.1; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a:hover { color: var(--ink); }

.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; display: inline-flex; align-items: baseline; padding: 9px 16px; border: 1px solid var(--line);
  font-size: 13px; transition: border-color .2s;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill[aria-current="page"] small { color: #cfc9c0; }

.notice { background: var(--ivory); padding: 12px 16px; font-size: 13px; color: #5c564f; }

/* ---------- listing toolbar ---------- */
.listing { padding-top: 20px; }
.toolbar {
  position: sticky; top: calc(var(--header-h) + 45px); z-index: 10; background: #fff;
  display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.toolbar .btn { min-height: 40px; padding: 0 18px; }
.toolbar__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--sale); color: #fff; font-size: 11px; letter-spacing: 0; }
.toolbar__search { flex: 1; min-width: 0; max-width: 420px; height: 40px; border: 0; border-bottom: 1px solid var(--line); padding: 0 2px; background: none; outline: none; font-size: 14px; }
.toolbar__search:focus { border-bottom-color: var(--ink); }
.toolbar__count { margin: 0 0 0 auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.toolbar__sort select { border: 0; background: none; color: var(--ink); font-size: 13px; padding: 8px 2px; cursor: pointer; }

.applied { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 0; }
.applied button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--ivory); border: 1px solid var(--line);
  font-size: 12px; cursor: pointer;
}
.applied button::after { content: "×"; font-size: 15px; line-height: 1; color: var(--muted); }
.applied .applied__clear { background: none; border: 0; text-decoration: underline; color: var(--muted); }
.applied .applied__clear::after { content: none; }

/* ---------- product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 12px; padding: 24px 0 8px; }
.card { position: relative; }
.card__link { display: block; }
.card__media { position: relative; aspect-ratio: 3 / 4; background: var(--photo); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 8px; background: var(--sale); color: var(--sale-ink);
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.card__body { padding: 12px 2px 0; }
.card__brand { margin: 0 0 4px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__title {
  margin: 0 0 6px; font-size: 14px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price__new { color: var(--sale); font-weight: 600; font-size: 15px; }
.price__old { color: var(--muted); font-size: 13px; }
.card__sizes { margin: 6px 0 0; font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.fav {
  position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .85); border: 0; border-radius: 50%; cursor: pointer; transition: transform .15s;
}
.fav svg { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.fav:hover { transform: scale(1.08); }
.fav[aria-pressed="true"] svg { fill: var(--sale); stroke: var(--sale); }
.no-js .fav { display: none; }

.empty { text-align: center; padding: 56px 0; color: var(--muted); }
.more { display: flex; justify-content: center; padding: 28px 0 8px; }

.pager ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 0; margin: 32px 0 0; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; font-size: 13px; }
.pager a:hover { text-decoration: underline; }
.pager span[aria-current] { border-bottom: 1px solid var(--ink); }
.pager__gap { display: grid; place-items: center; color: var(--muted); }

/* ---------- filter drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(29, 27, 25, .35); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(420px, 100vw);
  background: #fff; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .08);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 26px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer__foot { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }
.drawer__foot .btn { flex: 1; }
.fgroup { border-bottom: 1px solid var(--line); padding: 18px 0; }
.fgroup h3 { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.fgroup__note { margin: -4px 0 12px; font-size: 12px; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-width: 46px; height: 40px; padding: 0 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px;
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt small { color: var(--muted); margin-left: 4px; font-size: 11px; }
.opt[aria-pressed="true"] small { color: #cfc9c0; }
.checks { display: grid; gap: 2px; }
.checks label { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14px; }
.checks input { width: 18px; height: 18px; accent-color: var(--ink); }
.checks small { color: var(--muted); margin-left: auto; }
.range { display: flex; align-items: center; gap: 10px; }
.range input { width: 100%; height: 42px; border: 1px solid var(--line); padding: 0 12px; }
.range input:focus { border-color: var(--ink); outline: none; }

/* ---------- favourites page ---------- */
.fav-empty { text-align: center; padding: 40px 0 64px; }
.fav-empty p { margin: 0 0 8px; }
.fav-empty p:first-child { font-family: var(--serif); font-size: 28px; }
.fav-empty .btn { margin-top: 18px; }

/* ---------- sections, FAQ, prose ---------- */
.section { padding: 64px 0 0; }
.section__title { font-size: 34px; margin: 0 0 18px; }
.section .pills { flex-wrap: wrap; }
.faq { max-width: 820px; padding: 64px 0 0; }
.faq h2 { font-size: 34px; margin: 0 0 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: #5c564f; line-height: 1.65; }
.prose { max-width: 760px; padding: 24px 0 0; }
.prose h1 { margin-top: 16px; }
.prose h2 { font-size: 28px; margin: 36px 0 8px; }
.prose p, .prose li { line-height: 1.7; color: #4a4540; }
.prose ul { padding-left: 20px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.hero h1 + .muted, .hero .muted { color: var(--muted); }

/* ---------- footer ---------- */
.foot { margin-top: 96px; background: var(--ivory); padding: 56px 0 32px; font-size: 13px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot__brand .logo { font-size: 28px; }
.foot__brand p { color: var(--muted); margin: 12px 0 0; max-width: 30ch; }
.foot h2 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { text-decoration: underline; }
.foot__note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.foot__note p { max-width: 90ch; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 56px; }
  body { font-size: 14px; }
  .logo { font-size: 26px; }
  .catnav__row { justify-content: flex-start; gap: 22px; }
  .hero { padding: 36px 0 24px; }
  .hero__cats a { font-size: 19px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; padding-top: 16px; }
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .toolbar__search { order: 3; flex-basis: 100%; max-width: none; }
  .toolbar__sort span { display: none; }
  .card__title { font-size: 13px; }
  .price__new { font-size: 14px; }
  .badge { top: 8px; left: 8px; font-size: 10px; padding: 3px 6px; }
  .fav { width: 36px; height: 36px; top: 4px; right: 4px; }
  .stats dd { font-size: 20px; }
  .section, .faq { padding-top: 48px; }
  .section__title, .faq h2 { font-size: 28px; }
  .foot__grid { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
