/* Yours Next — "Quiet Luxury" (concept 1). Loaded after style.css; only changes the look.
   Warm ivory page, graphite ink, a deep taupe for actions, beige surfaces and hairlines.
   Cormorant Garamond for names and headings; Instrument Sans for text, prices, buttons
   (Cyrillic falls back to Onest, a close grotesque). Spacing on an 8px grid. */
:root {
  --page: #F6F2EA;           /* warm ivory */
  --soft: #EFE9DE;           /* quiet fills */
  --surface: #FBF8F2;        /* inputs, sheets: a touch lighter than the page */
  --ink: #24221D;            /* graphite */
  --ink-2: #4E4A42;          /* secondary text: still easy to read */
  --muted: #6F6A60;
  --hair: #DED4C0;           /* light beige: surfaces and dividers */
  --mat: #E8E1D3;            /* behind photos: warm, close to the cover backdrop */
  --act: #4B473D;            /* buttons: deep grey-brown */
  --act-hover: #3D3A31;
  --act-press: #322F28;
  --sage: #6B7350;           /* Free: muted olive */
  --rose: #B98580;
  --danger: #9A3B2B;
  --r: 7px;                  /* corners */
  --sans: "Instrument Sans", "Onest", "Helvetica Neue", -apple-system, system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
}
html, body { background: var(--page); color: var(--ink); font-size: 16px; }
:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }

/* ---------- type ---------- */
.page-title { font-size: 40px; font-weight: 600; letter-spacing: -.005em; }
.page-sub { font-size: 18px; color: var(--ink-2); }
.page-what { font-size: 15px; color: var(--ink-2); }
.brand { font-size: 12px; letter-spacing: .22em; color: var(--ink); }
.caps, .text-btn, .club-tag { letter-spacing: .14em; }
.text-btn { font-size: 12px; color: var(--ink-2); min-height: 44px; }
.hint, .pills-hint, .mag-sub, .lab-note { font-size: 14px; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn { height: 48px; border-radius: var(--r); background: var(--act); color: #FBF8F2; font-size: 12px; font-weight: 600; letter-spacing: .14em; transition: background .15s, opacity .15s; }
.btn:hover { background: var(--act-hover); }
.btn:active { background: var(--act-press); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--act); border: 1px solid var(--act); }
.btn.ghost:hover { background: rgba(75,71,61,.06); }
.btn.ghost:active { background: rgba(75,71,61,.12); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--hair); }
.btn.small { height: 40px; padding: 0 16px; font-size: 11px; border-radius: var(--r); }
.icon-btn { width: 44px; height: 44px; border-color: var(--hair); background: var(--surface); color: var(--ink); }
.icon-btn:hover { border-color: var(--act); }
svg[stroke="currentColor"], .nav-i svg, .icon-btn svg { stroke-width: 1.5; }

