/* ==========================================================================
   Sairabloom — design system
   Palette: soft cream · warm beige · deep burgundy · elegant rose · dark charcoal
   Type: Cormorant Garamond (display) + Jost (text)
   ========================================================================== */
:root {
  --cream: #faf6f0;
  --cream-2: #f5eee4;
  --beige: #e9dcc9;
  --beige-2: #d9c6ab;
  --burgundy: #6e1f2f;
  --burgundy-2: #8a2c3f;
  --burgundy-ink: #4d1420;
  --rose: #c98a8f;
  --rose-soft: #f3e0de;
  --charcoal: #2b2628;
  --ink: #3a3335;
  --muted: #776b6e;
  --line: #e7dccd;
  --white: #fffdfa;
  --success: #2f6b46;
  --success-bg: #e5f1e8;
  --warn: #8a5a12;
  --warn-bg: #fbf0db;
  --danger: #a12a2a;
  --danger-bg: #fbe7e5;
  --info-bg: #efe7f0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(43, 38, 40, .05), 0 10px 30px -12px rgba(77, 20, 32, .18);
  --shadow-lg: 0 30px 60px -25px rgba(77, 20, 32, .35);
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-text: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16px/1.6 var(--font-text); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--burgundy-2); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--charcoal); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.eyebrow { font: 500 .78rem/1 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; display: inline-block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 28px } .mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--font-text); letter-spacing: .02em; cursor: pointer;
  background: var(--burgundy); color: #fff; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--burgundy-2); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(110, 31, 47, .6); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: #fff; }
.btn-light { background: var(--white); color: var(--charcoal); border-color: var(--line); }
.btn-light:hover { background: var(--cream-2); color: var(--charcoal); box-shadow: none; }
.btn-rose { background: var(--rose); }
.btn-rose:hover { background: #b9767b; }
.btn-ghost { background: transparent; color: var(--ink); padding: 8px 12px; }
.btn-ghost:hover { background: var(--cream-2); color: var(--burgundy); box-shadow: none; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #861f1f; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--burgundy); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.topbar { background: var(--charcoal); color: #e9dcc9; font-size: .8rem; letter-spacing: .04em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.topbar a, .topbar select { color: #e9dcc9; }
.topbar select { background: transparent; border: 0; font: inherit; cursor: pointer; width: auto; padding: 0 2px; box-shadow: none; color: #e9dcc9; }
.topbar .flex { flex-wrap: nowrap; }
.topbar select option { color: var(--charcoal); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.logo { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--burgundy); letter-spacing: .01em; display: flex; align-items: center; gap: 8px; line-height: 1; }
.logo svg { width: 30px; height: 30px; }
.logo:hover { color: var(--burgundy); }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { color: var(--ink); padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--burgundy); background: var(--cream-2); }
.header-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.header-search input[type=search] { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 11px 16px 11px 42px; font: inherit; font-size: .92rem; }
.header-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; color: var(--charcoal); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--cream-2); color: var(--burgundy); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--burgundy); color: #fff; font-size: .68rem; display: grid; place-items: center; font-weight: 600; }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font: inherit; color: var(--ink); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--beige); display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--burgundy); flex: none; }
.avatar-lg { width: 96px; height: 96px; font-size: 2.4rem; }
.avatar-xl { width: 132px; height: 132px; font-size: 3rem; border: 5px solid var(--cream); box-shadow: var(--shadow); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px; display: none; }
.dropdown.open { display: block; animation: pop .18s var(--ease); }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--cream-2); color: var(--burgundy); }
.menu-toggle { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }

