/* ═══════════════════════════════════════════════════════════════
   DailyWardrobe — Minimalist Fashion CSS  (mobile-first)
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:         #fafafa;
  --bg-card:    #ffffff;
  --ink:        #1a1a1a;
  --ink-muted:  #888;
  --ink-light:  #bbb;
  --border:     #e8e8e8;
  --border-dark:#333;
  --sage:       #6d9e8f;
  --sage-light: #edf4f2;
  --sage-dark:  #4f7d6f;
  --warn:       #c9715a;
  --radius:     4px;
  --radius-lg:  8px;
  --shadow:     0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.08);
  --transition: .2s ease;
  --nav-h:      60px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sage-dark); }
img { display: block; max-width: 100%; }
/* The rule above outranks the UA's [hidden]{display:none}, so an <img hidden>
   would still paint (as a broken-image box). Restore the attribute's meaning. */
[hidden] { display: none !important; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }

/* ── Navbar ────────────────────────────────────────────────── */
.dw-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo image in nav */
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.dw-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Desktop nav links */
.dw-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0 auto;
}

.dw-nav__links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--transition);
  white-space: nowrap;
}

.dw-nav__links a:hover,
.dw-nav__links a.active { color: var(--ink); }

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

.dw-nav__actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Footer ─────────────────────────────────────────────────── */
.dw-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: white;
  flex-shrink: 0;
}

.dw-footer__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Affiliate disclosure — required by the Amazon Associates operating agreement */
.dw-footer__disclosure {
  max-width: 60ch;
  margin: 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.dw-footer__text {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.dw-footer__logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  background: white;
  padding: 0 2px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: #333; color: white; }
.btn-outline { background: transparent; border-color: var(--border-dark); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: white; }
.btn-ghost { background: transparent; color: var(--ink-muted); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn-sage { background: var(--sage); color: white; border-color: var(--sage); }
.btn-sage:hover { background: var(--sage-dark); border-color: var(--sage-dark); }
.btn-sm { padding: .4rem .9rem; font-size: 11px; }
.btn-lg { padding: .85rem 2rem; font-size: 13px; }
.btn-full { width: 100%; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-header h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.page-header p { color: var(--ink-muted); margin-top: .4rem; font-size: 13px; }

/* ── Outfit Grid & Cards ───────────────────────────────────── */
.outfit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding-bottom: 2rem;
}

.outfit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.outfit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.outfit-card__img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f0efed;
}
.outfit-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.outfit-card:hover .outfit-card__img img { transform: scale(1.03); }

.outfit-card__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: white;
  border-radius: 2px;
  padding: .2rem .5rem;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.outfit-card__fav {
  position: absolute;
  top: .6rem; right: .6rem;
  width: 34px; height: 34px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--ink-muted);
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
}
.outfit-card__fav:hover { color: var(--warn); transform: scale(1.1); }
.outfit-card__fav.active { color: var(--warn); }

.outfit-card__body { padding: 1rem 1rem 1.1rem; }

.outfit-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
  flex-wrap: wrap;
  gap: .3rem;
}

.outfit-card__style {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
}

.rating-display { display: flex; align-items: center; gap: .3rem; }
.rating-display .stars { display: flex; gap: 1px; }
.rating-display .stars svg { width: 10px; height: 10px; }
.rating-display .count { font-size: 11px; color: var(--ink-muted); }

.outfit-card__title { font-size: 1.1rem; margin-bottom: .25rem; }
.outfit-card__desc { font-size: 12px; color: var(--ink-muted); margin-bottom: .9rem; line-height: 1.5; }