/* ---------- fields ---------- */
.input, textarea.input, select.input { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 12px 14px; min-height: 48px; font-size: 16px; }
.input:focus { border-color: var(--act); outline: 0; box-shadow: 0 0 0 3px rgba(75,71,61,.12); }
.input::placeholder, textarea::placeholder, input::placeholder { color: #9A9387; }
label, .field-label { color: var(--ink-2); }

/* ---------- switches, chips, tabs ---------- */
.seg { border: 1px solid var(--hair); border-radius: var(--r); padding: 3px; gap: 3px; background: var(--surface); }
.seg button { border-radius: 5px; background: transparent; color: var(--ink-2); font-size: 12px; min-height: 42px; }
.seg button[aria-pressed="true"] { background: var(--act); color: #FBF8F2; }
.chips { border-top: 1px solid var(--hair); gap: 24px; padding-top: 12px; }
.chip { font-size: 12px; color: var(--ink-2); min-height: 32px; }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.rule { border-top-color: var(--hair) !important; background: var(--hair); }

/* ---------- product cards: 4:5, same rhythm everywhere ---------- */
/* every photo as a print on a mat (passe-partout), like a gallery wall */
.tile { aspect-ratio: 4 / 5; border-radius: 16px; background: #E8E1D3; padding: 9% 10%; }
.tile img { object-fit: cover; border-radius: 8px; box-shadow: 0 1px 2px rgba(36,34,29,.10), 0 6px 18px rgba(36,34,29,.08); }
.card.closed .tile img { box-shadow: none; }
.card { gap: 8px; }
.meta { gap: 2px; }
.meta .t, .grid.two .meta .t { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; }
.meta .p, .grid.two .meta .p { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.meta .p.free { color: var(--sage); }
.meta .seller { font-size: 13px; color: var(--muted); }
.badge { top: 8px; left: 8px; border-radius: 4px; background: var(--sage); color: #FBF8F2; font-size: 10px; font-weight: 600; letter-spacing: .1em; padding: 4px 8px; }
.badge.res { background: var(--act); }
.heart { width: 44px; height: 44px; right: 2px; bottom: 2px; background: transparent; box-shadow: none; }
.heart::before { content: ""; position: absolute; width: 32px; height: 32px; border-radius: 50%; background: rgba(251,248,242,.92); }
.heart svg { position: relative; }
.heart svg path { stroke-width: 1.4; }
.grid.two { gap: 32px 16px; }

/* ---------- Discover ---------- */
.search { background: var(--surface); border-color: var(--hair); height: 48px; border-radius: 999px; }
.search:focus-within { border-color: var(--act); }
.window { background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; box-shadow: none; }
.window-tile, .mag-tile { border-radius: var(--r); background: var(--mat); }
.mag-big, .grid-h h2, .mag-head h2 { font-weight: 600; }
.follow-btn, .btn.follow-btn, .window .follow-btn { background: transparent; color: var(--act); border: 1px solid var(--act); border-radius: var(--r); }
.follow-btn.on, .btn.follow-btn.on, .window .follow-btn.on { background: var(--act); color: #FBF8F2; }

/* ---------- item page: the photo first, then price and the action ---------- */
.gallery, .slides .slide { background: #F1EDE6; }     /* the same warm tone as the studio covers */
.thumb { border-color: var(--hair); border-radius: 4px; }
.thumb.sel { outline-color: var(--act); }
.item-title { font-size: 34px; font-weight: 600; }
.item-price { font-family: var(--sans); font-size: 24px; font-weight: 600; letter-spacing: 0; }
.item-price.free { color: var(--sage); }
.key-facts { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--ink); }
.facts { font-size: 14px; color: var(--ink-2); }
.item-desc { font-size: 20px; color: var(--ink-2); }
.slide-label { background: rgba(251,248,242,.94); border-radius: 4px; }
.bottom { background: rgba(246,242,234,.97); border-top: 1px solid var(--hair); }

/* ---------- seller's shop window ---------- */
.avatar { border: 1px solid var(--hair); background: var(--surface); box-shadow: 0 0 0 4px var(--page), 0 0 0 5px var(--hair); }
.shop-name { font-weight: 600; }
.shop-meta { color: var(--ink-2); letter-spacing: .1em; }
.shop-bio { color: var(--ink-2); }
.hl-ring { border-color: var(--hair); }

/* ---------- edit item, sheets, menus ---------- */
.ed-cover, .ed-thumb { border-radius: var(--r); }
.ed-thumb { background: var(--mat); }
.ed-thumb.add { border-color: #BDB29C; }
.ed-photos .more, .ed-tag { background: rgba(251,248,242,.95); }
.ed-tag.wait { background: var(--act); color: #FBF8F2; }
.ed-seg { border-radius: var(--r); }
.ed-seg button { border-radius: 5px; }
.ed-seg button[aria-pressed="true"] { background: var(--act); color: #FBF8F2; box-shadow: none; font-weight: 600; }
.ed-title, .ed-desc, .ed-price { border-bottom-color: var(--hair); }
.pill { background: var(--surface); border-color: var(--hair); min-height: 44px; height: auto; border-radius: 999px; }
.pill.empty { background: transparent; border-color: #BDB29C; }
.fresh, .ed-price.fresh input { background: var(--soft) !important; }
.sheet { background: var(--surface); border-top: 1px solid var(--hair); border-radius: 16px 16px 0 0; }
.sheet-back { background: rgba(36,34,29,.32); }
.menu-row, .pick-row { border-bottom-color: var(--hair); min-height: 52px; }

/* ---------- inbox ---------- */
.bubble, .msg .b { border-radius: 14px; }
.msg.mine .b, .bubble.mine { background: var(--act); color: #FBF8F2; }
.msg:not(.mine) .b, .bubble:not(.mine) { background: var(--surface); border: 1px solid var(--hair); }

/* ---------- bottom navigation ---------- */
.nav { background: rgba(246,242,234,.96); border-top-color: var(--hair); }
.nav-i { font-size: 10px; letter-spacing: .08em; color: var(--muted); min-height: 44px; }
.nav-add { font-size: 10px; letter-spacing: .08em; min-height: 44px; }
.nav-i.on { color: var(--ink); }
.nav-plus { background: var(--act); color: #FBF8F2; }

/* ---------- empty states, notes ---------- */
.empty strong { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.ed-arch, .club-done, .nudge { background: var(--soft); border-radius: var(--r); }
.invite-row, .group-box { background: var(--surface); border: 1px solid var(--hair); }

/* ---------- large screens: a calm, wider grid ---------- */
@media (min-width: 900px) {
  .nav-add { background: var(--act); color: #FBF8F2; border-radius: var(--r); }
  .nav-add .nav-plus { background: transparent; }
  .grid.two { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
  .page-title { font-size: 48px; }
}
@media (min-width: 1280px) {
  .grid.two { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* shop windows on a phone: two calm columns instead of three tight ones */
@media (max-width: 899px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}

/* phones: a short Discover header, so the first things show sooner */
@media (max-width: 599px) {
  .masthead.compact { padding-block: 0 8px; }
  .masthead.compact .page-title { font-size: 32px; }
  .masthead.compact .page-sub { font-size: 16px; margin-top: 2px; }
  .masthead.compact .page-what { display: none; }
  .masthead.compact .club-tag { margin-top: 6px; font-size: 10px; }
}
/* the heart sits in the corner of the mat, not on the item */
.heart { width: 40px; height: 40px; right: 0; bottom: 0; }
.heart::before { width: 26px; height: 26px; }
.heart svg { width: 13px; height: 13px; }

/* price and town on one line */
.meta .row2 { justify-content: flex-start; flex-wrap: nowrap; min-width: 0; }
.meta .row2 .city { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.meta .row2 .p { flex: none; }

/* swipe through an item's photos right in the grid */
.tile[data-photos] { touch-action: pan-y; }
.tile .dots { position: absolute; left: 0; right: 0; bottom: 3.2%; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.tile .dots i { width: 12px; height: 2px; border-radius: 1px; background: rgba(36,34,29,.18); transition: background .15s, width .15s; }
.tile .dots i.on { width: 20px; background: var(--ink); }
.tile .flip { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border: 0; border-radius: 50%; background: rgba(251,248,242,.92); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; display: flex; align-items: center; justify-content: center; padding: 0; }
.tile .flip.prev { left: 4px; } .tile .flip.next { right: 4px; }
@media (hover: hover) { .card:hover .tile .flip { opacity: 1; } }
@media (hover: none) { .tile .flip { display: none; } }
.tile img.swap { animation: tileIn .18s ease; }
@keyframes tileIn { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tile img.swap { animation: none; } }

/* save = a bookmark: filled ink when saved (no rose) */
.heart.on, .heart-big.on { color: var(--ink); }
.heart.on svg path, .heart-big.on svg path { fill: var(--ink); }
.heart svg path, .heart-big svg path { stroke-width: 1.5; }
/* item page: how many people saved it, beside the bookmark */
.float-heart { width: auto; min-width: 40px; padding: 0 12px; gap: 6px; border-radius: 20px; }
.float-heart .save-n { font-size: 13px; font-variant-numeric: tabular-nums; }
.float-heart .save-n:empty { display: none; }

/* the name as a logo: "MAISON de la SUITE" — linking words in soft italics */
.bm-c { font-family: var(--serif); font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0;
  font-size: 1.32em; line-height: 0; color: var(--muted, #6E675B); margin: 0 .08em; }
.nav-brand, .brand, .login-brand { white-space: nowrap; }

/* covers: a touch warmer and softer so white backgrounds and black shoes don't glare (the photos themselves are unchanged) */
.tile img, .mag-tile img, .window-tile img, .pick-img img, .mag-hero-img img, .slide img {
  filter: brightness(.96) contrast(.9) saturate(.92) sepia(.06); }
.tile img { box-shadow: 0 1px 3px rgba(36,34,29,.10), 0 8px 22px rgba(36,34,29,.11); }
.card.closed .tile img { box-shadow: none; }

/* the name a size larger everywhere */
.brand { font-size: 14px; letter-spacing: .22em; }
@media (min-width: 900px) { .nav-brand { font-size: 15px; } }
/* sign-in: two typefaces only — the name and labels in sans, the slogan and heading in serif; no empty band on top */
.login { justify-content: flex-start; min-height: 0; padding-top: 20px; gap: 10px; }
.login-lang { margin: 0 -5px 18px 0; }
.login-brand { font-size: 19px; letter-spacing: .22em; font-weight: 500; }
.login p.login-slogan { margin: 4px 0 0; font-size: 19px; }
.login p.club-tag { font-family: var(--sans); font-style: normal; font-size: 10.5px; letter-spacing: .2em; color: var(--ink-2); margin: 6px 0 30px; }
/* the arches above the name on sign-in, invitation and welcome pages */
.login-brand .logo-mark { display: block; width: 78px; height: auto; margin: 0 auto 18px; color: var(--ink); }
/* photo tips: the "several things at once" note */
.tips-batch { display: flex; gap: 14px; align-items: center; background: #EFE9DE; border-radius: 14px; padding: 12px 14px; margin: 14px 0 4px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.tips-batch b { color: var(--ink); font-weight: 600; }
.tips-batch .tip-ic { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #FBF8F2; display: flex; align-items: center; justify-content: center; color: var(--ink); }

/* category circles: same soft treatment as the covers (they fill the whole circle, so a touch more) */
.hl-in img { filter: brightness(.93) contrast(.9) saturate(.9) sepia(.08); }
/* shop links: keep each one on a single line, wrap between them */
.share-row { flex-wrap: wrap; justify-content: center; row-gap: 6px; column-gap: 20px; }
.share-row > span[aria-hidden] { display: none; }
.share-row a.text-btn, .share-row button.text-btn { display: inline-flex; align-items: center; white-space: nowrap; letter-spacing: .12em; font-size: 11.5px; line-height: 1.2; min-height: 32px; padding: 0; margin: 0; }
