/* The Fashion Library — warm paper, library green, editorial serif. */

:root {
  --paper: #f7f3ec;
  --paper-2: #eee7da;
  --card: #ffffff;
  --ink: #1c1a17;
  --ink-2: #3f3b35;
  --muted: #6f695f;
  --line: #e2dacb;
  --green: #1f3d33;
  --green-2: #2d5848;
  --gold: #b88a4a;
  --gold-soft: #dcc59d;
  --sale: #b3362b;
  --radius: 14px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1320px;
  --heart-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3s-7.4-4.5-9.2-9C1.5 8 3.6 4.6 7.1 4.6c2 0 3.4 1.1 4.9 2.9 1.5-1.8 2.9-2.9 4.9-2.9 3.5 0 5.6 3.4 4.3 6.7-1.8 4.5-9.2 9-9.2 9z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
  --heart-filled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3s-7.4-4.5-9.2-9C1.5 8 3.6 4.6 7.1 4.6c2 0 3.4 1.1 4.9 2.9 1.5-1.8 2.9-2.9 4.9-2.9 3.5 0 5.6 3.4 4.3 6.7-1.8 4.5-9.2 9-9.2 9z' fill='black' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .wrap { padding-left: 28px; padding-right: 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- header ---------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
@media (min-width: 960px) {
  .site-header { position: sticky; top: 0; background: rgba(247, 243, 236, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
}
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding-top: 12px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--green); }
.logo-mark { width: 38px; height: 38px; flex: none; margin-top: -4px; --logo-acc: var(--gold); --logo-cut: var(--paper); }
.wordmark { font-family: var(--serif); font-size: 21px; font-weight: 560; letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.wordmark em { font-style: italic; font-weight: 400; color: var(--green-2); }

.search { order: 3; flex: 1 1 100%; position: relative; margin: 0; }
.search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 16px 0 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: #9a9387; }
.search input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(45, 88, 72, .14); }

.shelf-link { margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 14px; }
.shelf-link svg { width: 22px; height: 22px; }
.shelf-link:hover, .shelf-link[aria-current] { background: var(--paper-2); }
.shelf-label { display: none; }
.shelf-count { position: absolute; top: 1px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }

.main-nav { display: flex; gap: 2px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 6px 13px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.main-nav a:hover { background: var(--paper-2); }
.main-nav a[aria-current="page"] { background: var(--green); color: #fff; }
.main-nav .nav-deals { color: var(--sale); }

@media (min-width: 960px) {
  .header-row { flex-wrap: nowrap; padding-bottom: 6px; }
  .search { order: 0; flex: 1 1 auto; max-width: 580px; margin: 0 auto; }
  .shelf-link { margin-left: 0; }
  .shelf-label { display: inline; }
  .shelf-count { position: static; }
}

/* ---------- hero / page heads ---------- */

.hero { padding-top: 26px; padding-bottom: 6px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin: 0 0 12px; max-width: 15ch; font-family: var(--serif); font-size: clamp(32px, 5.6vw, 60px); font-weight: 480; line-height: 1.02; letter-spacing: -.025em; }
.hero h1 em, .notfound h1 em { font-style: italic; font-weight: 400; color: var(--green-2); }
.hero .lede { max-width: 60ch; margin: 0 0 18px; font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-2); }
.store-strip { display: flex; gap: 8px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
.store-strip::-webkit-scrollbar { display: none; }
.store-pill { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; font-size: 13px; font-weight: 500; transition: border-color .15s; }
.store-pill span { margin-left: 6px; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.store-pill:hover { border-color: var(--green-2); }

.page-head { padding-top: 22px; padding-bottom: 4px; }
.crumbs { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head h1 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(28px, 4.2vw, 44px); font-weight: 480; line-height: 1.08; letter-spacing: -.02em; }
.page-head .lede { max-width: 72ch; margin: 0 0 12px; color: var(--ink-2); }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--green-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink-2); }
.btn-primary { width: 100%; height: 48px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-sm { height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 500; cursor: pointer; }
.btn-more { height: 46px; padding: 0 30px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.btn-more:hover { background: var(--ink); color: #fff; }
.link { padding: 0; border: 0; background: none; color: var(--green-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- browse layout ---------- */

.browse { padding-top: 6px; padding-bottom: 40px; }
@media (min-width: 960px) {
  .browse { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; }
  .sidebar { position: sticky; top: 112px; max-height: calc(100vh - 128px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
}

/* filters */
.filters-head { display: flex; align-items: center; gap: 12px; }
.filters-head h2 { flex: 1; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.filters-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper-2); font-size: 22px; line-height: 1; cursor: pointer; }
.fgroup { min-width: 0; margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup legend { margin-bottom: 8px; padding: 0; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.opt input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--green); cursor: pointer; }
.opt-label { flex: 1; }
.opt-n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { display: inline-grid; place-items: center; min-width: 46px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; font-weight: 500; cursor: pointer; }
.size input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.size input:focus-visible + span { outline: 2px solid var(--green-2); outline-offset: 2px; }
.price { display: flex; align-items: center; gap: 8px; }
.price input { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); -moz-appearance: textfield; appearance: textfield; }
.price input::-webkit-inner-spin-button, .price input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.filters-foot { display: none; }
.filters-overlay { display: none; }

@media (max-width: 959px) {
  .sidebar-ad { display: none; }
  .filters { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column; width: min(380px, 92vw); background: var(--paper); box-shadow: -12px 0 40px rgba(0, 0, 0, .18); transform: translateX(105%); transition: transform .25s ease; }
  .filters.open { transform: none; }
  .filters-head { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .filters-body { flex: 1; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
  .filters-foot { display: block; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .filters-overlay { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(20, 18, 15, .42); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.drawer-open { overflow: hidden; }
  body.drawer-open .filters-overlay { opacity: 1; pointer-events: auto; }
}
@media (min-width: 960px) {
  .filters-close, .btn-filters { display: none !important; }
  .filters-head { padding-bottom: 4px; }
}

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
@media (max-width: 959px) {
  .toolbar { position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
}
@media (min-width: 768px) and (max-width: 959px) { .toolbar { margin: 0 -28px; padding: 10px 28px; } }
.tabs { display: flex; gap: 2px; max-width: 100%; padding: 4px; border-radius: 999px; background: var(--paper-2); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.tab span { margin-left: 2px; color: var(--muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.tab[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .09); }
.toolbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-filters { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; cursor: pointer; }
.btn-filters svg { width: 18px; height: 18px; }
.btn-filters .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.sort select { height: 38px; padding: 0 34px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%236f695f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; font-size: 14px; cursor: pointer; -webkit-appearance: none; appearance: none; }

.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 16px; }
.count { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; cursor: pointer; }
.chip > span[aria-hidden] { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--paper-2); font-size: 13px; line-height: 1; }
.chip:hover { border-color: var(--ink-2); }

/* ---------- product grid ---------- */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; } }

.card { position: relative; min-width: 0; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card-link:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 10px 2px 0; }
.card-store { margin: 0 0 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.card-title { display: -webkit-box; margin: 0 0 4px; overflow: hidden; font-size: 14px; font-weight: 400; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-link:hover .card-title { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.card-price { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.card-price strong { font-weight: 600; }
.card-price s { margin-left: 4px; color: var(--muted); font-size: 12px; }
.card:has(.card-badge) .card-price strong { color: var(--sale); }
.card-badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.card-save { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); cursor: pointer; transition: transform .15s; }
.card-save[aria-pressed="true"] { color: var(--sale); }
/* the ♡ is drawn once here (outline, and filled when saved) rather than inside every card */
.heart { display: block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--heart-outline) center / contain no-repeat; mask: var(--heart-outline) center / contain no-repeat; }
.card-save[aria-pressed="true"] .heart { -webkit-mask-image: var(--heart-filled); mask-image: var(--heart-filled); }
.card-save:active { transform: scale(.88); }

.more { display: flex; justify-content: center; padding: 30px 0 6px; }

.empty { grid-column: 1 / -1; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.empty p { margin: 0 auto 16px; max-width: 42ch; color: var(--ink-2); }

/* ---------- ads ---------- */

.ad { display: block; margin: 10px 0 18px; text-align: center; }
.ad-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.ad-ph { display: grid; place-items: center; min-height: 90px; border: 1px dashed #cdc2ae; border-radius: 12px; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(0, 0, 0, .018) 10px 20px); color: #a0968a; font-size: 13px; }
.grid .ad { grid-column: 1 / -1; margin: 0; }
.grid .ad-ph { min-height: 120px; }
.sidebar-ad .ad { margin-top: 20px; }
.sidebar-ad .ad-ph { min-height: 250px; }

/* ---------- explore (category links) ---------- */

.explore { padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.explore h2 { margin: 0 0 22px; font-family: var(--serif); font-size: 28px; font-weight: 480; letter-spacing: -.01em; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.explore h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.explore h3 a { color: var(--gold); text-decoration: none; }
.explore ul { margin: 0; padding: 0; list-style: none; }
.explore li a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; text-decoration: none; }
.explore li a span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.explore li a:hover { color: var(--green-2); text-decoration: underline; }

/* ---------- stores directory ---------- */

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; padding-top: 10px; padding-bottom: 60px; }
.store-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 18px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--card); }
.store-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.store-thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--paper-2); }
.store-card h2 { margin: 0; padding: 0 4px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.store-card h2 a { text-decoration: none; }
.store-card h2 a:hover { text-decoration: underline; }
.store-meta, .store-cats { margin: 0; padding: 0 4px; font-size: 13px; color: var(--muted); }
.store-cats { color: var(--ink-2); }
.store-actions { display: flex; gap: 8px; margin-top: auto; padding: 10px 4px 0; }

/* ---------- prose pages ---------- */

.prose { max-width: 760px; padding-top: 26px; padding-bottom: 72px; }
.prose h1 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(32px, 5vw, 48px); font-weight: 480; line-height: 1.06; letter-spacing: -.02em; }
.prose h2 { margin: 38px 0 10px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.prose .intro { font-size: 19px; color: var(--ink); }
.prose a { color: var(--green-2); }
.prose ul { padding-left: 20px; }
.prose .note { padding: 14px 18px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--card); }

.notfound { padding-top: 80px; padding-bottom: 100px; text-align: center; }
.notfound h1 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(34px, 6vw, 60px); font-weight: 480; letter-spacing: -.02em; }
.notfound .lede { margin: 0 auto 24px; max-width: 46ch; color: var(--ink-2); }

/* ---------- product page ---------- */

.product { padding-top: 18px; padding-bottom: 8px; }
.product-main { display: grid; gap: 22px; margin-top: 10px; }
@media (min-width: 900px) { .product-main { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; align-items: start; } }
.product-media { min-width: 0; }
/* photo slider */
.gallery { position: relative; }
.gallery-track { display: flex; aspect-ratio: 3 / 4; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--paper-2); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .14); transform: translateY(-50%); cursor: pointer; transition: opacity .15s; }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.gallery-dots { position: absolute; right: 0; bottom: 12px; left: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery-dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .65); box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); transition: width .2s; }
.gallery-dots span.on { width: 18px; background: #fff; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumb { flex: 0 0 58px; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: var(--paper-2); cursor: pointer; }
.gallery-thumb.on { border-color: var(--green); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .gallery-nav { display: none; } }
@media (min-width: 900px) { .gallery-dots { display: none; } }
.product-info { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.product-store { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.product-store:hover { color: var(--ink); text-decoration: underline; }
.product-info h1 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); font-weight: 480; line-height: 1.12; letter-spacing: -.015em; }
.product-price { margin: 0; font-size: 22px; font-variant-numeric: tabular-nums; }
.product-price strong { font-weight: 600; }
.product-price s { margin-left: 6px; color: var(--muted); font-size: 16px; }
.product-off { margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 13px; font-weight: 600; vertical-align: 3px; }
.product:has(.product-off) .product-price strong { color: var(--sale); }
.product-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.product-sizes div { display: flex; flex-wrap: wrap; gap: 6px; }
.product-size { display: inline-grid; place-items: center; min-width: 44px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; font-weight: 500; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-buy { flex: 1 1 220px; height: 50px; padding: 0 26px; font-size: 16px; font-weight: 600; }
.product-save { height: 50px; gap: 8px; font-weight: 500; cursor: pointer; }
.product-save svg { width: 20px; height: 20px; }
.product-save[aria-pressed="true"] { color: var(--sale); border-color: rgba(179, 54, 43, .35); }
.product-save[aria-pressed="true"] svg path { fill: currentColor; }
.product-note { margin: 0; color: var(--muted); font-size: 13px; }
.product-facts { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--ink-2); font-size: 14px; }
.product-facts a { color: var(--green-2); }

/* rows of related pieces under a product, and "Recently viewed" */
.rail { padding-top: 26px; padding-bottom: 8px; }
.rail h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 24px; font-weight: 480; letter-spacing: -.01em; }
.rail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 640px) { .rail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; } }
.rail-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.rail-scroll .card-title { font-size: 13px; }
.rail-scroll .card-save { width: 32px; height: 32px; }

/* ---------- price drops on saved pieces ---------- */

.drop-banner { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px 14px; border: 1px solid #bfe0c8; border-radius: var(--radius); background: #e8f4eb; color: #1d4a2e; }
.drop-banner p { flex: 1; margin: 0; font-size: 14px; }
.drop-banner a { color: #1d4a2e; font-weight: 600; }
.drop-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #2f7a4f; color: #fff; font-weight: 700; }
.drop-close { padding: 4px 8px; border: 0; background: none; color: #1d4a2e; font-size: 22px; line-height: 1; cursor: pointer; }
.product-drop, .card-drop { margin: 0; color: #2f7a4f; font-size: 14px; font-weight: 600; }
.card-drop { margin-top: 3px; font-size: 12px; }

/* ---------- guides ---------- */

.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rail-head h2 { margin: 0; }
.rail-head a { color: var(--green-2); font-size: 14px; font-weight: 500; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.guide-index { padding-top: 10px; padding-bottom: 56px; }
.guide-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); background: var(--card); color: inherit; text-decoration: none; transition: border-color .15s; }
.guide-card:hover { border-color: var(--ink-2); }
.guide-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.guide-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.guide-card-body { padding: 14px 16px 18px; }
.guide-card h3 { margin: 4px 0 6px; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.2; }
.guide-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.guide-card .guide-date { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.guide { max-width: 860px; padding-top: 22px; padding-bottom: 20px; }
.guide-head h1 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(32px, 5vw, 50px); font-weight: 480; line-height: 1.06; letter-spacing: -.02em; }
.guide-head .lede { margin: 0 0 12px; color: var(--ink-2); font-size: 19px; }
.guide-meta { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.like-summary { margin: -6px 0 16px; color: var(--sale); font-size: 14px; font-weight: 600; }
.like-summary.is-empty { color: var(--muted); font-weight: 400; }
.guide-likes { margin-left: 10px; color: var(--sale); letter-spacing: 0; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.guide-actions-end { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.guide-actions-end p { margin: 0 6px 0 0; font-family: var(--serif); font-size: 18px; }
.like-btn, .share-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.like-btn:hover, .share-btn:hover { border-color: var(--ink-2); }
.like-btn svg { width: 18px; height: 18px; }
.like-btn[aria-pressed="true"] { border-color: rgba(179, 54, 43, .35); color: var(--sale); }
.like-btn[aria-pressed="true"] svg path { fill: currentColor; }
.like-btn:disabled { opacity: .6; cursor: wait; }
.like-count { color: var(--muted); font-weight: 400; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }

.guide-body { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
/* only the article's own text — not the product cards placed inside it */
.guide-body > h2 { margin: 40px 0 10px; color: var(--ink); font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.2; }
.guide-body > h3 { margin: 28px 0 8px; color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 500; }
.guide-body > p, .guide-body > ul, .guide-body > ol { margin: 0 0 16px; }
.guide-body > ul, .guide-body > ol { padding-left: 22px; }
.guide-body > ul li, .guide-body > ol li { margin: 4px 0; }
.guide-body :is(p, li, blockquote) a { color: var(--green-2); }
.guide-body > p strong, .guide-body li strong { color: var(--ink); }
.guide-body > blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink); }
.guide-body > blockquote p { margin: 0; }
.guide-body p > img { margin: 18px 0; border-radius: var(--radius); }
.guide-body > hr { margin: 30px 0; border: 0; border-top: 1px solid var(--line); }
.guide-body code { padding: 1px 6px; border-radius: 6px; background: var(--paper-2); font-size: .9em; }
.guide-products { margin: 22px 0 28px; padding: 18px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); background: var(--card); font-size: 15px; line-height: 1.5; }
.guide-products .rail-grid { gap: 18px 12px; }
.guide-more { margin: 14px 0 0 !important; text-align: right; font-weight: 600; }

/* comments */
.comments { max-width: 860px; padding-top: 30px; padding-bottom: 20px; }
.comments h2 { margin: 0 0 16px; font-family: var(--serif); font-size: 26px; font-weight: 480; }
.comment-count { color: var(--muted); font-family: var(--sans); font-size: 16px; }
.comment-signin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.comment-signin p { margin: 0; }
.comment-signin > p:first-child { flex: 1 1 220px; color: var(--ink-2); }
.comment-box { display: flex; gap: 12px; }
.comment-main { flex: 1; min-width: 0; }
.comment-box textarea { width: 100%; min-height: 90px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font: inherit; font-size: 15px; resize: vertical; }
.comment-box textarea:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px rgba(45, 88, 72, .14); }
.comment-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.comment-hint { color: var(--muted); font-size: 13px; }
.comment-msg { margin: 8px 0 0; color: var(--sale); font-size: 13px; }
.comment-msg:empty { display: none; }
.comment-list { margin: 22px 0 0; padding: 0; list-style: none; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.comment-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; object-fit: cover; }
.comment-head { margin: 0 0 4px; font-size: 14px; }
.comment-head time { margin-left: 6px; color: var(--muted); font-size: 13px; }
.comment-text { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.comment-tools { margin: 6px 0 0; font-size: 12px; }
.comment-tools .link { color: var(--muted); font-size: 12px; }
.comment-empty { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- account (Google sign-in on My shelf) ---------- */

.account { margin: 8px 0 10px; max-width: 760px; }
.account-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.account-card.is-in { border-color: rgba(45, 88, 72, .35); }
.account-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-text strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.account-text span { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.account-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 600; object-fit: cover; }
.account-actions { display: flex; gap: 16px; }
.link.danger { color: var(--sale); }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 18px; border: 1px solid #dadce0; border-radius: 999px; background: #fff; color: #1f1f1f; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c9cc; }
.btn-google:disabled { opacity: .6; cursor: wait; }
.btn-google svg { width: 18px; height: 18px; }
.account-msg { margin: 8px 2px 0; color: var(--ink-2); font-size: 13px; }
@media (max-width: 520px) { .btn-google { width: 100%; } }

/* ---------- footer ---------- */

.site-footer { padding: 48px 0 24px; background: var(--green); color: #e9e4d8; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
.site-footer .logo { color: #f3eee4; }
.site-footer .logo-mark { --logo-acc: var(--gold-soft); --logo-cut: var(--green); }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark em { color: var(--gold-soft); }
.footer-brand p { max-width: 40ch; color: #c5d0c9; font-size: 14px; }
.site-footer h3 { margin: 0 0 10px; color: var(--gold-soft); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #e9e4d8; font-size: 14px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a7b6ac; font-size: 12px; }
.footer-fine p { margin: 0; max-width: 80ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- readers' guides: write page, review page, reader guide pages ---------- */
.page-actions { margin: 2px 0 14px; }
.write-page { max-width: 820px; padding-top: 22px; padding-bottom: 72px; }
.write-page h1 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(30px, 4.6vw, 46px); font-weight: 480; line-height: 1.06; letter-spacing: -.02em; }
.write-page > .lede { max-width: 66ch; margin: 0 0 18px; color: var(--ink-2); font-size: 17px; }
.write-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: step; }
.write-steps li { counter-increment: step; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink-2); font-size: 14px; }
.write-steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; font-weight: 600; }
.write-steps strong { color: var(--ink); }
.write-who { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.write-who p { margin: 0; color: var(--ink-2); }
.write-who .link { margin-left: 6px; }
.write-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; position: relative; }
.field label, .field-label { font-weight: 600; font-size: 14px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.write-form input:not([type=checkbox]):not([type=file]), .write-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font: inherit; font-size: 16px; line-height: 1.5; }
.write-form textarea { resize: vertical; }
.write-form input:focus, .write-form textarea:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px rgba(45, 88, 72, .14); }
.field-count { justify-self: end; margin-top: -2px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.field-hint { margin: 0; color: var(--muted); font-size: 13px; }
.field-hint:empty { display: none; }
.field-hint code { padding: 1px 5px; border-radius: 5px; background: var(--paper-2); font-size: 12px; }
.photo-drop { display: grid; place-items: center; min-height: 220px; overflow: hidden; border: 1.5px dashed var(--gold-soft); border-radius: var(--radius); background: var(--card); cursor: pointer; text-align: center; }
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--green-2); }
.photo-empty { display: grid; gap: 4px; padding: 24px; color: var(--ink-2); }
.photo-empty strong { color: var(--green); font-size: 16px; }
.photo-empty small { color: var(--muted); font-size: 13px; }
.photo-preview { width: 100%; max-height: 520px; object-fit: contain; background: var(--paper-2); }
.write-preview { min-height: 200px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.write-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.write-actions .btn { height: 46px; padding: 0 24px; font-size: 15px; }
.write-msg { flex: 1 1 240px; margin: 0; color: var(--ink-2); font-size: 14px; }
.my-guides { margin-top: 40px; }
.my-guides h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 24px; font-weight: 480; }
.my-guide-list { margin: 0; padding: 0; list-style: none; }
.my-guide { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.my-guide img { flex: none; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.my-guide p { margin: 0 0 4px; }
.my-guide-meta { color: var(--muted); font-size: 13px; }
.my-guide-note { color: var(--ink-2); font-size: 13px; }
.my-guide-note a { color: var(--green-2); }
.status { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.status-approved { background: #e2efe7; color: var(--green); }
.status-rejected { background: #f6e3e0; color: var(--sale); }
.review-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.review-who { margin: 0; color: var(--muted); font-size: 14px; }
.review-note { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--card); color: var(--ink-2); font-size: 14px; }
.review-setup { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink-2); }
.review-setup p { margin: 0 0 10px; }
.review-uid { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review-uid code { padding: 6px 10px; border-radius: 8px; background: var(--paper-2); font-size: 14px; word-break: break-all; }
.review-card { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 18px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); background: var(--card); }
.review-photo img { width: 100%; aspect-ratio: 4 / 5; border-radius: 10px; object-fit: cover; }
.review-main { min-width: 0; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.review-meta .comment-avatar { width: 28px; height: 28px; font-size: 12px; }
.review-meta strong { color: var(--ink); }
.review-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.review-desc { margin: 0 0 10px; color: var(--ink-2); }
.review-card details { margin: 0 0 14px; }
.review-card summary { color: var(--green-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.review-card details .guide-body { margin-top: 12px; font-size: 16px; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
@media (max-width: 640px) { .review-card { grid-template-columns: 1fr; } .review-photo img { aspect-ratio: 16 / 10; } }
.guide-hero { display: flex; justify-content: center; margin: 4px 0 26px; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.guide-hero img { width: auto; max-width: 100%; height: auto; max-height: min(640px, 75vh); }
.guide-ugc { margin: 26px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--paper-2); color: var(--muted); font-size: 14px; }
.write-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; max-width: 860px; margin-top: 30px; margin-bottom: 10px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.write-cta h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 24px; font-weight: 480; }
.write-cta p { margin: 0; max-width: 56ch; color: var(--ink-2); }
