/* ====================================================================
   dekupe — Italian design outlet catalogue
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=Inter:wght@300;400;500;600;700&family=GT+Sectra&display=swap');
/* Using Fraunces as editorial serif + Inter as neutral sans. */

/* ---------- Tokens ---------- */
:root {
  --bg:       #ffffff;  /* pure white */
  --bg-card:  #ffffff;
  --bg-warm:  #efeadd;
  --bg-deep:  #1a1714;
  --ink:      #1a1714;
  --ink-2:    #5b554c;
  --ink-3:    #8c867b;
  --rule:     #d9d2c2;
  --hair:     #e8e2d2;

  --accent:   #4a2a3a;  /* aubergine default */
  --accent-2: #2a1822;
  --accent-soft: rgba(74, 42, 58, 0.08);

  --red:      #b8392a;
  --green:    #3a5a3a;

  --serif:    'Fraunces', 'GT Sectra', 'Playfair Display', Georgia, serif;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:     ui-monospace, 'SF Mono', Menlo, monospace;

  --gap:      24px;
  --pad:      40px;
  --maxw:     1440px;
}

body[data-accent="aubergine"] { --accent: #4a2a3a; --accent-2: #2a1822; --accent-soft: rgba(74, 42, 58, 0.08); }
body[data-accent="cognac"]    { --accent: #7a3e1d; --accent-2: #4c2710; --accent-soft: rgba(122, 62, 29, 0.08); }
body[data-accent="ink"]       { --accent: #1a1714; --accent-2: #000000; --accent-soft: rgba(26, 23, 20, 0.08); }
body[data-accent="sage"]      { --accent: #3d5545; --accent-2: #24352a; --accent-soft: rgba(61, 85, 69, 0.08); }

body[data-typography="editorial"] { --display-font: var(--serif); }
body[data-typography="modern"]    { --display-font: var(--sans); }
body[data-typography="quiet"]     { --display-font: var(--serif); }

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'ss02';
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.app { min-height: 100vh; }

.loading {
  min-height: 100vh; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2);
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 40; }

.site-header__announce {
  background: var(--accent); color: #f5ead8;
  text-align: center; font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 24px;
  font-weight: 500;
}

.site-header__main {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
}

.site-header__nav { display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.04em; }
.site-header__nav--left { justify-content: flex-start; }
.site-header__nav--right { justify-content: flex-end; align-items: center; gap: 20px; }
.site-header__nav a { color: var(--ink); transition: color 0.15s; }
.site-header__nav a:hover { color: var(--accent); }

.site-header__logo { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.logo-word {
  font-family: var(--serif); font-weight: 400;
  font-size: 5px; letter-spacing: -0.01em; color: var(--ink);
  line-height: 1;
}
.logo-tag {
  font-family: var(--sans); font-weight: 500;
  font-size: 7px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-2);
}

.site-header__search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-warm); border-radius: 999px;
  padding: 7px 14px; width: 220px; color: var(--ink-2);
}
.site-header__search input {
  flex: 1; border: 0; background: transparent; outline: 0;
  font-size: 12px; color: var(--ink);
}
.site-header__search input::placeholder { color: var(--ink-3); font-style: italic; }

.site-header__cart { display: flex; align-items: center; gap: 6px; }
.site-header__subscribe {
  border: 1px solid var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.site-header__subscribe:hover {
  background: var(--ink);
  color: var(--paper, #f5ead8);
  border-color: var(--ink);
}
.site-header__cart-badge {
  background: var(--accent); color: #f5ead8;
  border-radius: 999px; font-size: 10px; font-weight: 600;
  min-width: 18px; padding: 2px 6px; text-align: center;
}

.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 80px 32px 48px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.hero__meta {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-2); margin-bottom: 36px;
}
.hero__dot { color: var(--ink-3); }

.hero__title {
  font-family: var(--display-font, var(--serif));
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 auto 32px;
  max-width: 18ch;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero__title u {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  text-decoration-color: var(--accent);
}

.hero__sub {
  font-family: var(--sans); font-weight: 400;
  font-size: 17px; line-height: 1.55; color: var(--ink-2);
  max-width: 58ch; margin: 0 auto 48px;
}
.hero__sub em { font-family: var(--serif); font-style: italic; color: var(--ink); }

/* ----- Picker (indoor / outdoor / all) ----- */
.hero__picker {
  max-width: 1000px; margin: 0 auto 56px;
}
.hero__picker-label {
  display: block;
  font-family: var(--serif); font-style: italic;
  font-size: 14px; color: var(--ink-2);
  margin-bottom: 16px;
}
.hero__picker-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
.hero__picker-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
  padding: 28px 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.hero__picker-btn::after {
  content: '';
  position: absolute; inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  pointer-events: none;
}
.hero__picker-btn:hover {
  background: var(--bg-warm);
  transform: translateY(-2px);
}
.hero__picker-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
}
.hero__picker-btn.is-active .hero__picker-title { color: var(--bg); }
.hero__picker-btn.is-active .hero__picker-sub { color: #c9bfa8; }
.hero__picker-btn.is-active .hero__picker-count { color: #c9a860; }

.hero__picker-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; letter-spacing: -0.02em; color: var(--ink);
  line-height: 1; margin-bottom: 10px;
}
.hero__picker-sub {
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 20px; line-height: 1.4;
}
.hero__picker-count {
  margin-top: auto;
  font-family: var(--sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
  margin-bottom: 40px;
  text-align: left;
  max-width: 1000px; margin-left: auto; margin-right: auto;
  margin-bottom: 40px;
}
.hero__stat {
  padding: 24px 24px;
  border-right: 1px solid var(--rule);
}
.hero__stat:last-child { border-right: 0; }
.hero__stat span {
  display: block;
  font-family: var(--serif); font-weight: 300; font-size: 52px;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}
.hero__stat label {
  display: block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
}

.hero__controls {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.hero__controls-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2);
}
.hero__view-toggle {
  display: flex; gap: 0; border: 1px solid var(--ink); border-radius: 0;
}
.hero__view-toggle button {
  padding: 10px 22px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  border-right: 1px solid var(--ink); transition: all 0.15s;
}
.hero__view-toggle button:last-child { border-right: 0; }
.hero__view-toggle button.is-active {
  background: var(--ink); color: var(--bg);
}
.hero__view-toggle button:not(.is-active):hover { background: var(--accent-soft); }

/* ---------- Catalogue layout ---------- */
.catalogue-main { max-width: var(--maxw); margin: 0 auto; padding: 48px 32px; }
.catalogue-main__layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 48px;
  align-items: start;
}
.catalogue-main__breadcrumb {
  display: flex; align-items: baseline; gap: 4px;
  padding-bottom: 20px; border-bottom: 1px solid var(--rule);
  margin-bottom: 32px; font-size: 13px; color: var(--ink-2);
  font-family: var(--serif); font-style: italic;
}
.catalogue-main__breadcrumb strong {
  margin-left: auto; font-family: var(--sans); font-style: normal;
  font-weight: 500; color: var(--ink);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Filters ---------- */
.filters {
  position: sticky; top: 120px;
  max-height: calc(100vh - 140px); overflow-y: auto;
  padding-right: 16px;
  font-size: 13px;
}
.filters::-webkit-scrollbar { width: 4px; }
.filters::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }

.filters__group { margin-bottom: 32px; }
.filters__label {
  font-family: var(--sans); font-weight: 600;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--ink);
}

.filters__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 12px; font-size: 12px;
  font-family: var(--serif); font-style: italic;
  border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink-2); transition: all 0.15s;
}
.chip.is-active, .chip:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