/* ---------- Flash ---------- */
.flashes { position: fixed; top: 92px; right: 18px; z-index: 80; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.flash { padding: 14px 44px 14px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .94rem; position: relative; animation: slidein .35s var(--ease); background: var(--white); border-left: 4px solid var(--burgundy); }
.flash-success { border-color: var(--success); }
.flash-error { border-color: var(--danger); }
.flash-info { border-color: var(--rose); }
.flash button { position: absolute; top: 8px; right: 8px; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
@keyframes slidein { from { opacity: 0; transform: translateX(30px) } to { opacity: 1; transform: none } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(201, 138, 143, .35), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(233, 220, 201, .9), transparent 60%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 500; line-height: .98; }
.hero h1 em { font-style: italic; color: var(--burgundy); font-weight: 600; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 22px 0 30px; }
.hero-search { display: flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); max-width: 600px; }
.hero-search select { border: 0; background: var(--cream-2); border-radius: 999px; padding: 0 14px; font: inherit; color: var(--ink); cursor: pointer; }
.hero-search input { flex: 1; border: 0; background: transparent; padding: 14px 16px; font: inherit; font-size: 1rem; min-width: 0; outline: none; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; font-size: .86rem; }
.hero-tags a { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255, 253, 250, .7); }
.hero-tags a:hover { border-color: var(--rose); color: var(--burgundy); }
.hero-visual { position: relative; height: 560px; }
.hero-visual .frame { position: absolute; border-radius: 220px 220px 18px 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--beige); }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .f1 { width: 58%; height: 82%; right: 4%; top: 0; }
.hero-visual .f2 { width: 42%; height: 52%; left: 0; bottom: 0; border-radius: 18px 18px 160px 160px; border: 8px solid var(--cream); }
.hero-visual .stat-chip { position: absolute; left: 10%; top: 12%; background: var(--white); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); font-size: .85rem; animation: float 6s ease-in-out infinite; }
.hero-visual .stat-chip strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--burgundy); line-height: 1; }
.hero-visual .ring { position: absolute; right: -40px; bottom: 30px; width: 180px; height: 180px; border: 1px dashed var(--rose); border-radius: 50%; animation: spin 40s linear infinite; }
@keyframes float { 50% { transform: translateY(-10px) } }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-dark { background: var(--charcoal); color: #e9dcc9; }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 560px; }
.see-all { font-weight: 500; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-flat { background: var(--cream-2); border: 0; }
.card h3 { margin-top: 0; }

.p-card { position: relative; display: flex; flex-direction: column; }
.p-card .thumb { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--beige); }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.p-card:hover .thumb img { transform: scale(1.06); }
.p-card .meta { padding: 14px 2px 0; }
.p-card .title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; color: var(--charcoal); line-height: 1.2; display: block; margin-bottom: 4px; }
.p-card .seller { font-size: .84rem; color: var(--muted); }
.p-card .price { margin-top: 6px; font-weight: 500; color: var(--charcoal); }
.p-card .price s { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: .88rem; }
.p-card .tag { position: absolute; left: 12px; top: 12px; z-index: 2; }
.fav-btn { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 253, 250, .92); display: grid; place-items: center; cursor: pointer; color: var(--charcoal); transition: transform .2s, color .2s; }
.fav-btn:hover { transform: scale(1.08); color: var(--burgundy); }
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn.saved { color: var(--burgundy); }
.fav-btn.saved svg { fill: currentColor; }