.outfit-card__products { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .9rem; }
.product-tag {
  font-size: 10px;
  padding: .2rem .45rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.outfit-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

/* ── Star Rating Input ─────────────────────────────────────── */
.star-input { display: flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { display: none; }
.star-input label {
  cursor: pointer;
  color: var(--border);
  transition: color var(--transition);
  font-size: 20px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #c9a227; }

/* ── Landing / Hero ────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h) - 48px);
}

.hero__logo-wrap { display: none; } /* shown only on mobile */

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem 3rem 3rem;
}

.hero__eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.hero__title em { font-style: italic; color: var(--ink-muted); }

.hero__sub {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 380px;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero__stats { margin-top: 2.5rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.stat__number { font-family: var(--font-display); font-size: 1.7rem; font-weight: 300; }
.stat__label  { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

.hero__right { position: relative; background: #f0efed; overflow: hidden; }
.hero__right img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(250,250,250,.1), transparent); }

/* ── Auth forms ────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--nav-h) - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
}

.auth-card__logo { text-align: center; margin-bottom: 1.75rem; }

.auth-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.auth-card h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.auth-card__sub { font-size: 12px; color: var(--ink-muted); margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .35rem;
}
.form-control {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  background: white;
  color: var(--ink);
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--sage); }

.form-link { text-align: center; margin-top: 1.4rem; font-size: 12px; color: var(--ink-muted); }
.form-link a { color: var(--sage-dark); font-weight: 400; }

/* ── Flash ──────────────────────────────────────────────────── */
.flash {
  padding: .65rem .9rem;
  border-radius: var(--radius);
  font-size: 12px;
  margin-bottom: 1rem;
}
.flash-error   { background: #fdf0ee; border: 1px solid #f0c4bb; color: #9b3a2a; }
.flash-success { background: var(--sage-light); border: 1px solid #b8d5cd; color: var(--sage-dark); }

/* ── Onboarding ─────────────────────────────────────────────── */
.onboarding {
  min-height: calc(100vh - var(--nav-h) - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.onboarding-card {
  width: 100%;
  max-width: 560px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
}

.onboarding-card__logo { text-align: center; margin-bottom: 1.5rem; }

.progress-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--sage);
  border-radius: 2px;
  transition: width .4s ease;
}

.step { display: none; }
.step.active { display: block; }
.step__title { font-size: 1.5rem; margin-bottom: .35rem; }
.step__sub { color: var(--ink-muted); font-size: 13px; margin-bottom: 1.75rem; }

.step-nav { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }

.gender-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.gender-option input { display: none; }
.gender-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  -webkit-tap-highlight-color: transparent;
}
.gender-option label:hover,
.gender-option input:checked + label {
  border-color: var(--sage);
  background: var(--sage-light);
  color: var(--sage-dark);
}
.gender-option label svg { width: 26px; height: 26px; opacity: .7; }
.gender-option input:checked + label svg { opacity: 1; }

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .65rem;
  margin-bottom: 1.75rem;
}
.style-option input { display: none; }
.style-option label {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  text-transform: capitalize;
  color: var(--ink-muted);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.style-option label:hover,
.style-option input:checked + label {
  border-color: var(--sage);
  background: var(--sage-light);
  color: var(--sage-dark);
}
.style-option input:checked + label::before { content: '✓'; font-size: 10px; }

/* ── Filter bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}
.filter-bar select {
  padding: .42rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  padding-right: 2rem;
}
.filter-bar select:focus { border-color: var(--sage); }
.search-input {
  flex: 1;
  min-width: 140px;
  max-width: 260px;
  padding: .42rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
  -webkit-appearance: none;
}
.search-input:focus { border-color: var(--sage); }
.filter-count { margin-left: auto; font-size: 12px; color: var(--ink-muted); }

/* ── Tabs ───────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 1.75rem;
}
.tab-btn {
  padding: .5rem 1.1rem;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: white;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  transition: all var(--transition);
  border-right: 1px solid var(--border);
  text-decoration: none;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { background: var(--ink); color: white; }

/* ── Trending list ──────────────────────────────────────────── */
.rank-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}
.rank-1 { background: #c9a227; color: white; }
.rank-2 { background: #aaa; color: white; }
.rank-3 { background: #b87333; color: white; }

.trending-list { display: flex; flex-direction: column; }

.trending-item {
  display: grid;
  grid-template-columns: 32px 80px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
}
.trending-item__img {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  background: #f0efed;
  flex-shrink: 0;
}

/* ── Profile ────────────────────────────────────────────────── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sage-dark);
  flex-shrink: 0;
}
.profile-stats { display: flex; gap: 1.5rem; margin-top: .4rem; flex-wrap: wrap; }
.profile-stat { text-align: center; }
.profile-stat__num { font-family: var(--font-display); font-size: 1.3rem; }
.profile-stat__label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

.section-title {
  font-size: .9rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-weight: 400;
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--ink-muted);
}
.empty-state__icon { font-size: 2.2rem; margin-bottom: .9rem; opacity: .4; }
.empty-state h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: .4rem; }
.empty-state p { font-size: 13px; max-width: 300px; margin: 0 auto 1.4rem; line-height: 1.6; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: white;
  padding: .65rem 1.1rem;
  border-radius: var(--radius);
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s ease;
  max-width: 260px;
  pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Utility ────────────────────────────────────────────────── */
.text-muted  { color: var(--ink-muted); }
.text-sage   { color: var(--sage); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 900px) ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .hero__left { padding: 2.5rem 1.5rem; min-height: unset; }
  .hero__logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  .hero__logo { height: 64px; width: auto; object-fit: contain; }
  .outfit-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ── Mobile (≤ 640px) ──────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --nav-h: 56px; }

  /* Nav: show hamburger, hide desktop links & sign-out */
  .nav-toggle { display: flex; }
  .nav-desktop-only { display: none !important; }
  .dw-nav__actions { gap: .5rem; }

  .dw-nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 0;
    z-index: 199;
    box-shadow: var(--shadow-md);
  }
  .dw-nav__links.open { display: flex; }
  .dw-nav__links li { border-bottom: 1px solid var(--border); }
  .dw-nav__links li:last-child { border-bottom: none; }
  .dw-nav__links a {
    display: block;
    padding: .9rem 1.25rem;
    font-size: 12px;
    letter-spacing: .06em;
  }
  .nav-mobile-only { display: block; }

  /* Container */
  .container { padding: 0 1rem; }

  /* Hero */
  .hero__left { padding: 2rem 1rem; }
  .hero__title { font-size: 2rem; }
  .hero__sub { font-size: 13px; }
  .hero__cta { gap: .6rem; }
  .hero__cta .btn-lg { padding: .75rem 1.5rem; font-size: 12px; }
  .hero__stats { gap: 1.5rem; margin-top: 2rem; }

  /* Auth cards */
  .auth-card { padding: 1.75rem 1.25rem; }
  .auth-logo-img { height: 48px; }

  /* Onboarding */
  .onboarding-card { padding: 1.75rem 1.25rem; }
  .gender-grid { gap: .5rem; }
  .gender-option label { padding: 1rem .5rem; font-size: 10px; }
  .gender-option label svg { width: 22px; height: 22px; }
  .style-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }

  /* Outfit grid: 2 cols on mobile */
  .outfit-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .outfit-card__title { font-size: 1rem; }
  .outfit-card__desc { display: none; } /* save space on mobile */
  .outfit-card__body { padding: .75rem .75rem .9rem; }

  /* Trending */
  .trending-item { grid-template-columns: 28px 60px 1fr; gap: .6rem; }
  .trending-item > *:last-child { display: none; } /* hide product tags */
  .trending-item__img { width: 60px; height: 60px; }

  /* Tabs full width */
  .tab-nav { width: 100%; }
  .tab-btn { flex: 1; text-align: center; padding: .55rem .5rem; }

  /* Filter bar stack */
  .filter-bar { gap: .5rem; }
  .filter-bar select, .search-input { font-size: 12px; }
  .search-input { min-width: 100%; max-width: 100%; order: -1; }
  .filter-count { width: 100%; text-align: right; }

  /* Profile */
  .profile-header { gap: 1rem; }

  /* Footer */
  .dw-footer { padding: .8rem 1rem; }
  .dw-footer__logo { height: 18px; }

  /* Toast bottom spacing for mobile */
  .toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
  .toast { max-width: 100%; }

  /* Page header */
  .page-header { padding: 1.5rem 0 1rem; margin-bottom: 1.25rem; }
}

/* ── Very small (≤ 380px) ──────────────────────────────────── */
@media (max-width: 380px) {
  .outfit-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 1.7rem; }
  .btn-lg { padding: .7rem 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   MULTI-PRODUCT OUTFIT CARD  (v2)
═══════════════════════════════════════════════════════════════ */

/* ── Product image grid inside outfit card ─────────────────── */
.outfit-card__products-grid {
  position: relative;
  display: grid;
  gap: 2px;
  background: #e8e8e8;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* 1 product: full square */
.products-1 { grid-template-columns: 1fr; aspect-ratio: 1/1; }
/* 2 products: side by side */
.products-2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2/1.4; }
/* 3 products: one left tall + two right stacked */
.products-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1/1;
}
.products-3 .product-img-cell:first-child { grid-row: 1 / 3; }
/* 4 products: 2×2 grid */
.products-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1/1; }

/* Individual product cell */
.product-img-cell {
  position: relative;
  overflow: hidden;
  background: #f0efed;
}

.product-img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.product-img-cell:hover img { transform: scale(1.06); }

/* Per-product heart button */
.product-fav-btn {
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,.88);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  opacity: 0;
  transition: opacity var(--transition), color var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
.product-img-cell:hover .product-fav-btn,
.product-fav-btn.active { opacity: 1; }
.product-fav-btn.active  { color: var(--warn); }
.product-fav-btn:hover   { color: var(--warn); transform: scale(1.15); }

/* Hover label: product name / brand / price */
.product-img-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  padding: 1.5rem .5rem .45rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transform: translateY(100%);
  transition: transform .3s ease;
  pointer-events: none;
}
.product-img-cell:hover .product-img-label { transform: translateY(0); }

/* Image becomes the click-out surface when the product is monetisable.
   The pointer cursor lives here, not on the cell — an unmonetised product
   has nothing to click and shouldn't pretend otherwise. */
.product-img-link { display: block; width: 100%; height: 100%; cursor: pointer; }

/* Click-out CTA pill */
.product-buy-btn {
  position: absolute;
  bottom: .4rem;
  left: .4rem;
  z-index: 4;
  padding: .2rem .5rem;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.product-img-cell:hover .product-buy-btn { opacity: 1; }
.product-buy-btn:hover { transform: scale(1.06); color: var(--sage); }

/* Touch devices have no hover — keep the CTA permanently visible */
@media (hover: none) {
  .product-buy-btn { opacity: 1; }
}

.product-card__buy { width: 100%; margin-top: .5rem; text-align: center; }

.product-img-label__name  { font-size: 10px; color: white; font-weight: 400; line-height: 1.2; }
.product-img-label__brand { font-size: 9px;  color: rgba(255,255,255,.7); }
.product-img-label__price { font-size: 10px; color: white; font-weight: 500; margin-top: 1px; }

/* Outfit-level fav overlaid on the grid */
.outfit-card__fav {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 5;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.outfit-card__fav:hover { color: var(--warn); transform: scale(1.12); }
.outfit-card__fav.active { color: var(--warn); }

/* Badge top-left of the grid */
.outfit-card__badge {
  position: absolute;
  top: .55rem;
  left: .55rem;
  z-index: 5;
  background: rgba(255,255,255,.92);
  border-radius: 2px;
  padding: .18rem .45rem;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  pointer-events: none;
}

/* ── Card body ─────────────────────────────────────────────── */
.outfit-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .75rem;
}

.product-tag {
  font-size: 10px;
  padding: .18rem .45rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--ink-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.product-tag__cat {
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sage);
}

.outfit-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}

.outfit-card__total {
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.outfit-card__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Standalone product card (Favorites page) ──────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.product-card__img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f0efed;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card__img img { transform: scale(1.05); }

/* Reuse .product-fav-btn styles — always visible on product-card */
.product-card .product-fav-btn { opacity: 1; }

.product-card__body { padding: .7rem .8rem; }
.product-card__cat  { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.product-card__name { font-size: 12px; font-weight: 400; margin: .15rem 0 .1rem; line-height: 1.3; }
.product-card__brand{ font-size: 11px; color: var(--ink-muted); }
.product-card__price{ font-size: 12px; font-weight: 500; margin-top: .25rem; }

/* ── Section title with count pill ────────────────────────── */
.section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  border-radius: 20px;
  padding: .1rem .45rem;
  margin-left: .5rem;
  vertical-align: middle;
}

/* ── Empty state inline (smaller) ─────────────────────────── */
.empty-state--inline {
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  text-align: left;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.empty-state--inline .empty-state__icon { font-size: 1.4rem; opacity: .35; margin: 0; flex-shrink: 0; }
.empty-state--inline p { font-size: 12px; color: var(--ink-muted); margin: 0; }

.mb-3 { margin-bottom: 1.5rem; }

/* ── Mobile overrides for new grid ────────────────────────── */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  /* On mobile: always show fav buttons (no hover) */
  .product-fav-btn { opacity: 1; }
  .product-img-label { transform: translateY(0); background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 80%); }
  .outfit-card__tags { display: none; } /* save vertical space */
}

/* ══════════════════════════════════════════════════════════════════
   Admin
   ══════════════════════════════════════════════════════════════════ */

.flash-warn { background: #fdf8ec; border: 1px solid #ecdcb0; color: #8a6d1f; }

.admin__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.admin__eyebrow {
  display: block; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sage); margin-bottom: .2rem;
}
.admin__header h1 { font-family: var(--font-display); font-size: 2rem; margin: 0; }

.admin__nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.admin__nav a {
  padding: .4rem .8rem; font-size: 12px; letter-spacing: .04em;
  color: var(--ink-muted); text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: var(--transition);
}
.admin__nav a:hover  { color: var(--ink); background: white; }
.admin__nav a.active { color: var(--ink); background: white; border-color: var(--border); }

.admin__flashes { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.admin__actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin__add { margin-left: auto; }

/* Stat tiles */
.admin__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem; margin-bottom: 1.5rem;
}
.admin-stat {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem 1.1rem;
}
.admin-stat--warn { border-color: #ecdcb0; background: #fdfaf3; }
.admin-stat__num { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.admin-stat__label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: .35rem;
}

/* Tables */
.admin-table-wrap {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500;
  padding: .7rem .8rem; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td { padding: .6rem .8rem; border-bottom: 1px solid #f2f2f2; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fbfbfa; }

.admin-thumb-cell { width: 56px; }
.admin-thumb {
  width: 44px; height: 44px; object-fit: cover;
  border-radius: var(--radius); background: #f0efed; display: block;
}
.admin-thumb--empty { border: 1px dashed var(--border); }

.admin-link { color: var(--ink); text-decoration: none; font-weight: 500; }
.admin-link:hover { color: var(--sage); }
.admin-sub { font-size: 11px; color: var(--ink-muted); margin-top: .15rem; }
.admin-sub code, .admin-table code { font-size: 10px; background: #f4f4f3; padding: .05rem .3rem; border-radius: 3px; }

.admin-row-actions { display: flex; gap: .3rem; align-items: center; white-space: nowrap; }
.admin-row-actions form { display: inline; }
.btn-danger { color: var(--warn); }
.btn-danger:hover { background: #fdf0ee; color: #9b3a2a; }

.pill {
  display: inline-block; font-size: 10px; letter-spacing: .05em;
  padding: .15rem .45rem; border-radius: 999px; white-space: nowrap;
}
.pill--ok     { background: var(--sage-light); color: var(--sage-dark); }
.pill--muted  { background: #f2f2f2; color: var(--ink-muted); }

/* Outfit list */
.admin-outfit-list { display: flex; flex-direction: column; gap: .5rem; }
.admin-outfit {
  display: flex; align-items: center; gap: 1rem; background: white;
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .7rem .9rem;
}
.admin-outfit__thumbs { display: flex; gap: 2px; flex-shrink: 0; }
.admin-outfit__thumbs img {
  width: 42px; height: 42px; object-fit: cover; border-radius: var(--radius); background: #f0efed;
}
.admin-outfit__body { flex: 1; min-width: 0; }

/* Forms */
.admin-form { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.admin-form__grid { display: grid; grid-template-columns: 1fr 220px; gap: 2rem; }
.admin-form__fields { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.admin-form__actions { display: flex; gap: .6rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

.field { display: flex; flex-direction: column; gap: .3rem; }
.field__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.field__label em { font-style: normal; color: var(--warn); text-transform: none; letter-spacing: 0; font-size: 10px; }
.field__hint { font-size: 11px; color: var(--ink-muted); line-height: 1.5; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 13px; color: var(--ink);
  padding: .5rem .65rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: white; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage);
}
.field textarea { resize: vertical; }
.field-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 120px; }
.field--check { flex-direction: row; align-items: center; gap: .5rem; font-size: 13px; }
.field--check input { width: auto; }

.admin-form__preview { display: flex; flex-direction: column; gap: .4rem; }
.admin-preview-img {
  aspect-ratio: 1/1; background: #f0efed; border-radius: var(--radius);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.admin-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.admin-preview-empty { font-size: 11px; color: var(--ink-light); }

/* Product picker */
.picker { display: flex; flex-direction: column; gap: .75rem; }
.picker__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.picker__count { font-size: 11px; color: var(--ink-muted); white-space: nowrap; }
.picker__search { width: 100%; }

.picker__selected {
  display: flex; flex-wrap: wrap; gap: .4rem; min-height: 54px;
  padding: .5rem; background: #fbfbfa;
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.picker__empty { font-size: 12px; color: var(--ink-light); align-self: center; padding: .3rem; }

.chip {
  display: flex; align-items: center; gap: .4rem; background: white;
  border: 1px solid var(--border); border-radius: 999px; padding: .2rem .5rem .2rem .2rem;
}
.chip img { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; }
.chip__pos {
  font-size: 9px; color: var(--ink-muted); background: #f2f2f2;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.chip__name { font-size: 11px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip__x { border: none; background: none; cursor: pointer; color: var(--ink-light); font-size: 15px; line-height: 1; padding: 0 .1rem; }
.chip__x:hover { color: var(--warn); }

.picker__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: .5rem; max-height: 420px; overflow-y: auto; padding: .25rem;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.pick-item {
  display: flex; flex-direction: column; gap: .2rem; text-align: left;
  background: none; border: none; padding: .25rem; cursor: pointer; border-radius: var(--radius);
}
.pick-item:hover { background: #f7f7f6; }
.pick-item__imgwrap { position: relative; display: block; }
.pick-item__imgwrap img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius); background: #f0efed; display: block;
  border: 2px solid transparent; transition: var(--transition);
}
.pick-item__check {
  position: absolute; top: .25rem; right: .25rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage); color: white; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.6); transition: var(--transition);
}
.pick-item.is-picked .pick-item__imgwrap img { border-color: var(--sage); }
.pick-item.is-picked .pick-item__check { opacity: 1; transform: scale(1); }
.pick-item__name { font-size: 11px; line-height: 1.25; }
.pick-item__meta { font-size: 10px; color: var(--ink-muted); }

@media (max-width: 720px) {
  .admin-form { padding: 1rem; }
  .admin-form__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .admin-form__preview { order: -1; max-width: 160px; }
  .admin-outfit { flex-wrap: wrap; }
  .admin__add { margin-left: 0; }
}

/* ── Language switch (public nav) ───────────────────────────── */
.lang-switch { display: flex; gap: 1px; align-items: center; }
.lang-switch a {
  font-size: 10px; letter-spacing: .1em; padding: .3rem .45rem;
  color: var(--ink-light); border: 1px solid transparent; border-radius: 2px;
  transition: var(--transition);
}
.lang-switch a:hover  { color: var(--ink); }
.lang-switch a.active { color: var(--ink); border-color: var(--border); background: white; }

/* ── Admin market switch ────────────────────────────────────── */
.admin__header-right { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.admin__market { display: flex; gap: .25rem; }
.admin__market a {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px;
  color: var(--ink-muted); background: white; transition: var(--transition);
}
.admin__market a:hover  { color: var(--ink); }
.admin__market a.active { background: var(--ink); border-color: var(--ink); color: white; }

@media (max-width: 720px) {
  .admin__header-right { align-items: flex-start; width: 100%; }
}

/* ── Claude extraction bar (admin product form) ─────────────── */
.extract {
  background: var(--sage-light);
  border: 1px solid #b8d5cd;
  border-radius: var(--radius-lg);
  padding: .75rem .9rem;
  margin-bottom: 1rem;
}
.extract__row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.extract__row .search-input { flex: 1; min-width: 220px; background: white; }
.extract__status {
  margin-top: .55rem;
  font-size: 12px;
  line-height: 1.5;
  padding: .4rem .55rem;
  border-radius: var(--radius);
  background: white;
}
.extract__status--busy  { color: var(--ink-muted); }
.extract__status--ok    { color: var(--sage-dark); }
.extract__status--warn  { color: #8a6d1f; background: #fdf8ec; }
.extract__status--error { color: #9b3a2a; background: #fdf0ee; }

/* Highlight what the model filled in, so review is easy */
.field--filled { border-color: var(--sage) !important; background: #fbfefd; }

/* ── Bookmarklet page ───────────────────────────────────────── */
.bookmarklet { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.bookmarklet__link {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--ink); color: white;
  padding: .7rem 1.3rem; border-radius: 2px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  cursor: grab; white-space: nowrap;
}
.bookmarklet__link:hover  { background: #333; color: white; }
.bookmarklet__link:active { cursor: grabbing; }
.bookmarklet__hint { font-size: 12px; color: var(--ink-muted); }
.bookmarklet__steps {
  margin: 0; padding-left: 1.2rem; max-width: 62ch;
  font-size: 13px; line-height: 1.9; color: var(--ink);
}
.bookmarklet__steps code { font-size: 11px; background: #f4f4f3; padding: .05rem .3rem; border-radius: 3px; }

/* ── Inline field action (e.g. "Suggest" beside a label) ────── */
.field__action {
  margin-left: .5rem;
  padding: .1rem .5rem;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: var(--sage-light);
  border: 1px solid #b8d5cd;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.field__action:hover:not(:disabled) { background: var(--sage); color: white; border-color: var(--sage); }
.field__action:disabled { opacity: .5; cursor: default; }
.field__action-note {
  margin-left: .5rem;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.pill--plain { background: #eef2f6; color: #4a5a6a; }

/* ── Product wall (front page) ──────────────────────────────── */
.wall__intro { padding: 2rem 0 1.5rem; }
.wall__intro h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
.wall__intro p { color: var(--ink-muted); font-size: 13px; margin-top: .4rem; }
.wall__intro a { color: var(--sage-dark); border-bottom: 1px solid currentColor; }

/* CSS columns rather than grid: tiles keep their natural heights, which is
   what makes the wall read as a wall instead of a table. */
.wall {
  column-count: 5;
  column-gap: 1rem;
}
@media (max-width: 1200px) { .wall { column-count: 4; } }
@media (max-width: 900px)  { .wall { column-count: 3; } }
@media (max-width: 640px)  { .wall { column-count: 2; column-gap: .6rem; } }

.tile {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tile__img { position: relative; background: #f0efed; overflow: hidden; }
.tile__img img { width: 100%; height: auto; display: block; transition: transform .45s ease; }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__img a { display: block; cursor: pointer; }

.tile__body { padding: .6rem .7rem .7rem; }
.tile__name {
  font-size: 12px;
  line-height: 1.35;
  /* Two lines, then ellipsis — long marketplace titles must not set the
     height of a tile and knock the whole column out of rhythm. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem; margin-top: .3rem;
}
.tile__brand {
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tile__price { font-size: 12px; font-weight: 500; white-space: nowrap; }

.wall__more { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 0 3rem; }
.wall__end { font-size: 12px; color: var(--ink-muted); }

/* ── Cookie consent bar ─────────────────────────────────────── */
.consent {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 400;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .85rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.consent__text { flex: 1; min-width: 220px; margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink); }
.consent__actions { display: flex; gap: .5rem; margin-left: auto; }

.dw-footer__link {
  background: none; border: none; padding: 0;
  font-family: var(--font-body); font-size: 10px;
  color: var(--ink-muted); cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.dw-footer__link:hover { color: var(--ink); }

@media (max-width: 480px) {
  .consent { left: .6rem; right: .6rem; bottom: .6rem; }
  .consent__actions { margin-left: 0; width: 100%; }
  .consent__actions .btn { flex: 1; }
}

/* ── Legal documents (privacy, terms) ───────────────────────── */
.legal {
  /* Narrow measure: these are read, not scanned, and long lines are tiring. */
  max-width: 68ch;
  padding-bottom: 4rem;
  font-size: 14px;
  line-height: 1.75;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.25rem 0 .5rem;
}
.legal h3 {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--ink-muted);
  margin: 1.5rem 0 .4rem;
}
.legal p { margin-bottom: .9rem; }
.legal ul { margin: 0 0 1rem 1.1rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--sage-dark); border-bottom: 1px solid currentColor; }

/* An unfilled document must be impossible to mistake for a finished one. */
.legal__draft {
  padding: .8rem 1rem;
  margin-bottom: 1.5rem;
  background: #fdf0ee;
  border: 1px solid #f0c4bb;
  border-radius: var(--radius);
  color: #9b3a2a;
  font-size: 13px;
}

.dw-footer__links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── Account: password + deletion ──────────────────────────── */
.form-hint { margin-top: .35rem; font-size: 11px; color: var(--ink-muted); }

.btn-danger { background: var(--warn); color: #fff; border-color: var(--warn); }
.btn-danger:hover { background: #b25f4a; border-color: #b25f4a; color: #fff; }

/* Closed by default, and styled to be reached on purpose rather than in
   passing: this is the one control on the page with no undo. */
.danger { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.danger__summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--warn);
  list-style: none;
}
.danger__summary::-webkit-details-marker { display: none; }
.danger__summary::before { content: '▸ '; }
.danger[open] .danger__summary::before { content: '▾ '; }
.danger__summary:hover { color: #b25f4a; }
.danger__body {
  margin-top: 1rem;
  padding: 1.2rem;
  background: #fdf0ee;
  border: 1px solid #f0c4bb;
  border-radius: var(--radius);
}
.danger__text { font-size: 13px; line-height: 1.6; color: #7c3524; margin-bottom: .9rem; }

/* Flashes live in base.html, above whatever the page renders. */
.flash-stack { margin-bottom: 1.2rem; }