.filters__list { display: flex; flex-direction: column; gap: 2px; }
.filters__item {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 6px 0; text-align: left;
  font-size: 13px; color: var(--ink-2); transition: color 0.15s;
}
.filters__item:hover { color: var(--ink); }
.filters__item.is-active { color: var(--ink); font-weight: 500; }
.filters__item.is-active::before {
  content: '— '; color: var(--accent); margin-left: -12px; padding-right: 4px;
}
.filters__count { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.filters__dot { color: var(--accent); font-size: 8px; }

.filters__slider { display: flex; align-items: center; gap: 12px; }
.filters__slider input[type="range"] {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 2px; background: var(--rule);
}
.filters__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; background: var(--accent);
  border-radius: 50%; cursor: pointer;
}
.filters__slider-val { text-align: right; }
.filters__slider-val strong {
  display: block; font-family: var(--serif); font-weight: 400; font-size: 18px;
  color: var(--accent);
}
.filters__slider-val span {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}

.filters__brands {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 280px; overflow-y: auto;
}
.filters__brand {
  display: flex; justify-content: space-between;
  padding: 5px 0; text-align: left;
  font-size: 13px; color: var(--ink-2);
}
.filters__brand em {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3); font-style: normal;
}
.filters__brand:hover { color: var(--ink); }
.filters__brand.is-active {
  color: var(--accent); font-weight: 500;
}