.s-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.s-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.s-card .thumb { aspect-ratio: 4/3; background: var(--beige); overflow: hidden; position: relative; }
.s-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.s-card:hover .thumb img { transform: scale(1.05); }
.s-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.s-card .who { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.s-card .who .avatar { width: 26px; height: 26px; font-size: .8rem; }
.s-card .title { color: var(--charcoal); font-weight: 500; line-height: 1.35; }
.s-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); font-size: .88rem; }
.s-card .from { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.s-card .from strong { color: var(--charcoal); font-size: 1.05rem; letter-spacing: 0; text-transform: none; margin-left: 4px; }

.t-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.t-card .cover { height: 110px; background: linear-gradient(120deg, var(--beige), var(--rose-soft)); }
.t-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.t-card .avatar { width: 76px; height: 76px; border: 4px solid var(--white); margin: -40px auto 0; position: relative; font-size: 1.9rem; display: grid; }
.t-card .inner { padding: 8px 18px 20px; text-align: center; }
.t-card h3 { font-size: 1.3rem; margin: 8px 0 2px; }
.t-card .loc { font-size: .85rem; color: var(--muted); }
.t-card .chips { justify-content: center; margin: 12px 0; }
.t-card .row { display: flex; justify-content: space-between; font-size: .85rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; color: var(--muted); }
.t-card .row strong { color: var(--charcoal); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .76rem; padding: 4px 10px; border-radius: 999px; background: var(--cream-2); color: var(--ink); border: 1px solid var(--line); }
.chip-rose { background: var(--rose-soft); border-color: transparent; color: var(--burgundy-ink); }

.stars { color: #c08a2a; letter-spacing: 1px; font-size: .95rem; }
.stars .off { color: var(--beige-2); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--cream-2); color: var(--ink); white-space: nowrap; }
.badge-verified { background: var(--burgundy); color: #fff; }
.badge-featured, .badge-promoted { background: var(--rose); color: #fff; }
.badge-active, .badge-approved, .badge-paid, .badge-completed, .badge-visible, .badge-resolved, .badge-available, .badge-delivered { background: var(--success-bg); color: var(--success); }
.badge-pending, .badge-pending_payment, .badge-awaiting_payment, .badge-pending_verification, .badge-submitted, .badge-requested, .badge-open, .badge-unpaid, .badge-quoted, .badge-busy { background: var(--warn-bg); color: var(--warn); }
.badge-rejected, .badge-cancelled, .badge-suspended, .badge-failed, .badge-hidden, .badge-declined, .badge-refunded { background: var(--danger-bg); color: var(--danger); }
.badge-processing, .badge-accepted, .badge-in_production, .badge-ready, .badge-shipped, .badge-under_review, .badge-initiated { background: var(--info-bg); color: #5b3a6b; }
.verified-icon { width: 17px; height: 17px; color: var(--burgundy); vertical-align: -3px; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.cat-tile { position: relative; aspect-ratio: 1/1.15; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; padding: 18px; color: var(--cream); isolation: isolate; }
.cat-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tile, linear-gradient(160deg, var(--rose), var(--burgundy))); transition: transform .8s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, .25), transparent 55%), linear-gradient(transparent 45%, rgba(43, 38, 40, .55)); }
.cat-tile:hover::before { transform: scale(1.08); }
.cat-tile span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.cat-tile:hover { color: #fff; }
.cat-tile .ico { position: absolute; top: 16px; left: 16px; width: 38px; height: 38px; opacity: .85; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 3.4rem; font-weight: 500; color: var(--rose); line-height: 1; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); font-size: .96rem; }
.section-dark .step p { color: #c9bba6; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 28px; padding: 64px; background: radial-gradient(800px 300px at 90% 0%, rgba(201, 138, 143, .5), transparent 60%), var(--burgundy); color: var(--cream); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: #ecd8d4; }
.cta-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cta-band li { display: flex; gap: 10px; align-items: flex-start; }
.cta-band li::before { content: "✦"; color: var(--rose); }
.cta-band .btn { background: var(--cream); color: var(--burgundy); }
.cta-band .btn:hover { background: #fff; color: var(--burgundy); }

/* ---------- Testimonials ---------- */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.quote::before { content: "“"; position: absolute; top: -8px; left: 22px; font-family: var(--font-display); font-size: 6rem; color: var(--rose-soft); line-height: 1; }
.quote p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; color: var(--charcoal); position: relative; font-style: italic; }
.quote .by { font-size: .88rem; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; max-width: 640px; margin: 0 auto; }
.newsletter form { display: flex; gap: 8px; margin-top: 22px; background: var(--white); padding: 6px; border-radius: 999px; border: 1px solid var(--line); }
.newsletter input { flex: 1; border: 0; padding: 12px 18px; font: inherit; background: transparent; outline: none; min-width: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cdbfac; padding: 70px 0 30px; margin-top: 0; }
.site-footer .logo { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.site-footer h4 { color: var(--cream); font-family: var(--font-text); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .93rem; }
.site-footer a { color: #cdbfac; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(233, 220, 201, .15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(233, 220, 201, .3); display: grid; place-items: center; }
.socials svg { width: 17px; height: 17px; }

/* ---------- Page headers & listing layout ---------- */
.page-head { padding: 46px 0 26px; background: linear-gradient(180deg, var(--cream-2), var(--cream)); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.listing { display: grid; grid-template-columns: 270px 1fr; gap: 36px; padding: 36px 0 80px; align-items: start; }
.filters { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filters h4 { font-family: var(--font-text); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.filters .field { margin-bottom: 10px; }
.filters .range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters label.check { display: flex; gap: 8px; align-items: center; font-size: .92rem; margin: 6px 0; cursor: pointer; font-weight: 400; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: .92rem; }
.toolbar select { width: auto; }
.filter-toggle { display: none; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.active-filters a { font-size: .8rem; padding: 5px 10px; background: var(--rose-soft); border-radius: 999px; color: var(--burgundy-ink); }
.active-filters a::after { content: " ×"; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--charcoal); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; display: block; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(201, 138, 143, .18); }
textarea { min-height: 120px; resize: vertical; }
input[type=file] { font: inherit; font-size: .9rem; width: 100%; padding: 10px; border: 1px dashed var(--beige-2); border-radius: var(--radius-sm); background: var(--cream-2); }
input[type=checkbox], input[type=radio] { accent-color: var(--burgundy); width: 17px; height: 17px; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 4px; display: block; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; }
.check-grid label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; cursor: pointer; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin: 0 0 20px; background: var(--white); }
legend { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; padding: 0 8px; color: var(--charcoal); }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; background: var(--white); font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(110, 31, 47, .1); }
.radio-card strong { display: block; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 110px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: radial-gradient(600px 400px at 30% 20%, rgba(201, 138, 143, .55), transparent 60%), linear-gradient(160deg, var(--burgundy), var(--charcoal)); color: var(--cream); padding: 70px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-art h2 { color: var(--cream); font-size: 3rem; font-weight: 500; }
.auth-art p { color: #e2cfc8; max-width: 420px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 50px 22px; }
.auth-form .box { width: 100%; max-width: 440px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-switch label { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; text-align: center; cursor: pointer; background: var(--white); margin: 0; }
.role-switch input { position: absolute; opacity: 0; pointer-events: none; }
.role-switch label:has(input:checked) { border-color: var(--burgundy); background: var(--rose-soft); color: var(--burgundy-ink); }
.role-switch strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }

/* ---------- Product & service detail ---------- */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; padding: 40px 0 70px; align-items: start; }
.gallery .main { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--beige); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery.wide .main { aspect-ratio: 4/3; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.gallery .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--beige); }
.gallery .thumbs button.active { border-color: var(--burgundy); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { position: sticky; top: 96px; }
.buy-box h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.price-lg { font-size: 1.7rem; font-family: var(--font-display); font-weight: 600; color: var(--charcoal); }
.price-lg s { font-size: 1.1rem; color: var(--muted); margin-left: 8px; font-weight: 400; }
.opt-group { margin: 18px 0; }
.opt-group .opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--white); font-size: .92rem; transition: all .2s; }
.opt input:checked + span { border-color: var(--burgundy); background: var(--burgundy); color: #fff; }
.opt input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty button { width: 40px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 52px; border: 0; text-align: center; padding: 10px 0; border-radius: 0; }
.seller-box { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-top: 22px; }
.seller-box .avatar { width: 54px; height: 54px; font-size: 1.4rem; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.info-list li span:first-child { color: var(--muted); }
.prose { max-width: 70ch; }
.prose p { color: var(--ink); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button, .tabs a { padding: 12px 16px; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; cursor: pointer; color: var(--muted); white-space: nowrap; }
.tabs .active { color: var(--burgundy); border-color: var(--burgundy); }

.packages { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.packages .tabs { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.packages .tabs button { border-bottom-width: 3px; font-weight: 500; }
.package { padding: 22px; display: none; }
.package.active { display: block; animation: pop .25s var(--ease); }
.package .p-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.package .p-head h4 { margin: 0; font-family: var(--font-text); font-weight: 600; }
.package ul { padding-left: 18px; color: var(--muted); font-size: .92rem; }

.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review .head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review .reply { background: var(--cream-2); border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: .92rem; }

/* ---------- Tailor profile ---------- */
.profile-cover { height: 300px; background: linear-gradient(120deg, var(--beige), var(--rose-soft)); overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: end; margin-top: -66px; position: relative; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.profile-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 26px 0; }
.profile-stats div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.profile-stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--charcoal); line-height: 1.1; }
.profile-stats span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.profile-body { display: grid; grid-template-columns: 1fr 340px; gap: 44px; padding: 10px 0 80px; align-items: start; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.portfolio-grid a { aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--beige); display: block; }
.portfolio-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.portfolio-grid a:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; background: rgba(43, 38, 40, .92); z-index: 100; display: grid; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: 10px; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; padding: 36px 0 80px; align-items: start; }
.seller-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.seller-group .gh { padding: 14px 20px; background: var(--cream-2); display: flex; justify-content: space-between; font-size: .92rem; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: center; }
.line:first-of-type { border-top: 0; }
.line img, .line .ph { width: 84px; height: 100px; object-fit: cover; border-radius: 10px; background: var(--beige); }
.line .t { font-weight: 500; color: var(--charcoal); }
.summary { position: sticky; top: 96px; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 600; color: var(--charcoal); }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.bank-box { white-space: pre-line; background: var(--cream-2); border-radius: var(--radius); padding: 18px 20px; font-family: ui-monospace, Menlo, monospace; font-size: .92rem; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 30px; padding: 30px 0 80px; align-items: start; }
.dash-nav { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.dash-nav .who { display: flex; gap: 10px; align-items: center; padding: 6px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.dash-nav .who strong { display: block; font-size: .95rem; line-height: 1.2; }
.dash-nav .who span { font-size: .78rem; color: var(--muted); text-transform: capitalize; }
.dash-nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-size: .93rem; }
.dash-nav a:hover { background: var(--cream-2); color: var(--burgundy); }
.dash-nav a.active { background: var(--rose-soft); color: var(--burgundy-ink); font-weight: 500; }
.dash-nav .sep { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 14px 12px 6px; }
.dash-nav .count { background: var(--burgundy); color: #fff; font-size: .7rem; border-radius: 9px; padding: 1px 7px; }
.dash-main { min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head h1 { font-size: 2.1rem; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat span { font-size: .76rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.65rem; white-space: nowrap; color: var(--charcoal); line-height: 1.15; margin-top: 4px; }
.stat.accent { background: var(--burgundy); border-color: var(--burgundy); }
.stat.accent span, .stat.accent strong { color: var(--cream); }
.stat a { font-size: .82rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.panel > .ph { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel > .ph h3 { margin: 0; font-size: 1.3rem; }
.panel > .pb { padding: 20px; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .94rem; background: var(--warn-bg); color: #5c3c0b; border: 1px solid #f0dcb4; }
.notice.info { background: var(--info-bg); color: #4a2f57; border-color: #e1d3e6; }
.notice.success { background: var(--success-bg); color: var(--success); border-color: #cfe3d5; }
.notice.danger { background: var(--danger-bg); color: var(--danger); border-color: #f0c9c5; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 500; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--cream-2); white-space: nowrap; }
.table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #fffaf3; }
.table .thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--beige); }
.table form { display: inline; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.num { text-align: right; white-space: nowrap; }

.chart { width: 100%; height: auto; }
.chart .bar { fill: var(--rose); transition: fill .2s; }
.chart .bar:hover { fill: var(--burgundy); }
.chart .bar2 { fill: var(--burgundy); }
.chart text { font: 11px var(--font-text); fill: var(--muted); }
.chart .grid-line { stroke: var(--line); }

.progress { height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--rose), var(--burgundy)); border-radius: 99px; }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .92rem; }
.checklist .done { color: var(--success); }
.checklist .todo { color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 26px; font-size: .92rem; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { color: var(--muted); font-size: .8rem; }

.progress-steps { display: flex; gap: 0; margin: 10px 0 18px; overflow-x: auto; }
.progress-steps div { flex: 1; text-align: center; font-size: .74rem; color: var(--muted); position: relative; padding-top: 22px; min-width: 76px; }
.progress-steps div::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--beige); z-index: 1; }
.progress-steps div::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--beige); }
.progress-steps div:first-child::after { display: none; }
.progress-steps .on { color: var(--burgundy); font-weight: 500; }
.progress-steps .on::before, .progress-steps .on::after { background: var(--burgundy); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.measure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.measure-grid div { background: var(--cream-2); border-radius: 10px; padding: 10px 12px; }
.measure-grid span { display: block; font-size: .75rem; color: var(--muted); }
.files { display: flex; gap: 10px; flex-wrap: wrap; }
.files a { display: block; width: 110px; height: 110px; border-radius: 10px; overflow: hidden; background: var(--cream-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; text-align: center; padding: 0; }
.files img { width: 100%; height: 100%; object-fit: cover; }
.img-tiles { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.img-tiles .tile { position: relative; width: 110px; height: 110px; border-radius: 10px; overflow: hidden; background: var(--beige); }
.img-tiles .tile img { width: 100%; height: 100%; object-fit: cover; }
.img-tiles .tile form { position: absolute; top: 6px; right: 6px; }
.img-tiles .tile button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(43, 38, 40, .8); color: #fff; cursor: pointer; }

/* ---------- Messaging ---------- */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); height: calc(100vh - 200px); min-height: 520px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list a { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.chat-list a.active, .chat-list a:hover { background: var(--cream-2); }
.chat-list .preview { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.chat-list .name { font-weight: 500; font-size: .93rem; display: flex; gap: 6px; align-items: center; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--cream), var(--white)); }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--white); border: 1px solid var(--line); font-size: .94rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--burgundy); color: #fff; border-color: var(--burgundy); border-radius: 16px 16px 4px 16px; }
.msg .t { font-size: .7rem; opacity: .7; margin-top: 4px; display: block; }
.msg img { border-radius: 10px; margin-top: 6px; max-height: 240px; }
.msg.mine a { color: #fff; text-decoration: underline; }
.chat-form { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { min-height: 46px; max-height: 160px; flex: 1; border-radius: 22px; padding: 12px 16px; }
.attach-label { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--cream-2); margin: 0; flex: none; }
.attach-label input { display: none; }
.attach-label svg { width: 19px; }

/* ---------- Pagination & empty ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: .92rem; }
.pagination .current { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty svg { width: 54px; height: 54px; color: var(--rose); margin: 0 auto 14px; }
.empty h3 { color: var(--charcoal); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .header-search { display: none; }
}
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px 22px 18px; margin: 0; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .hero-grid, .detail, .profile-body, .cart-layout, .listing, .dash, .auth-wrap, .cta-band { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 60px; }
  .hero-visual { height: 340px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .filters { position: fixed; inset: 0 30% 0 0; z-index: 90; border-radius: 0; overflow-y: auto; transform: translateX(-105%); transition: transform .35s var(--ease); top: 0; }
  .filters.open { transform: none; box-shadow: var(--shadow-lg); }
  .filter-toggle { display: inline-flex; }
  .buy-box, .summary, .dash-nav { position: static; }
  .dash-nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .dash-nav .who, .dash-nav .sep { display: none; }
  .dash-nav a { white-space: nowrap; }
  .auth-art { display: none; }
  .profile-head { grid-template-columns: 1fr; text-align: left; }
  .cta-band { padding: 40px 28px; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-list { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-msgs { min-height: 50vh; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-2, .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .grid { gap: 16px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .s-grid-1 { grid-template-columns: 1fr !important; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-search { flex-wrap: wrap; border-radius: 22px; }
  .hero-search select { width: 100%; padding: 10px 14px; }
  .hero-search input { width: 100%; }
  .hero-search .btn { width: 100%; }
  .p-card .title { font-size: 1.05rem; }
  .line { grid-template-columns: 64px 1fr; }
  .line img, .line .ph { width: 64px; height: 78px; }
  .line > :last-child { grid-column: 2; }
  .topbar .hide-sm { display: none; }
  .logo { font-size: 1.6rem; }
  .user-menu > button span { display: none; }
  .header-actions .hide-sm, .header-actions a[aria-label="Saved"] { display: none; }
  .site-header .container { gap: 10px; }
  .header-actions { gap: 0; }
  .icon-btn { width: 38px; height: 38px; }
  .hero-visual { height: 280px; }
  .btn-ghost { padding: 8px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { inset: 0 0 0 0; }
}
@media print { .site-header, .topbar, .site-footer, .dash-nav, .btn { display: none !important; } }


/* Homepage photo background (Admin → Settings → Homepage photo) */
.hero--photo { background: linear-gradient(100deg, rgba(30, 10, 16, .88) 0%, rgba(77, 20, 32, .62) 42%, rgba(30, 10, 16, .1) 80%), var(--hero-img) center / cover no-repeat; padding: 140px 0 150px; min-height: min(82vh, 760px); display: flex; align-items: center; }
.hero--photo .container { width: 100%; }
.hero--photo .hero-grid { grid-template-columns: minmax(0, 640px); }
.hero--photo h1 { color: #fffaf5; }
.hero--photo h1 em, .hero--photo .eyebrow { color: #e8c7a9; }
.hero--photo .hero-lead { color: rgba(255, 250, 245, .86); }
.hero--photo .hero-tags .muted { color: rgba(255, 250, 245, .72); }
.hero--photo .hero-tags a { color: #fffaf5; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(4px); }
.hero--photo .hero-tags a:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: #e8c7a9; }
@media (max-width: 900px) {
  .hero--photo { background: linear-gradient(180deg, rgba(30, 10, 16, .5) 0%, rgba(77, 20, 32, .8) 55%, rgba(30, 10, 16, .92) 100%), var(--hero-img) center / cover no-repeat; padding: 110px 0 80px; min-height: 0; }
}
/* Continue with Google */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; box-shadow: none; text-decoration: none; }
.btn-google:hover { background: #f8f9fa; color: #1f1f1f; border-color: #c6c9ce; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--muted); font-size: .85rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Three account types on the sign-up form */
.role-switch:has(label:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .role-switch:has(label:nth-child(3)) { grid-template-columns: 1fr; } }
/* Partners: verified sellers' logos on the homepage */
.partners { text-align: center; background: var(--white); }
.partners .eyebrow { display: block; }
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 0; margin-top: 36px; }
.partner { flex: 0 0 16.666%; display: flex; align-items: center; justify-content: center; height: 150px; padding: 6px; color: var(--ink); text-decoration: none; filter: grayscale(1); opacity: .85; transition: filter .25s, opacity .25s, transform .25s; }
.partner:hover, .partner:focus-visible { filter: none; opacity: 1; transform: translateY(-2px); }
.partner img { max-height: 140px; max-width: 220px; width: auto; object-fit: contain; }
.partner-name { font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; line-height: 1.2; }
@media (max-width: 900px) { .partner { flex-basis: 33.333%; } }
@media (max-width: 560px) { .partner { flex-basis: 50%; } .partner-grid { gap: 20px 0; } }
/* ---------- Company-managed delivery ---------- */
.badge-del-unassigned { background: #ececec; color: #555; }
.badge-del-assigned { background: #fdf1dc; color: #8a5a10; }
.badge-del-collected, .badge-del-out_for_delivery { background: #e3eefa; color: #1f4f85; }
.badge-del-failed { background: #fbe3e0; color: #9b2c20; }
.badge-del-delivered { background: #e2f3e8; color: #1f6b41; }
.badge-del-cancelled { background: #eee; color: #777; text-decoration: line-through; }
.del-list { display: grid; gap: 10px; }
.del-card { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; }
.del-card:hover { border-color: var(--rose); }
.del-card .small { margin-top: 4px; }
.del-steps { padding-left: 18px; }
.del-events { list-style: none; padding: 0; margin: 0; }
.del-events li { padding: 8px 0; border-bottom: 1px solid var(--line); }
#qr-state { padding: 10px 12px; border-radius: 10px; margin: 8px 0; font-weight: 600; }
.qr-ok { background: #e2f3e8; color: #1f6b41; } .qr-wait { background: #f4f1ec; color: #6b6259; } .qr-bad { background: #fbe3e0; color: #9b2c20; }
.qr-modal { position: fixed; inset: 0; background: rgba(20, 10, 14, .72); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.qr-modal[hidden] { display: none; }
.qr-box { background: var(--white); border-radius: 16px; padding: 16px; width: 100%; max-width: 440px; }
.qr-box video { width: 100%; border-radius: 12px; background: #000; margin: 12px 0 6px; aspect-ratio: 1 / 1; object-fit: cover; }
.qr-print svg, .qr-label svg { width: 220px; height: 220px; display: block; }
.qr-label { text-align: center; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; }
.qr-label svg { margin: 0 auto 6px; }
.staff-row { display: grid; grid-template-columns: 1.3fr 2fr 1fr .7fr .8fr auto; gap: 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.map-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lg-staff { background: #6e1f2f; } .lg-unassigned { background: #9a9a9a; } .lg-assigned { background: #c98a2b; } .lg-pickup { background: #8e44ad; border-radius: 3px !important; }
.lg-out { background: #2f6fb3; } .lg-failed { background: #c0392b; } .lg-delivered { background: #2e8b57; }
.map-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }
#live-map { height: 68vh; min-height: 420px; border-radius: 14px; border: 1px solid var(--line); }
.map-side { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; max-height: 68vh; overflow: auto; }
.mk { display: block; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.mk-sq { border-radius: 3px; }
.mk-staff { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #6e1f2f; color: #fff; font-weight: 700; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } #live-map { height: 55vh; } .staff-row { grid-template-columns: 1fr 1fr; } }
@media print { body * { visibility: hidden; } .qr-label, .qr-label * { visibility: visible; } .qr-label { position: absolute; left: 0; top: 0; border: 0; } }
/* ---------- GST ---------- */
.gst-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.gst-filters input, .gst-filters select { width: auto; }
.gst-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.gst-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.gst-card span { font-size: .82rem; color: var(--muted); }
.gst-card strong { font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.gst-card.accent { border-color: var(--burgundy); background: #fbf3f4; }
.tip { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 11px; font-style: normal; font-weight: 600; cursor: help; vertical-align: 1px; }
.gst-report .field { margin-bottom: 10px; }
@media (max-width: 900px) { .gst-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gst-cards { grid-template-columns: 1fr; } }