/* ---------- Grid view (card) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
.grid--compact { grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }

.card {
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-2px); }

.card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-warm);
  overflow: hidden;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.card__image img {
  width: 100%; height: 100%; object-fit: contain; padding: 12%;
  transition: transform 0.5s, opacity 0.3s;
}
.card:hover .card__image img { transform: scale(1.04); }

.card--framed .card__image { border: 1px solid var(--rule); background: #fff; }
.card--tagged .card__image { background: var(--bg); }

.card__photo-count {
  position: absolute; top: 6px; right: 6px;
  font-size: 9px; letter-spacing: 0.05em;
  background: rgba(0,0,0,0.7); color: #fff;
  padding: 2px 5px; border-radius: 2px;
  font-weight: 600;
}

.card__discount {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--serif); font-style: italic;
  font-size: 16px; font-weight: 400; line-height: 1;
  color: #fff;
  background: var(--accent);
  padding: 7px 10px 8px;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  z-index: 2;
}

.card__qty {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 11px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.card__qty--one {
  color: var(--accent);
  background: #fff;
  border-color: var(--accent);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0.01em;
  font-size: 13px;
}
.card__qty--two {
  color: var(--ink);
  border-color: var(--ink);
}
.card__qty--many {
  color: var(--ink-2);
  border-color: var(--ink-3);
}

.card__photo-flip {
  position: absolute; bottom: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: var(--bg-card);
  z-index: 2;
  transition: transform 0.2s ease;
  pointer-events: none;
}
.card__photo-flip img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.card:hover .card__photo-flip {
  transform: scale(1.08);
}

.card__save {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--ink-2);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 3;
}
.card__save:hover { color: var(--accent); background: #fff; transform: scale(1.08); }
.card__save.is-saved { color: var(--accent); background: #fff; }
.card__save svg { display: block; }

/* ---------- Filters reset + title ---------- */
.filters__top {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.filters__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 20px; letter-spacing: -0.01em;
  color: var(--ink); margin: 0;
}
.filters__reset {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: none;
  padding: 6px 10px;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 1px solid transparent;
}
.filters__reset:hover:not(:disabled) {
  border-bottom-color: var(--accent);
}
.filters__reset:disabled {
  color: var(--ink-3); cursor: not-allowed; opacity: 0.5;
}
.filters__reset-badge {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: 0;
  border-radius: 999px;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.12em;
}
.lang-toggle button {
  background: transparent; border: none; padding: 4px 2px;
  font-family: inherit; font-size: inherit; letter-spacing: inherit;
  color: var(--ink-3); cursor: pointer;
  transition: color 0.15s;
  border-bottom: 1px solid transparent;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.lang-toggle span { color: var(--ink-3); }

.card__body { display: flex; flex-direction: column; gap: 4px; }
.card__brand {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 500;
}
.card__name {
  font-family: var(--serif); font-weight: 400; font-size: 17px;
  letter-spacing: -0.01em; color: var(--ink);
  line-height: 1.2;
}
.card__prices {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 6px;
}
.card__price {
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  color: var(--accent);
}
.card__list {
  font-family: var(--sans); font-size: 13px; color: var(--ink-3);
  text-decoration: line-through;
}

/* ---------- Editorial view ---------- */
.ed-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 64px 32px;
}
.ed-card {
  cursor: pointer;
  display: flex; flex-direction: column;
  grid-column: span 2;
}
.ed-card--span-1 { grid-column: span 2; }
.ed-card--span-2 { grid-column: span 3; }

.ed-card__image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-warm);
  overflow: hidden;
  margin-bottom: 20px;
}
.ed-card--span-2 .ed-card__image { aspect-ratio: 16 / 10; }
.ed-card__image img {
  width: 100%; height: 100%; object-fit: contain; padding: 10%;
  transition: transform 0.7s, opacity 0.4s;
}
.ed-card__life {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.4s;
}
.ed-card__life img { padding: 0; object-fit: cover; }
.ed-card:hover .ed-card__life { opacity: 1; }

.ed-card__body { padding: 0 4px; }
.ed-card__line {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.ed-card__brand {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--ink-2);
}
.ed-card__qty {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.ed-card__name {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 8px;
}
.ed-card__meta {
  font-size: 12px; color: var(--ink-3); margin-bottom: 18px;
}
.ed-card__prices {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.ed-card__list {
  font-size: 13px; color: var(--ink-3); text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.ed-card__arrow { color: var(--accent); font-size: 12px; }
.ed-card__sale {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ed-card__pct {
  margin-left: auto;
  font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--red);
}

/* ---------- List view ---------- */
.list-view {
  width: 100%; border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.list-view thead tr {
  border-bottom: 1px solid var(--ink);
}
.list-view th {
  text-align: left; padding: 12px 16px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-2);
}
.list-row {
  cursor: pointer; border-bottom: 1px solid var(--hair);
  transition: background 0.15s;
}
.list-row:hover { background: var(--bg-warm); }
.list-row td { padding: 16px; vertical-align: middle; font-size: 13px; }
.list-row__img { width: 80px; }
.list-row__img img {
  width: 72px; height: 72px; object-fit: contain; background: var(--bg-warm);
  padding: 8px;
}
.list-row__brand {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); width: 140px;
}
.list-row__name > div:first-child {
  font-family: var(--serif); font-weight: 400; font-size: 16px;
  color: var(--ink); margin-bottom: 4px;
}
.list-row__cat { font-size: 11px; color: var(--ink-3); }
.list-row__qty {
  font-family: var(--mono); color: var(--ink-2); width: 60px;
}
.list-row__list {
  color: var(--ink-3); text-decoration: line-through; width: 100px;
}
.list-row__sale {
  font-family: var(--serif); font-weight: 500; color: var(--accent);
  font-size: 16px; width: 140px;
}
.list-row__pct {
  display: block; font-family: var(--serif); font-style: italic;
  font-weight: 400; color: var(--red); font-size: 11px;
}
.list-row__cta { width: 80px; }
.list-row__cta button {
  font-family: var(--serif); font-style: italic; color: var(--accent);
  font-size: 14px; transition: gap 0.15s;
}
.list-row:hover .list-row__cta button { padding-right: 4px; }

/* ---------- Empty state ---------- */
.empty {
  padding: 80px 40px; text-align: center;
  font-family: var(--serif);
}
.empty h3 {
  font-weight: 400; font-size: 32px; font-style: italic;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.empty p { color: var(--ink-2); margin-bottom: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--ink); transition: all 0.15s;
  font-family: var(--sans);
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--ghost.is-saved { color: var(--accent); border-color: var(--accent); }

/* ---------- Brand strip ---------- */
.brand-strip {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 28px 0; overflow: hidden; background: var(--bg);
}
.brand-strip__track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--ink-2);
}
.brand-strip__track span { flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep); color: #d9d2c2;
  padding: 80px 32px 40px;
}
.site-footer__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.6fr; gap: 40px;
  margin-bottom: 60px;
}
.site-footer__col h4 {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #f5ead8; font-weight: 500; margin-bottom: 20px;
}
.site-footer__col a {
  display: block; padding: 4px 0; color: #a59e8d; font-size: 14px;
  transition: color 0.15s;
}
.site-footer__col a:hover { color: #f5ead8; }
.site-footer__col p {
  color: #a59e8d; font-size: 14px; line-height: 1.7;
}
.site-footer__logo {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px;
  align-items: flex-start;
}
.site-footer__logo .logo-word { color: #f5ead8; font-size: 28px; }
.site-footer__logo .logo-tag { color: #a59e8d; }

.site-footer__col--newsletter { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col--newsletter .site-footer__logo { margin-bottom: 4px; }
.site-footer__col--newsletter .logo-img { max-width: 130px; }
.newsletter__body { font-size: 13px; line-height: 1.6; color: #a59e8d; margin-bottom: 4px; }
.newsletter__form {
  display: flex; align-items: stretch;
  border: 1px solid rgba(217, 210, 194, 0.25);
  background: rgba(255,255,255,0.04);
}
.newsletter__form input {
  flex: 1; min-width: 0; padding: 10px 12px;
  background: transparent; border: 0; color: #f5ead8;
  font-family: var(--sans); font-size: 13px; outline: none;
}
.newsletter__form input::placeholder { color: #7d7669; }
.newsletter__form button {
  padding: 0 16px; background: #f5ead8; color: var(--bg-deep);
  border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.newsletter__form button:hover:not(:disabled) { background: var(--accent); color: #fff; }
.newsletter__form button:disabled { opacity: 0.45; cursor: not-allowed; }
.newsletter__consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 11px; line-height: 1.55; color: #7d7669;
  cursor: pointer; margin-top: 4px;
}
.newsletter__consent input { margin-top: 2px; accent-color: #f5ead8; flex-shrink: 0; }
.site-footer__rule {
  max-width: var(--maxw); margin: 0 auto;
  border-top: 1px solid rgba(217, 210, 194, 0.15);
  margin-bottom: 24px;
}
.site-footer__base {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #7a7261;
}

/* ---------- Modal / QuickView ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(26, 23, 20, 0.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 100; padding: 40px;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.info-panel {
  position: fixed; inset: 0;
  background: rgba(26, 23, 20, 0.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 100; padding: 40px;
  animation: fadeIn 0.2s;
}
.info-panel__dialog {
  background: var(--bg); width: 100%; max-width: 560px;
  padding: 56px 56px 48px; position: relative;
  border: 1px solid var(--rule);
}
.info-panel__close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: 0; font-size: 28px; line-height: 1;
  cursor: pointer; color: var(--ink); padding: 4px 8px;
}
.info-panel__eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.info-panel__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; line-height: 1.15; margin: 0 0 20px;
}
.info-panel__body {
  font-size: 15px; line-height: 1.6; color: var(--ink);
  margin: 0;
}
@media (max-width: 720px) {
  .info-panel { padding: 16px; }
  .info-panel__dialog { padding: 40px 28px 32px; }
  .info-panel__title { font-size: 26px; }
}

.info-panel__dialog--wide { max-width: 760px; max-height: 85vh; overflow-y: auto; }
.saved-tray__list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 16px; }
.saved-tray__item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  padding: 14px; border: 1px solid var(--rule); background: #fafaf7;
}
.saved-tray__img { width: 96px; height: 96px; object-fit: contain; background: #fff; cursor: pointer; }
.saved-tray__meta { cursor: pointer; }
.saved-tray__brand { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.saved-tray__name { font-family: var(--serif); font-size: 19px; line-height: 1.2; margin-bottom: 6px; }
.saved-tray__price { font-size: 14px; color: var(--ink); }
.saved-tray__actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.saved-tray__header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.saved-tray__clear {
  background: none;
  border: none;
  color: var(--ink-2, #6b6b6b);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}
.saved-tray__clear:hover { color: var(--accent); }
.btn--sm { padding: 8px 14px; font-size: 12px; letter-spacing: 0.08em; white-space: nowrap; text-align: center; text-decoration: none; }
@media (max-width: 720px) {
  .saved-tray__item { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; }
  .saved-tray__img { width: 72px; height: 72px; }
  .saved-tray__actions { grid-column: 1 / -1; flex-direction: row; }
  .saved-tray__actions .btn--sm { flex: 1; }
}

.modal__dialog {
  background: var(--bg); width: 100%; max-width: 1100px;
  max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  position: relative;
  animation: slideUp 0.28s ease;
}
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal__close {
  position: absolute; top: 16px; right: 20px; z-index: 10;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
}
.modal__close:hover { color: var(--ink); }

.modal__gallery {
  background: var(--bg-warm);
  padding: 32px;
  display: flex; flex-direction: column;
  min-height: 600px;
}
.modal__main-img {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.modal__main-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.modal__thumbs {
  display: flex; gap: 8px; margin-top: 24px;
}
.modal__thumbs button {
  width: 60px; height: 60px; background: var(--bg);
  border: 1px solid transparent; transition: border 0.15s;
  padding: 4px;
}
.modal__thumbs button.is-active { border-color: var(--accent); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.modal__body { padding: 56px 48px 48px; display: flex; flex-direction: column; }

.modal__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 16px;
}
.modal__eyebrow-dot { color: var(--ink-3); }

.modal__title {
  font-family: var(--serif); font-weight: 300;
  font-size: 44px; letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 20px;
}

.modal__scarcity {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--ink); margin-bottom: 28px; line-height: 1.45;
}
.modal__scarcity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.modal__pricing {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 20px 0; margin-bottom: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.modal__pricing-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.modal__list-price { color: var(--ink-3); text-decoration: line-through; }
.modal__sale-price {
  font-family: var(--serif); font-weight: 500;
  font-size: 28px; color: var(--accent);
  letter-spacing: -0.02em;
}
.modal__pricing-rule { border-top: 1px dashed var(--hair); margin: 4px 0; }
.modal__pricing-row--save span:last-child {
  font-family: var(--serif); font-weight: 500; color: var(--red); font-size: 16px;
}
.modal__pricing-row--save em { font-style: italic; font-weight: 400; margin-left: 4px; }

.modal__tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.modal__tabs button {
  padding: 10px 0; margin-right: 24px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}
.modal__tabs button.is-active { color: var(--ink); border-color: var(--ink); }

.modal__tab-body {
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
  margin-bottom: 32px; min-height: 100px;
}
.modal__tab-body p + p { margin-top: 12px; }
.modal__tab-body strong { color: var(--ink); font-weight: 500; }
.modal__muted { color: var(--ink-3); font-style: italic; font-size: 13px; }
.modal__condition { list-style: none; }
.modal__condition li {
  padding: 6px 0; padding-left: 16px; position: relative;
  font-size: 13px;
}
.modal__condition li::before {
  content: '—'; position: absolute; left: 0; color: var(--accent);
}
.modal__dim-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px dashed var(--hair);
  margin-bottom: 12px; font-size: 13px;
}
.modal__dim-row strong { font-family: var(--mono); font-weight: 500; color: var(--ink); }

.modal__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: auto;
}
.modal__actions .btn--primary { flex: 1; justify-content: center; }

.modal__microcopy {
  font-family: var(--serif); font-style: italic; font-size: 12px;
  color: var(--ink-3); margin-top: 14px;
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed; right: 20px; bottom: 20px;
  width: 260px; background: var(--bg); border: 1px solid var(--ink);
  z-index: 200; padding: 0;
  box-shadow: 0 20px 40px rgba(26, 23, 20, 0.2);
  animation: slideUp 0.2s;
}
.tweaks__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.tweaks__header button { color: var(--bg); font-size: 18px; line-height: 1; }
.tweaks__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 18px; }
.tweaks__group label {
  display: block;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 8px; font-weight: 500;
}
.tweaks__row { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks__opt {
  padding: 6px 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--rule); color: var(--ink-2);
}
.tweaks__opt.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tweaks__swatch {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px;
}
.tweaks__swatch span {
  display: block; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--hair);
}
.tweaks__swatch em {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); font-style: normal;
}
.tweaks__swatch.is-active em { color: var(--ink); font-weight: 600; }
.tweaks__swatch--aubergine span { background: #4a2a3a; }
.tweaks__swatch--cognac span    { background: #7a3e1d; }
.tweaks__swatch--ink span       { background: #1a1714; }
.tweaks__swatch--sage span      { background: #3d5545; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .catalogue-main__layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .grid, .grid--compact { grid-template-columns: repeat(2, 1fr); }
  .ed-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .ed-card, .ed-card--span-1, .ed-card--span-2 { grid-column: span 1; }
  .modal__dialog { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .hero__picker-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer__col--newsletter { grid-column: 1 / -1; }
  .site-footer__col--wide { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .grid, .grid--compact { grid-template-columns: 1fr; }
  .ed-grid { grid-template-columns: 1fr; gap: 40px 0; }
  .site-footer { padding: 56px 20px 32px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
  .site-footer__col h4 { margin-bottom: 14px; }
  .site-footer__col a { padding: 8px 0; font-size: 15px; }
  .site-footer__base { flex-direction: column; gap: 12px; align-items: flex-start; font-size: 12px; }
  .site-footer__logo .logo-word { font-size: 24px; }

  /* Header mobile collapse */
  .site-header__main {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 18px;
  }
  .site-header__nav--left { display: none; }
  .site-header__nav--right { gap: 12px; font-size: 12px; }
  .site-header__search { display: none; }
  .site-header__nav--right > a[href="#"]:not(.site-header__cart) { display: none; }
  .site-header__subscribe { display: none; }
  .site-header__logo { justify-self: start; align-items: flex-start; }
  .site-header__logo .logo-img { max-height: 28px; }
  .site-header__announce { font-size: 10px; padding: 7px 16px; letter-spacing: 0.14em; }

  /* Hero mobile */
  .hero { padding: 48px 20px 36px; }
  .hero__title { font-size: clamp(32px, 9vw, 44px); margin-bottom: 24px; }
  .hero__sub { font-size: 15px; margin-bottom: 32px; }
  .hero__picker-btn { padding: 22px 22px 20px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }

  /* Catalogue / filters / cards */
  .catalogue-main { padding: 0 20px; }
  .catalogue-main__layout { gap: 32px; }
  .filters { padding: 0; }
  .editorial-section { padding: 56px 20px; }

  /* Modals & trays */
  .modal { padding: 0; }
  .modal__dialog { max-width: 100%; max-height: 100vh; border: 0; }
  .saved-tray, .info-panel__dialog, .tweaks { width: 100%; max-width: 100%; }
  .tweaks { right: 0; left: 0; bottom: 0; width: 100%; }
}


/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 14px 18px 14px 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 1200;
  max-width: min(560px, calc(100vw - 32px));
  font-size: 13.5px;
  letter-spacing: 0.01em;
  animation: toastIn 240ms cubic-bezier(.2,.7,.2,1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.toast__msg { flex: 1; line-height: 1.4; }
.toast__action {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms;
}
.toast__action:hover { background: rgba(255,255,255,0.12); }
.toast__close {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.toast__close:hover { color: #fff; }
