/* one button size for the whole app: change these three lines to resize every button */
:root { --btn-h: 38px; --btn-h-sm: 32px; --btn-h-lg: 44px; --btn-r: 8px; }
:root {
  /* Simple white and black. Oxblood is only for prices. */
  --price: #6D0C2B;
  --oxblood: #111111; --raspberry: #111111; --ochre: #111111; --champagne: #EDEDED;
  --midnight: #000000; --plum: #111111; --rose: #111111; --rose-deep: #111111;
  --champagne-soft: #F5F5F5; --ivory: #FFFFFF; --ink: #111111; --muted: #6B6B6B; --line: #E8E8E8;
  --danger: #B3123F; --ok: #2F6B4F;
  --serif: "Bricolage Grotesque", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px; --bar-h: 56px; --side-w: 232px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 14px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1rem/1.5 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--plum); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--midnight); color: var(--ivory); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ── top bar ── */
.bar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; min-height: var(--bar-h); display: flex; align-items: center; gap: 12px; }
.brand img { height: 28px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 12px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--champagne-soft); }
.nav a[aria-current] { color: var(--oxblood); background: var(--champagne-soft); }
.nav a.off { opacity: .55; }
.bar-end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.who { color: var(--muted); font-weight: 600; font-size: .9rem; display: none; }
.menu-btn { width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 10px; color: var(--oxblood); cursor: pointer; }
.menu-btn:hover { background: var(--champagne-soft); }

/* ── menu: slide-in drawer on phones, side menu for vendors and admins on wide screens ── */
.menu { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); background: #fff; z-index: 50; display: flex; flex-direction: column; transform: translateX(-104%); transition: transform .2s ease, box-shadow .2s ease; overflow-y: auto; }
body.menu-open .menu { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
body.menu-open { overflow: hidden; }
#scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 40; }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px 20px; }
.menu-title { font: 600 1.2rem var(--serif); color: var(--oxblood); }
.menu-x { width: 40px; height: 40px; font-size: 1.8rem; line-height: 1; background: transparent; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer; }
.menu-x:hover { background: var(--champagne-soft); }
.menu nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; flex: 1; }
.menu nav a, .menu-item { display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 44px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 600 .95rem var(--sans); background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer; }
.menu nav a:hover, .menu-item:hover { background: var(--champagne-soft); }
.menu nav a[aria-current] { background: var(--champagne-soft); color: var(--oxblood); box-shadow: inset 3px 0 0 var(--oxblood); }
.menu nav a.off { opacity: .55; }
.menu .ico { flex: none; color: var(--muted); }
.menu nav a[aria-current] .ico { color: var(--oxblood); }
.menu-foot { padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  body:not(.has-side) .menu, body:not(.has-side) #scrim { display: none; }
  body.has-side .bar-in { max-width: none; }
  body.has-side .who { display: block; }
  body.has-side .menu { top: var(--bar-h); width: var(--side-w); transform: none; box-shadow: none; border-right: 1px solid var(--line); z-index: 20; }
  body.has-side.menu-open .menu { box-shadow: none; }
  body.has-side .menu-head, body.has-side #scrim { display: none; }
  body.has-side main { margin-left: var(--side-w); }
  body.has-side.menu-open { overflow: auto; }
}

/* ── layout ── */
main { min-height: 70vh; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 16px 64px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 28px 16px 64px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ── buttons & forms ── */
.btn { font: 600 .9rem var(--sans); border: 1px solid transparent; border-radius: var(--btn-r); padding: 0 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn-h); line-height: 1.2; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--plum); color: var(--ivory); }
.btn-primary:hover { background: #000000; }
.btn-gold { background: var(--champagne); color: var(--oxblood); }
.btn-gold:hover { background: #EDEDED; }
.btn-ghost { background: transparent; border-color: var(--plum); color: var(--plum); }
.btn-ghost:hover { background: var(--champagne-soft); }
.btn-quiet { background: transparent; color: var(--plum); padding-inline: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { margin-bottom: 16px; }
.field label:not(.choice):not(.check):not(.swatch):not(.tchip):not(.drop):not(.ed-fb-name), .legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.err { font-size: .85rem; color: var(--danger); margin-top: 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #CFCFCF; border-radius: var(--r); padding: 11px 12px; min-height: 44px; }
textarea { min-height: 110px; resize: none; }
input:focus, select:focus, textarea:focus { border-color: var(--plum); outline: 2px solid rgba(109,12,43,.2); }
input[aria-invalid="true"] { border-color: var(--danger); }
.two { display: grid; gap: 12px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }

.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; margin-bottom: 8px; }
.choice input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: calc((1.5em - 20px) / 2) 0 0; accent-color: var(--plum); flex: none; }
.choice:has(input:checked) { border-color: var(--plum); background: #F5F5F5; }
.choice small { display: block; color: var(--muted); }

/* ── surfaces ── */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.panel + .panel { margin-top: 14px; }
.notice { border-left: 3px solid var(--ochre); background: #F5F5F5; padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; }
.notice.bad { border-color: var(--danger); background: #F7F7F7; }
.notice.good { border-color: var(--ok); background: #EEF6F1; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--champagne-soft); color: var(--plum); }
.badge.live { background: #E4F1E9; color: var(--ok); }
.badge.off { background: #EEEEEE; color: var(--danger); }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.stat b { display: block; font: 600 1.8rem/1 var(--serif); color: var(--plum); }
.stat span { color: var(--muted); font-size: .85rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.scroll-x { overflow-x: auto; }

/* ── Discover hero: the one bold moment ── */
.hero { position: relative; min-height: min(78vh, 640px); background: linear-gradient(160deg, var(--oxblood) 0%, var(--midnight) 100%); display: flex; align-items: flex-end; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0,.94) 8%, rgba(0, 0, 0,.55) 38%, rgba(0, 0, 0,0) 62%); }
.hero-copy { position: relative; z-index: 1; max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 16px 36px; color: var(--ivory); }
.hero-copy h1 { max-width: 14ch; color: var(--champagne); }
.hero-copy p { color: #DDDDDD; }
.hero .btn-ghost { border-color: var(--champagne); color: var(--champagne); }
.hero .btn-ghost:hover { background: rgba(232,215,203,.14); }

/* ── onboarding ── */
.steps { display: flex; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps li.done { background: var(--rose); }
.steps li.now { background: var(--plum); }
.upload { display: flex; gap: 14px; align-items: center; }
.thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--champagne-soft) center / cover; border: 1px solid var(--line); flex: none; }
.thumb.wide { width: 120px; height: 72px; }

/* ── storefront ── */
.cover { height: 180px; background: var(--plum) center / cover; }
.store-head { display: flex; gap: 16px; align-items: flex-end; margin-top: -44px; padding: 0 16px; max-width: 1120px; margin-inline: auto; }
.logo-box { width: 92px; height: 92px; border-radius: 18px; background: var(--ivory) center / cover; border: 3px solid var(--ivory); box-shadow: 0 0 0 1px var(--line); flex: none; display: grid; place-items: center; font: 600 1.8rem var(--serif); color: var(--plum); }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--midnight); color: var(--ivory); padding: 12px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; max-width: 90vw; }
#toast.show { opacity: 1; }
#modal { position: fixed; inset: 0; background: rgba(0, 0, 0,.6); display: grid; place-items: center; z-index: 50; padding: 16px; }
#modal .panel { max-width: 420px; width: 100%; }
.loading { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty { padding: 36px 20px; text-align: center; border: 1px dashed #CFCFCF; border-radius: 14px; background: #fff; }
.empty p { margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ── catalogue ── */
.pcard { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pcard:hover { border-color: var(--rose); }
.pimg { aspect-ratio: 4 / 5; background: var(--champagne-soft) center / cover; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.pbody { padding: 10px 12px 12px; display: grid; gap: 2px; }
.pbody strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.pdetail { display: grid; gap: 24px; }
@media (min-width: 860px) { .pdetail { grid-template-columns: 1fr 1fr; } }
.gallery { display: grid; gap: 10px; }
.gallery img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }

/* ── cart, checkout, orders ── */
.cartgrid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 860px) { .cartgrid { grid-template-columns: 1fr 340px; } .summary { position: sticky; top: 76px; } }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.line:first-of-type { margin-top: 10px; }
.line .thumb { width: 64px; height: 64px; }
.qty { width: 72px; min-height: 38px; padding: 6px 8px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sumrow.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.05rem; }
.ocard { display: block; text-decoration: none; color: inherit; margin-bottom: 12px; }
.ocard:hover { border-color: var(--rose); }
.pills { margin-top: 8px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ── services and bookings ── */
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { font: 600 .95rem var(--sans); min-width: 72px; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid #CFCFCF; background: #fff; color: var(--ink); cursor: pointer; }
.slot:hover { border-color: var(--plum); }
.slot[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: var(--ivory); }
[hidden] { display: none !important; }
main:focus, main:focus-visible { outline: none; }

.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 500; }
.check input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--plum); }

/* Marketplace homepage */
.hero-sm { min-height: 0; padding: 56px 0 28px; align-items: center; }
.hero-sm .hero-copy { padding-bottom: 0; }
.hero-sm .hero-copy h1 { max-width: 18ch; }
.hsearch { display: flex; gap: 8px; margin: 16px 0 10px; max-width: 560px; }
.hsearch input { flex: 1; min-width: 0; }
.hlinks { gap: 18px; }
.hlinks a { color: var(--champagne); }
.hsec { margin: 28px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: inherit; text-decoration: none; }
.chip:hover { border-color: var(--rose); }
.hsell { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 32px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.hsell h3, .hsell p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 12px; }
.ctile { display: block; color: inherit; text-decoration: none; }
.ctile .cimg { aspect-ratio: 1; border-radius: 14px; background: var(--champagne-soft) center / cover; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--oxblood); }
.ctile:hover .cimg, .ctile:focus-visible .cimg { border-color: var(--rose); }
.ctile .cname { font-weight: 600; margin-top: 6px; }

/* ═══════════ Marketplace layout (Jumia / Temu style) ═══════════ */
.wrap.wide { max-width: 1280px; padding-top: 16px; }
.summary { top: 150px !important; }

/* header: search is the centre of the page */
.topstrip { display: none; background: var(--midnight); color: var(--champagne); font-size: .78rem; }
@media (min-width: 860px) { .topstrip { display: block; } }
.topstrip-in { max-width: 1280px; margin: 0 auto; padding: 6px 16px; display: flex; justify-content: space-between; gap: 12px; }
.topstrip a, .linkbtn { color: var(--champagne); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bar-shop { max-width: 1280px; flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.bar-shop .menu-btn { order: 1; }
.bar-shop .brand { order: 2; margin-right: auto; }
.bar-shop .bar-acts { order: 3; }
.bar-shop .bsearch { order: 4; flex: 1 1 100%; }
@media (min-width: 860px) {
  .bar-shop { flex-wrap: nowrap; gap: 28px; }
  .bar-shop .brand { margin-right: 0; }
  .bar-shop .brand img { height: 32px; }
  .bar-shop .bsearch { order: 3; flex: 1 1 auto; max-width: 720px; }
  .bar-shop .bar-acts { order: 4; margin-left: auto; }
}
.bsearch { display: flex; border: 2px solid var(--plum); border-radius: 999px; overflow: hidden; background: #fff; }
.bsearch input { border: 0; border-radius: 0; min-height: 42px; padding: 0 16px; flex: 1; min-width: 0; background: transparent; }
.bsearch input:focus { outline: none; }
.bsearch:focus-within { border-color: var(--raspberry); box-shadow: 0 0 0 3px rgba(212, 25, 84, .15); }
.bsearch button { border: 0; background: var(--plum); color: #fff; padding: 0 22px; cursor: pointer; display: grid; place-items: center; }
.bsearch button:hover { background: var(--raspberry); }
.bar-acts { display: flex; gap: 2px; }
.act { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 52px; min-height: 44px; padding: 2px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .72rem; font-weight: 600; }
.act:hover { background: var(--champagne-soft); }
.act .ico { color: var(--oxblood); width: 22px; height: 22px; }
.cnt { position: absolute; top: 0; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--raspberry); color: #fff; font: 700 .7rem/18px var(--sans); text-align: center; font-style: normal; }
@media (max-width: 859px) { .act span { display: none; } .act { min-width: 44px; } }
.catbar { border-top: 1px solid var(--line); background: #fff; }
.catbar-in { max-width: 1280px; margin: 0 auto; padding: 0 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catbar a { flex: none; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent; }
.catbar a:hover { color: var(--raspberry); }
.catbar a[aria-current] { color: var(--raspberry); border-bottom-color: var(--raspberry); }

/* home: category list + banner + promo tiles */
.mk-top { display: grid; gap: 12px; margin-bottom: 14px; }
.mk-cats { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 0; }
@media (min-width: 960px) { .mk-top { grid-template-columns: 240px minmax(0, 1fr) 250px; } .mk-cats { display: block; } }
.mk-cats h2 { font: 700 .75rem var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 8px 16px 4px; margin: 0; }
.mk-cats ul { list-style: none; margin: 0; padding: 0; }
.mk-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 16px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.mk-cats a:hover { background: var(--champagne-soft); color: var(--raspberry); }
.mk-cats em { font-style: normal; color: var(--muted); font-size: .8rem; }
.mk-banner { position: relative; overflow: hidden; border-radius: 14px; min-height: 250px; display: grid; color: var(--ivory);
  background: radial-gradient(circle at 88% 15%, rgba(212, 25, 84, .6), transparent 45%), linear-gradient(135deg, var(--oxblood) 0%, var(--midnight) 100%); }
.mk-banner-copy { position: relative; z-index: 1; padding: 26px 22px; align-self: center; max-width: 500px; }
.mk-eyebrow { display: inline-block; background: rgba(233, 205, 156, .18); color: var(--champagne); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; margin-bottom: 12px; }
.mk-banner h1 { color: var(--champagne); font-size: clamp(1.7rem, 4.4vw, 2.5rem); margin-bottom: .35em; }
.mk-banner p { color: #DDDDDD; margin-bottom: 18px; }
.btn-ghost-light { background: transparent; border-color: var(--champagne); color: var(--champagne); }
.btn-ghost-light:hover { background: rgba(233, 205, 156, .14); }
.mk-banner-img { display: none; }
@media (min-width: 700px) {
  .mk-banner { grid-template-columns: 1.15fr .85fr; }
  .mk-banner-img { display: block; position: relative; margin: 18px 18px 18px 0; border-radius: 14px; background: var(--champagne-soft) center / cover; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); min-height: 214px; text-decoration: none; }
  .mk-banner-img span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; border-radius: 0 0 14px 14px; background: linear-gradient(to top, rgba(0, 0, 0, .88), transparent); color: #fff; display: grid; font-weight: 600; font-size: .92rem; }
  .mk-banner-img b { color: var(--champagne); }
}
.mk-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 960px) { .mk-promos { grid-template-columns: 1fr; } }
.promo { display: grid; align-content: end; gap: 4px; min-height: 96px; padding: 16px; border-radius: 14px; text-decoration: none; }
.promo b { font: 700 1.1rem var(--serif); }
.promo span { font-size: .85rem; font-weight: 600; }
.promo-a { background: var(--champagne); color: var(--oxblood); }
.promo-a:hover { background: #EDEDED; }
.promo-b { background: var(--raspberry); color: #fff; }
.promo-b:hover { background: #000000; }
.trust { list-style: none; margin: 0 0 14px; padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { display: flex; gap: 10px; align-items: center; font-size: .82rem; }
.trust .ico { width: 28px; height: 28px; color: var(--raspberry); flex: none; }
.trust b { display: block; font-size: .9rem; }
.trust span { color: var(--muted); }

/* section cards with a coloured header strip */
.msec { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; overflow: hidden; }
.msec > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.msec > header h2 { margin: 0; font-size: 1.15rem; }
.msec > header a { font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--raspberry); white-space: nowrap; }
.msec.tone-rasp > header { background: var(--raspberry); border: 0; }
.msec.tone-ox > header { background: var(--oxblood); border: 0; }
.msec.tone-rasp > header *, .msec.tone-ox > header * { color: #fff; }
.msec.tone-champ > header { background: var(--champagne); border: 0; }
.msec.tone-champ > header * { color: var(--oxblood); }
.msec-body { padding: 12px; }
.ctiles2 { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
@media (min-width: 960px) { .ctiles2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); overflow: visible; } }
.ctile2 { flex: 0 0 88px; text-align: center; text-decoration: none; color: inherit; }
.ctile2 .cimg { width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 50%; background: var(--champagne-soft) center / cover; border: 2px solid var(--line); display: grid; place-items: center; font: 600 1.6rem var(--serif); color: var(--oxblood); }
@media (min-width: 960px) { .ctile2 .cimg { width: 92px; height: 92px; } }
.ctile2:hover .cimg { border-color: var(--raspberry); }
.ctile2 .cname { font-weight: 600; font-size: .85rem; line-height: 1.2; }

/* product cards: dense grid, price first */
.pgrid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .shop-main .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .shop-main .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.pcard:hover { border-color: #CFCFCF; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transform: translateY(-1px); }
.pimg { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(160deg, var(--champagne-soft), #EDEDED) center / cover; display: grid; place-items: center; color: var(--muted); }
.pimg .ico { width: 40px; height: 40px; opacity: .45; }
.ptag { position: absolute; top: 8px; left: 8px; background: var(--raspberry); color: #fff; font: 700 .7rem var(--sans); padding: 3px 8px; border-radius: 6px; }
.psold { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .72); font-weight: 700; color: var(--danger); }
.pbody { padding: 10px 10px 12px; gap: 4px; align-content: start; flex: 1; }
.pname { font: 500 .92rem/1.3 var(--sans); margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; letter-spacing: 0; }
.pprice { font: 700 1.1rem var(--serif); color: var(--raspberry); }
.pprice small { font: 500 .75rem var(--sans); color: var(--muted); margin-right: 4px; }
.pmeta { font-size: .8rem; color: var(--muted); }
.pmeta .rate { color: #111111; font-weight: 700; }
.pstore { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* listing pages: filters left, results right */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span:last-child { color: var(--ink); font-weight: 600; }
.shop { display: grid; gap: 12px; align-items: start; }
.filters { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.filters.open { display: block; }
@media (min-width: 900px) {
  .shop { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
  .filters { display: block; position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; }
  .fbtn { display: none !important; }
}
.filters h2 { font-size: 1rem; margin: 0 0 4px; }
.filters h3 { font: 700 .85rem var(--sans); margin: 12px 0 6px; }
.fgroup + .fgroup { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 2px; }
.filters .field { margin-bottom: 10px; }
.filters .field label { font-size: .82rem; }
.filters input, .filters select { min-height: 40px; padding: 8px 10px; font-size: .92rem; }
.filters input[type="checkbox"] { min-height: 0; }
.clist, .clist ul { list-style: none; margin: 0; padding: 0; }
.clist a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.clist a:hover { background: var(--champagne-soft); }
.clist a[aria-current] { background: var(--champagne-soft); color: var(--oxblood); font-weight: 700; }
.clist ul { margin: 0 0 4px 12px; border-left: 2px solid var(--line); }
.prange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.shop-title { font-size: 1.5rem; margin: 0; }
.shop-tools { display: flex; gap: 8px; align-items: center; }
.shop-tools select { min-height: 40px; padding: 6px 10px; width: auto; }
.fbtn { min-height: var(--btn-h); padding: 0 14px; gap: 6px; }
.fbtn .ico { width: 18px; height: 18px; }
.achips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.achip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--champagne-soft); color: var(--oxblood); font-size: .82rem; font-weight: 600; text-decoration: none; border: 1px solid #EDEDED; }
.achip:hover { border-color: var(--raspberry); }
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 18px 0 4px; }

/* product page */
.pd { display: grid; gap: 20px; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; } .pd-gal { position: sticky; top: 150px; align-self: start; } }
.pd-main { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--champagne-soft); border: 1px solid var(--line); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-th { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.pd-th img { width: 100%; height: 100%; object-fit: cover; }
.pd-th[aria-pressed="true"] { border-color: var(--raspberry); }
.pd-info h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .25em; }
.pd-store { color: var(--muted); margin-bottom: 8px; }
.pd-price { font: 700 2rem var(--serif); color: var(--raspberry); margin-bottom: 12px; }
.pd-price small { font: 500 .9rem var(--sans); color: var(--muted); margin-right: 6px; }
.pd-attrs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; }
.pd-attrs li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .85rem; }
.pd-attrs span { color: var(--muted); margin-right: 6px; }
.pd-perks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.pd-perks li { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.pd-perks .ico { color: var(--raspberry); flex: none; }
.pd-info #buy { border-color: var(--raspberry); }
.pd-info #buy .row .btn-primary { background: var(--raspberry); flex: 1; }
.pd-info #buy .row .btn-primary:hover { background: #000000; }

/* footer */
.foot { margin-top: 32px; background: #fff; border-top: 1px solid var(--line); }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 28px 16px; display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.foot-in > div:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot-in > div:first-child { grid-column: auto; } }
.foot h4 { margin: 0 0 8px; font: 700 .9rem var(--sans); }
.foot a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: .92rem; }
.foot a:hover { color: var(--raspberry); }
.foot img { height: 30px; width: auto; margin-bottom: 8px; }
.foot p { font-size: .9rem; }
.foot-base { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .8rem; padding: 12px; }

/* ───────── Round 2: marketplace like Temu / Jumia, stores like Shopify ───────── */
/* Home: no banner, no boxes. Sections are plain headings; only the product has a card. */
.hsec { margin: 0 0 28px; }
.hsec > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hsec > header h2 { margin: 0; font-size: 1.3rem; }
.hsec > header a { font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--raspberry); white-space: nowrap; }
.plow { font-size: .78rem; font-weight: 700; color: #111111; }
.pcard { border-radius: 8px; }
.pcard:hover { transform: none; }
.pprice { font-size: 1.15rem; }
.catbar a { padding: 12px 14px; }

/* Product page */
.pd-main { position: relative; border-radius: 10px; }
.pd-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 .78rem var(--sans); padding: 3px 10px; border-radius: 999px; }
.pd-info { display: grid; gap: 4px; align-content: start; }
.pd-priceline { display: flex; align-items: baseline; gap: 10px; }
.pd-price { font: 700 2.1rem var(--serif); color: var(--raspberry); letter-spacing: -.02em; }
.pd-info h1 { font: 500 1.1rem/1.35 var(--sans); letter-spacing: 0; margin: 0 0 6px; }
.pd-ship { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; color: var(--ok); font-weight: 600; font-size: .92rem; }
.pd-ship .ico { width: 18px; height: 18px; }
.soldby { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.soldby:hover { border-color: var(--plum); }
.soldby-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--champagne-soft); color: var(--oxblood); display: grid; place-items: center; font: 700 1.1rem var(--serif); flex: none; }
.soldby small { display: block; color: var(--muted); font-size: .8rem; }
.soldby-go { margin-left: auto; color: var(--plum); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.opt { margin-bottom: 14px; }
.opt-head { margin-bottom: 8px; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .9rem var(--sans); min-height: 34px; padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--plum); }
.chip[aria-checked="true"] { border-color: var(--plum); background: #F5F5F5; color: var(--oxblood); box-shadow: inset 0 0 0 1px var(--plum); }
.qtyrow { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; flex-wrap: wrap; }
.qlabel { font-weight: 600; font-size: .95rem; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid #CFCFCF; border-radius: 8px; overflow: hidden; background: #fff; }
.stepper button { width: 44px; min-height: 44px; border: 0; background: #F5F5F5; color: var(--ink); font: 500 1.4rem/1 var(--sans); cursor: pointer; }
.stepper button:hover:not([disabled]) { background: var(--champagne-soft); }
.stepper button[disabled] { color: #B5B5B5; cursor: not-allowed; }
.stepper input { width: 56px; min-height: 44px; border: 0; border-left: 1.5px solid #CFCFCF; border-right: 1.5px solid #CFCFCF; border-radius: 0; text-align: center; font: 600 1.05rem var(--sans); padding: 0; }
.stepper input:focus { outline: none; background: #FAFAFA; }
.qnote { color: #111111; font-weight: 700; font-size: .85rem; }
.buybar { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.buybar-total { display: grid; line-height: 1.1; }
.buybar-total small { color: var(--muted); font-size: .75rem; }
.buybar-total b { font: 700 1.25rem var(--serif); }
.btn-buy { flex: 1; min-height: var(--btn-h-lg); font-size: 1rem; background: var(--raspberry); color: #fff; border-radius: var(--btn-r); }
.btn-buy:hover { background: #000000; }
.pd-login { margin: 0 0 14px; color: var(--muted); }
.pd-h { font: 700 1rem var(--sans); margin: 18px 0 8px; }
.pd-desc { margin: 0 0 6px; }
.pd-rows { list-style: none; margin: 14px 0; padding: 0; border-top: 1px solid var(--line); }
.pd-rows li { display: flex; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pd-rows .ico { color: var(--raspberry); flex: none; margin-top: 2px; }
#more { margin-top: 28px; }
/* On a phone the price and Add to cart stay at the bottom of the screen while you read. */
@media (max-width: 899px) {
  #buy .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
  .pd-info { padding-bottom: 84px; }
}

/* Store: the brand first, then the products */
.cover { height: 150px; }
@media (min-width: 900px) { .cover { height: 220px; } }
.store-head { align-items: flex-end; gap: 16px; margin-top: -40px; max-width: 1280px; }
.store-id { padding-bottom: 6px; min-width: 0; }
.store-id h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0; }
.store-id p { margin: 2px 0 0; font-size: .9rem; }
.store-save { margin-left: auto; align-self: flex-end; padding-bottom: 8px; }
.store-save .btn { min-height: var(--btn-h); padding: 0 16px; }
.store-body { padding-top: 20px; }
.store-about { color: var(--muted); max-width: 70ch; margin-bottom: 20px; }
.store-info { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.store-info h3 { font: 700 1rem var(--sans); margin-bottom: 6px; }
.store-info p { margin: 0 0 6px; }

.logo-box { width: 84px; height: 84px; }
.store-head { flex-wrap: wrap; row-gap: 8px; }
.store-head .logo-box { order: 1; }
.store-save { order: 2; }
.store-id { order: 3; flex: 1 1 100%; padding-bottom: 0; }

/* Onboarding: fewer boxes, one clear button */
.tchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { position: relative; }
.tchip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.tchip span { display: block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .92rem; }
.tchip input:checked + span { border-color: var(--plum); background: #F5F5F5; color: var(--oxblood); }
.tchip input:focus-visible + span { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.obrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.btn-wide { flex: 1; }
form > .btn-wide { width: 100%; }
.more { margin: 4px 0 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--plum); padding: 6px 0 12px; }
.notice.bad#verify-note { background: #F7F7F7; }

/* A store has its own quiet header */
.bar-store { max-width: 1280px; min-height: 60px; justify-content: space-between; }
.store-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.2rem var(--serif); min-width: 0; }
.store-brand img { height: 34px; width: 34px; border-radius: 8px; object-fit: cover; }
.store-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-foot { padding: 20px 12px; }


/* ═══════════ Round 4: AliExpress-style rebuild. White, black, oxblood for prices only. ═══════════ */
body { background: #fff; font-family: var(--sans); }
h1, h2, h3, .menu-title { font-family: var(--serif); }
.price, .pprice, .pd-price, .buybar-total b, .sumrow.total span:last-child { color: var(--price); }
.btn { font-weight: 700; }
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { border: 1.5px solid #111; color: #111; background: #fff; }
.btn-ghost:hover { background: #F5F5F5; }
.btn-gold { background: #fff; color: #111; border: 1.5px solid #111; }
.btn-gold:hover { background: #F5F5F5; }
.panel, .stat { border-radius: 12px; }
input:focus, select:focus, textarea:focus { border-color: #111; outline: 2px solid rgba(0, 0, 0, .12); }

/* header */
.bar { border-bottom: 1px solid #EFEFEF; }
.bar-shop { max-width: 1400px; flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.bar-shop .menu-btn { order: 1; color: #111; }
.bar-shop .brand { order: 2; margin-right: auto; }
.bar-shop .bar-acts { order: 3; }
.bar-shop .bsearch { order: 4; flex: 1 1 100%; }
.bsearch { display: flex; align-items: center; height: 44px; padding: 3px; border: 2px solid #111; border-radius: 999px; background: #fff; overflow: hidden; }
.bsearch:focus-within { box-shadow: 0 0 0 3px rgba(0, 0, 0, .1); }
.bsearch input { border: 0; min-height: 0; height: 100%; padding: 0 14px; background: transparent; flex: 1; min-width: 0; font-size: .95rem; }
.bsearch input:focus { outline: none; }
.bsearch button { height: 100%; min-width: 64px; border: 0; border-radius: 999px; background: #111; color: #fff; display: grid; place-items: center; cursor: pointer; }
.bsearch button:hover { background: #000; }
.act { color: #111; border-radius: 10px; }
.act .ico { color: #111; }
.act:hover { background: #F5F5F5; }
.cnt { background: #111; color: #fff; }
.catbar { background: #fff; border: 0; }
.catnav, .tabbar { display: none; }
.catscroll { display: flex; gap: 4px; overflow-x: auto; padding: 0 10px; scrollbar-width: none; }
.catscroll::-webkit-scrollbar, .mcats::-webkit-scrollbar, .hslides::-webkit-scrollbar, .strip::-webkit-scrollbar { display: none; }
.catscroll a { flex: none; padding: 9px 12px; text-decoration: none; color: #6B6B6B; font-weight: 700; font-size: .88rem; border-bottom: 2px solid transparent; }
.catscroll a[aria-current] { color: #111; border-bottom-color: #111; }
.catbar.on-home .catscroll { display: none; }
@media (min-width: 860px) {
  .bar-shop { flex-wrap: nowrap; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
  .bar-shop .brand { margin-right: 0; }
  .bar-shop .brand img { height: 32px; }
  .bar-shop .bsearch { order: 3; flex: 1 1 auto; max-width: 760px; margin: 0 auto; }
  .bar-shop .bar-acts { order: 4; }
  .bsearch { height: 46px; }
  .bsearch button { min-width: 84px; }
  .catscroll, .catbar.on-home .catscroll { display: none; }
  .catnav { display: flex; align-items: stretch; max-width: 1400px; margin: 0 auto; padding: 0 16px 6px; gap: 6px; }
  .catnav > a { display: flex; align-items: center; padding: 6px 14px; text-decoration: none; color: #111; font-weight: 700; font-size: .92rem; border-radius: 999px; }
  .catnav > a:hover { background: #F5F5F5; }
  .catnav > a[aria-current] { background: #111; color: #fff; }
  .catnav-end { margin-left: auto; display: flex; align-items: center; }
  .catnav-end a { padding: 6px 4px; font-weight: 700; font-size: .9rem; color: #111; text-decoration: underline; text-underline-offset: 4px; }
  .allcats { position: relative; margin-right: 6px; }
  .allcats-btn { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; background: transparent; border: 0; border-radius: 999px; color: #111; font: 800 .92rem var(--sans); cursor: pointer; }
  .allcats-btn:hover { background: #F5F5F5; }
  .mega { display: none; position: absolute; top: 100%; left: 0; z-index: 40; width: min(900px, 92vw); max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 12px; box-shadow: 0 16px 48px rgba(0, 0, 0, .16); padding: 22px 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; }
  .allcats:hover .mega, .allcats:focus-within .mega, .allcats.open .mega { display: grid; }
  .mcol { display: grid; align-content: start; gap: 2px; }
  .mcol a { padding: 4px 0; text-decoration: none; color: #6B6B6B; font-size: .9rem; }
  .mcol a:hover { color: #111; text-decoration: underline; }
  .mcol .mh { color: #111; font-weight: 800; }
}
/* phone: bottom tab bar like a shopping app */
@media (max-width: 859px) {
  body.has-tabbar { padding-bottom: 64px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid #EAEAEA; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { position: relative; flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; text-decoration: none; color: #8A8A8A; font-size: .68rem; font-weight: 700; }
  .tabbar a[aria-current] { color: #111; }
  .tabbar .ico { width: 22px; height: 22px; color: inherit; }
  .tabbar .cnt { top: 3px; right: calc(50% - 20px); }
}

/* home */
.wrap.wide { max-width: 1400px; padding-top: 10px; }
.mcats { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.mcat { flex: 0 0 70px; display: grid; justify-items: center; gap: 6px; text-align: center; text-decoration: none; color: #111; font-size: .74rem; font-weight: 700; line-height: 1.15; }
.mimg { width: 58px; height: 58px; border-radius: 50%; background: #F2F2F2 center / cover; display: grid; place-items: center; font: 700 1.2rem var(--serif); color: #111; }
.hero3 { display: grid; gap: 12px; margin-bottom: 22px; }
.hcats, .hpanel { display: none; }
.hbanner { position: relative; border-radius: 14px; overflow: hidden; height: 200px; }
.hslides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hslide { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 20px 22px 30px; text-decoration: none; }
.hslide b { font: 600 clamp(1.5rem, 5vw, 2.8rem)/1.08 var(--serif); letter-spacing: -.02em; max-width: 14ch; }
.heyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.htext { font-size: .92rem; max-width: 34ch; }
.hcta { margin-top: 8px; background: #111; color: #fff; font-weight: 700; font-size: .88rem; padding: 0 16px; min-height: var(--btn-h); display: inline-flex; align-items: center; border-radius: var(--btn-r); }
.hslide.s1, .hslide.s3 { background: #F3F3F3; color: #111; }
.hslide.s2 { background: #111; color: #fff; }
.hslide.s2 .hcta { background: #fff; color: #111; }
.hdots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.hdots button { width: 7px; height: 7px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(120, 120, 120, .45); cursor: pointer; }
.hdots button[aria-current="true"] { background: #111; width: 18px; border-radius: 4px; }
@media (min-width: 960px) {
  .mcats { display: none; }
  .hero3 { grid-template-columns: 220px minmax(0, 1fr) 260px; height: 400px; gap: 16px; }
  .hbanner { height: 100%; }
  .hslide { padding: 40px 56px; gap: 12px; }
  .htext { font-size: 1.1rem; }
  .hcta { font-size: .95rem; padding: 12px 28px; }
  .hcats { display: flex; flex-direction: column; position: relative; min-height: 0; }
  .hcats ul { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; scrollbar-width: none; }
  .hcats li > a, .hcats-all { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #111; font-weight: 600; font-size: .94rem; }
  .hcats li:hover > a, .hcats-all:hover { background: #F3F3F3; }
  .hcats-all { margin-top: 4px; font-weight: 800; }
  .fly { display: none; position: absolute; left: calc(100% + 4px); top: 0; bottom: 0; width: 460px; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .16); padding: 22px 26px; z-index: 15; grid-template-columns: 1fr 1fr; align-content: start; gap: 2px 20px; }
  .hcats li:hover .fly { display: grid; }
  .fly a { padding: 6px 0; text-decoration: none; color: #6B6B6B; font-size: .92rem; }
  .fly a:hover { color: #111; text-decoration: underline; }
  .hpanel { display: flex; flex-direction: column; gap: 14px; background: #F7F7F7; border-radius: 14px; padding: 20px; }
  .hwelcome { display: grid; gap: 4px; }
  .hwelcome b { font: 600 1.25rem/1.15 var(--serif); }
  .hwelcome span { font-size: .88rem; color: #6B6B6B; }
  .hacts { display: grid; gap: 8px; }
  .hacts .btn { min-height: var(--btn-h); padding: 0 14px; }
  .hlinks2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hlinks2 a { display: flex; align-items: center; gap: 8px; padding: 10px; background: #fff; border-radius: 10px; text-decoration: none; color: #111; font-weight: 700; font-size: .85rem; }
  .hsellbox { margin-top: auto; display: grid; gap: 2px; padding: 16px; border-radius: 12px; text-decoration: none; background: #111; color: #fff; }
  .hsellbox b { font: 600 1.1rem var(--serif); }
  .hsellbox span { font-size: .85rem; font-weight: 700; opacity: .85; }
}
.hsec { margin: 0 0 28px; }
.hsec > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hsec > header h2 { margin: 0; font: 600 1.45rem/1.1 var(--serif); padding: 0; border: 0; }
.hsec > header a { font-weight: 700; font-size: .9rem; color: #111; text-decoration: none; white-space: nowrap; }
.hsec > header a:hover { text-decoration: underline; }

/* product cards: no boxes, square photo, price in oxblood */
.pgrid { display: grid; gap: 14px 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .shop-main .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .shop-main .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pgrid.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.pgrid.strip .pcard { flex: 0 0 148px; scroll-snap-align: start; }
@media (min-width: 900px) { .pgrid.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; } .pgrid.strip .pcard { flex: none; } }
.pcard { display: flex; flex-direction: column; background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; transform: none; }
.pcard:hover { box-shadow: none; transform: none; }
.pcard:hover .pname { text-decoration: underline; }
.pimg { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; background: #F3F3F3 center / cover; display: grid; place-items: center; overflow: hidden; }
.pimg .ico { width: 36px; height: 36px; opacity: .3; }
.pbody { padding: 8px 2px 0; display: grid; gap: 3px; align-content: start; }
.pname { order: 1; font: 500 .86rem/1.3 var(--sans); min-height: 2.6em; color: #222; margin: 0; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pprice { order: 2; font: 700 1.2rem/1.2 var(--serif); color: var(--price); }
.plow { order: 3; font-size: .75rem; font-weight: 800; color: #111; }
.pmeta, .pstore { font-size: .78rem; color: #6B6B6B; }
.ptag { position: absolute; top: 8px; left: 8px; background: #111; color: #fff; font: 800 .66rem var(--sans); padding: 4px 8px; border-radius: 6px; }
.psold { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .78); font-weight: 800; color: #111; }

/* listing pages: plain filters on the left */
.crumbs { color: #6B6B6B; }
.crumbs a { color: #6B6B6B; }
.filters { background: transparent; border: 0; border-radius: 0; padding: 0 8px 0 0; }
.filters h2 { font: 600 1.2rem var(--serif); }
.filters h3 { font: 800 .85rem var(--sans); }
.clist a { border-radius: 8px; }
.clist a:hover, .clist a[aria-current] { background: #F3F3F3; color: #111; }
.clist a[aria-current] { font-weight: 800; }
.filters, .shop-bar { }
.achip { background: #F3F3F3; color: #111; border: 0; font-weight: 700; }
.shop-title { font: 600 1.6rem var(--serif); }
@media (min-width: 900px) { .filters { top: 130px; } .summary { top: 130px !important; } }

/* product page: thumbs down the left, big photo, buy box on the right */
.pd-price { font: 700 2.2rem var(--serif); color: var(--price); }
.pd-main { border: 0; border-radius: 14px; background: #F3F3F3; }
.pd-th { border: 2px solid transparent; border-radius: 10px; }
.pd-th[aria-pressed="true"] { border-color: #111; }
@media (min-width: 900px) {
  .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; }
  .pd-gal { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; top: 130px; }
  .pd-gal .pd-thumbs { order: -1; flex-direction: column; margin: 0; max-height: 520px; overflow-y: auto; scrollbar-width: none; }
  .pd-gal .pd-th { width: 76px; height: 76px; }
}
.pd-info h1 { font: 600 1.5rem/1.25 var(--serif); }
.chip[aria-checked="true"], .tchip input:checked + span { border-color: #111; background: #fff; color: #111; }
.btn-buy, .pd-info #buy .row .btn-primary { background: #111; color: #fff; }
.btn-buy:hover, .pd-info #buy .row .btn-primary:hover { background: #000; }
.pd-info #buy { border-color: #E8E8E8; }
.soldby { border-radius: 12px; }
.badge { background: #F3F3F3; color: #111; }
.badge.live { background: #E4F1E9; color: var(--ok); }

/* footer */
.foot { background: #fff; border-top: 1px solid #EFEFEF; margin-top: 24px; }
.foot-in { max-width: 1400px; }
.foot a:hover { color: #111; text-decoration: underline; }

/* ═══════════ Round 5: listing pages start at the cards; smaller cards; filters in a drawer ═══════════ */
/* header: [back] [search with filter icon] */
.bsrow { display: flex; align-items: center; gap: 6px; order: 4; flex: 1 1 100%; min-width: 0; }
.bsrow .bsearch { flex: 1; min-width: 0; }
.backbtn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #111; cursor: pointer; margin-left: -6px; }
.backbtn:hover { background: #F3F3F3; }
.fbtn2 { flex: none; width: 40px; height: 100%; border: 0; background: transparent; color: #111; display: grid; place-items: center; cursor: pointer; border-radius: 999px; }
.fbtn2:hover, .fbtn2[aria-expanded="true"] { background: #F3F3F3; }
.fbtn2 .ico { width: 20px; height: 20px; }
.bsearch .sbtn { min-width: 56px; }
@media (min-width: 860px) {
  .bar-shop .bsrow { order: 3; flex: 1 1 auto; max-width: 820px; margin: 0 auto; }
  .bar-shop .bsearch { order: 0; flex: 1; max-width: none; margin: 0; }
  .bsearch .sbtn { min-width: 76px; }
}

/* listing pages: straight to the cards */
.wrap.wide.listing { padding-top: 14px; }
.listing .pager { margin: 22px 0 6px; }

/* filter drawer (sort lives in here too) */
#fscrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 55; }
.listing .filters { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(380px, 90vw); max-height: none; z-index: 60; display: block; overflow-y: auto; background: #fff; padding: 0 20px 28px; border: 0; border-radius: 0; box-shadow: -10px 0 40px rgba(0, 0, 0, .18); transform: translateX(105%); transition: transform .22s ease; visibility: hidden; }
.listing .filters.open { transform: none; visibility: visible; }
body.filters-open { overflow: hidden; }
.fhead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 -20px 6px; padding: 14px 20px 8px; background: #fff; }
.fhead h2 { margin: 0; font: 600 1.3rem var(--serif); }
.fclose { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.9rem; line-height: 1; border-radius: 50%; cursor: pointer; color: #111; }
.fclose:hover { background: #F3F3F3; }

/* smaller cards, smaller type */
.pgrid { gap: 14px 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .pgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .pgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.pgrid.strip { gap: 10px; }
.pgrid.strip .pcard { flex: 0 0 112px; }
@media (min-width: 900px) { .pgrid.strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .pgrid.strip { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.pimg { border-radius: 8px; }
.pimg .ico { width: 28px; height: 28px; }
.pbody { padding: 6px 1px 0; gap: 2px; }
.pname { font-size: .76rem; line-height: 1.3; min-height: 2.6em; }
.pprice { font-size: .98rem; }
.plow { font-size: .68rem; }
.pmeta, .pstore { font-size: .7rem; }
.ptag { top: 6px; left: 6px; font-size: .6rem; padding: 3px 6px; border-radius: 5px; }
.psold { font-size: .78rem; }

/* tighter home */
.hsec { margin-bottom: 22px; }
.hsec > header h2 { font-size: 1.2rem; }
.hsec > header a { font-size: .82rem; }
.mimg { width: 50px; height: 50px; }
.mcat { flex-basis: 62px; font-size: .7rem; }
.hbanner { height: 170px; }
.hslide b { font-size: clamp(1.3rem, 4.4vw, 2.1rem); }
.htext { font-size: .85rem; }
@media (min-width: 960px) { .hero3 { height: 340px; } .hslide { padding: 32px 48px; } .htext { font-size: 1rem; } .hcats li > a, .hcats-all { padding: 8px 12px; font-size: .9rem; } }
.bsearch .fbtn2 { background: transparent; color: #111; min-width: 0; width: 38px; border-radius: 50%; height: 36px; }
.bsearch .fbtn2:hover, .bsearch .fbtn2[aria-expanded="true"] { background: #F3F3F3; }

/* ══ Stage 1: one fixed card for every listing, then the AliExpress-style product page ══
   Photo, name, price and one detail line are fixed-size slots. Nothing a seller types can make a card taller or change its type. */
.pgrid { align-items: stretch; grid-auto-rows: 1fr; }
.pcard { display: flex; flex-direction: column; height: 100%; min-width: 0; overflow: hidden; background: transparent; border: 0; border-radius: 0; }
.pimg { position: relative; flex: none; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #F3F3F3 center / cover no-repeat; display: grid; place-items: center; }
.pbody { flex: none; display: grid; grid-template-rows: 2.6em 1.6em 1.3em; row-gap: 3px; padding: 8px 2px 0; align-content: start; min-width: 0; }
.pname { order: 0; height: 2.6em; min-height: 0; margin: 0; font: 500 .84rem/1.3 var(--sans); letter-spacing: 0; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pprice { order: 0; height: 1.6em; font: 700 1.05rem/1.6 var(--serif); color: var(--price); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdetail1 { height: 1.3em; font: 500 .74rem/1.3 var(--sans); color: #6B6B6B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.savedcell { display: grid; grid-template-rows: 1fr auto; gap: 4px; min-width: 0; }
.savedcell .btn { min-height: 36px; }
.pgrid.strip .pcard { height: auto; }

/* required marker and one-tap suggestions in the seller forms */
.req { color: #C62828; font-weight: 700; margin-left: 3px; }
/* a plain clickable word instead of a button, for the small actions in the seller dashboard */
.tlink { display: inline-block; font: 600 .9rem var(--sans); color: #D41954; background: none; border: 0; padding: 6px 2px; margin: 0; min-height: 0; line-height: 1.3; cursor: pointer; text-decoration: none; }
.tlink:hover, .tlink:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.tlink.danger { color: #B3261E; }
.tlink[disabled] { opacity: .5; cursor: not-allowed; text-decoration: none; }
/* "Add option" and friends sit right under the box above them: no gap, same left edge */
.tlink.under { display: block; margin-top: 0; padding: 8px 2px 0; }
.field[data-field="variants"] > .panel:last-of-type { margin-bottom: 0; }
.req { cursor: default; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.pick { font: 600 .8rem var(--sans); min-height: 32px; padding: 4px 12px; border: 1px solid #CFCFCF; border-radius: var(--btn-r); background: #fff; color: var(--ink); cursor: pointer; }
.pick:hover { border-color: #111; background: #F5F5F5; }

/* product page: zoom, specs table, delivery and returns cards */
.pd-main { cursor: zoom-in; position: relative; }
.pd-main img { transition: transform .12s ease-out; }
@media (hover: hover) { .pd-main:hover img { transform: scale(2); } }
.pd-spec { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: .9rem; }
.pd-spec th, .pd-spec td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pd-spec th { width: 38%; color: var(--muted); font-weight: 500; background: #FAFAFA; }
.pd-actions { display: flex; gap: 10px; flex: 1; }
.pd-actions .btn { flex: 1; min-height: var(--btn-h-lg); font-size: .95rem; }
.btn-now { background: #fff; color: #111; border: 1.5px solid #111; border-radius: var(--btn-r); }
.btn-now:hover { background: #F5F5F5; }
.lb { position: fixed; inset: 0; z-index: 80; background: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.lb-x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lb-stage { overflow: auto; display: grid; place-items: center; -webkit-overflow-scrolling: touch; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .15s; }
.lb-stage.zoomed img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
.lb-nav { display: flex; justify-content: center; gap: 12px; padding: 10px; border-top: 1px solid var(--line); }
.lb-nav button { min-width: 80px; min-height: var(--btn-h); border: 1px solid #CFCFCF; background: #fff; border-radius: var(--btn-r); font: 600 .95rem var(--sans); cursor: pointer; }
.lb-nav button:disabled { opacity: .4; cursor: default; }

/* A product with a single photo used to land in the narrow thumbnail column on wide screens. */
@media (min-width: 900px) {
  .pd-gal .pd-main { grid-column: 1 / -1; }
  .pd-gal:has(.pd-thumbs) .pd-main { grid-column: 2; grid-row: 1; }
  .pd-gal .pd-thumbs { grid-column: 1; grid-row: 1; }
}

/* ══ Stage 2: seller websites ══ */
body[data-theme="burgundy"] { --plum: #6D0C2B; --oxblood: #6D0C2B; --raspberry: #6D0C2B; --rose: #6D0C2B; --rose-deep: #6D0C2B; }
body[data-theme="green"] { --plum: #1F6B4A; --oxblood: #1F6B4A; --raspberry: #1F6B4A; --rose: #1F6B4A; --rose-deep: #1F6B4A; }
body[data-theme="navy"] { --plum: #1B2A52; --oxblood: #1B2A52; --raspberry: #1B2A52; --rose: #1B2A52; --rose-deep: #1B2A52; }
.store-announce { background: var(--plum); color: #fff; text-align: center; font: 600 .85rem var(--sans); padding: 8px 12px; }
.bar-store { flex-wrap: wrap; row-gap: 0; }
.store-nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
@media (min-width: 760px) { .store-nav { order: 0; width: auto; margin-left: 18px; padding: 0; flex: 1; } }
.store-nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.store-nav a:hover { background: var(--champagne-soft); }
.store-nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--plum); border-radius: 0; }
.site-hero { --ov-a: .15; --ov-b: .6; background: var(--plum) center / cover no-repeat; position: relative; min-height: 320px; display: grid; align-items: end; }
.site-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,var(--ov-a)), rgba(0,0,0,var(--ov-b))); }
/* Seller choices (stage 4C): banner size, how dark the photo is, and where the text sits. Defaults match the look before these options existed. */
.site-hero[data-height="small"] { min-height: 220px; } .site-hero[data-height="large"] { min-height: 480px; }
.site-hero[data-overlay="light"] { --ov-a: .05; --ov-b: .3; } .site-hero[data-overlay="dark"] { --ov-a: .35; --ov-b: .8; }
.site-hero[data-valign="top"] { align-items: start; } .site-hero[data-valign="middle"] { align-items: center; }
.site-hero[data-align="center"] .site-hero-in { justify-items: center; text-align: center; }
.site-hero[data-align="right"] .site-hero-in { justify-items: end; text-align: right; }
.site-hero-in { position: relative; max-width: 1120px; width: 100%; margin: 0 auto; padding: 56px 16px 28px; color: #fff; display: grid; gap: 10px; justify-items: start; }
.site-hero-in h1 { color: #fff; margin: 0; max-width: 18ch; }
.site-hero-in p { color: #fff; margin: 0; max-width: 46ch; opacity: .95; }
.site-hero-in .btn-primary { background: #fff; color: #111; }
.site-hero-in .logo-box { width: 64px; height: 64px; border-radius: 14px; }
.site-meta { font-size: .85rem; opacity: .9; }
.site-about p { max-width: 70ch; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; min-height: var(--btn-h-sm); border: 1px solid var(--line); border-radius: var(--btn-r); cursor: pointer; font-weight: 600; font-size: .86rem; }
.swatch input { width: auto; min-height: 0; position: absolute; opacity: 0; }
.swatch span { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.swatch:has(input:checked) { border-color: #111; }
.swatch:has(input:focus-visible) { outline: 2px solid #111; }
.chip[aria-current="true"] { background: #111; color: #fff; border-color: #111; }

/* ══ Stage 3: seller websites, own colour, fonts, footer ══ */
body[data-theme="custom"] { --plum: var(--site-accent); --oxblood: var(--site-accent); --raspberry: var(--site-accent); --rose: var(--site-accent); --rose-deep: var(--site-accent); }
body[data-font="sans"] h1, body[data-font="sans"] h2, body[data-font="sans"] h3, body[data-font="sans"] .store-brand { font-family: var(--sans); }
.store-foot-in { max-width: 1120px; margin: 0 auto; padding: 24px 16px 4px; display: grid; gap: 8px; text-align: center; }
.store-foot-in p { margin: 0; color: var(--muted); }
.store-foot-links { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; font-size: .9rem; }
.store-foot-links a { color: var(--ink); }
.store-foot-in { width: 100%; box-sizing: border-box; }

/* ══ Stage 4A: black menu with a rounded edge where it meets the page (Shopify admin style) ══ */
:root { --menu-bg: #0b0b0c; --menu-w: min(300px, 86vw); --edge: 28px; }
.menu { background: var(--menu-bg); color: #fff; width: var(--menu-w); }
.menu-title { color: #fff; }
.menu-x { color: #bdbdbd; } .menu-x:hover { background: rgba(255,255,255,.1); }
.menu nav a, .menu-item { color: #e9e9e9; }
.menu nav a:hover, .menu-item:hover { background: rgba(255,255,255,.08); }
.menu nav a[aria-current] { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.menu .ico { color: #a9a9a9; } .menu nav a[aria-current] .ico, .menu nav a:hover .ico { color: #fff; }
.menu-foot { border-top-color: rgba(255,255,255,.14); }
.menu .btn-primary { background: #fff; color: #111; border-color: #fff; }
.menu .btn-ghost { background: transparent; color: #fff; border-color: #4a4a4a; }
body.menu-open .menu { box-shadow: none; }
/* phone drawer: the dimmed page starts after the menu and its left corners are rounded into the black */
#scrim { left: var(--menu-w); background: rgba(0,0,0,.4); }
#scrim::before, #scrim::after { content: ''; position: absolute; left: 0; width: var(--edge); height: var(--edge); pointer-events: none; }
#scrim::before { top: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--edge) - 1px), var(--menu-bg) var(--edge)); }
#scrim::after { bottom: 0; background: radial-gradient(circle at 100% 0, transparent calc(var(--edge) - 1px), var(--menu-bg) var(--edge)); }
@media (min-width: 860px) {
  body.has-side { background: var(--menu-bg); }
  body.has-side .bar { background: var(--menu-bg); border-bottom: 0; color: #fff; }
  body.has-side .brand img { filter: brightness(0) invert(1); }
  body.has-side .who { color: #cfcfcf; }
  body.has-side .menu { width: var(--side-w); border-right: 0; }
  body.has-side main { background: var(--ivory); border-top-left-radius: var(--edge); min-height: calc(100vh - var(--bar-h)); overflow: clip; }
}

/* ══ Smaller type everywhere: the whole scale comes from the root size (14px). Phones keep 16px inside form fields so iOS does not zoom in. ══ */
@media (hover: none) and (pointer: coarse) { input, select, textarea, .filters input, .filters select, .bsearch input, .stepper input { font-size: 16px !important; } }

/* ══ Stage 4B: website editor (sections list + live preview) ══ */
.ed-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ed-top h2 { margin: 0; }
.ed-grid { display: grid; gap: 16px; align-items: start; }
.ed-preview { background: #f3f3f3; border-radius: 16px; padding: 10px; min-width: 0; }
.ed-devices { display: flex; gap: 6px; margin-bottom: 8px; }
.ed-devices .chip[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.ed-frame { height: 52vh; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin-inline: auto; transition: max-width .2s; }
.ed-frame.is-phone { max-width: 390px; }
.ed-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ed-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.ed-group { margin-bottom: 16px; }
.ed-group h3 { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.ed-group h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ed-row { display: flex; align-items: center; gap: 2px; border-radius: 10px; }
.ed-row:hover { background: var(--champagne-soft); }
.ed-row.is-off .ed-name { opacity: .5; }
.ed-name { flex: 1; min-width: 0; text-align: left; background: transparent; border: 0; padding: 9px 10px; display: grid; gap: 1px; cursor: pointer; color: var(--ink); font: inherit; }
.ed-name small { color: var(--muted); font-size: .8rem; }
.ed-mv, .ed-eye { width: 36px; height: 36px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 1rem; flex: none; }
.ed-mv:hover:not(:disabled), .ed-eye:hover { background: #eee; color: var(--ink); }
.ed-mv:disabled { opacity: .25; cursor: default; }
.ed-eye[aria-pressed="true"] { color: var(--ink); }
.ed-back { background: transparent; border: 0; padding: 6px 0; font: 600 .95rem var(--sans); cursor: pointer; color: var(--ink); }
@media (min-width: 900px) {
  .ed-grid { grid-template-columns: 340px 1fr; }
  .ed-panel { order: 0; position: sticky; top: calc(var(--bar-h) + 12px); max-height: calc(100vh - var(--bar-h) - 40px); overflow-y: auto; }
  .ed-preview { order: 1; position: sticky; top: calc(var(--bar-h) + 12px); }
  .ed-frame { height: calc(100vh - var(--bar-h) - 120px); }
}

/* Website editor: hero photo and product picker (stage 4C) */
.ed-hero-img { height: 110px; border-radius: 10px; background: #eee center / cover no-repeat; display: grid; place-items: center; border: 1px solid var(--line); }
.ed-pk { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ed-pk-img { width: 40px; height: 40px; border-radius: 8px; background: #eee center / cover no-repeat; flex: none; }
.ed-pk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ed-pk .btn { min-height: 30px; padding: 0 10px; }

/* Stage 4D: split hero, footer sign-up and social icons, scrolling product row */
.site-hero[data-layout="split"] { display: grid; grid-template-columns: 1fr; align-items: stretch; min-height: 0; }
.site-hero[data-layout="split"]::before { display: none; }
.site-hero-pic { background: rgba(255,255,255,.14) center / cover no-repeat; min-height: 240px; }
.site-hero[data-layout="split"] .site-hero-in { padding: 32px 16px; align-content: center; }
.site-hero[data-layout="split"][data-height="large"] .site-hero-pic { min-height: 380px; }
.site-hero[data-layout="split"][data-height="small"] .site-hero-pic { min-height: 180px; }
@media (min-width: 760px) {
  .site-hero[data-layout="split"] { grid-template-columns: 1fr 1fr; }
  .site-hero[data-layout="split"] .site-hero-pic { order: 2; min-height: 340px; }
  .site-hero[data-layout="split"][data-height="large"] .site-hero-pic { min-height: 480px; }
  .site-hero[data-layout="split"][data-height="small"] .site-hero-pic { min-height: 260px; }
  .site-hero[data-layout="split"] .site-hero-in { margin: 0; max-width: none; padding: 40px 32px 40px max(16px, calc((100vw - 1120px) / 2 + 16px)); }
}
.foot-signup { display: grid; gap: 8px; justify-items: center; }
.foot-signup .row { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.foot-signup input { flex: 1; min-width: 0; }
.foot-signup small, #foot-signup-msg { font-size: .85rem; }
.store-foot-social { display: flex; gap: 14px; justify-content: center; }
.store-foot-social a { color: var(--ink); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.store-foot-social a:hover { background: var(--champagne-soft); }
/* Footer builder (phase 5b). Every rule below needs an attribute the store sets, so a store that never touches the footer settings looks as it did. */
.foot-social-title { font-size: .9rem; }
.foot-social-blk { display: grid; gap: 8px; }
#foot[data-falign="left"] .foot-social-blk .store-foot-social { justify-content: flex-start; }
.store-foot-social a svg { width: 22px; height: 22px; }
.store-foot-social[data-size="small"] a { width: 32px; height: 32px; } .store-foot-social[data-size="small"] a svg { width: 17px; height: 17px; }
.store-foot-social[data-size="large"] a { width: 50px; height: 50px; } .store-foot-social[data-size="large"] a svg { width: 27px; height: 27px; }
.store-foot-social[data-style="plain"] a { border-color: transparent; border-radius: 6px; }
.store-foot-social[data-style="filled"] a { background: var(--ink); color: #fff; border-color: var(--ink); }
.store-foot-social[data-style="filled"] a:hover { background: var(--ink); opacity: .85; }
/* The footer note was capped to 62 characters by the page-wide paragraph rule but not centred, so it sat left of centre. */
.store-foot-in p { margin-left: auto; margin-right: auto; }
.store-foot-links span { padding: 4px 0; } /* links in this row carry 4px above and below; the phone number now lines up with them */
#foot[data-falign="left"] .store-foot-in p { margin-left: 0; }
#foot[data-falign="left"] .store-foot-in { text-align: left; }
#foot[data-falign="left"] .store-foot-links, #foot[data-falign="left"] .store-foot-social { justify-content: flex-start; }
#foot[data-falign="left"] .foot-signup { justify-items: start; }
#foot[data-flayout="columns"] .store-foot-in { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; align-items: start; }
#foot[data-flayout="columns"] .store-foot-links { flex-direction: column; flex-wrap: nowrap; gap: 8px; align-items: center; }
#foot[data-flayout="columns"][data-falign="left"] .store-foot-links { align-items: flex-start; }
#foot[data-fstyle="soft"] { background: var(--champagne-soft); }
#foot[data-fstyle="dark"] { background: #111111; color: #fff; }
#foot[data-fstyle="brand"] { background: var(--plum); color: #fff; }
#foot[data-fstyle="dark"] .store-foot-in p, #foot[data-fstyle="brand"] .store-foot-in p, #foot[data-fstyle="dark"] .muted, #foot[data-fstyle="brand"] .muted { color: rgba(255, 255, 255, .78); }
#foot[data-fstyle="dark"] .store-foot-links a, #foot[data-fstyle="brand"] .store-foot-links a, #foot[data-fstyle="dark"] .store-foot-social a, #foot[data-fstyle="brand"] .store-foot-social a { color: #fff; }
#foot[data-fstyle="dark"] .store-foot-social a, #foot[data-fstyle="brand"] .store-foot-social a { border-color: rgba(255, 255, 255, .45); }
#foot[data-fstyle="dark"] .store-foot-social a:hover, #foot[data-fstyle="brand"] .store-foot-social a:hover { background: rgba(255, 255, 255, .16); }
#foot[data-fstyle="dark"] .store-foot-social[data-style="plain"] a, #foot[data-fstyle="brand"] .store-foot-social[data-style="plain"] a { border-color: transparent; }
#foot[data-fstyle="dark"] .store-foot-social[data-style="filled"] a { background: #fff; color: #111; border-color: #fff; }
#foot[data-fstyle="brand"] .store-foot-social[data-style="filled"] a { background: #fff; color: var(--plum); border-color: #fff; }
#foot[data-fstyle="dark"] .foot-signup .btn-primary { background: #fff; color: #111; }
#foot[data-fstyle="brand"] .foot-signup .btn-primary { background: #fff; color: var(--plum); }
#foot[data-fstyle="dark"] .foot-base, #foot[data-fstyle="brand"] .foot-base { color: rgba(255, 255, 255, .72); border-top-color: rgba(255, 255, 255, .22); }
.ed-nav-row { display: flex; align-items: center; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ed-nav-row b { flex: 1; }

/* custom pages (stage 7): headings, lists, links and photos inside a seller's own page */
.custom-page h3 { font-size: 1.25rem; margin: 22px 0 8px; color: var(--ink); }
.custom-page h4 { font-size: 1.05rem; margin: 18px 0 6px; color: var(--ink); }
.custom-page ul { margin: 0 0 16px; padding-left: 22px; }
.custom-page li { margin-bottom: 4px; }
.custom-page a { color: var(--plum); text-decoration: underline; }
.custom-page figure { margin: 0 0 18px; }
.custom-page img { display: block; max-width: 100%; height: auto; border-radius: var(--r); }
.ed-fmt { gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.ed-fmt .btn { min-height: 30px; padding: 0 10px; font-size: .82rem; }

/* Notification bell (stage 11) */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 0 8px; }
.bell-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--raspberry, #8A1C4B); color: #fff; font: 700 .7rem/18px var(--sans, sans-serif); text-align: center; font-style: normal; }
.nt { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; }
.nt:last-child { border-bottom: 0; }
.nt.unread { border-left: 3px solid var(--raspberry, #8A1C4B); padding-left: 10px; }
.nt > div:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* delivery by area: product and store pages, seller settings */
.dz { margin: -4px 0 12px; }
.dz summary { cursor: pointer; font-size: 14px; color: var(--oxblood); }
.dz-t { border-collapse: collapse; margin-top: 6px; font-size: 14px; }
.dz-t th, .dz-t td { text-align: left; padding: 3px 16px 3px 0; font-weight: 400; }
.dz-t td { font-variant-numeric: tabular-nums; }
.dz-row { gap: 8px; margin-bottom: 8px; flex-wrap: nowrap; }
.dz-row input:first-child { flex: 1 1 auto; min-width: 0; }
.dz-row input:nth-child(2) { flex: 0 0 110px; width: 110px; }

/* ══ Stage 14: shopping / selling switch ══ */
.modeswitch { display: inline-flex; background: #EDEDED; border-radius: 999px; padding: 3px; gap: 2px; }
.modeswitch button { border: 0; background: transparent; color: #444; font: 600 .82rem var(--sans); padding: 7px 14px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.modeswitch button[aria-pressed="true"] { background: #111; color: #fff; }
.menu-mode { padding: 6px 14px 4px; }
.menu-mode .modeswitch { display: flex; background: rgba(255,255,255,.12); }
.menu-mode .modeswitch button { flex: 1; color: #d8d8d8; }
.menu-mode .modeswitch button[aria-pressed="true"] { background: #fff; color: #111; }
.bar-acts .modeswitch { display: none; }
@media (min-width: 860px) { .bar-acts .modeswitch { display: inline-flex; margin-right: 6px; } }

/* ══ Stage 14b: seller Home (the rebuilt dashboard) ══ */
.dash { max-width: 760px; margin: 0 auto; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.dash-head h2 { margin: 0; }
.dash-hello { margin: 0 0 2px; }
.dash-view { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.dash-view:hover { text-decoration: underline; }
.dash-sec { padding: 22px 0; border-top: 1px solid var(--line); }
.dash-head + .dash-sec { margin-top: 12px; }
.dash-sec > h3 { margin: 0 0 12px; font-size: 1rem; }
.dash-first { background: var(--champagne-soft); border: 0; border-radius: 14px; padding: 20px; margin-top: 12px; }
.dash-first h3 { font-size: 1.15rem; }
.dash-list { display: flex; flex-direction: column; }
.dash-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dash-row:last-child { border-bottom: 0; }
.dash-main { flex: 1; min-width: 0; }
.dash-row:hover { background: var(--champagne-soft); }
.dash-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); }
.dash-go { color: var(--muted); font-size: 1.3rem; }
.dash-amt { font-weight: 700; }
.dash-clear { margin: 0; color: var(--muted); }
.dash-money { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; align-items: end; }
.dash-money span { display: block; font-size: .85rem; margin-bottom: 4px; }
.dash-money b { font: 600 2rem/1.1 var(--serif); }
.dash-money strong { font: 600 1.15rem/1.2 var(--serif); }
.dash-link { display: inline-block; margin-top: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.dash-link:hover { text-decoration: underline; }
@media (max-width: 560px) { .dash-money { grid-template-columns: 1fr 1fr; } .dash-money > div:first-child { grid-column: 1 / -1; } .dash-head { flex-direction: column; align-items: flex-start; } }

/* ══ Stage 15a: header with menu on the left, back button before it, no extra tabs, tidy home ══ */
.bar-shop .backbtn { order: 0; margin-left: -8px; }
.bar-shop .backbtn + .menu-btn { margin-left: -6px; }
.bar-shop .menu-btn { order: 1; }
.catnav, .tabbar { display: none !important; }
body.has-tabbar { padding-bottom: 0; }
@media (min-width: 860px) {
  /* the menu opens as a drawer for shoppers on wide screens too */
  body:not(.has-side) .menu-btn { display: grid; }
  body:not(.has-side) .menu { display: flex; }
  body:not(.has-side) #scrim:not([hidden]) { display: block; }
  .bar-shop { gap: 14px; }
  .bar-shop .brand { margin-right: 14px; }
}
@media (min-width: 960px) {
  .hero3 { height: 320px; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 16px; margin-bottom: 24px; }
  .hbanner { height: 100%; }
  .hcats ul { overflow-y: auto; }
  .hpanel { gap: 12px; padding: 18px; }
  .hsellbox { margin-top: 0; flex: 1; align-content: end; }
}
.hero3 + .hsec, .mcats + .hero3 { margin-top: 0; }

/* ══ Stage 15b: Account page ══ */
.acc { max-width: 620px; margin: 0 auto; padding: 8px 16px 40px; }
.acc-head { display: flex; align-items: center; gap: 16px; padding: 18px 0 22px; }
.acc-head h2 { margin: 0; font-size: 1.5rem; }
.acc-head p { margin: 2px 0 0; word-break: break-all; }
.acc-av { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font: 600 1.4rem var(--serif); }
.acc-sec { padding: 6px 0 14px; }
.acc-sec > h3 { margin: 0 0 4px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); font-weight: 700; }
.acc-list { border-top: 1px solid var(--line); }
.acc { --acc-line: 22px; }
.acc-row, .acc-verify { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 14px 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer; }
.acc-row:hover, .acc-verify:hover { background: var(--champagne-soft); }
.acc-row .ico { flex: none; width: 20px; height: 20px; margin-top: calc((var(--acc-line) - 20px) / 2); color: var(--muted); }
.acc-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.acc-main b, .acc-verify b { display: block; font-weight: 700; font-size: .98rem; line-height: var(--acc-line); }
.acc-main small, .acc-verify small { color: var(--muted); font-size: .84rem; line-height: 1.4; display: block; }
.acc-go { flex: none; display: flex; align-items: center; height: var(--acc-line); color: var(--muted); font-size: 1.3rem; line-height: 1; }
.acc-verify { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--champagne-soft); }
.acc-verify > span:first-child { flex: 1; min-width: 0; }
.acc-out b { color: var(--danger); }
/* Log out continues the list above it, so there is one line between them, not two */
.acc-sec:has(+ .acc-sec-out) { padding-bottom: 0; }
.acc-sec-out { padding-top: 0; }
.acc-sec-out .acc-list { border-top: 0; }

/* Dropdowns: the arrow sits 14px in from the edge instead of touching it */
select:not([multiple]) {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  text-overflow: ellipsis;
}
select:not([multiple]):disabled { opacity: .6; }

/* Upload tiles (replace the plain Choose file box) */
input.drop-in { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.drop { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 1.5px dashed #BDBDBD; border-radius: 14px; background: #FAFAFA; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover { border-color: #111; background: var(--champagne-soft); }
.drop-in:focus-visible + .drop { outline: 2px solid #111; outline-offset: 2px; }
.drop-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: #111; }
.drop-ic .ico { width: 22px; height: 22px; }
.drop-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.drop-tx b { font-size: .95rem; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-tx small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.drop.has { border-style: solid; border-color: var(--ok); background: #F2F8F4; }
.drop.has .drop-ic { background: var(--ok); border-color: var(--ok); color: #fff; }
.drop.compact { padding: 10px 12px; gap: 10px; }
.drop.compact .drop-ic { width: 36px; height: 36px; }
.drop.compact .drop-ic .ico { width: 18px; height: 18px; }
.upload .drop { flex: 1; min-width: 0; }
.drop-in:disabled + .drop { opacity: .5; cursor: not-allowed; }

/* Verification page */
.vstat { display: flex; align-items: center; gap: 12px; }
.vstat strong { flex: 1; }
.vstat-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--champagne-soft); display: grid; place-items: center; color: #111; }
.vstat-ic.live { background: #E4F1E9; color: var(--ok); }
.vform { margin-top: 8px; }
.vstep { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.vnum { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font: 700 .85rem/1 var(--sans); }
.vbody { flex: 1; min-width: 0; }
.vbody .field { margin-bottom: 0; }
.vt { display: block; font-weight: 700; font-size: 1rem; line-height: 28px; margin-bottom: 8px; }
.vt .opt { margin-left: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--champagne-soft); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.vtips { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: .86rem; }
.vtips li { display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.vtips li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #BDBDBD; }
.vsafe { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .85rem; line-height: 1.4; margin: 16px 0; max-width: none; }
.vsafe .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* ===== Compact sizes in the seller area (Shopify-style: smaller buttons and cards) ===== */
body[data-area=seller] .btn { min-height: var(--btn-h-sm); padding: 0 12px; font-size: .86rem; }
body[data-area=seller] .btn-buy { min-height: var(--btn-h); }
body[data-area=seller] .panel { padding: 14px; border-radius: 12px; }
body[data-area=seller] .panel h3 { font-size: .98rem; margin-top: 0; }
body[data-area=seller] .stat { padding: 12px; }
body[data-area=seller] .stat b { font-size: 1.25rem; }
body[data-area=seller] h2 { font-size: 1.35rem; }
.fin-pay summary, .fin-more summary { list-style: none; cursor: pointer; }
.fin-pay summary::-webkit-details-marker, .fin-more summary::-webkit-details-marker { display: none; }

/* Finances */
.fin { max-width: 620px; margin: 0 auto; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.fcard h3 { margin: 0 0 6px; font-size: .95rem; }
.fin-lab { margin: 0; font-size: .82rem; }
.fin-big { font: 700 1.9rem/1.15 var(--serif); margin: 2px 0 10px; }
.fin-sub { display: flex; gap: 22px; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.fin-sub span { display: block; font-size: .78rem; color: var(--muted); }
.fin-sub b { font-size: .95rem; }
.fin-pay summary { width: fit-content; }
.fin-pay[open] summary { margin-bottom: 12px; }
.fin-more { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.fin-more summary { font-weight: 600; font-size: .88rem; display: flex; justify-content: space-between; align-items: center; }
.fin-more summary::after { content: '+'; color: var(--muted); font-size: 1.1rem; }
.fin-more[open] summary::after { content: '\2212'; }
.fin-more > p { margin: 8px 0 0; }
.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; white-space: nowrap; }
.kv .kv-total { border-bottom: 0; }
.kv .kv-total dt { color: var(--ink); font-weight: 700; }
.lrows { display: flex; flex-direction: column; }
.lrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lmain { min-width: 0; display: grid; gap: 2px; }
.lmain b, .lend b { font-size: .9rem; overflow-wrap: anywhere; }
.lmain small, .lend small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.lend { flex: none; text-align: right; display: grid; gap: 2px; align-content: start; }

/* Settings hub */
.set-title { margin: 8px 0 12px; }
.set-store { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); margin-bottom: 8px; }
.set-store .acc-av { width: 44px; height: 44px; font-size: 1.1rem; }
.set-store-tx { flex: 1; min-width: 0; display: grid; }
.set-store-tx b, .set-store-tx small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-store-tx small { color: var(--muted); font-size: .8rem; }
.crumb-back { display: inline-block; color: var(--muted); text-decoration: none; font-weight: 600; margin: 4px 0 8px; }

/* Home */
.pill-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; background: #fff; }
.pill-link .ico { width: 16px; height: 16px; }
.hcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.hc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .84rem; }
.hc-top h3 { margin: 0; font-size: .98rem; }
.chg { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.chg.up { background: #E4F1E9; color: var(--ok); }
.chg.down { background: #FBE9EC; color: var(--danger); }
.hc-big { font: 700 1.85rem/1.2 var(--serif); margin: 4px 0 6px; }
.spark { width: 100%; height: auto; display: block; }
.spark rect.has { fill: #BDBDBD; }
.spark rect.on { fill: #111; }
.spark rect.zero { fill: #ECECEC; }
.spark text { font: 600 9px var(--sans); fill: #8A8A8A; }
.hc-foot { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.hc-foot > div { flex: 1; min-width: 0; }
.hc-foot span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.hc-foot b { font-size: 1.05rem; }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.qa a { display: grid; justify-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ink); text-decoration: none; text-align: center; }
.qa-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--champagne-soft); display: grid; place-items: center; }
.qa-ic .ico { width: 21px; height: 21px; }
.gbar { height: 6px; border-radius: 999px; background: #ECECEC; margin: 10px 0 4px; overflow: hidden; }
.gbar span { display: block; height: 100%; background: #111; border-radius: 999px; }
.glist { display: flex; flex-direction: column; }
.grow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.grow:first-child { border-top: 0; }
.gtick { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed #BDBDBD; display: grid; place-items: center; color: var(--muted); }
.gtick .ico { width: 16px; height: 16px; }
.grow.done .gtick { border: 0; background: var(--ok); color: #fff; }
.grow.done .gtx b { color: var(--muted); text-decoration: line-through; }
.gtx { flex: 1; min-width: 0; display: grid; }
.gtx b { font-size: .92rem; line-height: 1.3; }
.gtx small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.mini2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.mini span { display: block; font-size: .78rem; color: var(--muted); }
.mini b { font: 700 1.2rem/1.3 var(--serif); }
body[data-area=seller] .dash-sec { padding: 16px 0; }

/* ===== Home v2 ===== */
.dash-top { display: flex; align-items: center; gap: 12px; }
.dash-av { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font: 700 1.2rem var(--serif); }
.dash-who { min-width: 0; }
.dash-who h2 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.dash-who .dash-hello { margin: 0; font-size: .82rem; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar, .mscroll::-webkit-scrollbar { display: none; }
.chips-row .pill-link { flex: none; }
.rchips { display: inline-flex; gap: 4px; margin-top: 14px; padding: 3px; background: #F1F1F1; border-radius: 999px; }
.rchips button { border: 0; background: transparent; font: 600 .82rem var(--sans); padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.rchips button.on { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.mcard { flex: 0 0 156px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 4px; align-content: start; }
.ml { font-size: .78rem; color: var(--muted); font-weight: 600; }
.mv { font: 700 1.2rem/1.2 var(--serif); overflow-wrap: anywhere; }
.mcard .chg { justify-self: start; }
.msp { width: 100%; height: 34px; margin-top: 2px; }
.msp path { fill: none; stroke: #111; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.area { width: 100%; height: auto; display: block; margin-top: 8px; }
.area .grid { stroke: #EEE; stroke-width: 1; }
.area .ln { fill: none; stroke: #111; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.area .dot { fill: #111; stroke: #fff; stroke-width: 2; }
.area text { font: 600 9px var(--sans); fill: #8A8A8A; }
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ntile { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: #F6F6F6; color: var(--ink); text-decoration: none; }
.ntile b { font: 700 1.5rem/1.1 var(--serif); }
.ntile span { font-size: .76rem; color: var(--muted); font-weight: 600; line-height: 1.25; }
.ntile.hot { background: #FBEAEE; }
.ntile.hot b { color: var(--danger); }
.bal-card { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 16px; background: #111; color: #fff; }
.bal-card span { display: block; font-size: .8rem; opacity: .75; }
.bal-card b { display: block; font: 700 1.55rem/1.25 var(--serif); }
.bal-card small { opacity: .7; font-size: .8rem; }
.bal-btn { flex: none; padding: 6px 14px; border-radius: var(--btn-r); background: #fff; color: #111; font-weight: 700; font-size: .86rem; text-decoration: none; }
.rank { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #F1F1F1; display: grid; place-items: center; font-size: .76rem; font-weight: 700; align-self: center; }
.lrow-a { color: var(--ink); text-decoration: none; align-items: center; }
.hcard .lrows { margin-top: 4px; }
.hcard .lrow { align-items: center; }
.mscroll { scroll-padding-left: 16px; }

/* ===== Plain text tabs (no pill buttons) ===== */
.tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 12px 0 0; padding: 0; background: none; border-radius: 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; position: relative; padding: 9px 0; min-height: 0; font: 600 .9rem/1.2 var(--sans); color: var(--muted); text-decoration: none; background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: #111; }
.tabs [aria-current="true"], .tabs [aria-pressed="true"], .tabs button.on { color: #111; background: none; }
.tabs [aria-current="true"]::after, .tabs [aria-pressed="true"]::after, .tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #111; border-radius: 2px; }
.rchips { display: flex; gap: 22px; padding: 0; margin-top: 14px; background: none; }
.rchips button { padding: 9px 0; border-radius: 0; box-shadow: none; }
.rchips button.on { background: none; box-shadow: none; }
.ed-devices { margin-bottom: 8px; }
.ed-devices .chip { all: unset; }
/* Home shortcuts are plain links, not pills */
.chips-row { gap: 18px; }
.pill-link { padding: 4px 0; border: 0; border-radius: 0; background: none; font-size: .86rem; color: #111; }
.errbox { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-top: 12px; }
.errbox h3 { margin: 0 0 6px; }
.errbox p { margin: 0 0 14px; }
/* Pages start closer to the top in the seller area */
body[data-area=seller] .wrap, body[data-area=seller] .narrow { padding-top: 26px; }
body[data-area=seller] .acc { padding-top: 22px; }
body[data-area=seller] main h2:first-child, body[data-area=seller] .wrap > h2:first-child, body[data-area=seller] .narrow > h2 { margin-top: 0; }

/* ══ Stage 15j: tighter web side menu, invisible scrollbars everywhere, seller/admin pages start at the left on web ══ */
/* Everything still scrolls (wheel, trackpad, touch, keyboard); only the scrollbar itself is hidden, on the menu and on the page. */
html, body, .menu, .menu nav, main, * { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }

@media (min-width: 860px) {
  /* side menu: items sit closer together */
  body.has-side .menu nav { gap: 0; padding: 6px 10px; }
  body.has-side .menu nav a, body.has-side .menu-item { min-height: 36px; padding: 0 10px; gap: 10px; font-size: .9rem; }
  body.has-side .menu-mode { padding: 4px 12px 2px; }
  body.has-side .menu-foot { padding: 8px 10px; gap: 4px; }

  /* seller and admin pages: content starts at the left edge next to the menu, not centred */
  body.has-side .wrap, body.has-side .narrow, body.has-side .dash, body.has-side .acc, body.has-side .fin { margin-left: 0; margin-right: auto; }
}

/* ══ Stage 16: My website opens as its own full-screen page (sections on the left, the whole site on the right, click a part to edit it) ══ */
body.ed-full #bar, body.ed-full #menu, body.ed-full #scrim, body.ed-full #foot, body.ed-full .skip { display: none !important; }
body.ed-full main { margin: 0 !important; border-radius: 0 !important; background: #fff !important; min-height: 0; overflow: visible; }
.ed-shell { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #eceef1; }
.ed-bar { flex: none; display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
.ed-exit { flex: none; font-weight: 700; text-decoration: none; color: var(--ink); padding: 8px 10px; margin-left: -8px; border-radius: 8px; }
.ed-exit:hover { background: #f1f1f1; }
.ed-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ed-title small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-bar .ed-devices { margin: 0; border-bottom: 0; }
.ed-actions { flex: none; gap: 10px; align-items: center; }
.ed-shell #ed-err { flex: none; }
.ed-shell #ed-err .notice { margin: 8px 14px 0; }
.ed-shell .ed-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0; align-items: stretch; }
.ed-shell .ed-panel { position: static; max-height: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 16px 14px 40px; overflow-y: auto; min-height: 0; }
.ed-shell .ed-preview { position: static; display: flex; flex-direction: column; min-height: 0; padding: 14px; border-radius: 0; background: #eceef1; }
.ed-shell .ed-frame { flex: 1; height: auto; min-height: 0; width: 100%; border-radius: 8px; box-shadow: 0 1px 8px rgba(0, 0, 0, .1); }
.ed-shell .ed-frame.is-phone { max-width: 390px; }
.ed-shell .ed-frame.is-tablet { max-width: 820px; }
#ed-state[data-state="failed"] { color: #b3261e; font-weight: 700; }
#ed-state[data-state="unsaved"] { color: #8a5a00; }
.ed-add { display: block; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1.5px dashed #bdbdbd; border-radius: 10px; background: transparent; font: 700 .9rem var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.ed-add:hover { border-color: #111; background: #fafafa; }
.ed-add-top { margin-top: 6px; font-weight: 600; }
.ed-addlist { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #fff; }
.ed-addlist button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; font-family: var(--sans); }
.ed-addlist button:hover { background: var(--champagne-soft, #f5f5f5); }
.ed-addlist small { color: var(--muted); }
@media (max-width: 859px) {
  .ed-bar { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .ed-shell .ed-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .ed-shell .ed-preview { order: -1; padding: 8px; }
  .ed-shell .ed-panel { border-right: 0; border-top: 1px solid var(--line); }
}

/* inside the preview: hover outline, the picked part, and its little toolbar */
body.pv .pv-sec, body.pv .store-announce, body.pv #bar .bar-store, body.pv #foot { cursor: pointer; }
body.pv .pv-sec:hover, body.pv .store-announce:hover, body.pv #bar .bar-store:hover, body.pv #foot:hover { outline: 2px dashed #2f6bff; outline-offset: -2px; }
body.pv .pv-sel, body.pv .pv-sel:hover { outline: 2px solid #2f6bff !important; outline-offset: -2px; position: relative; }
.pv-tools { position: absolute; top: 6px; right: 6px; z-index: 60; display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 8px; background: #2f6bff; color: #fff; font: 600 .74rem var(--sans); cursor: default; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.pv-tools span { padding: 0 8px; white-space: nowrap; }
.pv-tools button { min-width: 28px; height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: #fff; font: 700 .8rem var(--sans); cursor: pointer; }
.pv-tools button:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.pv-tools button:disabled { opacity: .4; cursor: default; }

/* ══ Stage 16b: the seller's own sections (heading, text, image and button blocks) ══ */
.cs { padding: 44px 16px; background: #fff; color: var(--ink); }
.cs[data-bg="soft"] { background: #f4f4f4; }
.cs[data-bg="dark"] { background: #111; color: #fff; }
.cs-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 22px; }
.cs-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; align-items: flex-start; }
.cs[data-align="center"] .cs-body { align-items: center; text-align: center; }
.cs-blk { max-width: 100%; }
.cs-h { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.15; }
h3.cs-h { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.cs-t p { margin: 0 0 10px; line-height: 1.6; max-width: 62ch; }
.cs-t p:last-child { margin-bottom: 0; }
.cs-img img { display: block; width: 100%; height: auto; border-radius: 12px; }
.cs-ph { display: grid; place-items: center; min-height: 160px; border: 2px dashed #bdbdbd; border-radius: 12px; color: #777; font-weight: 600; }
.cs[data-bg="dark"] .cs-ph { border-color: #555; color: #aaa; }
.cs[data-bg="dark"] .btn-primary, .cs[data-layout="banner"] .btn-primary { background: #fff; color: #111; border-color: #fff; }
.cs-empty { margin: 0; color: #888; text-align: center; }
.cs-media { display: grid; gap: 12px; min-width: 0; }
.cs-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cs-grid .cs-img img { aspect-ratio: 1 / 1; object-fit: cover; }
.cs[data-layout="banner"] { background: #111 center / cover no-repeat; color: #fff; min-height: 340px; display: grid; align-items: center; position: relative; }
.cs[data-layout="banner"]::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.cs[data-layout="banner"] .cs-in { position: relative; width: 100%; }
@media (min-width: 760px) {
  .cs[data-layout="image_text"][data-pics="1"] .cs-in { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .cs[data-layout="image_text"] .cs-body { align-items: flex-start; text-align: left; }
}

/* editor: block cards */
.ed-blk { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 4px; margin-bottom: 10px; background: #fff; transition: box-shadow .2s; }
.ed-blk.is-flash { box-shadow: 0 0 0 3px #2f6bff; }
.ed-blk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ed-blk-head span { display: flex; gap: 2px; }
.ed-addh { display: block; padding: 6px 10px 2px; font: 700 .7rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* editor: drag to reorder (grip on section rows and block cards) */
.ed-grip { width: 28px; height: 36px; display: inline-grid; place-items: center; background: transparent; border: 0; border-radius: 8px; color: var(--muted); font-size: .9rem; letter-spacing: -2px; cursor: grab; touch-action: none; user-select: none; flex: none; padding: 0; }
.ed-grip:hover { background: #eee; color: var(--ink); }
.ed-grip:active { cursor: grabbing; }
.ed-blk-head b { display: inline-flex; align-items: center; gap: 2px; }
.ed-blk-name { appearance: none; background: none; border: 0; padding: 4px 6px; margin: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; border-radius: 6px; text-align: left; }
.ed-blk-name:hover, .ed-blk-name:focus-visible { background: #f1f1f1; }
.ed-blk-name[aria-pressed="true"] { color: #2f6bff; }
.ed-blk.is-collapsed { padding-bottom: 6px; background: #fafafa; }
.ed-blk.is-collapsed .ed-blk-head { margin-bottom: 0; }
.ed-blk-sum { color: var(--muted, #6b6b6b); font-weight: 400; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 4px; }
.ed-row.is-drag, .ed-blk.is-drag { opacity: .55; box-shadow: 0 6px 18px rgba(0,0,0,.18); background: #fff; }
.drop-before { box-shadow: 0 -3px 0 #2f6bff; }
.drop-after { box-shadow: 0 3px 0 #2f6bff; }

/* ══ Stage 17a: compact buttons everywhere (sizes come from --btn-h, --btn-h-sm, --btn-h-lg, --btn-r at the top) ══ */
.ed-bar .btn { min-height: var(--btn-h-sm); padding: 0 12px; font-size: .86rem; }
.ed-bar .ed-devices button { min-height: var(--btn-h-sm); padding: 0 12px; border-radius: var(--btn-r); }
.site-hero .btn, .cs .btn { min-height: var(--btn-h); padding: 0 18px; }
.modeswitch, .modeswitch button { border-radius: var(--btn-r); }
.modeswitch button { min-height: 28px; padding: 4px 12px; }
.rchips, .rchips button { border-radius: var(--btn-r); }
.tchip span { padding: 6px 14px; border-radius: var(--btn-r); }
.pill-link { border-radius: var(--btn-r); }

/* ══ Stage 17b: click text in the preview to type over it ══ */
body.pv [data-ed], body.pv [data-edb] { cursor: text; }
body.pv [data-ed]:hover, body.pv [data-edb]:hover, body.pv [data-edr="about"]:hover { outline: 1px dashed #2f6bff; outline-offset: 3px; }
body.pv [data-edr="about"] { cursor: text; }
body.pv .pv-editing, body.pv .pv-editing:hover { outline: 2px solid #2f6bff; outline-offset: 3px; background: rgba(47, 107, 255, .07); border-radius: 4px; cursor: text; min-width: 40px; }
.pv-tools { flex-wrap: wrap; max-width: calc(100% - 12px); }

.ed-panel .btn, .ed-panel label.btn { min-height: var(--btn-h-sm); padding: 0 12px; font-size: .84rem; }
.ed-add { padding: 8px 12px; border-radius: var(--btn-r); }

/* ══ Stage 17c: block toolbar in the preview, divider and space blocks, footer links ══ */
body.pv .cs-blk { position: relative; }
body.pv .cs-blk[data-blk]:hover { outline: 1px dashed #2f6bff; outline-offset: 2px; }
body.pv .pv-bsel, body.pv .pv-bsel:hover { outline: 2px solid #2f6bff !important; outline-offset: 2px; }
.pv-btools { position: absolute; z-index: 61; display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 8px; background: #2f6bff; color: #fff; font: 600 .74rem var(--sans); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: default; }
.pv-btools span { padding: 0 8px; white-space: nowrap; }
.pv-btools button { min-width: 26px; height: 24px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: #fff; font: 700 .78rem var(--sans); cursor: pointer; }
.pv-btools button:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.pv-btools button:disabled { opacity: .4; cursor: default; }
.pv-bmenu { position: absolute; top: 30px; right: 0; display: grid; min-width: 130px; padding: 4px; background: #fff; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.pv-bmenu button { color: #111; text-align: left; height: 30px; font-weight: 600; }
.pv-bmenu button:hover { background: #f1f1f1 !important; }
.cs-div hr { border: 0; border-top: 1px solid currentColor; opacity: .25; margin: 8px 0; }
.cs-sp { height: 24px; } .cs-sp[data-size="small"] { height: 12px; } .cs-sp[data-size="large"] { height: 56px; }
body.pv .cs-sp, body.pv .cs-div { min-height: 14px; }
.ed-fl { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 6px; align-items: center; margin-bottom: 8px; }
.ed-fl input { min-height: 34px; padding: 4px 8px; font-size: .86rem; }

/* ══ Stage 17d: look settings (colour, space, font, size) ══ */
[data-fg] :is(h1, h2, h3, h4, p, span, small, li, a:not(.btn)) { color: inherit !important; }
[data-fg] .cs, [data-fg] .cs :is(div, section) { color: inherit !important; }
[data-bgc] .cs { background-color: transparent !important; }
.cs-t p { font-size: inherit; } /* a heading keeps its own size: Auto draws at the 1.5 to 2.4rem set above, a picked size is inline on the heading itself */
.cs-t[style*="font-size"] p { font-size: inherit; }
.pv-pop { position: fixed; z-index: 70; width: 288px; max-width: calc(100vw - 16px); padding: 10px 12px 12px; background: #fff; color: #111; border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .28); font: 600 .8rem var(--sans); }
.pv-pop-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pv-pop-h button { border: 0; background: transparent; cursor: pointer; font: 700 .9rem var(--sans); width: 26px; height: 26px; border-radius: 6px; }
.pv-pop-h button:hover { background: #f1f1f1; }
.pv-prow { display: grid; gap: 4px; margin-bottom: 10px; }
.pv-prow > span:first-child { color: #555; font-weight: 600; }
.pv-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.pv-seg button, .pv-colr button { min-height: 28px; padding: 0 10px; border: 1px solid #d6d6d6; border-radius: 8px; background: #fff; color: #111; font: 600 .78rem var(--sans); cursor: pointer; }
.pv-seg button[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.pv-colr { display: flex; align-items: center; gap: 8px; }
.pv-colr input { width: 44px; height: 30px; padding: 2px; border: 1px solid #d6d6d6; border-radius: 8px; background: #fff; min-height: 0; }

/* Stage 17e: drag from the preview */
.pv-tools button.pv-grip, .pv-btools button.pv-grip { cursor: grab; touch-action: none; user-select: none; letter-spacing: -2px; }
body.pv-dragging, body.pv-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
body.pv-dragging .pv-sec:hover, body.pv-dragging .cs-blk[data-blk]:hover { outline: none; }
body.pv .pv-dragsrc { opacity: .45; }
.pv-dropline { position: absolute; z-index: 80; background: #2f6bff; border-radius: 2px; box-shadow: 0 0 0 2px rgba(47, 107, 255, .25); pointer-events: none; }

/* Stage 17f: undo and redo */
.ed-bar .ed-ur { min-width: var(--btn-h-sm); padding: 0 8px; font-size: 1.05rem; line-height: 1; }
.ed-bar .ed-ur:disabled { opacity: .35; cursor: default; }

/* Seller pages: a little room between the menu and the page, a bigger logo, smaller Home charts, text styling bar, live product preview */
@media (min-width: 860px) {
  body.has-side:not(.ed-full) main { padding-left: 28px; }
  body.has-side .brand img { height: 36px; }
}
.msp { height: 26px; }
.msp path { vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.area-wrap { position: relative; height: 112px; margin-top: 8px; }
.area-wrap .area { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.area .grid { vector-effect: non-scaling-stroke; }
.area .ln { vector-effect: non-scaling-stroke; stroke-width: 1.8; }
.area-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #111; border: 2px solid #fff; box-sizing: content-box; transform: translate(-1px, -1px); }
.area-lab { display: flex; justify-content: space-between; margin-top: 4px; font: 600 .7rem var(--sans); color: #8A8A8A; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.rt-bar button { min-height: 32px; min-width: 34px; padding: 0 10px; border: 1px solid #CFCFCF; background: #fff; color: var(--ink); border-radius: 8px; font: 600 .82rem var(--sans); cursor: pointer; }
.rt-bar button:hover { background: #F3F3F3; }
.rt-ta { overflow-y: auto; }
.pd-desc p { margin: 0 0 .7em; }
.pd-desc h3 { font-size: 1.02rem; margin: 1em 0 .4em; }
.pd-desc h4 { font-size: .95rem; margin: .9em 0 .3em; }
.pd-desc ul { margin: 0 0 .7em; padding-left: 1.2em; }
.pf-prev { display: none; }
@media (min-width: 1100px) {
  body.has-side .pf { max-width: 1000px; display: grid; grid-template-columns: minmax(0, 560px) 340px; column-gap: 36px; align-items: start; }
  .pf-head { grid-column: 1 / -1; }
  .pf-prev { display: block; position: sticky; top: 76px; }
  .pf-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; max-height: calc(100vh - 100px); overflow: auto; }
  .pf-tag { display: inline-block; font: 700 .68rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .pf-img { aspect-ratio: 1 / 1; border-radius: 10px; background: #F3F3F3 center / cover; display: grid; place-items: center; color: #BDBDBD; margin-bottom: 10px; }
  .pf-name { margin: 4px 0 8px; font-size: 1.1rem; }
  .pf-name.is-empty { color: #B0B0B0; }
  .pf-row { margin: 10px 0 0; font-size: .86rem; color: #444; white-space: pre-wrap; }
}

/* Phase 4 stage 1: a picked alignment shows on short blocks too. The block is only as wide as its words, so when an alignment is set it
   is given the full width (a plain text block keeps its 62ch column and sits left, centre or right). Blocks with no alignment are unchanged. */
.cs-blk:is([style*="text-align"], :has(> [style*="text-align"])) { align-self: stretch; }
.cs-t[style*="text-align"]:not(.rt) { max-width: 62ch; }
.cs-t[style*="text-align"]:not(.rt) p { max-width: none; }
.cs-t[style*="text-align:center"]:not(.rt) { margin-inline: auto; }
.cs-t[style*="text-align:right"]:not(.rt) { margin-left: auto; }

/* Rich text documents (phase 3c): paragraphs, two heading levels, lists, links inside text blocks, headings and the About page. */
.rt { overflow-wrap: anywhere; }
.cs-t.rt { width: 100%; max-width: 62ch; } /* a full-width box, so centre and right alignment inside it show */
.rt p { margin: 0 0 10px; line-height: 1.6; }
.rt p:last-child, .rt ul:last-child, .rt ol:last-child { margin-bottom: 0; }
.rt .rt-h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
.rt .rt-h3 { margin: 0 0 8px; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.25; }
.rt ul, .rt ol { margin: 0 0 10px; padding-left: 1.3em; line-height: 1.6; }
.rt li { margin: 0 0 4px; }
.rt a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cs[data-align="center"] .rt ul, .cs[data-align="center"] .rt ol { text-align: left; display: inline-block; }

/* ══ Phase 3d: edit text on the preview with a floating toolbar ══ */
body.pv-typing .pv-tools, body.pv-typing .pv-btools { visibility: hidden; }
body.pv .pv-editing[data-edr] { min-height: 1.4em; }
.pv-fmt { position: fixed; z-index: 80; display: flex; flex-direction: column; gap: 2px; padding: 3px; border-radius: 10px; background: #1b1b1b; color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); font: 600 .8rem var(--sans); max-width: calc(100vw - 16px); }
.pv-fmt-row { display: flex; align-items: center; gap: 2px; }
.pv-fmt button { min-width: 30px; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: #fff; font: 600 .82rem var(--sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.pv-fmt button:hover { background: rgba(255, 255, 255, .16); }
.pv-fmt button[aria-pressed="true"], .pv-fmt button[aria-expanded="true"] { background: #2f6bff; }
.pv-fmt .pv-fmt-sep { width: 1px; height: 18px; margin: 0 3px; background: rgba(255, 255, 255, .28); }
.pv-fmt .pv-fmt-font { min-width: 84px; max-width: 110px; justify-content: space-between; }
.pv-fmt .pv-fmt-font [data-lab] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-fmt .pv-fmt-size { min-width: 34px; padding: 0 4px; }
.pv-fmt .pv-fmt-a { border-bottom: 3px solid currentColor; line-height: 1; padding: 0 2px; }
.pv-fmt .pv-fmt-hl { border-radius: 3px; padding: 1px 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); line-height: 1.2; }
.pv-fmt-menu { position: absolute; z-index: 81; min-width: 140px; max-height: 260px; overflow-y: auto; padding: 4px; border-radius: 10px; background: #1b1b1b; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); display: flex; flex-direction: column; gap: 1px; scrollbar-width: none; }
.pv-fmt-menu::-webkit-scrollbar { display: none; }
.pv-fmt-menu[hidden] { display: none; }
.pv-fmt-menu button { justify-content: flex-start; width: 100%; height: 30px; font-weight: 500; white-space: nowrap; }
.pv-fmt-menu.pv-m-size, .pv-fmt-menu.pv-m-lh, .pv-fmt-menu.pv-m-ls { min-width: 96px; }
.pv-fmt-menu button.pv-on { background: #2f6bff; }
.pv-fmt-sws { display: grid; grid-template-columns: repeat(6, 28px); gap: 4px; padding: 2px; }
.pv-fmt-menu .pv-sw { min-width: 28px; width: 28px; height: 28px; padding: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.pv-fmt-menu .pv-sw.pv-on { box-shadow: 0 0 0 2px #2f6bff, inset 0 0 0 1px #fff; background-clip: padding-box; }
.pv-fmt-link { padding: 4px; display: flex; flex-direction: column; gap: 6px; width: 300px; max-width: 100%; }
.pv-fmt-link[hidden] { display: none; }
.pv-lk-row { display: flex; gap: 4px; }
.pv-fmt-link input { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 7px; background: #0f0f0f; color: #fff; font: 500 .85rem var(--sans); }
.pv-fmt-link input:focus { outline: 2px solid #2f6bff; outline-offset: 0; }
.pv-fmt .pv-lk-go { background: #2f6bff; }
.pv-lk-pages { display: flex; flex-wrap: wrap; gap: 4px; }
.pv-fmt .pv-lk-pages button { height: 26px; padding: 0 8px; background: rgba(255, 255, 255, .12); font-weight: 500; }
.pv-fmt .pv-lk-rm { align-self: flex-start; height: 26px; padding: 0 8px; background: rgba(255, 255, 255, .12); font-weight: 500; }
.pv-lk-note { font-weight: 500; font-size: .78rem; opacity: .85; padding: 0 2px; }
.pv-lk-note:empty { display: none; }
@media (max-width: 420px) { .pv-fmt button { min-width: 28px; padding: 0 5px; } .pv-fmt .pv-fmt-font { min-width: 74px; max-width: 90px; } .pv-fmt-sws { grid-template-columns: repeat(6, 26px); } .pv-fmt-menu .pv-sw { min-width: 26px; width: 26px; height: 26px; } }

/* ══ Phase 4 stage 1: trust and text blocks (quote, question, checklist) ══ */
.cs-q { margin: 0; padding: 14px 16px; border-left: 3px solid currentColor; background: rgba(0, 0, 0, .04); border-radius: 0 10px 10px 0; max-width: 62ch; }
.cs[data-bg="dark"] .cs-q { background: rgba(255, 255, 255, .08); }
.cs-q blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.cs-q figcaption { margin-top: 8px; font-size: .85rem; opacity: .7; }
.cs-faq { width: 100%; max-width: 62ch; border-bottom: 1px solid rgba(128, 128, 128, .35); padding: 12px 0; }
.cs-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq summary::after { content: "+"; font-weight: 400; font-size: 1.2rem; line-height: 1; }
.cs-faq[open] summary::after { content: "\2212"; }
.cs-faq p { margin: 10px 0 0; line-height: 1.6; }
.cs-ck { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs-ck li { position: relative; padding-left: 26px; line-height: 1.5; }
.cs-ck li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; }

/* ══ Phase 4 stage 2: hero variants. card = text in a box on the photo, stacked = photo above text, plain = text only on the store colour ══ */
.site-hero[data-layout="card"] { --ov-a: 0; --ov-b: .28; }
.site-hero[data-layout="card"][data-overlay="light"] { --ov-a: 0; --ov-b: .1; } .site-hero[data-layout="card"][data-overlay="dark"] { --ov-a: .15; --ov-b: .55; }
.site-hero[data-layout="card"] { justify-items: start; }
.site-hero[data-layout="card"][data-align="center"] { justify-items: center; } .site-hero[data-layout="card"][data-align="right"] { justify-items: end; }
.site-hero[data-layout="card"] .site-hero-in { background: #fff; color: #111; width: auto; max-width: min(480px, calc(100% - 32px)); margin: 32px 16px; padding: 24px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.site-hero[data-layout="card"] .site-hero-in h1, .site-hero[data-layout="card"] .site-hero-in p { color: #111; }
.site-hero[data-layout="card"] .site-hero-in .btn-primary { background: var(--plum); color: #fff; }
@media (min-width: 900px) { .site-hero[data-layout="card"] .site-hero-in { margin: 48px max(16px, calc((100vw - 1120px) / 2 + 16px)); } }
.site-hero[data-layout="stacked"] { display: grid; grid-template-columns: 1fr; align-items: stretch; min-height: 0; }
.site-hero[data-layout="stacked"]::before { display: none; }
.site-hero[data-layout="stacked"] .site-hero-pic { min-height: 240px; }
.site-hero[data-layout="stacked"][data-height="small"] .site-hero-pic { min-height: 160px; } .site-hero[data-layout="stacked"][data-height="large"] .site-hero-pic { min-height: 400px; }
.site-hero[data-layout="stacked"] .site-hero-in { padding: 28px 16px 36px; }
@media (min-width: 900px) { .site-hero[data-layout="stacked"] .site-hero-pic { min-height: 340px; } .site-hero[data-layout="stacked"][data-height="small"] .site-hero-pic { min-height: 240px; } .site-hero[data-layout="stacked"][data-height="large"] .site-hero-pic { min-height: 520px; } }
.site-hero[data-layout="plain"] { background-image: none; min-height: 240px; }
.site-hero[data-layout="plain"]::before { display: none; }
.site-hero[data-layout="plain"][data-height="small"] { min-height: 160px; } .site-hero[data-layout="plain"][data-height="large"] { min-height: 360px; }
.site-hero[data-layout="plain"] .site-hero-in { padding: 48px 16px; }

/* ══ Phase 4 stage 3b: sections that fill themselves (products, services, category tiles) ══ */
.cs-dyn { width: 100%; min-width: 0; }
.cs-more { margin: 12px 0 0; font-weight: 600; }
.cs-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cs-cat { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 72px; padding: 14px; border: 1px solid rgba(128, 128, 128, .4); border-radius: 12px; font-weight: 600; color: inherit; text-decoration: none; }
.cs-cat:hover { border-color: currentColor; }
.cs-ph-dyn { padding: 22px 14px; border: 1px dashed rgba(128, 128, 128, .6); border-radius: 12px; text-align: center; font-size: .9rem; opacity: .75; }

/* ══ Phase 4 stage 4a: video by link, photo collage and photo strip ══ */
.cs-video { width: 100%; max-width: 820px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.cs-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.cs-video.cs-ph { display: grid; place-items: center; background: rgba(128, 128, 128, .15); color: inherit; opacity: .8; }
body.pv .cs-video iframe { pointer-events: none; } /* in the editor a click selects the block instead of playing it */
.cs-grid[data-gal="collage"] { display: block; column-count: 2; column-gap: 12px; }
.cs-grid[data-gal="collage"] .cs-img { break-inside: avoid; margin-bottom: 12px; }
.cs-grid[data-gal="collage"] .cs-img img { aspect-ratio: auto; height: auto; }
.cs-grid[data-gal="collage"] .cs-img:nth-child(3n + 2) img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 700px) { .cs-grid[data-gal="collage"] { column-count: 3; } }
.cs-grid[data-gal="filmstrip"] { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.cs-grid[data-gal="filmstrip"] .cs-img { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
.cs-grid[data-gal="filmstrip"] .cs-img img { aspect-ratio: 4 / 5; }

.cs-video video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
body.pv .cs-video video { pointer-events: none; }

/* ══ Phase 4 stage 5: marketing blocks (email sign-up, countdown, announcement) and the sandboxed HTML block ══ */
.cs-news { display: grid; gap: 8px; width: 100%; max-width: 460px; } .cs-news p { margin: 0; } .cs-news .row { display: flex; gap: 8px; } .cs-news input { flex: 1; min-width: 0; } .cs-news-msg, .cs-news small { font-size: .85rem; }
.cs[data-align="center"] .cs-news { justify-items: center; margin-inline: auto; } .cs[data-align="center"] .cs-news .row { width: 100%; }
.cs-cd { display: grid; gap: 8px; } .cs-cd-nums { display: flex; gap: 12px; flex-wrap: wrap; } .cs[data-align="center"] .cs-cd-nums { justify-content: center; }
.cs-cd-nums span { display: grid; justify-items: center; min-width: 64px; padding: 10px 8px; border: 1px solid rgba(128, 128, 128, .4); border-radius: 12px; }
.cs-cd-nums b { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; } .cs-cd-nums small { font-size: .75rem; opacity: .7; } .cs-cd-done { margin: 0; font-weight: 600; }
.cs-cd.cs-ph { padding: 18px; border: 1px dashed rgba(128, 128, 128, .6); border-radius: 12px; opacity: .8; }
.cs-note { display: block; width: 100%; padding: 10px 16px; border-radius: 10px; text-align: center; font-weight: 600; text-decoration: none; background: var(--plum, #2f6bff); color: #fff; }
.cs-note[data-style="light"] { background: #f3f0ea; color: #111; } .cs-note[data-style="dark"] { background: #111; color: #fff; } a.cs-note:hover { filter: brightness(1.08); }
.cs-html { display: block; width: 100%; border: 0; border-radius: 8px; background: #fff; height: 240px; }
.cs-html[data-h="small"] { height: 120px; } .cs-html[data-h="large"] { height: 400px; } .cs-html[data-h="tall"] { height: 600px; }
.cs-html.cs-ph { display: grid; place-items: center; background: rgba(128, 128, 128, .15); }
body.pv .cs-html:not(.cs-ph) { pointer-events: none; }

/* ══ Phase 5 stage 5a: store-wide design settings. Each one is an attribute on <body> set by applyDesign (app.js); today's look sets none of them. ══ */
body[data-bshape="square"] { --btn-r: 0; } body[data-bshape="pill"] { --btn-r: 999px; }
body[data-bfill="outline"] :is(.cs, .site-hero) .btn-primary { background: transparent; color: var(--plum); border-color: var(--plum); }
body[data-bfill="outline"] :is(.site-hero, .cs[data-bg="dark"], .cs[data-layout="banner"]) .btn-primary { background: transparent; color: #fff; border-color: #fff; }
body[data-bfill="outline"] .site-hero[data-layout="card"] .site-hero-in .btn-primary { background: transparent; color: var(--plum); border-color: var(--plum); }
body[data-bfill="outline"] .site-hero[data-layout="plain"] .btn-primary, body[data-bfill="outline"] .site-hero[data-layout="stacked"] .btn-primary { color: #fff; border-color: #fff; }
body[data-corners="sharp"] { --r: 0; }
body[data-corners="sharp"] :is(.pcard, .cs-q, .cs-img img, .cs-video, .cs-html, .cs-note, .cs-cat, .cs-cd-nums span, .cs-ph, .cs-ph-dyn, .site-hero[data-layout="card"] .site-hero-in, .scard, .hcard) { border-radius: 0; }
body[data-corners="sharp"] .cs-q { border-radius: 0; }
body[data-corners="round"] { --r: 18px; }
body[data-corners="round"] :is(.pcard, .cs-img img, .cs-video, .cs-html, .cs-note, .cs-cat, .cs-cd-nums span, .cs-ph, .cs-ph-dyn, .site-hero[data-layout="card"] .site-hero-in, .scard, .hcard) { border-radius: 22px; }
body[data-corners="round"] .cs-q { border-radius: 0 22px 22px 0; }
body[data-spacing="compact"] .cs { padding-block: 24px; } body[data-spacing="compact"] .hsec { margin-bottom: 16px; } body[data-spacing="compact"] .cs-in { gap: 14px; } body[data-spacing="compact"] .cs-body { gap: 9px; }
body[data-spacing="airy"] .cs { padding-block: 76px; } body[data-spacing="airy"] .hsec { margin-bottom: 48px; } body[data-spacing="airy"] .cs-in { gap: 32px; } body[data-spacing="airy"] .cs-body { gap: 20px; }
body[data-width="narrow"] .cs-in { max-width: 920px; } body[data-width="narrow"] .wrap.wide.store-body { max-width: 1000px; }
body[data-width="wide"] .cs-in { max-width: 1280px; } body[data-width="wide"] .wrap.wide.store-body { max-width: 1440px; }
body[data-pbg="cream"] { background: #faf6ef; } body[data-pbg="mist"] { background: #f3f4f6; }
body[data-pbg] .cs:not([data-bg="soft"]):not([data-bg="dark"]):not([data-layout="banner"]) { background: transparent; }

/* ══ Editor stage E1: the three-panel shell (top bar, left library, page, right Page and Block panel) ══ */
.ed-shell .ed-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); }
.ed-top-l, .ed-top-r { display: flex; align-items: center; gap: 8px; } .ed-top-l { min-width: 0; } .ed-top-r { flex: none; }
.ed-ib { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 1.15rem; cursor: pointer; text-decoration: none; }
.ed-ib:hover:not(:disabled) { background: #f1f1f1; } .ed-ib:disabled { opacity: .3; cursor: default; }
.ed-dev { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: #f1f2f4; }
.ed-dev button { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; font: 600 .86rem var(--sans); color: var(--muted); cursor: pointer; }
.ed-dev button i { font-style: normal; } .ed-dev button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.ed-top-r .btn { min-height: 38px; } #ed-prevtog[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.ed-pub { position: relative; display: flex; } .ed-pub #ed-publish { border-radius: 8px 0 0 8px; } .ed-pubmore { min-width: 34px; padding: 0 8px; border-radius: 0 8px 8px 0; border-left: 1px solid rgba(255, 255, 255, .35); }
.ed-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; min-width: 230px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); display: grid; }
.ed-menu[hidden] { display: none; } .ed-menu button, .ed-menu a { text-align: left; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 600 .9rem var(--sans); text-decoration: none; cursor: pointer; } .ed-menu button:hover, .ed-menu a:hover { background: #f4f4f4; }
.ed-shell .ed-grid { grid-template-columns: 290px minmax(0, 1fr) 330px; }
.ed-lib { background: #fff; border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; padding: 0 14px 40px; }
.ed-shell .ed-panel { border-right: 0; border-left: 1px solid var(--line); padding: 0 16px 40px; }
.ed-tabs { display: flex; position: sticky; top: 0; z-index: 2; background: #fff; margin: 0 -14px 12px; border-bottom: 1px solid var(--line); }
.ed-panel .ed-tabs { margin: 0 -16px 14px; }
.ed-tabs button { flex: 1; padding: 15px 8px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; font: 600 .92rem var(--sans); color: var(--muted); cursor: pointer; }
.ed-tabs button[aria-selected="true"] { color: #5a3bd6; border-bottom-color: #5a3bd6; }
.ed-search { margin-bottom: 8px; } .ed-search input { min-height: 40px; background: #fafafa; }
.ed-lib h4 { margin: 18px 0 8px; font: 700 .86rem var(--sans); color: var(--ink); }
.ed-liblead { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }
.ed-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ed-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; text-align: center; }
.ed-tile i { font-style: normal; font-size: 1.25rem; line-height: 1; } .ed-tile span { font: 500 .76rem/1.2 var(--sans); overflow-wrap: anywhere; }
.ed-tile:hover { border-color: #5a3bd6; background: #f6f3ff; }
.ed-panel .ed-back { float: right; width: 32px; height: 32px; margin: -2px 0 0 8px; border-radius: 8px; padding: 0; text-align: center; color: var(--muted); } .ed-panel .ed-back:hover { background: #f1f1f1; color: var(--ink); }
#ed-panel[data-ptab="block"] > *:not(.ed-tabs):not(.ed-blocks-group):not(.ed-empty) { display: none; }
#ed-panel[data-ptab="page"] .ed-blocks-group { display: none; }
.ed-empty { margin-top: 18px; }
.ed-dock { display: none; }
.ed-shell.ed-previewing .ed-lib, .ed-shell.ed-previewing .ed-panel { display: none; } .ed-shell.ed-previewing .ed-grid { grid-template-columns: minmax(0, 1fr); }
body.pv-off .pv-tools, body.pv-off .pv-grip, body.pv-off .pv-add { display: none !important; }
body.pv-off .pv-sec, body.pv-off .store-announce, body.pv-off #bar .bar-store, body.pv-off #foot, body.pv-off [data-ed], body.pv-off [data-edb], body.pv-off [data-edr] { outline: none !important; cursor: auto; }
@media (max-width: 899px) {
  .ed-dev button span { display: none; } .ed-dev button { padding: 7px 10px; } .ed-top-r .btn-ghost:not(#ed-save) { display: none; }
  .ed-shell .ed-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .ed-shell .ed-preview { order: 1; } .ed-lib, .ed-shell .ed-panel { order: 2; border: 0; border-top: 1px solid var(--line); }
  .ed-shell[data-mview="lib"] .ed-panel, .ed-shell[data-mview="inspector"] .ed-lib { display: none; }
  .ed-shell .ed-tabs { display: none; }
  .ed-dock { display: flex; flex: none; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .ed-dock button { flex: 1; padding: 13px 4px; border: 0; border-top: 2px solid transparent; background: transparent; font: 600 .86rem var(--sans); color: var(--muted); }
  .ed-dock button[aria-pressed="true"] { color: #5a3bd6; border-top-color: #5a3bd6; }
  .ed-tiles { grid-template-columns: repeat(4, 1fr); }
}

/* Editor stage E2: the Pages manager marks the page being edited. */
.ed-row.is-cur { background: var(--champagne-soft); box-shadow: inset 3px 0 0 var(--ink, #111); }
.ed-row.is-cur .ed-name b { text-decoration: none; }
.store-nav[hidden] { display: none; }

/* ── Phase E3: section options (width, height, background), testimonials and sliders ── */
.cs { position: relative; }
.cs-in { position: relative; width: 100%; }
.cs[data-w="wide"] .cs-in { max-width: 1400px; }
.cs[data-w="full"] .cs-in { max-width: none; }
.cs[data-h]:not([data-h="auto"]) { display: grid; align-items: center; }
.cs[data-h="small"] { min-height: 240px; } .cs[data-h="medium"] { min-height: 400px; } .cs[data-h="large"] { min-height: 560px; }
.cs[data-h="screen"] { min-height: 100vh; min-height: 100svh; }
.cs[data-ov="1"]::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .42); pointer-events: none; }
.cs[data-align="right"] .cs-body { align-items: flex-end; text-align: right; }
.cs[data-align="justify"] .cs-body { text-align: justify; } /* R2 */
.cs[data-align="right"] .cs-news { justify-items: end; margin-left: auto; } .cs[data-align="right"] .cs-cd-nums { justify-content: flex-end; }
/* Testimonials: cards, optional stars, photo or logo; stacked (as before), a grid or a slider */
.cs-qs { width: 100%; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .cs-qs[data-flow="grid"][data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-qs[data-flow="grid"][data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-qs[data-flow="grid"][data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cs-qs .cs-q { max-width: none; border: 1px solid rgba(128, 128, 128, .28); border-radius: 16px; padding: 22px; background: #fff; color: var(--ink); text-align: left; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.cs[data-bg="dark"] .cs-qs .cs-q { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: inherit; }
.cs-qs .cs-q blockquote { margin: 0; }
.cs-qs[data-flow="slider"] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; }
.cs-qs[data-flow="slider"]::-webkit-scrollbar { display: none; }
.cs-qs[data-flow="slider"] .cs-q { flex: 0 0 min(86%, 360px); scroll-snap-align: start; }
.cs-stars { color: #c8961e; letter-spacing: 2px; font-size: 1.05rem; line-height: 1; } .cs-stars .off { opacity: .28; }
.cs-q-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.cs-q-who > span { display: grid; gap: 2px; } .cs-q-who small { opacity: .7; font-size: .8rem; }
.cs-q-ph { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; } .cs-q-ph.is-empty { background: rgba(128, 128, 128, .28); }
.cs-q-logo { display: block; max-height: 34px; max-width: 150px; object-fit: contain; align-self: flex-start; } .cs-q-logo.is-empty { width: 100px; height: 30px; border: 1px dashed rgba(128, 128, 128, .6); border-radius: 6px; }
/* A row you slide: arrows at both ends; on wide screens it stays a sliding row instead of turning into a grid */
.cs-slidewrap { position: relative; width: 100%; min-width: 0; }
.cs-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .4); background: #fff; color: #111; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); display: grid; place-items: center; padding: 0 0 2px; }
.cs-arr[data-slide="-1"] { left: -8px; } .cs-arr[data-slide="1"] { right: -8px; } .cs-arr:hover { background: #f4f4f4; }
.cs-slidewrap .pgrid.strip { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; }
.cs-slidewrap .pgrid.strip .pcard { flex: 0 0 min(46%, 220px); scroll-snap-align: start; }
@media (min-width: 900px) { .cs-slidewrap .pgrid.strip .pcard { flex: 0 0 calc((100% - 36px) / 4); } }
@media (min-width: 640px) { .cs-dyn[style*="--cols"] .pgrid:not(.strip) { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
/* Phase E3: right-panel groups (Layout, Background...) */
.ed-fold { border-bottom: 1px solid var(--line); margin: 0 -2px 4px; padding: 0 2px; }
.ed-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font: 700 .95rem var(--sans); color: var(--ink); }
.ed-fold > summary::-webkit-details-marker { display: none; }
.ed-fold > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.ed-fold[open] > summary::after { transform: rotate(-135deg); }
.ed-fold-b { padding: 0 0 14px; }
.ed-fold-b select { width: 100%; }
.ed-seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ed-seg label { flex: 1; display: grid; place-items: center; min-height: 38px; cursor: pointer; color: var(--muted); border-right: 1px solid var(--line); position: relative; font: 600 .82rem var(--sans); }
.ed-seg label:last-child { border-right: 0; }
.ed-seg input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.ed-seg label:has(input:checked) { background: #efeaff; color: #5a3bd6; }
.ed-seg label:has(input:focus-visible) { outline: 1px solid #5a3bd6; outline-offset: -1px; }
.ed-colour { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ed-colour input[type="color"] { width: 40px; min-height: 36px; padding: 2px; flex: none; }
.ed-colour input:not([type="color"]) { width: 96px; min-height: 36px; font-family: monospace; }
.ed-gradbar { height: 44px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
.ed-range { display: flex; align-items: center; gap: 10px; } .ed-range input { flex: 1; min-height: 0; padding: 0; } .ed-range output { min-width: 48px; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; font-size: .85rem; }
.ed-ovl { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: .9rem; }
.ed-sw { position: relative; width: 44px; height: 26px; flex: none; cursor: pointer; } .ed-sw input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ed-sw i { position: absolute; inset: 0; border-radius: 13px; background: #cfcfd6; transition: background .15s; } .ed-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.ed-sw input:checked + i { background: #5a3bd6; } .ed-sw input:checked + i::after { left: 21px; } .ed-sw input:focus-visible + i { outline: 2px solid #5a3bd6; outline-offset: 2px; }
/* E3 fixes found in the browser: on a computer the page must sit in the middle (left library, page, right settings); an older rule sorted the page after the settings. */
@media (min-width: 900px) { .ed-shell .ed-lib { order: 1; } .ed-shell .ed-preview { order: 2; } .ed-shell .ed-panel { order: 3; position: static; max-height: none; } }
.ed-fold .ed-seg label, .field .ed-seg label { display: grid !important; place-items: center; margin: 0 !important; min-height: 38px; padding: 0; font-weight: 600; border-radius: 0; border-top: 0; border-bottom: 0; border-left: 0; }
.ed-fold .ed-seg label:last-child { border-right: 0; }

.ed-panel.no-tabs { padding-top: 20px; }

/* Editor stage R1b: options of the built-in sections (hero background, width, four alignments, button style) and the new blocks. */
.site-hero[data-w="wide"] .site-hero-in { max-width: 1400px; } .site-hero[data-w="full"] .site-hero-in { max-width: none; }
.site-hero[data-hbg]::before { display: none; }
.site-hero[data-hbg][data-hov="1"]::before { display: block; background: rgba(0, 0, 0, .35); }
.site-hero[data-hlight]:not([data-layout="card"]) .site-hero-in, .site-hero[data-hlight]:not([data-layout="card"]) .site-hero-in :is(h1, p) { color: #111; }
.site-hero[data-hlight]:not([data-layout="card"]) .site-hero-in .btn-primary { background: #111; color: #fff; border-color: #111; }
.site-hero[data-align="justify"] .site-hero-in { text-align: justify; } .site-hero[data-align="justify"] .site-hero-in .btn { justify-self: start; }
.site-hero-in .btn-primary[data-bstyle="outline"] { background: transparent; color: #fff; border: 1.5px solid #fff; }
.site-hero[data-layout="card"] .site-hero-in .btn-primary[data-bstyle="outline"], .site-hero[data-hlight]:not([data-layout="card"]) .site-hero-in .btn-primary[data-bstyle="outline"] { background: transparent; color: #111; border: 1.5px solid #111; }
.bsec { position: relative; }
.bsec[data-w="wide"] .wrap.wide.store-body.store-body { max-width: 1600px; } .bsec[data-w="full"] .wrap.wide.store-body.store-body { max-width: none; }
.bsec[data-h]:not([data-h="auto"]) { display: grid; align-items: center; } .bsec[data-h]:not([data-h="auto"]) > :not(.pv-tools):not(.pv-btools) { width: 100%; }
.bsec[data-h="small"] { min-height: 240px; } .bsec[data-h="medium"] { min-height: 400px; } .bsec[data-h="large"] { min-height: 560px; } .bsec[data-h="screen"] { min-height: 100vh; min-height: 100svh; }
.bsec[data-ov="1"]::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .42); pointer-events: none; }
.bsec[data-ov="1"] > :not(.pv-tools):not(.pv-btools) { position: relative; }
.bsec[data-dark="1"] { color: #fff; } .bsec[data-dark="1"] :is(h1, h2, h3, p, small, a, .muted, summary) { color: inherit; }
.bsec[data-light="1"] { color: #111; }
.bsec[data-al="center"] { text-align: center; } .bsec[data-al="right"] { text-align: right; } .bsec[data-al="justify"] { text-align: justify; }
.bsec[data-al="center"] .hsec > header { justify-content: center; gap: 14px; } .bsec[data-al="right"] .hsec > header { justify-content: flex-end; gap: 14px; }
.cs-soc { display: flex; flex-wrap: wrap; gap: 12px; } .cs-soc a { display: inline-flex; color: inherit; }
.cs-soc[data-size="small"] svg { width: 18px; height: 18px; } .cs-soc[data-size="large"] svg { width: 30px; height: 30px; }
.cs-soc[data-style="round"] a { padding: 10px; border: 1px solid currentColor; border-radius: 50%; }
.cs[data-align="center"] .cs-soc { justify-content: center; } .cs[data-align="right"] .cs-soc { justify-content: flex-end; }
.cs-map { display: grid; gap: 6px; justify-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.cs-map p { margin: 0; } .cs[data-align="center"] .cs-map { justify-items: center; margin-inline: auto; } .cs[data-align="right"] .cs-map { justify-items: end; margin-left: auto; }
.cs-feat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; text-align: left; }
.cs-feat li { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; } .cs-feat li span { opacity: .75; font-size: .9rem; }
.cs-brands { display: grid; gap: 10px; } .cs-brand-row { display: flex; flex-wrap: wrap; gap: 8px; } .cs[data-align="center"] .cs-brand-row { justify-content: center; }
.cs-brand { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; }

/* ══ E4: dragging a block tile from the library onto the page ══ */
.ed-libghost { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; padding: 6px 12px; border-radius: 8px; background: #111; color: #fff; font-size: .85rem; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: .92; }
body.ed-libdrag, body.ed-libdrag .ed-tile { cursor: grabbing; user-select: none; }
.ed-tile[data-lib-blk] { cursor: grab; touch-action: manipulation; }

.pv-btools .pv-al { min-width: 26px; padding: 0 6px; } .pv-btools .pv-al[aria-pressed="true"] { background: #fff; color: #2f6bff; }
.ed-tile[data-new-sec] { cursor: grab; }

/* ══ Editor stage E5: phone polish ══ */
@media (max-width: 899px) {
  .ed-top-r .btn-ghost#ed-prevtog { display: inline-flex; } /* Preview stays on a phone */
  .ed-top-r .btn { min-height: 40px; padding: 0 12px; }
  .ed-ib { width: 42px; height: 42px; }
  .ed-shell.ed-previewing .ed-grid, .ed-shell[data-pcol="1"] .ed-grid { grid-template-rows: minmax(0, 1fr); }
  .ed-shell.ed-previewing .ed-dock { display: none; }
  .ed-shell[data-pcol="1"] .ed-lib, .ed-shell[data-pcol="1"] .ed-panel { display: none; }
}
@media (max-width: 599px) { .ed-dev { display: none; } } /* the frame is already phone-wide, so the device switch does nothing here */
/* E5: on a phone the page's floating tools get finger-sized buttons, one bar at a time, and never wrap over the content */
@media (max-width: 599px) {
  body:has(.pv-btools) .pv-tools { display: none; } /* a picked block shows its own bar; tap the section's empty space to get the section bar back */
  .pv-btools { flex-wrap: nowrap; max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; transform: translateY(-8px); }
  .pv-btools::-webkit-scrollbar { display: none; } .pv-btools > * { flex: none; }
  .pv-tools button, .pv-btools button { min-width: 36px; height: 34px; }
  .pv-btools .pv-al { min-width: 36px; }
}
.ed-fb-name { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.ed-fb-name b { flex: 0 1 auto; }
.ed-fb-name input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; }

/* Phase 6 stage 6a: header builder. Each rule below only applies when the seller chose it (attributes on #bar, set by applyHeader in app.js);
   the first choice of every list is today's header, so a store that never touches it does not change. */
#bar[data-hsticky="off"] { position: static; }
#bar[data-hstyle="soft"] { background: var(--champagne-soft); }
#bar[data-hstyle="dark"] { background: #111111; border-bottom-color: #111111; }
#bar[data-hstyle="brand"] { background: var(--plum); border-bottom-color: var(--plum); }
#bar[data-hstyle="dark"] .store-brand, #bar[data-hstyle="brand"] .store-brand, #bar[data-hstyle="dark"] .act, #bar[data-hstyle="brand"] .act { color: #fff; }
#bar[data-hstyle="dark"] .act .ico, #bar[data-hstyle="brand"] .act .ico { color: #fff; }
#bar[data-hstyle="dark"] .act:hover, #bar[data-hstyle="brand"] .act:hover, #bar[data-hstyle="dark"] .store-nav a:hover, #bar[data-hstyle="brand"] .store-nav a:hover { background: rgba(255, 255, 255, .14); }
#bar[data-hstyle="dark"] .cnt, #bar[data-hstyle="brand"] .cnt { background: #fff; color: #111; }
#bar[data-hstyle="brand"] .cnt { color: var(--plum); }
#bar[data-hstyle="dark"] .store-nav a, #bar[data-hstyle="brand"] .store-nav a { color: rgba(255, 255, 255, .82); }
#bar[data-hstyle="dark"] .store-nav a[aria-current], #bar[data-hstyle="brand"] .store-nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
#bar[data-hstyle="dark"] .store-announce, #bar[data-hstyle="brand"] .store-announce { background: rgba(255, 255, 255, .16); }
#bar[data-hlogo="small"] .store-brand img { height: 26px; width: 26px; }
#bar[data-hlogo="large"] .store-brand img { height: 48px; width: 48px; }
/* Logo in the middle: the name sits centred, the menu centred beneath it, and the cart stays at the right of the top row. */
#bar[data-hlayout="center"] .bar-store { position: relative; justify-content: center; padding-top: 6px; }
#bar[data-hlayout="center"] .store-brand { max-width: calc(100% - 130px); justify-content: center; }
#bar[data-hlayout="center"] .store-nav { order: 3; width: 100%; margin-left: 0; flex: 1 1 100%; justify-content: flex-start; padding-bottom: 6px; }
/* Centre with auto margins, not justify-content: a menu wider than the screen must still scroll from its first item (centring would cut the left end off). */
#bar[data-hlayout="center"] .store-nav a:first-child { margin-left: auto; }
#bar[data-hlayout="center"] .store-nav a:last-child { margin-right: auto; }
#bar[data-hlayout="center"] .bar-acts { position: absolute; right: 12px; top: 8px; }
/* Phase 6a: menu rows in the header builder (a rename box beside the tick, and a link's own two-line row) */
.ed-fb-name input:not([type="checkbox"]) { flex: 1; min-width: 0; min-height: 34px; padding: 4px 8px; font-size: .9rem; }
.ed-ml { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.ed-ml .ed-nav-row { border-bottom: 0; }
.ed-ml .ed-nav-row > input { flex: 1; min-width: 0; min-height: 34px; padding: 4px 8px; font-size: .9rem; }
.ed-ml-to { display: flex; gap: 6px; }
.ed-ml-to select, .ed-ml-to input { flex: 1; min-width: 0; min-height: 34px; padding: 4px 8px; font-size: .86rem; }


/* Stage 1 (shopping): heart on cards, no search bar on a product page, seller hint without a name */
.pheart { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #111; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); cursor: pointer; }
.pheart .ico { width: 18px; height: 18px; opacity: 1; }
.pheart:hover { color: var(--oxblood); }
.pheart[aria-pressed="true"] { color: var(--oxblood); }
.pheart[aria-pressed="true"] .ico { fill: currentColor; }
.pheart:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.bar-shop.no-search .bar-acts { margin-left: auto; }
.soldby-anon { cursor: default; }
.soldby-anon:hover { border-color: var(--line); }
.soldby-anon small { max-width: 52ch; }

/* S2: a piece of text the seller deleted stays in the editor preview as a faint line, so it can be clicked and typed over again. The public page leaves it out. */
body.pv [data-ed][data-empty="1"] { opacity: .5; font-style: italic; font-weight: 400; }

/* S3: wine-coloured setup flow with step dots */
body.ob main { background: #6D0C2B; }
body.ob .ob-wrap { padding-top: 28px; }
.ob-step { margin: 0 0 10px; text-align: center; color: #E9CD9C; font: 600 .85rem var(--sans); letter-spacing: .04em; }
.obdots { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.obdots li { width: 10px; height: 10px; border-radius: 999px; background: rgba(233,205,156,.35); transition: width .2s, background .2s; }
.obdots li.done { background: #E9CD9C; }
.obdots li.now { width: 28px; background: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ob-card { background: #fff; border-radius: 16px; padding: 22px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ob-card h2 { margin-top: 0; }
body.ob .ob-card .btn-primary { background: #6D0C2B; color: #fff; }
body.ob .ob-card .btn-primary:hover { background: #8a1238; }
body.ob .ob-card input:focus, body.ob .ob-card select:focus, body.ob .ob-card textarea:focus { border-color: #6D0C2B; outline: 2px solid rgba(212,25,84,.3); }
body.ob .ob-card .tchip:has(input:checked), body.ob .ob-card .choice:has(input:checked) { border-color: #6D0C2B; background: #FBEFF3; }
body.ob .ob-card a:not(.btn) { color: #6D0C2B; }

/* S4a: seller agreement */
.agr-key { margin: 0 0 14px; padding-left: 18px; line-height: 1.5; }
.agr-key li { margin-bottom: 6px; }
.agr-full { margin: 0 0 14px; }
.agr-full summary { cursor: pointer; font-weight: 600; color: #6D0C2B; }
.agr-box { max-height: 320px; overflow: auto; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line, #e4dde0); border-radius: 10px; font-size: .9rem; line-height: 1.5; }
.agr-box h4 { margin: 14px 0 6px; }
.agr-box p { margin: 0 0 8px; }
.agr-n { font-weight: 600; margin-right: 4px; }
.agr-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.agr-check input { margin-top: 3px; }

/* Login, Create account and Setup: a plain oxblood page with soft vector shapes, no header, no footer, the form in the middle */
body.auth { background: #5A0A23; }
body.auth main {
  min-height: 100vh; min-height: 100dvh; display: flex; padding: 24px 16px; box-sizing: border-box;
  background-color: #6D0C2B;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 1200' preserveAspectRatio='xMidYMid slice'%3E%3Ccircle cx='80' cy='120' r='260' fill='%238A1238' fill-opacity='.35'/%3E%3Ccircle cx='740' cy='1080' r='320' fill='%234A0719' fill-opacity='.55'/%3E%3Ccircle cx='700' cy='160' r='90' fill='none' stroke='%23E9CD9C' stroke-opacity='.18' stroke-width='2'/%3E%3Ccircle cx='700' cy='160' r='140' fill='none' stroke='%23E9CD9C' stroke-opacity='.10' stroke-width='2'/%3E%3Cpath d='M-40 820C120 740 220 920 400 860S680 760 840 840V1240H-40Z' fill='%23FFFFFF' fill-opacity='.04'/%3E%3Cpath d='M-40 900C140 830 260 990 420 940S700 860 840 920' fill='none' stroke='%23E9CD9C' stroke-opacity='.16' stroke-width='2'/%3E%3Cpath d='M60 360c60-40 120 40 180 0' fill='none' stroke='%23E9CD9C' stroke-opacity='.16' stroke-width='2'/%3E%3Cpath d='M560 560c60-40 120 40 180 0' fill='none' stroke='%23E9CD9C' stroke-opacity='.12' stroke-width='2'/%3E%3C/svg%3E");
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
body.auth .bar, body.auth .foot { display: none; }
.auth-wrap { margin: auto; width: 100%; max-width: 400px; }
.auth-card { background: #fff; border-radius: 16px; padding: 28px 22px; box-shadow: 0 12px 34px rgba(0,0,0,.28); }
.auth-card h2 { margin: 0 0 18px; font-size: 1.5rem; }
.auth-sub { margin: -8px 0 16px; }
.auth-alt { margin: 16px 0 0; text-align: center; font-size: .92rem; }
body.auth .btn-primary { background: #6D0C2B; color: #fff; border-color: #6D0C2B; }
body.auth .btn-primary:hover { background: #8A1238; }
body.auth .auth-card a:not(.btn) { color: #6D0C2B; font-weight: 600; }
body.auth .auth-card input:focus, body.auth .auth-card select:focus { border-color: #6D0C2B; outline: 2px solid rgba(109,12,43,.25); }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: #6b6b6b; cursor: pointer; border-radius: 10px; }
.pw-toggle:hover { color: #6D0C2B; }
body.ob main { min-height: 100vh; min-height: 100dvh; }
body.ob .ob-wrap { margin: auto; padding-top: 0; width: 100%; }
.ob-exit { margin: 16px 0 0; text-align: center; }
body.ob .ob-exit a { color: #E9CD9C; font-size: .9rem; }
.fbtn-solo { height: 40px; }

/* Editor: real icons, lighter borders, and a clear "Show this section" switch row */
.ed-tile i { display: grid; place-items: center; color: #5a3bd6; } .ed-tile i .ico { width: 22px; height: 22px; }
.ed-ib .ico { width: 20px; height: 20px; } .ed-dev button i { display: grid; place-items: center; } .ed-dev button i .ico { width: 18px; height: 18px; }
.ed-pubmore .ico { width: 16px; height: 16px; } .ed-mv .ico { width: 16px; height: 16px; display: block; margin: auto; }
.ed-showrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; cursor: pointer; }
.ed-showrow > span:first-child { display: grid; gap: 2px; font: 600 .92rem var(--sans); color: var(--ink); } .ed-showrow small { font-weight: 400; font-size: .78rem; color: var(--muted); }
.ed-tile, .ed-shell .btn, .ed-panel .btn, .ed-panel input, .ed-panel select, .ed-panel textarea { border-width: 1px; }
.ed-panel input:focus, .ed-panel select:focus, .ed-panel textarea:focus { outline-width: 1px; }

/* Seller area: breathing room under the top bar, soft colour, lighter chart, drop-downs */
.set-title { margin: 0 0 14px; }
.area .ln, .area-wrap .area .ln { stroke: #6D0C2B; stroke-width: 1.2; }
.msp path { stroke-width: 1.2; }
.area-dot { background: #6D0C2B; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.mscroll .mcard:nth-child(1) { background: rgba(109, 12, 43, .07); border-color: rgba(109, 12, 43, .14); }
.mscroll .mcard:nth-child(2) { background: rgba(47, 107, 255, .08); border-color: rgba(47, 107, 255, .16); }
.mscroll .mcard:nth-child(3) { background: rgba(22, 163, 106, .09); border-color: rgba(22, 163, 106, .18); }
.mscroll .mcard:nth-child(4) { background: rgba(232, 150, 20, .11); border-color: rgba(232, 150, 20, .22); }
.needs .ntile:nth-child(1) { background: rgba(47, 107, 255, .10); } .needs .ntile:nth-child(2) { background: rgba(232, 150, 20, .13); } .needs .ntile:nth-child(3) { background: rgba(212, 25, 84, .09); }
.needs .ntile.hot b { color: #111; }
.hcard.tint-amber { background: rgba(232, 150, 20, .08); border-color: rgba(232, 150, 20, .2); } .hcard.tint-blue { background: rgba(47, 107, 255, .07); border-color: rgba(47, 107, 255, .16); } .hcard.tint-green { background: rgba(22, 163, 106, .08); border-color: rgba(22, 163, 106, .18); }
.hcard.guide { background: rgba(109, 12, 43, .05); border-color: rgba(109, 12, 43, .14); }

.popwrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 190px; padding: 6px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); display: grid; }
.pop[hidden] { display: none; }
.pop a, .pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; font: 600 .9rem var(--sans); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.pop a:hover, .pop button:hover { background: #f4f4f5; } .pop .danger { color: var(--danger); } .pop .ico { width: 18px; height: 18px; color: var(--muted); }
.who-wrap .who { display: none; align-items: center; gap: 6px; background: transparent; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; color: inherit; }
body.has-side .who-wrap .who { display: flex; color: #cfcfcf; }
.dash-top.popwrap { display: block; } .dash-btn { all: unset; display: flex; align-items: center; gap: 12px; cursor: pointer; } .dash-btn h2 { display: flex; align-items: center; gap: 6px; }
.dash-top .pop { right: auto; left: 0; }
.chev { flex: none; transition: transform .15s; } [aria-expanded="true"] > .chev, [aria-expanded="true"] .chev { transform: rotate(180deg); }

.mgroup { margin: 0; } .mgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.mgroup > summary::-webkit-details-marker { display: none; } .mgroup > summary .chev { margin-left: auto; } .mgroup[open] > summary .chev { transform: rotate(180deg); }
.mkids { display: grid; padding-left: 14px; } .mkids a { padding-left: 14px; }

.plist { display: grid; gap: 10px; }
.prow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pmain { min-width: 0; display: grid; gap: 4px; } .pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .86rem; color: var(--muted); }
.prow .pmore .btn { min-height: 34px; padding: 0 12px; gap: 4px; display: inline-flex; align-items: center; }

.acc-sec { margin: 0 0 14px; padding: 0; } .acc-sec > h3 { margin: 0 0 8px 4px; }
.acc-sec .acc-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.acc-sec .acc-row { padding: 13px 14px; align-items: center; } .acc-sec .acc-row:last-child { border-bottom: 0; }
.acc-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.acc-sec .acc-row .ico { margin: 0; color: inherit; width: 20px; height: 20px; }
.tone-rose .acc-ic { background: rgba(109, 12, 43, .10); color: #6D0C2B; } .tone-green .acc-ic { background: rgba(22, 163, 106, .12); color: #16895a; }
.tone-blue .acc-ic { background: rgba(47, 107, 255, .11); color: #2f6bff; } .tone-amber .acc-ic { background: rgba(232, 150, 20, .15); color: #b86f00; } .tone-violet .acc-ic { background: rgba(90, 59, 214, .11); color: #5a3bd6; }
.acc-row .acc-main b { font-weight: 600; } .acc-row .acc-go { margin-left: auto; color: #b5b5b5; }
.set-store { background: linear-gradient(135deg, rgba(109, 12, 43, .09), rgba(232, 150, 20, .10)); border-color: rgba(109, 12, 43, .16); border-radius: 16px; padding: 14px; margin-bottom: 16px; }

.seg2 { display: inline-flex; padding: 3px; background: #f1f2f4; border-radius: 999px; }
.seg2 button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font: 600 .8rem var(--sans); color: var(--muted); cursor: pointer; }
.seg2 button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.ochips { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0 4px; padding-bottom: 4px; scrollbar-width: none; } .ochips::-webkit-scrollbar { display: none; }
.ochips button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 .84rem var(--sans); color: var(--ink); cursor: pointer; }
.ochips button i { font-style: normal; font-size: .74rem; color: var(--muted); }
.ochips button[aria-pressed="true"] { background: rgba(109, 12, 43, .09); border-color: rgba(109, 12, 43, .3); color: #6D0C2B; } .ochips button[aria-pressed="true"] i { color: #6D0C2B; }
body.has-side .who-wrap .who { color: inherit; opacity: .9; }
.who-wrap .pop { color: var(--ink); }
.pmain .badge { justify-self: start; }
.pmain .muted { font-size: .86rem; }

/* ══ S7a: editor top bar. Save draft and Preview are plain text at the right end, Publish is the one button; undo and redo are one slim pill ══ */
.ed-top-r { gap: 4px; }
.ed-top-r .btn.ed-txt { border: 0; background: transparent; box-shadow: none; min-height: 38px; padding: 0 10px; font: 600 .9rem var(--sans); color: var(--ink); border-radius: 8px; }
.ed-top-r .btn.ed-txt:hover:not(:disabled) { background: #f1f1f1; } .ed-top-r .btn.ed-txt:disabled { color: #a3a3a3; background: transparent; opacity: 1; cursor: default; }
.ed-top-r .ed-txt#ed-prevtog[aria-pressed="true"] { background: #111; color: #fff; }
.ed-top-r .ed-pub { margin-left: 6px; }
.ed-ur { display: inline-flex; align-items: center; height: 34px; margin-left: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.ed-ur button { width: 38px; height: 100%; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.ed-ur button + button { border-left: 1px solid var(--line); }
.ed-ur button:hover:not(:disabled) { background: #f3f3f3; } .ed-ur button:disabled { color: #bdbdbd; cursor: default; }
@media (max-width: 899px) {
  .ed-top-r .btn.ed-txt { min-height: 36px; padding: 0 7px; font-size: .84rem; }
  .ed-top-r .ed-pub { margin-left: 2px; } .ed-top-r .ed-pub #ed-publish { min-height: 36px; padding: 0 12px; font-size: .86rem; }
  .ed-ur { height: 32px; margin-left: 0; } .ed-ur button { width: 34px; }
}
@media (max-width: 420px) { .ed-top { padding: 0 6px; gap: 4px; } .ed-top-l { gap: 2px; } .ed-ib { width: 36px; height: 36px; } .ed-top-r .btn.ed-txt { padding: 0 5px; font-size: .8rem; } }

/* ══ S7b: Products page options chosen by the seller ══ */
.chips.chips-slide { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; } .chips.chips-slide::-webkit-scrollbar { display: none; }
.chips.chips-slide .chip { flex: none; scroll-snap-align: start; white-space: nowrap; }
.pgrid.joined { gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.pgrid.joined .pcard { border: 0; border-radius: 0; box-shadow: none; transform: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.pgrid.joined .pcard:hover { box-shadow: inset 0 0 0 2px var(--line); }
.cs-slidewrap .pgrid.joined.strip { border-radius: 12px; gap: 0; } .cs-slidewrap .pgrid.joined.strip .pcard { margin: 0; border-bottom: 0; }

/* ══ S7c: Contact form block ══ */
.cs-contact { display: grid; gap: 12px; max-width: 520px; margin: 0 auto; text-align: left; }
.cs-contact strong { font-size: 1.25rem; } .cs-contact p { margin: 0; opacity: .8; }
.cs-contact label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.cs-contact input, .cs-contact textarea { width: 100%; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #111; }
.cs-contact .cs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cs-contact-msg { min-height: 1.2em; font-size: .92rem; }

/* ══ S8a: show or hide a section with an eye, nothing more ══ */
.ed-eyetog { position: relative; display: inline-flex; margin: 0 0 12px; cursor: pointer; }
.ed-eyetog input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ed-eyetog span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px; font: 600 .86rem var(--sans); }
.ed-eyetog b { font-weight: 600; } .ed-eyetog svg { flex: none; }
.ed-eyetog .ed-eyetog-on { background: #e9f7ee; color: #17803d; } .ed-eyetog .ed-eyetog-off { background: #f1f1f1; color: #7a7a7a; display: none; }
.ed-eyetog input:not(:checked) ~ .ed-eyetog-on { display: none; } .ed-eyetog input:not(:checked) ~ .ed-eyetog-off { display: inline-flex; }
.ed-eyetog input:focus-visible ~ span { outline: 2px solid #5a3bd6; outline-offset: 2px; }

/* ══ S8b: the text editor in the right panel ══ */
.pe { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.pe:focus-within { border-color: #4f7f6d; box-shadow: 0 0 0 3px #d8ece5; }
.pe-bar { background: #fafafa; border-bottom: 1px solid #e6e6e6; padding: 6px 8px; display: grid; gap: 2px; }
.pe-row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.pe-row button, .pe-col, .pe-sel { height: 34px; min-width: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 8px; color: #1f2933; cursor: pointer; padding: 0 6px; font: 600 .95rem var(--sans); position: relative; }
.pe-row button:hover, .pe-col:hover, .pe-sel:hover { background: #ececec; } .pe-row button[aria-pressed="true"] { background: #dfeee8; color: #1f5c47; }
.pe-it { font-family: Georgia, serif; } .pe-sel { gap: 6px; padding: 0 8px; margin-right: 6px; font-weight: 500; }
.pe-sel select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 16px; }
.pe-col { flex-direction: column; justify-content: center; gap: 2px; } .pe-col i { display: block; width: 18px; height: 4px; border-radius: 3px; } .pe-col input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pe-A { font-weight: 700; font-size: 1rem; line-height: 1; }
.pe-clr { display: inline-flex; align-items: baseline; font-size: 1rem; } .pe-clr i { font-family: Georgia, serif; } .pe-clr b { font-size: .7rem; }
.pe-box { min-height: 120px; padding: 12px 14px; outline: 0; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.pe-box:empty::before, .pe-box > p:only-child:has(br:only-child)::before { content: attr(data-ph); color: #8a8f98; }
.pe-box p { margin: 0 0 .7em; } .pe-box h2 { font-size: 1.3rem; margin: 0 0 .5em; } .pe-box h3 { font-size: 1.1rem; margin: 0 0 .5em; } .pe-box ul, .pe-box ol { margin: 0 0 .7em 1.3em; padding: 0; }

/* ══ S8c: Team block, Hero and Team sections ══ */
.cs-team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; text-align: center; }
.cs-team li { display: grid; justify-items: center; gap: 4px; }
.cs-team img, .cs-team-ph { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: #ece7f5; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: #5a3bd6; margin-bottom: 6px; }
.cs-team li span:not(.cs-team-ph) { opacity: .75; font-size: .92rem; }
.ed-tm { display: grid; grid-template-columns: 52px 1fr 34px; gap: 8px; align-items: center; margin-bottom: 10px; }
.ed-tm-ph { width: 52px; height: 52px; border-radius: 50%; background: #f1f1f1 center/cover; display: grid; place-items: center; cursor: pointer; color: #666; }
.ed-tm-f { display: grid; gap: 6px; }

/* ══ S8d: movement. Sections arrive as they scroll into view; rows can slide sideways ══ */
@media (prefers-reduced-motion: no-preference) {
  :is([data-anim], [data-banim]):not(.in):not([data-anim="words"]):not([data-banim="words"]) { opacity: 0; }
  :is([data-anim="rise"], [data-banim="rise"]):not(.in) { transform: translateY(28px); }
  :is([data-anim="slide"], [data-banim="slide"]):not(.in) { transform: translateX(-42px); }
  :is([data-anim="zoom"], [data-banim="zoom"]):not(.in) { transform: scale(.9); }
  :is([data-anim], [data-banim]):not([data-anim="words"]):not([data-banim="words"]) { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  :is([data-anim="words"], [data-banim="words"]) .aw { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .5s ease, transform .5s ease; }
  :is([data-anim="words"], [data-banim="words"]).in .aw { opacity: 1; transform: none; }
}
}
.cs[data-slide] .cs-feat, .cs[data-slide] .cs-team, .cs[data-slide] .cs-chk { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.cs[data-slide] .cs-feat::-webkit-scrollbar, .cs[data-slide] .cs-team::-webkit-scrollbar { display: none; }
.cs[data-slide] .cs-feat > li, .cs[data-slide] .cs-team > li { flex: 0 0 min(72%, 220px); scroll-snap-align: start; }

/* ══ S8e: the phone editor. The panel is a sheet under the preview (short, half or tall); the list is calm: a name and an eye per row ══ */
.ed-handle { display: none; }
@media (max-width: 899px) {
  .ed-shell { --sheet: 42dvh; } .ed-shell[data-sheet="full"] { --sheet: 80dvh; } .ed-shell[data-sheet="peek"] { --sheet: 0px; }
  .ed-shell .ed-grid { grid-template-rows: minmax(0, 1fr) auto var(--sheet); transition: grid-template-rows .22s ease; }
  .ed-shell.ed-dragging .ed-grid { transition: none; }
  .ed-handle { display: grid; place-items: center; order: 2; height: 26px; border: 0; border-top: 1px solid var(--line); background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -6px 14px rgba(0, 0, 0, .06); cursor: grab; touch-action: none; padding: 0; position: relative; z-index: 2; }
  .ed-handle i { width: 44px; height: 5px; border-radius: 3px; background: #cfcfcf; }
  .ed-lib, .ed-shell .ed-panel { order: 3; overflow-y: auto; min-height: 0; border-top: 0; }
  .ed-shell[data-pcol="1"] .ed-handle, .ed-shell.ed-previewing .ed-handle { display: none; }
  .ed-shell[data-pcol="1"] .ed-grid, .ed-shell.ed-previewing .ed-grid { grid-template-rows: minmax(0, 1fr); }
  .ed-row { min-height: 52px; border-bottom: 1px solid #f1f1f1; border-radius: 0; gap: 0; }
  .ed-row .ed-mv, .ed-row .ed-name small { display: none; }
  .ed-row .ed-name { flex: 1; min-width: 0; padding: 12px 6px; text-align: left; } .ed-row .ed-name b { font-size: 1rem; font-weight: 600; }
  .ed-row .ed-grip { width: 40px; height: 48px; color: #b5b5b5; }
  .ed-row .ed-eye { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; }
  .ed-group h3 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; margin: 18px 0 4px; }
  .ed-dock { gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .ed-dock button { border: 0; border-radius: 999px; padding: 10px 6px; background: #f3f3f3; color: #333; }
  .ed-dock button[aria-pressed="true"] { background: #111; color: #fff; border: 0; }
}

/* ══ S8f: a modern, colourful editor. Soft lilac canvas, white rounded cards, one purple-to-pink accent, a different pastel for each kind of thing ══ */
.ed-shell { --ed-a: #6a3df0; --ed-b: #e8409a; --ed-soft: #f3efff; background: #f4f2fb; }
.ed-shell .ed-top { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid #ece8f7; }
.ed-shell .ed-preview { background: #f4f2fb; }
.ed-shell .ed-frame { border-radius: 18px; box-shadow: 0 10px 30px rgba(70, 40, 160, .12); overflow: hidden; background: #fff; }
.ed-lib, .ed-shell .ed-panel { background: #fff; }
.ed-shell .ed-top-r .ed-pub .btn-primary, .ed-shell #ed-publish { background: linear-gradient(135deg, var(--ed-a), var(--ed-b)); border: 0; color: #fff; box-shadow: 0 4px 14px rgba(106, 61, 240, .35); }
.ed-shell #ed-publish:disabled { background: #d9d5e8; box-shadow: none; color: #fff; }
.ed-shell .ed-pubmore { background: linear-gradient(135deg, var(--ed-b), #f06a7a); border: 0; }
.ed-top-r .ed-txt:not(:disabled) { color: var(--ed-a); }
.ed-ur { border-color: #e4def6; } .ed-ur button:hover:not(:disabled) { background: var(--ed-soft); color: var(--ed-a); }
.ed-panel .ed-group h3, .ed-lib h4 { color: #8b84a8; }
.ed-panel .ed-group { background: #faf9fe; border: 1px solid #efecf8; border-radius: 16px; padding: 12px 12px 8px; margin-bottom: 14px; }
.ed-row { border-radius: 12px; transition: background .15s; } .ed-row:hover { background: #fff; box-shadow: 0 1px 0 #efecf8; }
.ed-row .ed-name b::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; background: var(--dot, #6a3df0); vertical-align: 1px; }
.ed-row:nth-child(6n+1) { --dot: #6a3df0; } .ed-row:nth-child(6n+2) { --dot: #e8409a; } .ed-row:nth-child(6n+3) { --dot: #1fa97a; } .ed-row:nth-child(6n+4) { --dot: #f59e0b; } .ed-row:nth-child(6n+5) { --dot: #2f80ed; } .ed-row:nth-child(6n) { --dot: #ef5b4c; }
.ed-row.is-cur { background: var(--ed-soft); box-shadow: inset 3px 0 0 var(--ed-a); }
.ed-tile { border: 0; border-radius: 14px; background: var(--tb, #f3efff); color: #2a2250; transition: transform .12s, box-shadow .12s; }
.ed-tile i { color: var(--tc, #6a3df0); } .ed-tile:hover { background: var(--tb, #f3efff); border: 0; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(70, 40, 160, .15); }
/* One colour for every block and section tile: a faded pink (was six rotating colours) */
.ed-tiles .ed-tile { --tb: rgba(232, 64, 154, .09); --tc: #d63384; }
.ed-tiles .ed-tile:hover { --tb: rgba(232, 64, 154, .16); }
.ed-add { border: 1.5px dashed #c9bff0; color: var(--ed-a); background: #faf8ff; border-radius: 14px; } .ed-add:hover { border-color: var(--ed-a); background: var(--ed-soft); }
.ed-fold { border-bottom: 1px solid #efecf8; } .ed-fold > summary { color: #241d4a; } .ed-fold > summary::after { border-color: var(--ed-a); }
.ed-panel input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), .ed-panel select, .ed-panel textarea { border-radius: 12px; border: 1px solid #e2dcf4; background: #fff; }
.ed-panel input:focus, .ed-panel select:focus, .ed-panel textarea:focus { border-color: var(--ed-a); box-shadow: 0 0 0 3px rgba(106, 61, 240, .15); outline: 0; }
.ed-seg label:has(input:checked), .ed-seg input:checked + span { background: var(--ed-a) !important; color: #fff !important; }
.ed-panel .btn-ghost { border-radius: 12px; border-color: #e2dcf4; color: var(--ed-a); } .ed-panel .btn-ghost:hover { background: var(--ed-soft); }
.ed-eyetog .ed-eye-on { background: #e3f7ef; color: #14805c; }
.ed-eye[aria-pressed="true"] { color: var(--ed-a); }
.pe:focus-within { border-color: var(--ed-a); box-shadow: 0 0 0 3px rgba(106, 61, 240, .15); } .pe-row button[aria-pressed="true"] { background: var(--ed-soft); color: var(--ed-a); }
@media (max-width: 899px) {
  .ed-dock button[aria-pressed="true"] { background: linear-gradient(135deg, var(--ed-a), var(--ed-b)); }
  .ed-handle { border-top-color: #ece8f7; } .ed-handle i { background: #d8d0f2; }
  .ed-row { border-bottom: 1px solid #f1eefa; } .ed-panel .ed-group { padding: 8px 10px 4px; }
}

/* ══ Menu alignment: group rows (Catalog, My website) now use the same box as every other row, so icons and words line up ══ */
.menu nav .mgroup > summary { display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 44px; border-radius: 8px; color: #e9e9e9; font: 600 .95rem var(--sans); }
.menu nav .mgroup > summary:hover { background: rgba(255,255,255,.08); }
.menu nav .mgroup > summary > span { flex: 1; min-width: 0; }
.menu nav .mgroup > summary .chev { margin-left: 0; color: #a9a9a9; }
.menu nav .mgroup { margin: 0; }
.menu nav .mkids { display: grid; gap: 2px; padding: 2px 0 4px 0; margin-left: 22px; border-left: 1px solid rgba(255,255,255,.14); }
.menu nav .mkids a { padding-left: 12px; }
.menu nav .ico { width: 20px; height: 20px; }
@media (min-width: 860px) {
  body.has-side .menu nav .mgroup > summary { min-height: 36px; padding: 0 10px; gap: 10px; font-size: .9rem; }
  body.has-side .menu nav .mkids { gap: 0; margin-left: 20px; padding: 0 0 2px; }
  body.has-side .menu nav .mkids a { padding-left: 10px; }
}

/* ══ Stage 1: header (human icon, closer logo, red bell), bell card, setup strip, nudge, dots menu, softer colour ══ */
.bell-n { background: #E5252A; color: #fff; top: 3px; right: 3px; box-shadow: 0 0 0 2px #0b0b0c; }
.bell-wrap { position: relative; }
.bell { background: transparent; border: 0; cursor: pointer; color: inherit; }
body.has-side .bell { color: var(--ink); }
@media (min-width: 860px) { body.has-side .bell { color: #fff; } }
.who-ic { display: none; }
@media (max-width: 859px) {
  .bar-in { gap: 4px; }
  .menu-btn + .brand { margin-left: -8px; }
  .bar-end { gap: 0; }
  .bell { min-width: 40px; padding: 0 4px; }
  body.has-side .who-wrap .who { gap: 0; padding: 0; color: var(--ink); }
  .who-name, .who-wrap .who .chev { display: none; }
  .who-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; }
  .who-ic .ico { width: 18px; height: 18px; }
  .bell-n { box-shadow: 0 0 0 2px #fff; }
}
.ncard { position: absolute; right: -8px; top: calc(100% + 10px); width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.18); z-index: 70; padding: 6px 0; text-align: left; font-family: var(--sans); }
.nc-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 8px; }
.nc-head b { font-size: .98rem; }
.nc-all { background: none; border: 0; color: var(--oxblood); font: 600 .82rem var(--sans); cursor: pointer; }
.nc-list { list-style: none; margin: 0; padding: 0; }
.nc-list li { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.nc-list li.unread { background: rgba(233,205,156,.18); }
.nc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: transparent; }
.nc-list li.unread .nc-dot { background: #E5252A; }
.nc-tx { display: grid; gap: 2px; min-width: 0; }
.nc-tx strong { font-size: .9rem; color: var(--ink); } .nc-tx a { text-decoration: none; }
.nc-tx span { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-tx small { font-size: .74rem; color: var(--muted); }
.nc-empty { margin: 0; padding: 18px 16px 20px; color: var(--muted); font-size: .88rem; }

.setup-strip { display: flex; align-items: center; gap: 10px; padding: 7px 14px; background: linear-gradient(90deg, #fbf1dc, #f6e2e6); color: #2a1a1f; border-bottom: 1px solid rgba(109,12,43,.12); }
.ss-ring { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--oxblood, #6D0C2B) calc(var(--p) * 1%), rgba(109,12,43,.15) 0); position: relative; }
.ss-ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff6e6; }
.ss-ring b { position: relative; font: 700 .62rem var(--sans); color: var(--oxblood, #6D0C2B); }
.ss-tx { display: grid; line-height: 1.2; min-width: 0; flex: 1; } .ss-tx b { font-size: .86rem; } .ss-tx small { font-size: .74rem; color: #6b5a5f; }
.setup-strip .ss-go, #setup-nudge .ss-go { flex: none; background: #6D0C2B !important; color: #fff !important; border: 0; border-radius: 999px; padding: 8px 14px; font: 600 .82rem var(--sans); cursor: pointer; }
body.has-side .bar { color: #fff; } body.has-side .setup-strip { color: #2a1a1f; }

#setup-sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; }
#setup-sheet .sh-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.sh-card { position: relative; width: min(460px, 100%); max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 18px 24px; font-family: var(--sans); color: var(--ink); }
@media (min-width: 640px) { #setup-sheet { place-items: center; } .sh-card { border-radius: 20px; } }
.sh-top { display: flex; justify-content: space-between; align-items: flex-start; } .sh-top b { display: block; font-size: 1.05rem; } .sh-top small { color: var(--muted); }
.sh-x { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }
.sh-bar { height: 6px; background: rgba(109,12,43,.12); border-radius: 6px; margin: 12px 0 8px; overflow: hidden; } .sh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #BD8C21, #6D0C2B); border-radius: 6px; }
.sh-list { list-style: none; margin: 0; padding: 0; }
.sh-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.sh-list a { color: var(--ink); text-decoration: none; font-weight: 600; flex: 1; }
.sh-list li.done span { color: var(--muted); text-decoration: line-through; }
.sh-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cfc4c7; display: grid; place-items: center; font: 700 .72rem var(--sans); font-style: normal; color: #fff; }
.sh-list li.done .sh-tick { background: #2e9e6b; border-color: #2e9e6b; }

#setup-nudge { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 80; display: flex; align-items: center; gap: 12px; width: min(420px, calc(100vw - 24px)); padding: 12px 14px; background: #fff; border: 1px solid rgba(109,12,43,.18); border-radius: 18px; box-shadow: 0 16px 36px rgba(0,0,0,.2); font-family: var(--sans); animation: nudgeIn .3s ease; }
#setup-nudge > div { flex: 1; display: grid; line-height: 1.25; } #setup-nudge b { font-size: .9rem; } #setup-nudge small { color: var(--muted); font-size: .78rem; }
@keyframes nudgeIn { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

.pmore .btn { width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; }

/* softer colour between the cards: moderate tints instead of flat white and black */
.bal-card { background: linear-gradient(135deg, #6D0C2B, #8f2a4a 60%, #a8542f); color: #fff; }
body[data-area=seller] .prow, body[data-area=seller] .ocard { background: linear-gradient(180deg, #fff, rgba(233,205,156,.14)); border-color: rgba(189,140,33,.25); }
body[data-area=seller] .panel { background: linear-gradient(180deg, #fff, rgba(212,25,84,.035)); }
.bell .bell-n { right: auto; left: calc(50% + 3px); top: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font: 700 .62rem/16px var(--sans, sans-serif); }

.bell .bell-n { left: calc(50% + 1px); top: 3px; }
@media (max-width: 859px) {
  .bell-wrap { position: static; }
  .ncard { position: absolute; left: 12px; right: 12px; top: 100%; width: auto; margin-top: 6px; max-height: 62vh; }
}
.pmore .btn { border-color: transparent; background: rgba(0,0,0,.05); color: var(--ink); }
.pmore .btn:hover { background: rgba(0,0,0,.09); }

/* ══ Stage 2: security page ══ */
.sec-card { margin-top: 14px; } .sec-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.sec-state { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(46,158,107,.10), rgba(233,205,156,.16)); }
.sec-state b { display: block; font-size: .95rem; } .sec-state small { color: var(--muted); }
.sec-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2e9e6b; color: #fff; } .sec-ic.off { background: #bdb3b6; }
.sec-actions { gap: 8px; } .sec-pin { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.seg { display: inline-flex; background: rgba(109,12,43,.07); border-radius: 12px; padding: 3px; gap: 3px; }
.seg-o { margin: 0; cursor: pointer; } .seg-o input { position: absolute; opacity: 0; pointer-events: none; }
.seg-o span { display: block; padding: 8px 18px; border-radius: 9px; font: 600 .88rem var(--sans); color: var(--muted); }
.seg-o input:checked + span { background: #fff; color: var(--oxblood); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.seg-o input:focus-visible + span { outline: 2px solid var(--raspberry, #D41954); }
.pin-in { text-align: center; font-size: 1.5rem; letter-spacing: .55em; max-width: 220px; padding-left: .55em; }

/* ───────── Finances (S10b) ───────── */
.fin-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.fin-top h2 { margin: 0; }
.fin-export { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 0; font-size: .88rem; }
.fin-export .ico { width: 16px; height: 16px; }
.fhero { position: relative; margin-top: 12px; padding: 18px 18px 14px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #6D0C2B 0%, #8c2347 58%, #a8532f 100%); overflow: hidden; }
.fhero::after { content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.fh-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fh-lab { font-size: .82rem; opacity: .8; }
.fh-big { font: 700 1.75rem/1.2 var(--sans); margin-top: 2px; letter-spacing: -.01em; }
.fh-btn { flex: none; background: #fff; color: #6D0C2B; border: 0; border-radius: 12px; padding: 11px 18px; font: 700 .95rem var(--sans); cursor: pointer; }
.fh-btn:disabled { opacity: .55; cursor: not-allowed; }
.fh-sub { position: relative; z-index: 1; display: flex; gap: 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); }
.fh-sub span { display: block; font-size: .74rem; opacity: .75; } .fh-sub b { font-size: .92rem; }
.fh-note, .fh-load { position: relative; z-index: 1; margin: 10px 0 0; font-size: .8rem; opacity: .85; }
.fperiod { display: flex; gap: 8px; overflow-x: auto; margin: 16px 0 4px; padding-bottom: 2px; scrollbar-width: none; }
.fperiod::-webkit-scrollbar { display: none; }
.fchip { flex: none; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 7px 14px; font: 600 .85rem var(--sans); cursor: pointer; }
.fchip.on { background: #6D0C2B; border-color: #6D0C2B; color: #fff; }
.fcustom { display: flex; gap: 10px; margin: 8px 0 0; } .fcustom label { flex: 1; font-size: .78rem; color: var(--muted); } .fcustom input { width: 100%; margin-top: 3px; }
.ftiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ft { border-radius: 16px; padding: 12px 14px; border: 1px solid transparent; }
.ft span { display: block; font-size: .78rem; color: var(--muted); } .ft b { display: block; font-size: 1.05rem; margin-top: 3px; } .ft small { display: block; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.ft-rose { background: rgba(109,12,43,.07); border-color: rgba(109,12,43,.14); } .ft-green { background: rgba(22,163,106,.09); border-color: rgba(22,163,106,.2); }
.ft-amber { background: rgba(189,140,33,.11); border-color: rgba(189,140,33,.24); } .ft-blue { background: rgba(59,110,230,.08); border-color: rgba(59,110,230,.18); }
.fc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; } .fc-head h3 { margin: 0; }
.fbars { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.fbars i { flex: 1; min-width: 2px; background: linear-gradient(180deg, #8c2347, #6D0C2B); border-radius: 4px 4px 1px 1px; opacity: .9; }
.fbars.dense { gap: 1px; } .fbars.dense i { border-radius: 2px 2px 0 0; }
.fsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fsplit-i { border-radius: 14px; padding: 10px 12px; } .fsplit-i span { display: block; font-size: .78rem; color: var(--muted); } .fsplit-i b { display: block; margin-top: 2px; } .fsplit-i small { color: var(--muted); font-size: .72rem; }
.fs-a { background: rgba(109,12,43,.07); } .fs-b { background: rgba(59,110,230,.08); }
.lic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(109,12,43,.08); color: #6D0C2B; margin-right: 10px; }
.lic .ico { width: 17px; height: 17px; }
.fin .lrow { align-items: center; }
#wd-sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; }
#wd-sheet .sh-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.42); }
@media (min-width: 640px) { #wd-sheet { place-items: center; } #wd-sheet .sh-card { border-radius: 20px; } }
#wd-sheet .field { margin-top: 14px; }

/* S10c: Finance fills the desktop (main column + right rail), a quiet balance card, and a plain avatar without the ring */
.fhero { background: rgba(109,12,43,.055); color: var(--ink); border: 1px solid rgba(109,12,43,.14); }
.fhero::after { display: none; }
.fh-lab { color: var(--muted); opacity: 1; } .fh-sub { border-top-color: rgba(109,12,43,.14); } .fh-sub span { color: var(--muted); opacity: 1; }
.fh-note, .fh-load { color: var(--muted); opacity: 1; }
.fh-btn { background: #6D0C2B; color: #fff; }
.fin .lmain { flex: 1; min-width: 0; text-align: left; }
.fin-rail > :first-child { margin-top: 12px; }
@media (min-width: 1000px) {
  .wrap.fin { max-width: none; }
  .fin-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
  .fin-rail { position: sticky; top: 16px; }
  .fin-rail > :first-child { margin-top: 12px; }
  .ftiles { grid-template-columns: repeat(4, 1fr); }
  .fhero { padding: 22px 24px 16px; } .fh-big { font-size: 2.1rem; }
}
.who-ic { border: 0 !important; border-radius: 0 !important; width: 32px; height: 32px; background: transparent; }
.who-ic .ico { width: 26px; height: 26px; }
@media (max-width: 999px) { .fin-grid { display: flex; flex-direction: column; } .fin-main, .fin-rail { display: contents; } .fin-recent { order: 9; } }

/* S10c: payout settings */
.ps .panel { margin-top: 14px; } .ps .panel h3 { margin-top: 0; }
.ps-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ps-row:first-of-type { border-top: 0; } .ps h3 + .ps-row { border-top: 0; }
.ps-main { flex: 1; min-width: 0; } .ps-main b { display: block; font-size: .95rem; } .ps-main small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.ps-end { flex: none; } .ps-pick { cursor: default; }
.ps-seg { display: flex; width: 100%; } .ps-seg .seg-o { flex: 1; } .ps-seg .seg-o span { text-align: center; padding: 9px 6px; }
@media (max-width: 520px) { .ps-pick { flex-wrap: wrap; } .ps-pick .seg { margin-left: 46px; } }
.ps-pick { flex-wrap: wrap; } .ps-pick .ps-main { flex: 1 1 220px; } .ps-pick .seg { flex: none; }
@media (max-width: 520px) { .ps-pick .seg { margin-left: 46px; } }
@media (min-width: 1000px) { .narrow.ps { max-width: none; } .ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; } .ps-col > .panel:first-child { margin-top: 14px; } }
.seg-o { position: relative; } .seg-o input { left: 0; top: 0; width: 1px; height: 1px; }

/* S10d: smaller Me / Customer toggle on Payout settings */
.seg-sm { padding: 2px; gap: 2px; border-radius: 9px; }
.seg-sm .seg-o span { padding: 4px 11px; border-radius: 7px; font-size: .78rem; }
@media (max-width: 520px) { .ps-pick .seg-sm { margin-left: 46px; } }

/* S12a: Reports */
.rep-sub { margin: 2px 0 0; }
.rep .ft small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.rep .fcard { margin-top: 14px; }
.rep-row { margin-top: 12px; } .rep-top { display: flex; justify-content: space-between; font-size: .92rem; }
.rep-bar { height: 9px; border-radius: 999px; background: rgba(109,12,43,.08); margin-top: 6px; overflow: hidden; }
.rep-bar i { display: block; height: 100%; border-radius: 999px; } .rep-bar .rp-a { background: #6D0C2B; } .rep-bar .rp-b { background: #BD8C21; }
.rep-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rep-kinds div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; } .rep-kinds b { font-size: 1.15rem; } .rep-kinds small { color: var(--muted); }
.rep-note { margin-top: 16px; }

/* ───────── S12b: Manage staff, roles and invitations ───────── */
.rc-plum { --rc: #6D0C2B; --rcb: #F7E9EE; } .rc-rose { --rc: #B83A62; --rcb: #FCEBF1; } .rc-gold { --rc: #8A6212; --rcb: #FAF1DB; }
.rc-green { --rc: #1F6B4A; --rcb: #E4F3EB; } .rc-blue { --rc: #1B3F8F; --rcb: #E7EEFB; } .rc-grey { --rc: #4A4A4A; --rcb: #EEEEEE; }
.stf h2 { margin-bottom: 4px; } .stf > .muted { margin: 0 0 14px; }
.stf-tabs { display: flex; gap: 6px; background: rgba(109,12,43,.06); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.stf-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; border-radius: 10px; padding: 10px 6px; font: 600 .9rem var(--sans); color: var(--muted); cursor: pointer; }
.stf-tabs button[aria-selected="true"] { background: #fff; color: var(--oxblood); box-shadow: 0 1px 5px rgba(0,0,0,.12); }
.stf-tabs i { font-style: normal; font-size: .72rem; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: rgba(109,12,43,.1); color: var(--oxblood); }
.stf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stf-stats div { background: linear-gradient(160deg, #FCEFF3, #FBF4E4); border-radius: 14px; padding: 12px 10px; text-align: center; }
.stf-stats b { display: block; font: 700 1.3rem var(--sans); color: var(--oxblood); } .stf-stats span { font-size: .76rem; color: var(--muted); }
.stf-add { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 14px; } .stf-add .ico { width: 18px; height: 18px; }
.stf-list { display: grid; gap: 10px; }
.stf-card { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid rgba(109,12,43,.1); border-radius: 16px; padding: 12px; position: relative; }
.stf-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--sans); background: var(--rcb); color: var(--rc); }
.stf-who { min-width: 0; flex: 1; } .stf-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .stf-who small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stf-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.stf-role { display: inline-block; font: 600 .74rem var(--sans); padding: 3px 10px; border-radius: 99px; background: var(--rcb); color: var(--rc); }
.badge.wait { background: #FAF1DB; color: #8A6212; }
.stf-more { flex: none; } .stf-dots { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; } .stf-dots:hover, .stf-dots[aria-expanded="true"] { background: rgba(109,12,43,.08); color: var(--oxblood); } .stf-dots .ico { width: 20px; height: 20px; }
.stf-more .pop { right: 0; left: auto; min-width: 170px; } .stf-more .pop button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; font: 500 .92rem var(--sans); border-radius: 8px; cursor: pointer; color: var(--ink); } .stf-more .pop button:hover { background: rgba(109,12,43,.06); } .stf-more .pop .danger { color: #B3261E; }
.stf-empty { text-align: center; padding: 26px 12px; background: linear-gradient(160deg, #FCF3F6, #FBF6EA); border-radius: 18px; } .stf-empty b { display: block; margin: 8px 0 4px; } .stf-empty p { margin: 0 auto; max-width: 30ch; color: var(--muted); font-size: .9rem; }
.stf-ill { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--oxblood); box-shadow: 0 2px 10px rgba(109,12,43,.12); } .stf-ill .ico { width: 30px; height: 30px; }
.stf-h { margin: 18px 0 8px; font: 700 .8rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stf-tpl h4 { margin: 4px 0 2px; } .stf-tpl .muted { margin: 0 0 8px; font-size: .86rem; }
.stf-tpl-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; }
.stf-tpl-card { flex: 0 0 168px; scroll-snap-align: start; text-align: left; border: 1px solid transparent; background: var(--rcb); border-radius: 16px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-family: var(--sans); color: var(--ink); }
.stf-tpl-card b { color: var(--rc); } .stf-tpl-card small { color: var(--muted); line-height: 1.35; min-height: 3.2em; }
.stf-tpl-add { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font: 600 .8rem var(--sans); color: var(--rc); } .stf-tpl-add .ico { width: 14px; height: 14px; }
.stf-role-card { background: #fff; border: 1px solid rgba(109,12,43,.1); border-left: 5px solid var(--rc); border-radius: 16px; padding: 12px 12px 10px 14px; }
.stf-rc-top { display: flex; justify-content: space-between; gap: 8px; } .stf-rc-top b { color: var(--rc); } .stf-rc-top small { display: block; color: var(--muted); }
.stf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.stf-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--rcb); color: var(--ink); font: 500 .76rem var(--sans); padding: 4px 9px; border-radius: 99px; } .stf-chip i { display: inline-flex; color: var(--rc); } .stf-chip .ico { width: 13px; height: 13px; } .stf-chip em { font-style: normal; font-weight: 700; color: var(--rc); } .stf-chip.more { color: var(--muted); } .stf-none { color: var(--muted); font-size: .84rem; }
.stf-rc-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.stf-foot { margin-top: 16px; }
/* the invite, change-role and role-editor sheet */
#stf-sheet { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; } #stf-sheet .sh-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.stf-sheet { max-height: 90vh; } @media (min-width: 640px) { #stf-sheet { place-items: center; } #stf-sheet .sh-card { border-radius: 20px; } }
.stf-picks { display: grid; gap: 8px; } .stf-pick { margin: 0; cursor: pointer; } .stf-pick input { position: absolute; opacity: 0; pointer-events: none; }
.stf-pick-in { display: block; border: 1.5px solid rgba(0,0,0,.1); border-radius: 14px; padding: 10px 12px; background: #fff; } .stf-pick-in b { display: block; color: var(--rc); } .stf-pick-in small { color: var(--muted); }
.stf-pick input:checked + .stf-pick-in { border-color: var(--rc); background: var(--rcb); } .stf-pick input:focus-visible + .stf-pick-in { outline: 2px solid var(--raspberry, #D41954); }
.stf-cols { display: flex; gap: 10px; } .stf-col { margin: 0; cursor: pointer; } .stf-col input { position: absolute; opacity: 0; pointer-events: none; } .stf-col span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--rc); border: 3px solid #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.15); } .stf-col input:checked + span { box-shadow: 0 0 0 2.5px var(--rc); } .stf-col input:focus-visible + span { outline: 2px solid var(--raspberry, #D41954); outline-offset: 3px; }
.stf-quick { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; font-size: .84rem; color: var(--muted); } .stf-quick span { font-weight: 600; }
.stf-grp { margin-bottom: 12px; } .stf-grp h4 { margin: 0 0 6px; padding: 6px 10px; border-radius: 10px; background: rgba(109,12,43,.07); color: var(--oxblood); font: 700 .78rem var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.stf-area { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(0,0,0,.06); } .stf-area:last-child { border-bottom: 0; }
.stf-ai { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FBEFF3; color: var(--oxblood); } .stf-ai .ico { width: 18px; height: 18px; }
.stf-at { flex: 1; min-width: 0; } .stf-at b { display: block; font-size: .92rem; } .stf-at small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.stf-seg { flex: none; } .stf-seg .seg-o span { padding: 6px 11px; font-size: .8rem; }
@media (max-width: 420px) { .stf-area { flex-wrap: wrap; } .stf-seg { margin-left: 44px; } }
/* staff Home and invitations */
.stf-hero { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(150deg, #FBEAF0, #FBF3E2); margin-bottom: 12px; } .stf-hero h2 { margin: 0 0 4px; }
.stf-access { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .stf-acc { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #FDF6F8; color: var(--ink); text-decoration: none; } .stf-acc b { display: block; font-size: .9rem; } .stf-acc small { color: var(--muted); }
.stf-inv { display: flex; align-items: center; gap: 10px; padding: 12px; flex-wrap: wrap; } .stf-inv-tx { flex: 1; min-width: 140px; } .stf-inv-tx b { display: block; } .stf-inv-tx small { color: var(--muted); } .stf-inv-go { display: flex; align-items: center; gap: 12px; }
.stf-invites { background: linear-gradient(150deg, #FBEAF0, #FBF3E2); border-radius: 18px; padding: 4px 4px 8px; } .stf-invites h3 { padding: 10px 12px 0; } .stf-invites .hint { padding: 0 12px; }

/* ══ S12c: announcement bar ══ */
.store-announce { position: relative; overflow: hidden; background: var(--an-bg, var(--plum)); color: var(--an-fg, #fff); }
.store-announce[data-cfont] { font-family: var(--an-font); }
.store-announce[data-size="s"] { font-size: .75rem; } .store-announce[data-size="l"] { font-size: 1rem; padding-block: 11px; }
.store-announce[data-bold] { font-weight: 800; }
.store-announce[data-align="left"] { text-align: left; } .store-announce[data-align="right"] { text-align: right; }
#bar .store-announce[data-cbg] { background: var(--an-bg); } #bar .store-announce[data-cfg] { color: var(--an-fg); }
.ann-track { display: flex; justify-content: center; } .store-announce[data-align="left"] .ann-track { justify-content: flex-start; } .store-announce[data-align="right"] .ann-track { justify-content: flex-end; }
.ann-s { color: inherit; text-decoration: none; } a.ann-s { text-decoration: underline; text-underline-offset: 3px; }
.store-announce:has(.ann-x) { padding-right: 38px; }
.ann-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 9px; border-radius: 6px; opacity: .85; } .ann-x:hover { opacity: 1; background: rgba(255, 255, 255, .18); }
.ann-slot { display: none; } .ann-slot.is-on { display: block; animation: annIn .55s ease; }
@keyframes annIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.store-announce[data-motion="marquee"] .ann-track { width: max-content; justify-content: flex-start; }
.ann-run { display: inline-flex; gap: 56px; padding-right: 56px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .store-announce[data-motion="marquee"] .ann-track { animation: annRun 26s linear infinite; }
  .store-announce[data-motion="marquee"] .ann-track { animation-duration: calc(26s / var(--ann-speed, 1)); } /* S13b: speed 0.5x to 2x */
  .store-announce[data-motion="marquee"]:hover .ann-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .store-announce[data-motion="marquee"] .ann-track { width: auto; justify-content: center; } .store-announce[data-motion="marquee"] .ann-run + .ann-run { display: none; } }
@keyframes annRun { to { transform: translateX(-50%); } }

/* ══ S12c: buttons (border thickness, size, arrow, soft fill) ══ */
body[data-bfill="soft"] :is(.cs, .site-hero) .btn-primary { background: color-mix(in srgb, var(--plum) 14%, #fff); color: var(--plum); border-color: transparent; }
body[data-bfill="soft"] :is(.site-hero, .cs[data-bg="dark"], .cs[data-layout="banner"]) .btn-primary { background: rgba(255, 255, 255, .22); color: #fff; }
body[data-bborder="medium"] .btn { border-width: 2px; } body[data-bborder="thick"] .btn { border-width: 3px; }
body[data-bsize="small"] { --btn-h: 32px; } body[data-bsize="large"] { --btn-h: 48px; } body[data-bsize="large"] :is(.cs, .site-hero) .btn { font-size: 1rem; padding-inline: 24px; }
body[data-barrow="on"] :is(.cs, .site-hero) .btn-primary::after { content: "→"; margin-left: 8px; display: inline-block; transition: transform .15s ease; }
body[data-barrow="on"] :is(.cs, .site-hero) .btn-primary:hover::after { transform: translateX(4px); }

/* ══ S12c: the email sign-up block (layouts, colours, button) ══ */
.cs-news-t { display: grid; gap: 6px; } .cs-news-t:empty { display: none; } .cs-news-f { display: grid; gap: 8px; }
.cs-news[data-nl="inline"] { max-width: 780px; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 22px; text-align: left; }
.cs-news[data-nl="card"] { max-width: 520px; padding: 26px; border-radius: var(--r, 12px); background: #F6F1EE; color: #1b1b1b; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 14px 32px rgba(0, 0, 0, .09); }
.cs-news[data-nl="split"] { max-width: 840px; grid-template-columns: 1fr 1fr; align-items: center; gap: 26px; padding: 30px; border-radius: var(--r, 12px); background: var(--plum); color: #fff; text-align: left; }
.cs-news[data-nl="split"] input { border-color: transparent; }
.cs-news[data-nbg] { background: var(--nb-bg); padding: 24px; border-radius: var(--r, 12px); } .cs-news[data-nfg] { color: var(--nb-fg); } .cs-news[data-nfg] small { color: inherit; opacity: .8; }
.cs-news[data-nl="stacked"][data-nbg] { box-sizing: border-box; }
.cs-news[data-nbtn] .btn-primary { background: var(--nb-btn); color: var(--nb-btnfg, #fff); border-color: var(--nb-btn); }
.cs-news[data-nl="split"]:not([data-nbtn]) .btn-primary { background: #fff; color: var(--plum); border-color: #fff; }
.cs-news[data-nfill="outline"] .btn-primary { background: transparent; color: var(--nb-btn, var(--plum)); border-color: var(--nb-btn, var(--plum)); }
.cs-news[data-nfill="outline"][data-nl="split"]:not([data-nbtn]) .btn-primary { color: #fff; border-color: #fff; }
.cs-news[data-nshape="square"] :is(.btn, input) { border-radius: 0; } .cs-news[data-nshape="rounded"] :is(.btn, input) { border-radius: 8px; } .cs-news[data-nshape="pill"] :is(.btn, input) { border-radius: 999px; }
.cs[data-align="center"] .cs-news[data-nl="inline"], .cs[data-align="center"] .cs-news[data-nl="split"] { justify-items: stretch; }
@media (max-width: 640px) { .cs-news[data-nl="inline"], .cs-news[data-nl="split"] { grid-template-columns: 1fr; gap: 14px; } .cs-news[data-nl="split"] { padding: 22px; } }

/* ══ S12c: editor panels, announcement messages and the template picker ══ */
.ed-ann-more { border-left: 3px solid var(--line, #e6e0e2); padding: 2px 0 2px 12px; margin: 0 0 14px; }
.ed-ann-more .field { margin-bottom: 8px; }
.tpl-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line, #e6e0e2); border-radius: 14px; padding: 10px; margin: 0 0 12px; background: #fff; }
.tpl-card.is-cur { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum) inset; }
.tpl-pic { flex: 0 0 86px; max-height: 150px; overflow: hidden; border-radius: 8px; background: #faf8f9; border: 1px solid var(--line, #e6e0e2); }
.tpl-wire { display: block; width: 100%; height: auto; }
.tpl-body { flex: 1; min-width: 0; }
.tpl-body .btn { margin-top: 8px; }
.tpl-list { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; color: var(--muted); }
@media (max-width: 420px) { .tpl-card { flex-direction: column; } .tpl-pic { flex-basis: auto; width: 100%; max-height: 190px; } }

/* Header menu style (seller's choice): "links" is today's header; "menu" folds the links into a button that opens a list under the header. */
.store-menu-btn, .store-menu { display: none; }
#bar[data-hnav="menu"] .store-nav { display: none; }
#bar[data-hnav="menu"] .store-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 4px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; flex: none; }
#bar[data-hnav="menu"] .store-menu-btn:hover { background: var(--champagne-soft); }
#bar[data-hstyle="dark"] .store-menu-btn, #bar[data-hstyle="brand"] .store-menu-btn { color: #fff; }
#bar[data-hstyle="dark"] .store-menu-btn:hover, #bar[data-hstyle="brand"] .store-menu-btn:hover { background: rgba(255, 255, 255, .14); }
#bar[data-hnav="menu"] .store-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); }
#bar[data-hnav="menu"] .store-menu[hidden] { display: none; }
#bar[data-hnav="menu"] .store-menu:not([hidden]) { display: block; }
#bar[data-hnav="menu"] .store-menu nav { display: flex; flex-direction: column; padding: 6px 12px 12px; max-width: 520px; }
#bar[data-hnav="menu"] .store-menu a { padding: 13px 10px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
#bar[data-hnav="menu"] .store-menu a:last-child { border-bottom: 0; }
#bar[data-hnav="menu"] .store-menu a:hover { background: var(--champagne-soft); }
#bar[data-hnav="menu"] .store-menu a[aria-current] { box-shadow: inset 3px 0 0 var(--plum); background: var(--champagne-soft); }
/* Logo in the middle + menu button: the button sits at the left of the top row, the (hidden) link row takes no room */
#bar[data-hnav="menu"][data-hlayout="center"] .store-menu-btn { position: absolute; left: 8px; top: 8px; margin: 0; }
#bar[data-hsticky="off"][data-hnav="menu"] { position: relative; z-index: 30; }

/* S13b: right-panel controls. Choices are dropdowns, on/off choices are switches, speed is a slider with its number underneath. */
.ed-panel select, .ed-shell .ed-panel .field select { width: 100%; }
.ed-panel .field > .legend + select, .ed-panel .field > label + select { margin-top: 2px; }
.ed-panel .field select + label, .ed-panel .field > label ~ select ~ label { display: block; margin-top: 10px; }
.ed-trow { margin: 0 0 10px; padding: 6px 0; }
.ed-trow > span { flex: 1; min-width: 0; }
.ed-slide { display: block; }
.ed-slide input[type="range"] { width: 100%; min-height: 0; padding: 0; margin: 4px 0 0; accent-color: var(--ed-a, #6a3df0); }
.ed-slide-ends { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--muted); }
.ed-slide-ends output { font: 700 .95rem var(--sans); color: var(--ed-a, #6a3df0); }
.ed-panel .ed-add + .field { margin-top: 12px; }

/* ═══════════ Round 6: oxblood wine buttons, the new listing card, swipeable photos, seller block at the end ═══════════ */
:root { --wine: #6D0C2B; --wine-deep: #560A22; --wine-tint: #FBEFF3; --star: #F2A60D; }

/* buttons: oxblood wine again (prices were already wine) */
.btn-primary, .btn-buy, .btn-now, .pd-info #buy .row .btn-primary { background: var(--wine); color: #fff; border-color: var(--wine); }
.btn-primary:hover, .btn-buy:hover, .btn-now:hover, .pd-info #buy .row .btn-primary:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn-ghost { background: #fff; border: 1.5px solid var(--wine); color: var(--wine); }
.btn-ghost:hover { background: var(--wine-tint); }
.btn-gold { background: #fff; border: 1.5px solid var(--wine); color: var(--wine); }
.btn-gold:hover { background: var(--wine-tint); }
.btn-quiet { color: var(--wine); }
.bsearch button { background: var(--wine); } .bsearch button:hover { background: var(--wine-deep); }
.hcta, .hsellbox { background: var(--wine); color: #fff; }
.hdots button[aria-current="true"] { background: var(--wine); }
.cnt { background: var(--wine); }
input:focus, select:focus, textarea:focus { border-color: var(--wine); outline: 2px solid rgba(109, 12, 43, .18); }
.slot[aria-pressed="true"], .chip[aria-current="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.chip[aria-checked="true"], .tchip input:checked + span { border-color: var(--wine); background: var(--wine-tint); color: var(--wine); }
.pd-th[aria-pressed="true"] { border-color: var(--wine); }
.tabs [aria-current="true"]::after, .tabs [aria-pressed="true"]::after, .tabs button.on::after { background: var(--wine); }

/* the listing card: photo, name, price, stars, round cart button */
.pgrid { gap: 12px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; align-items: stretch; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .shop-main .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .shop-main .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pgrid.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 8px; }
.pgrid.strip .pcard { flex: 0 0 158px; scroll-snap-align: start; height: auto; }
@media (min-width: 900px) { .pgrid.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } .pgrid.strip .pcard { flex: none; } }
@media (min-width: 1300px) { .pgrid.strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pgrid .pcard { display: flex; flex-direction: column; height: 100%; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #ECECEC; border-radius: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); transition: box-shadow .15s, border-color .15s; }
.pgrid .pcard:hover { border-color: #DCDCDC; box-shadow: 0 6px 16px rgba(0, 0, 0, .1); transform: none; }
.pgrid .pcard:hover .pname { text-decoration: none; }
.pgrid .pimg { border-radius: 0; aspect-ratio: 1 / 1; }
.pgrid .pbody { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 10px 10px 10px; min-width: 0; }
.pgrid .pname { order: 0; height: auto; min-height: 2.5em; margin: 0; font: 600 .82rem/1.25 var(--sans); color: #1A1A1A; -webkit-line-clamp: 2; }
.pbuy { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 0; }
.pinfo { min-width: 0; display: grid; gap: 3px; }
.pgrid .pprice { height: auto; font: 800 1.02rem/1.2 var(--sans); color: var(--price); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgrid .pprice small { font: 500 .7rem var(--sans); color: var(--muted); }
.prating { font: 500 .76rem/1 var(--sans); color: var(--muted); }
.prate { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.prate .ico { width: 14px; height: 14px; fill: var(--star); stroke: var(--star); flex: none; }
.prate b { color: #1A1A1A; font-weight: 700; }
.prate.none { font-weight: 600; color: var(--muted); }
.prating { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; }
.psub { overflow: hidden; text-overflow: ellipsis; }
.psub::before { content: "·"; margin-right: 5px; }
.pcart { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--wine); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .1s; }
.pcart .ico { width: 18px; height: 18px; }
.pcart:hover { background: var(--wine-deep); } .pcart:active { transform: scale(.94); }
.pcart:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.pgrid .ptag { background: var(--wine); font: 700 .66rem var(--sans); }
.pheart { background: rgba(255, 255, 255, .95); }
.pgrid.joined .pcard { border-radius: 0; box-shadow: none; }

/* product page: swipeable photos */
.pd-main { position: relative; overflow: hidden; cursor: zoom-in; }
.pd-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; outline: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; user-select: none; -webkit-user-drag: none; }
.pd-main:hover .pd-track img { transform: none; }
.pd-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.pd-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transition: width .15s, background .15s; }
.pd-dots i.on { width: 18px; border-radius: 4px; background: #fff; }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #111; font-size: 1.5rem; line-height: 1; display: none; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.pd-arrow.prev { left: 10px; } .pd-arrow.next { right: 10px; }
@media (hover: hover) { .pd-arrow { display: grid; } }

/* product page: stars under the name */
.pd-rate { display: flex; align-items: center; gap: 6px; margin: 2px 0 4px; font: 500 .9rem var(--sans); color: var(--muted); }
.pd-rate b { color: #1A1A1A; }
.pd-stars { --v: 0; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: 1px; }
.pd-stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--star) calc(var(--v) / 5 * 100%), #D9D9D9 0); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* product page: seller near the end, then similar products */
.pd-seller { margin-top: 24px; }
.pd-seller:empty { display: none; }
.pd-seller .soldby { margin-bottom: 0; }

/* ══ Stage 16a: header tightened (back, menu, logo and account/cart sit close), new account + cart icons, slightly bigger logo ══ */
.bar-shop { gap: 2px; }
.bar-shop .backbtn { width: 36px; margin-left: -8px; }
.bar-shop .backbtn + .menu-btn { margin-left: -6px; }
.bar-shop .menu-btn { width: 40px; margin-left: -6px; }
.bar-shop .backbtn + .menu-btn, .bar-shop .menu-btn + .brand { margin-right: 0; }
.bar-shop .menu-btn + .brand { margin-left: -4px; }
.bar-shop .brand img { height: 34px; }
.bar-acts { gap: 0; }
.act { min-width: 40px; padding: 2px 5px; }
.act .ico { width: 23px; height: 23px; }
.cnt { right: 1px; }
@media (max-width: 859px) { .act { min-width: 38px; } .bar-in { gap: 2px; } }
@media (min-width: 860px) {
  .bar-shop { gap: 6px; }
  .bar-shop .brand { margin-right: 18px; }
  .bar-shop .brand img { height: 38px; }
  .act { min-width: 48px; padding: 2px 6px; }
}

/* ══ Stage 16b: behaves like an app when added to the home screen ══ */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: none; }
a, button, input, select, textarea, label { touch-action: manipulation; }
.bar, .menu-btn, .backbtn, .act, .catbar, .brand { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.brand img, .act { -webkit-user-drag: none; }
@media (display-mode: standalone), (display-mode: fullscreen) {
  .bar { padding-top: env(safe-area-inset-top); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ══ Stage 16c: picture-only sliding banners (tap goes to the page) ══ */
.hbanner { height: auto; aspect-ratio: 1568 / 672; background: #f3e6e6; }
.hslide.hslide-img { display: block; padding: 0; background: none; position: relative; }
.hslide-img img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.hdots button { background: rgba(255, 255, 255, .6); box-shadow: 0 0 3px rgba(0, 0, 0, .35); }
.hdots button[aria-current="true"] { background: #fff; }
@media (min-width: 960px) { .hbanner { height: 100%; aspect-ratio: auto; } }

/* ══ Stage 16d: product page. Add to cart is a wine outlined cart icon; less space, smaller detail text, fewer lines; customer reviews with photos ══ */
.pd-actions { align-items: stretch; }
.pd-actions .btn.btn-now { flex: 1; background: var(--wine); color: #fff; border: 1.5px solid var(--wine); }
.pd-actions .btn.btn-buy { flex: 0 0 56px; width: 56px; padding: 0; display: inline-grid; place-items: center; background: #fff; color: var(--wine); border: 1.5px solid var(--wine); }
.pd-actions .btn.btn-buy:hover { background: var(--wine-tint); border-color: var(--wine); }
.pd-actions .btn.btn-buy .ico { width: 24px; height: 24px; color: var(--wine); }
.pd-actions .btn.btn-buy.is-busy { opacity: .55; }
/* spacing between the delivery / returns / checkout rows and the seller */
.pd-info { gap: 2px; }
.pd-rows { margin: 8px 0 4px; border-top: 0; }
.pd-rows li { border-bottom: 0; padding: 7px 2px; font-size: .84rem; gap: 10px; }
.pd-seller { margin-top: 10px; }
#savebtn:empty { display: none; }
/* smaller detail text, and no divider lines inside it */
.pd-h { font-size: .92rem; margin: 14px 0 6px; }
.pd-desc { font-size: .86rem; line-height: 1.55; }
.pd-desc h3 { font-size: .95rem; } .pd-desc h4 { font-size: .9rem; }
.pd-spec { font-size: .84rem; margin: 0 0 8px; }
.pd-spec th, .pd-spec td { padding: 6px 8px; border-bottom: 0; }
.pd-spec th { background: transparent; font-weight: 500; }
.pd-spec tr:nth-child(odd) { background: #FAFAFA; }
@media (max-width: 899px) { #buy .buybar { border-top: 0; } }
.pd-rate-link { color: inherit; text-decoration: none; }
.pd-rate-link:hover { text-decoration: underline; }
/* reviews */
.pd-reviews { margin-top: 22px; scroll-margin-top: 80px; }
.pd-reviews:empty { display: none; }
.rv-h { font-size: 1.1rem; margin: 0 0 10px; }
.rv-top { display: grid; gap: 14px; align-items: center; margin-bottom: 12px; }
@media (min-width: 700px) { .rv-top { grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; } }
.rv-score { display: grid; justify-items: start; gap: 2px; }
.rv-score b { font: 700 2.2rem/1 var(--serif); }
.rv-score small { color: var(--muted); }
.rv-bars { display: grid; gap: 4px; max-width: 360px; }
.rv-bar { display: grid; grid-template-columns: 26px minmax(0, 1fr) 24px; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); }
.rv-bar i { height: 6px; border-radius: 3px; background: #EDEDED; overflow: hidden; }
.rv-bar u { display: block; height: 100%; background: var(--star); }
.rv-cta .btn { gap: 8px; }
.rv-cta .ico { width: 18px; height: 18px; }
.rv-note { margin: 0; color: var(--muted); font-size: .86rem; }
.rv-none { margin: 0; }
.rv-gallery, .rv-ph { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rv-gallery { margin: 4px 0 12px; }
.rv-ph { margin-top: 8px; }
.rv-gallery button, .rv-ph button { flex: none; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #F3F3F3; cursor: pointer; }
.rv-gallery button { width: 72px; height: 72px; }
.rv-ph button { width: 64px; height: 64px; }
.rv-gallery img, .rv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the photo picker inside the review box */
.rv-up { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-up-t { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #F3F3F3; display: grid; place-items: center; color: var(--muted); }
.rv-up-t img { width: 100%; height: 100%; object-fit: cover; }
.rv-up-t button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.rv-up-add { width: 72px; height: 72px; min-height: 0; padding: 0; display: grid; place-items: center; align-content: center; gap: 2px; border: 1.5px dashed var(--wine); border-radius: 10px; background: #fff; color: var(--wine); font-size: .7rem; font-weight: 600; cursor: pointer; }
.rv-up-add .ico { width: 22px; height: 22px; }
.rv-dlg { max-height: 90vh; overflow-y: auto; }

/* Stage 16d fix: the room kept for the bottom buy bar belongs at the end of the page, not between the delivery rows and the seller */
@media (max-width: 899px) {
  .pd-info { padding-bottom: 0; }
  .wrap:has(#buy) { padding-bottom: 88px; }
}

/* Become a seller box: photo background, soft wine overlay, clear button */
.hsellbox { position: relative; isolation: isolate; overflow: hidden; background: #6D0C2B url('/assets/banners/become-a-seller.jpg') 76% 22% / cover no-repeat; color: #fff; align-content: end; gap: 8px; min-height: 150px; }
.hsellbox::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(109, 12, 43, .22) 0%, rgba(109, 12, 43, .42) 55%, rgba(86, 10, 34, .62) 100%); }
.hsellbox b { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.hsellbox span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: var(--btn-r, 10px); background: #fff; color: var(--wine); font-weight: 800; font-size: .9rem; opacity: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.hsellbox:hover span { background: var(--wine-tint); }

/* Login page only: photo on the left with the form on the right (wide screens); on phones the photo is a faint background under a wine gradient */
.auth-split { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 100vh; min-height: 100dvh; margin: 0; padding: 24px 16px; box-sizing: border-box; }
.auth-art { display: none; }
@media (max-width: 899px) {
  body.auth.auth-photo main { background: linear-gradient(180deg, rgba(109, 12, 43, .90) 0%, rgba(90, 10, 35, .94) 100%), url('/assets/banners/become-a-seller.jpg') 70% center / cover no-repeat #6D0C2B; }
}
@media (min-width: 900px) {
  body.auth.auth-photo main { padding: 0; }
  .auth-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin: 0; padding: 0; }
  .auth-art { display: block; background: linear-gradient(180deg, rgba(109, 12, 43, .06) 0%, rgba(109, 12, 43, .28) 100%), url('/assets/banners/become-a-seller.jpg') 72% center / cover no-repeat; }
  .auth-split .auth-wrap { align-self: center; justify-self: center; padding: 24px; box-sizing: border-box; }
}

/* Login and Create account (customer and seller): gold logo on phones, bigger form card on wide screens */
.auth-logo { display: block; width: 150px; max-width: 60%; height: auto; margin: 0 auto 22px; }
@media (min-width: 900px) {
  .auth-logo { display: none; }
  .auth-split .auth-wrap { max-width: 580px; }
  .auth-split .auth-card { padding: 44px 48px; border-radius: 20px; }
  .auth-split .auth-card h2 { font-size: 2rem; margin-bottom: 24px; }
  .auth-split .auth-card .auth-sub { font-size: 1rem; margin-bottom: 22px; }
  .auth-split .auth-card label { font-size: .95rem; }
  .auth-split .auth-card input, .auth-split .auth-card select { min-height: 52px; font-size: 1rem; }
  .auth-split .auth-card .btn-wide { min-height: 54px; font-size: 1.05rem; }
  .auth-split .auth-alt { font-size: 1rem; margin-top: 22px; }
}

/* Back link on seller pages: a proper chevron with room before the label */
.crumb-back { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 4px; margin: 0 0 6px -4px; border-radius: 999px; color: var(--ink, #111); font-weight: 600; text-decoration: none; }
.crumb-back .cb-ico { flex: none; }
.crumb-back:hover { background: rgba(0, 0, 0, .05); }

/* Wide screens: seller pages use the whole space next to the menu */
@media (min-width: 1100px) {
  body.has-side:not(.ed-full) .dash { max-width: 1500px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; align-items: start; }
  body.has-side:not(.ed-full) .dash > * { margin-top: 0; margin-bottom: 0; }
  body.has-side:not(.ed-full) .dash > .dash-top, body.has-side:not(.ed-full) .dash > .chips-row, body.has-side:not(.ed-full) .dash > .rchips, body.has-side:not(.ed-full) .dash > .mscroll { grid-column: 1 / -1; }
  body.has-side:not(.ed-full) .dash .mscroll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; overflow: visible; margin: 0; padding: 0; }
  body.has-side:not(.ed-full) .dash .mcard { flex: none; min-width: 0; }
  body.has-side:not(.ed-full) .dash > .dash-chart { grid-column: 1 / span 2; grid-row: span 2; align-self: stretch; }
  body.has-side:not(.ed-full) .dash > .dash-needs, body.has-side:not(.ed-full) .dash > .dash-bal { grid-column: 3; }
  body.has-side:not(.ed-full) .dash > .dash-bal { align-self: stretch; }
  body.has-side:not(.ed-full) .dash > .guide, body.has-side:not(.ed-full) .dash > .hcard:not(.dash-chart) { min-width: 0; }
  body.has-side:not(.ed-full) .acc { max-width: 1180px; columns: 2; column-gap: 32px; }
  body.has-side:not(.ed-full) .acc > * { break-inside: avoid; }
  body.has-side:not(.ed-full) .acc > h1, body.has-side:not(.ed-full) .acc > h2, body.has-side:not(.ed-full) .acc > .crumb-back { column-span: all; }
}
@media (min-width: 1300px) { body.has-side:not(.ed-full) .wrap:not(.fin):not(.dash) { max-width: 1500px; } }

/* Weekly hours: the seven days sit two across on wide screens */
@media (min-width: 1100px) {
  body.has-side:not(.ed-full) .narrow.wk { max-width: 1000px !important; }
  body.has-side:not(.ed-full) .narrow.wk > form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; align-items: start; }
  body.has-side:not(.ed-full) .narrow.wk > form > * { margin: 0 !important; }
  body.has-side:not(.ed-full) .narrow.wk > form > .field, body.has-side:not(.ed-full) .narrow.wk > form > .panel:nth-last-child(2), body.has-side:not(.ed-full) .narrow.wk > form > .row:last-child { grid-column: 1 / -1; }
}

/* Login / Create account on phones: card and logo sit exactly in the middle */
body.auth.auth-photo main { padding: 0; }
.auth-split .auth-wrap { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-logo { margin-left: auto; margin-right: auto; width: 170px; }

/* Header: account, saved and cart stay at the far right; bigger logo */
@media (max-width: 859px) {
  .bar-shop .brand, .bar-shop .menu-btn + .brand { margin-right: auto; }
  .bar-shop .bar-acts { margin-left: auto; }
}
.bar-shop .brand img { height: 42px; }
@media (min-width: 860px) { .bar-shop .brand img { height: 46px; } }

/* Search bar: thin, soft oxblood outline instead of the thick black one */
.bar-shop .bsearch, .bsearch { border: 1px solid rgba(109, 12, 43, .45); }
.bsearch:focus-within { border-color: rgba(109, 12, 43, .85); box-shadow: 0 0 0 3px rgba(109, 12, 43, .12); }

/* Category tabs: soft rounded chips in a scrolling row (like the sample) */
.catbar { background: #FCF7F5; border-bottom: 1px solid var(--line, #E6E0DE); }
.catscroll { gap: 10px; padding: 12px 16px; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.catscroll a, .catscroll a[aria-current] { padding: 10px 18px; border-radius: 12px; border: 1px solid #EBD3D9; background: #FBEFF2; color: #2A1519; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.catscroll a[aria-current] { background: var(--wine); border-color: var(--wine); color: #fff; }
@media (min-width: 860px) { .catbar:not(.on-home) .catscroll { display: flex; padding: 12px 24px; } }

/* Search | sort | filter row under the tabs */
.tbar { display: flex; gap: 10px; align-items: stretch; margin: 14px 0 12px; }
.tbar input[type="search"] { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid #D9D2CF; border-radius: 12px; background: #fff; font-size: 1rem; }
.tbar input[type="search"]:focus, .tbar select:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(109, 12, 43, .12); }
.tsort { position: relative; flex: none; display: flex; }
.tsort select { appearance: none; -webkit-appearance: none; min-height: 48px; min-width: 128px; padding: 0 38px 0 14px; border: 1px solid #D9D2CF; border-radius: 12px; background: #fff; font-size: 1rem; color: #111; }
.tsort .ico { position: absolute; right: 10px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none; color: #111; }
.tfilter { flex: none; width: 48px; min-height: 48px; border: 1px solid #D9D2CF; border-radius: 12px; background: #fff; color: #111; display: grid; place-items: center; cursor: pointer; }
.tfilter .ico { width: 24px; height: 24px; stroke-width: 2; }
.tfilter:hover, .tfilter[aria-expanded="true"] { border-color: var(--wine); color: var(--wine); }
@media (min-width: 860px) { .tbar { max-width: 760px; } .tsort select { min-width: 190px; } }

/* ═══════════ S17a: Support page and the newsletter pop-up ═══════════ */
.sup { max-width: 1040px; margin: 0 auto; padding: 0 0 64px; }
.sup-hero { position: relative; overflow: hidden; margin: 0 0 0; padding: 40px 20px 78px; text-align: center; color: #fff; border-radius: 0 0 28px 28px;
  background: radial-gradient(90% 120% at 12% 0%, #A3174A 0%, rgba(163, 23, 74, 0) 58%), linear-gradient(160deg, #7A0F33 0%, #560A22 60%, #3A0616 100%); }
.sup-hero::before { content: ""; position: absolute; inset: 0 0 45% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); pointer-events: none; }
.sup-hero h1 { color: #fff; margin: 14px 0 8px; }
.sup-hero p { color: rgba(255, 255, 255, .86); margin: 0 auto; max-width: 46ch; }
.sup-ic { width: 64px; height: 64px; display: inline-grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.sup-ic .ico { width: 32px; height: 32px; stroke-width: 1.7; }
.sup-body { padding: 0 16px; margin-top: -46px; position: relative; }
.sup-chan { display: grid; gap: 10px; }
.sup-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); box-shadow: 0 10px 28px rgba(86, 10, 34, .12); transition: transform .15s, box-shadow .15s; }
.sup-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(86, 10, 34, .18); }
.sup-card b { display: block; font-size: 1rem; }
.sup-card small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; overflow-wrap: anywhere; }
.sup-cic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--wine-tint); color: var(--wine); }
.sup-cic .ico { width: 24px; height: 24px; }
.sup-card.wa .sup-cic { background: #E3F6EA; color: #178A47; }
.sup-cols { display: grid; gap: 22px; margin-top: 22px; align-items: start; }
.sup-form { padding: 22px 18px; border-radius: 18px; }
.sup-form h2, .sup-quick h2 { font-size: 1.35rem; margin-bottom: 14px; }
.sup-two { display: grid; gap: 0 12px; }
.sup-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-chip { position: relative; cursor: pointer; }
.sup-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.sup-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1.5px solid #D9D2CF; border-radius: 999px; font-weight: 600; font-size: .88rem; background: #fff; transition: background .15s, border-color .15s, color .15s; }
.sup-chip:hover span { border-color: var(--wine); }
.sup-chip input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.sup-chip input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.sup-count { display: block; text-align: right; margin-top: 4px; }
.sup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sup-form .btn-primary { width: 100%; min-height: 48px; font-size: 1rem; }
.sup-quick h2 { margin-top: 6px; }
.sup-q { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sup-q:hover b { color: var(--wine); }
.sup-q b { display: block; font-size: .95rem; }
.sup-q small { display: block; color: var(--muted); font-size: .82rem; }
.sup-qic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--champagne-soft); color: var(--wine); }
.sup-qic .ico { width: 20px; height: 20px; }
.sup-done { text-align: center; padding: 18px 6px; }
.sup-done .row { justify-content: center; margin-top: 14px; }
.sup-tick { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: #E3F6EA; color: #178A47; margin-bottom: 8px; }
.sup-tick .ico { width: 34px; height: 34px; stroke-width: 2; }
.sup-done p { margin-left: auto; margin-right: auto; }
@media (min-width: 720px) {
  .sup-chan { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .sup-two { grid-template-columns: 1fr 1fr; }
  .sup-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .sup-form { padding: 28px; }
  .sup-hero { border-radius: 0 0 36px 36px; padding-top: 52px; }
}
@media (prefers-reduced-motion: no-preference) { .sup-tick { animation: supPop .45s cubic-bezier(.2, 1.4, .4, 1) both; } @keyframes supPop { from { transform: scale(.4); opacity: 0; } } }
/* admin inbox */
.sup-inbox { display: grid; gap: 12px; margin-top: 14px; }
.sup-msg header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sup-msg.done { opacity: .7; }
.sup-text { white-space: pre-wrap; margin: 12px 0; max-width: none; overflow-wrap: anywhere; }

/* newsletter pop-up: a glossy wine card, one sheen sweeping across it when it opens */
.nl-scrim { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(28, 4, 12, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.nl-scrim.in { opacity: 1; }
.nl-card { position: relative; width: min(420px, 100%); border-radius: 26px; color: #fff; text-align: center; outline: none; overflow: hidden; transform: translateY(14px) scale(.97); transition: transform .28s cubic-bezier(.2, .9, .3, 1.1);
  background: radial-gradient(120% 75% at 0% 0%, #B01C52 0%, rgba(176, 28, 82, 0) 60%), radial-gradient(90% 60% at 100% 100%, #8A1240 0%, rgba(138, 18, 64, 0) 60%), linear-gradient(155deg, #7A0F33 0%, #560A22 55%, #3A0616 100%);
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 30px 70px rgba(58, 6, 22, .6), 0 0 0 1px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -20px 40px rgba(0, 0, 0, .18); }
.nl-scrim.in .nl-card { transform: none; }
.nl-card::before { content: ""; position: absolute; inset: 0 0 52% 0; border-radius: 26px 26px 50% 50% / 26px 26px 18% 18%; background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0)); pointer-events: none; }
.nl-card::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; transform: rotate(18deg) translateX(0); background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .34), rgba(255, 255, 255, 0)); pointer-events: none; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .nl-scrim.in .nl-card::after { animation: nlSheen 1.5s .45s ease-out 1 both; } }
@keyframes nlSheen { 0% { opacity: 0; left: -60%; } 15% { opacity: 1; } 100% { opacity: 0; left: 130%; } }
.nl-body { position: relative; padding: 38px 26px 22px; }
.nl-mail { width: 58px; height: 58px; display: inline-grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px rgba(0, 0, 0, .25); }
.nl-mail.ok { background: linear-gradient(180deg, #FFE9B8, #E9B65F); color: #3A0616; border-color: rgba(255, 255, 255, .6); }
.nl-card h2 { color: #fff; font-size: clamp(1.55rem, 6vw, 1.95rem); margin: 16px 0 8px; text-wrap: balance; }
.nl-card p { color: rgba(255, 255, 255, .88); margin: 0 auto 18px; max-width: 32ch; font-size: .95rem; }
.nl-form { display: grid; gap: 10px; }
.nl-form input[type="email"] { background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .6); color: #1c0610; min-height: 50px; border-radius: 14px; text-align: center; font-weight: 500; box-shadow: inset 0 2px 6px rgba(58, 6, 22, .12); }
.nl-form input[type="email"]:focus { outline: 3px solid rgba(255, 233, 184, .7); border-color: #fff; }
.nl-form input[aria-invalid="true"] { outline: 2px solid #FFB4C4; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-go { position: relative; overflow: hidden; min-height: 50px; border: 0; border-radius: 14px; cursor: pointer; font: 800 1rem var(--sans); color: #3A0616; padding: 0 22px; width: 100%;
  background: linear-gradient(180deg, #FFEFC8 0%, #F6CF80 55%, #E6AE55 100%); box-shadow: 0 10px 22px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(150, 90, 10, .25); }
.nl-go span { position: relative; }
.nl-go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); }
@media (prefers-reduced-motion: no-preference) { .nl-go:hover::after, .nl-go:focus-visible::after { animation: nlBtn .7s ease-out 1; } }
@keyframes nlBtn { to { left: 130%; } }
.nl-go:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nl-go:disabled { opacity: .7; cursor: progress; }
.nl-go.busy span::after { content: "…"; }
.nl-done { margin-top: 18px; }
.nl-msg { min-height: 1.2em; font-size: .86rem; font-weight: 600; color: #FFD1DB; }
.nl-msg:empty { display: none; }
.nl-later { background: none; border: 0; color: rgba(255, 255, 255, .8); font: 600 .9rem var(--sans); min-height: 40px; padding: 0 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nl-later:hover { color: #fff; }
.nl-body small { display: block; color: rgba(255, 255, 255, .62); font-size: .78rem; margin-top: 2px; }
.nl-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.nl-x:hover { background: rgba(255, 255, 255, .24); }
.nl-x:focus-visible, .nl-later:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nl-spark { position: absolute; width: 18px; height: 18px; fill: #FFE9B8; opacity: .85; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 233, 184, .8)); }
.nl-spark.s1 { top: 22px; left: 24px; } .nl-spark.s2 { top: 64px; right: 30px; width: 12px; height: 12px; } .nl-spark.s3 { bottom: 86px; left: 18px; width: 10px; height: 10px; }
@media (prefers-reduced-motion: no-preference) { .nl-spark { animation: nlTwinkle 3.2s ease-in-out infinite; } .nl-spark.s2 { animation-delay: 1s; } .nl-spark.s3 { animation-delay: 2s; } }
@keyframes nlTwinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .35; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
.field .sup-chip { margin: 0; font-size: inherit; }

/* ───────── S17b: support selector, cart, wishlist ───────── */
/* Support: "What is it about?" as an option selector (a list on wide screens, a bottom sheet on phones) */
.sel { position: relative; }
.sel-btn { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; text-align: left; background: #fff; border: 1.5px solid #D9D2CF; border-radius: 12px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.sel-btn:hover, .sel.open .sel-btn { border-color: #111; }
.sel.open .sel-btn { box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.sel-btn:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.sel-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--wine-tint); color: var(--wine); }
.sel-ic .ico { width: 20px; height: 20px; }
.sel-cur, .sel-txt { flex: 1; min-width: 0; display: block; }
.sel-cur b, .sel-txt b { display: block; font-size: .96rem; }
.sel-cur small, .sel-txt small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.sel-chev { flex: none; display: grid; place-items: center; color: #555; transition: transform .18s; }
.sel.open .sel-chev { transform: rotate(180deg); }
.sel-back, .sel-grab, .sel-title { display: none; }
.sel-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .16); padding: 6px; opacity: 0; transform: translateY(-4px); visibility: hidden; transition: opacity .14s, transform .14s, visibility .14s; }
.sel.open .sel-pop { opacity: 1; transform: none; visibility: visible; }
.sel-list { list-style: none; margin: 0; padding: 0; outline: none; max-height: 60vh; overflow: auto; }
.sel-list li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; }
.sel-list li:hover, .sel-list li.hot { background: #F6F6F6; }
.sel-list li[aria-selected="true"] { background: var(--wine-tint); }
.sel-list li[aria-selected="true"] .sel-ic { background: #fff; }
.sel-tick { flex: none; color: var(--wine); opacity: 0; display: grid; }
.sel-list li[aria-selected="true"] .sel-tick { opacity: 1; }
@media (max-width: 640px) {
  .sel-back { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .42); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
  .sel.open .sel-back { opacity: 1; visibility: visible; }
  .sel-pop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 91; border-radius: 20px 20px 0 0; border: 0; padding: 8px 12px calc(14px + env(safe-area-inset-bottom)); transform: translateY(100%); opacity: 1; box-shadow: 0 -10px 40px rgba(0, 0, 0, .22); transition: transform .22s ease, visibility .22s; }
  .sel.open .sel-pop { transform: none; }
  .sel-grab { display: block; width: 42px; height: 4px; border-radius: 4px; background: #D8D8D8; margin: 4px auto 10px; }
  .sel-title { display: block; margin: 0 4px 6px; font: 600 1.05rem var(--serif); max-width: none; }
  .sel-list li { padding: 12px 10px; }
}
body.sel-lock { overflow: hidden; }
@media (min-width: 641px) { body.sel-lock { overflow: auto; } }

/* Empty states (cart and wishlist) */
.ce-card { max-width: 640px; margin: 4px auto 0; text-align: center; padding: 26px 20px 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #FFF8FA 0%, #fff 55%); }
.ce-art { display: grid; place-items: center; margin-bottom: 6px; }
.ce-art .art { width: min(240px, 70%); height: auto; }
.ce-card h2 { margin: 6px 0 8px; }
.ce-card p { margin: 0 auto 18px; color: #555; }
.ce-steps { list-style: none; margin: 0 auto 20px; padding: 0; display: grid; gap: 8px; max-width: 420px; text-align: left; }
.ce-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .92rem; }
.ce-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #111; color: #fff; font: 700 .8rem var(--sans); }
.ce-steps b .ico { width: 15px; height: 15px; }
.ce-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ce-acts .btn .ico { width: 18px; height: 18px; margin-right: 6px; }
.rec { margin-top: 34px; }
.rec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rec-h h3 { margin: 0; font-size: 1.3rem; }
.rec-h span { color: var(--muted); font-size: .86rem; }

/* Cart */
.cp-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cp-head h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin: 0; }
.cp-n { color: var(--muted); font-weight: 600; font-size: .92rem; }
.cp-list { display: grid; gap: 14px; }
.cg { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cg-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #FAFAFA; border-bottom: 1px solid var(--line); }
.cg-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #111; color: #fff; font: 600 1rem var(--serif); }
.cg-h a { color: var(--ink); text-decoration: none; } .cg-h a:hover { text-decoration: underline; }
.cg-h b { display: block; line-height: 1.2; }
.cg-h small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.cg-h small .ico { width: 14px; height: 14px; }
.cg-err { margin: 10px 14px 0; }
.ci { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 14px; border-top: 1px solid var(--line); }
.cg-h + .ci, .cg-err + .ci { border-top: 0; }
.ci-img { display: block; }
.ci-img .thumb { display: block; width: 88px; height: 88px; border-radius: 12px; background: #F1ECEA center / cover; border: 1px solid var(--line); }
.ci-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ci-name { color: var(--ink); font-weight: 700; text-decoration: none; display: block; line-height: 1.3; }
.ci-name:hover { text-decoration: underline; }
.ci-opt { display: inline-block; margin-top: 5px; padding: 2px 9px; border-radius: 999px; background: #F3F3F3; font-size: .76rem; font-weight: 700; color: #444; }
.ci-each { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.ci-total { color: var(--price); font-size: 1rem; white-space: nowrap; }
.ci-acts { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; margin-top: 10px; }
.qstep { display: inline-flex; align-items: center; border: 1.5px solid #D6D6D6; border-radius: 999px; overflow: hidden; background: #fff; }
.qstep button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: #111; }
.qstep button:hover:not([disabled]) { background: #F3F3F3; }
.qstep button[disabled] { color: #BBB; cursor: not-allowed; }
.qstep button .ico { width: 16px; height: 16px; }
.qstep output { min-width: 30px; text-align: center; font-weight: 700; font-size: .92rem; }
.ci-link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 4px; border: 0; background: none; font: 600 .82rem var(--sans); color: #444; cursor: pointer; }
.ci-link .ico { width: 16px; height: 16px; }
.ci-link:hover { color: #000; text-decoration: underline; }
.ci-link.rm:hover { color: var(--danger); }
.ci-link[disabled] { opacity: .5; }
.cp-more { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: #111; font-weight: 700; font-size: .9rem; text-decoration: none; padding: 6px 2px; }
.cp-more:hover { text-decoration: underline; } .cp-more .ico { width: 16px; height: 16px; }
.csum { border-radius: 16px; padding: 18px; }
.csum h3 { font-size: 1.15rem; margin-bottom: 8px; }
.csum-go { width: 100%; margin-top: 14px; min-height: 48px; font-size: 1rem; }
.csum-go .ico { width: 18px; height: 18px; margin-right: 7px; }
.csum-trust { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.csum-trust li { display: flex; align-items: center; gap: 9px; color: #555; font-size: .82rem; font-weight: 600; }
.csum-trust .ico { width: 17px; height: 17px; color: var(--ok); flex: none; }
.cbar { display: none; }
@media (max-width: 859px) {
  .cart-page { padding-bottom: 110px; }
  .cbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 34; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .07); }
  .cbar small { display: block; color: var(--muted); font-size: .74rem; font-weight: 700; }
  .cbar b { font: 600 1.15rem var(--serif); color: var(--price); }
  .cbar .btn { min-width: 150px; }
  .csum-go { display: none; }
}
@media (max-width: 520px) { .ci-link.rm span { display: none; } .ci-link.rm { margin-left: auto; padding: 0 8px; } }
@media (max-width: 420px) { .ci { grid-template-columns: 72px 1fr; gap: 11px; padding: 12px; } .ci-img .thumb { width: 72px; height: 72px; } }

/* Wishlist */
.wl-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #FBEFF3 0%, #FFF8EC 100%); border: 1px solid #F1DDE4; }
.wl-badge { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--wine); box-shadow: 0 6px 16px rgba(109, 12, 43, .16); }
.wl-badge .ico { width: 28px; height: 28px; fill: currentColor; }
.wl-title { flex: 1; min-width: 180px; }
.wl-title h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.wl-title p { margin: 2px 0 0; color: #555; }
.wl-hero .btn .ico { width: 18px; height: 18px; margin-right: 7px; }
.wl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 18px; }
.wl-stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wl-stat b { display: block; font: 600 1.35rem var(--serif); line-height: 1.1; overflow-wrap: anywhere; }
.wl-stat:nth-child(3) b { color: var(--price); }
.wl-stat small { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; margin-top: 3px; }
.wl-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.wl-tabs { display: inline-flex; padding: 4px; background: #F3F3F3; border-radius: 999px; }
.wl-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 700 .88rem var(--sans); color: #555; cursor: pointer; }
.wl-tabs button[aria-selected="true"] { background: #111; color: #fff; }
.wl-tabs i { font-style: normal; font-size: .74rem; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .1); }
.wl-tabs button[aria-selected="true"] i { background: rgba(255, 255, 255, .22); }
.wl-sort { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.wl-sort button { flex: none; min-height: 34px; padding: 0 13px; border: 1.5px solid #DADADA; border-radius: 999px; background: #fff; font: 700 .78rem var(--sans); color: #333; cursor: pointer; }
.wl-sort button[aria-pressed="true"] { border-color: #111; background: #111; color: #fff; }
.wcell { position: relative; }
.wx { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .96); color: var(--wine); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: pointer; transition: transform .12s; }
.wx .ico { width: 18px; height: 18px; fill: currentColor; }
.wx:hover { transform: scale(1.08); } .wx:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.wx[disabled] { opacity: .5; }
.wl-stores { display: grid; gap: 10px; }
@media (min-width: 760px) { .wl-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wstore { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; padding-right: 58px; border: 1px solid var(--line); border-radius: 16px; background: #fff; flex-wrap: wrap; }
.wstore-logo { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #111 center / cover; color: #fff; font: 600 1.3rem var(--serif); text-decoration: none; }
.wstore-b { flex: 1; min-width: 140px; }
.wstore-b a { color: var(--ink); text-decoration: none; } .wstore-b a:hover { text-decoration: underline; }
.wstore-b small { display: block; color: var(--muted); margin-top: 2px; }
.wx.static { top: 14px; right: 14px; box-shadow: none; border: 1px solid var(--line); }
.wbtn { gap: 6px; } .wbtn .ico { width: 17px; height: 17px; } .wbtn[aria-pressed="true"] .ico { fill: currentColor; }
.wl-empty .rec .pheart { display: grid; }
@media (max-width: 520px) { .wl-hero .btn { width: 100%; } .wl-stat b { font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .sel-pop, .sel-back, .wx, .sel-chev { transition: none; } }
@media (max-width: 520px) {
  .ce-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ce-steps li { flex-direction: column; text-align: center; gap: 6px; padding: 10px 4px; font-size: .74rem; line-height: 1.25; }
  .ce-card { padding: 20px 14px 24px; }
  .ce-card p { font-size: .9rem; }
}
@media (min-width: 900px) and (max-width: 1119px) { .cart-page .rec .pgrid > :nth-child(n+5) { display: none; } }
@media (min-width: 1120px) { .cart-page .rec .pgrid > :nth-child(n+6) { display: none; } }

/* ───────── S17c: product page, tighter spacing ───────── */
.pd-info { gap: 0; }
.pd-priceline { margin: 0 0 2px; }
.pd-price { margin-bottom: 0; line-height: 1.1; }
.pd-info h1 { margin: 0 0 4px; }
.pd-rate { margin: 0 0 6px; }
.pd-ship { margin: 0 0 6px; }
.pd-info #buy { margin: 6px 0 0; }
.opt { margin-bottom: 8px; }
.opt-head { margin-bottom: 6px; }
.qtyrow { margin: 0 0 8px; gap: 10px; }
.buybar { margin: 2px 0 6px; }
.pd-login { margin: 0 0 6px; font-size: .86rem; }
.pd-h { margin: 10px 0 4px; }
.pd-spec { margin: 0 0 2px; }
.pd-desc { margin: 0; }
.pd-desc p:last-child { margin-bottom: 0; }
.pd-rows { margin: 6px 0 0; }
.pd-seller { margin-top: 14px; }
.pd-rows li { padding: 4px 2px; line-height: 1.35; }
.pd-rows li > span { display: block; }
.pd-seller .soldby { padding-block: 12px; }
/* S17c: product page type sizes, price, name and quantity all close to each other */
.pd-info .pd-price { font: 700 1.2rem/1.2 var(--serif); letter-spacing: 0; }
.pd-info h1 { font: 600 1.05rem/1.3 var(--sans); letter-spacing: 0; margin: 0 0 4px; }
.pd-rate, .pd-ship { font-size: .85rem; }
.pd-ship .ico { width: 16px; height: 16px; }
.opt-head { font-size: .95rem; }
.qtyrow .qlabel { font: 600 .95rem var(--sans); }
.stepper button { width: 34px; min-height: 34px; font-size: 1.1rem; }
.stepper input { width: 44px; min-height: 34px; font: 600 .95rem var(--sans); }
.qnote { font-size: .8rem; }
.buybar-total b { font: 700 1.05rem var(--serif); }
.pd-actions .btn { min-height: 40px; font-size: .95rem; }
.chip { font-size: .9rem; }
.pd-h { font-size: .95rem; }

/* S18a: product page, the price, options, quantity, specs and description sit close together */
.pd-info { gap: 0; }
.pd-priceline { margin: 0; }
.pd-info h1 { margin: 0 0 2px; }
.pd-rate { margin: 0 0 4px; }
.pd-ship { margin: 0 0 6px; }
.pd-info #buy { margin: 4px 0 0; }
.opt { margin-bottom: 6px; }
.opt-head { margin-bottom: 4px; }
.opt .chips { margin-top: 0; gap: 6px; }
.qtyrow { margin: 0 0 6px; }
.buybar { margin: 0 0 2px; }
.pd-h { margin: 8px 0 2px; }
.pd-spec { margin: 0; }
.pd-spec th, .pd-spec td { padding: 3px 8px; line-height: 1.35; }
.pd-desc { line-height: 1.45; }
.pd-desc p { margin: 0 0 .4em; }
.pd-rows { margin: 4px 0 0; }
.pd-rows li { padding: 2px; }
.rv-cta .btn { min-height: 40px; }

/* S18b: service page, details close together, the booking calendar, the store's other services */
.sv .pd-info { gap: 0; padding-bottom: 0; }
.sv-facts { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 1px; }
.sv-facts li { display: flex; gap: 10px; align-items: flex-start; padding: 3px 0; font-size: .92rem; line-height: 1.35; }
.sv-facts .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--wine); }
.sv-facts li > span { display: flex; gap: 8px; flex: 1; min-width: 0; }
.sv-facts b { font-weight: 600; flex: 0 0 74px; }
.sv-cta { width: 100%; text-align: center; margin: 4px 0 4px; }
.sv .pd-h { margin: 10px 0 2px; }
.sv .pd-desc { line-height: 1.45; }
.sv-store { margin: 12px 0 6px; }
.sv-store-links { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: .88rem; margin: 0 0 6px; }
.sv-store-links .chip { min-height: 32px; padding: 4px 12px; }
.sv-more { margin-top: 24px; }
#book { scroll-margin-top: 96px; margin-top: 8px; }
.bk { padding: 16px; }
.bk h2 { font: 700 1.1rem/1.2 var(--serif); margin: 0 0 6px; }
.bk-sec { padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.bk h2 + .bk-sec { border-top: 0; margin-top: 0; padding-top: 4px; }
.bk-h { display: flex; align-items: center; gap: 8px; font: 700 .95rem var(--sans); margin: 0 0 10px; }
.bk-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--wine); color: #fff; font: 700 .75rem var(--sans); flex: none; }
.bk-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.bk-guest { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, #eadfe3); }
.bk-gh { margin: 0 0 8px; font-size: .95rem; }
.cal { transition: opacity .15s; }
.cal[data-state="loading"] { opacity: .45; pointer-events: none; min-height: 290px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font: 700 1rem var(--sans); }
.cal-nav { width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 400 1.4rem/1 var(--sans); cursor: pointer; }
.cal-nav:hover:not(:disabled) { border-color: var(--wine); color: var(--wine); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-w { text-align: center; font: 600 .72rem var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 2px 0 4px; }
.cal-d { display: grid; place-items: center; min-height: 42px; padding: 0; border-radius: 10px; border: 1px solid transparent; background: none; font: 600 .92rem var(--sans); color: var(--ink); }
.cal-d.is-off { color: #B8B8B8; font-weight: 500; }
.cal-d.is-free { background: #FBEFF3; color: var(--wine); cursor: pointer; }
.cal-d.is-free:hover { border-color: var(--wine); }
.cal-d.is-free[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.cal-d.is-today { border-color: #BDBDBD; }
.cal-d.is-free.is-today { border-color: var(--wine); }
.cal-d:focus-visible, .cal-nav:focus-visible, .bk .slot:focus-visible { outline: 2px solid var(--raspberry); outline-offset: 2px; }
.cal-none { margin: 10px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.bk-grp + .bk-grp { margin-top: 12px; }
.bk-gl { display: block; font: 600 .74rem var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.bk .slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bk .slot { min-width: 0; min-height: 42px; padding: 6px 8px; font-size: .9rem; }
.bk-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.bk-mode { position: relative; cursor: pointer; }
.bk-mode input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bk-mode span { display: block; padding: 9px 14px; border: 1px solid #CFCFCF; border-radius: 999px; background: #fff; font: 600 .88rem var(--sans); }
.bk-mode:has(input:checked) span { background: var(--wine); border-color: var(--wine); color: #fff; }
.bk-mode:has(input:focus-visible) span { outline: 2px solid var(--raspberry); outline-offset: 2px; }
.bk-one { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .92rem; }
.bk-one .ico { width: 18px; height: 18px; color: var(--wine); }
.bk .field { margin-bottom: 10px; }
.bk textarea { min-height: 64px; }
.bk-sum { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; padding: 12px 14px; border-radius: 12px; background: #FBEFF3; }
.bk-sum .ico { color: var(--wine); width: 24px; height: 24px; }
.bk-sum small { display: block; color: var(--muted); }
.bk-go { width: 100%; min-height: 46px; margin-top: 4px; }
.bk-go:disabled { opacity: .5; cursor: not-allowed; }
/* S18b: the marketplace seller page */
.sl-head { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; }
.sl-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--champagne-soft); color: var(--oxblood); display: grid; place-items: center; font: 700 1.6rem var(--serif); flex: none; overflow: hidden; }
.sl-logo img { width: 100%; height: 100%; object-fit: cover; }
.sl-head h1 { font: 700 1.3rem/1.2 var(--serif); margin: 0 0 2px; }
.sl-meta { margin: 0; color: var(--muted); font-size: .88rem; }
.sl-about { margin: 6px 0 0; font-size: .92rem; line-height: 1.4; max-width: 70ch; }
.sl-tabs { margin: 8px 0 14px; }
.sl-tabs .chip[aria-current="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.sv-sl-label { flex-basis: 100%; }


/* ══ Stage 19b: black footer with social icons, and the About page ══ */
.foot { background: #000; border-top: 0; color: #bdbdbd; margin-top: 32px; }
.foot-in { max-width: 1400px; padding: 36px 16px 28px; gap: 26px 18px; grid-template-columns: repeat(2, 1fr); }
.foot-in > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.5fr repeat(5, 1fr); } .foot-in > div:first-child { grid-column: auto; } }
.foot h4 { color: #fff; margin: 0 0 10px; }
.foot a { color: #b5b5b5; }
.foot a:hover { color: #fff; text-decoration: none; }
.foot .foot-brand img { height: 34px; width: auto; display: block; margin-bottom: 12px; }
.foot .foot-brand p { margin: 0 0 16px; max-width: 34ch; color: #9a9a9a; font-size: .9rem; line-height: 1.5; }
.foot-soc { display: flex; gap: 10px; }
.foot .foot-soc a { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #3a3a3a; border-radius: 50%; color: #fff; }
.foot .foot-soc a:hover { background: var(--gold, #BD8C21); border-color: var(--gold, #BD8C21); color: #000; }
.foot-base { max-width: 1400px; margin: 0 auto; padding: 16px; border-top: 1px solid #242424; color: #8a8a8a; font-size: .82rem; }
.abt { max-width: 900px; margin: 0 auto; padding: 0 0 48px; }
.abt-hero { padding: 44px 20px 40px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--wine, #6D0C2B), #3b0618); border-radius: 0 0 28px 28px; }
.abt-hero h1 { margin: 0 0 8px; font-size: 2rem; }
.abt-hero p { margin: 0 auto; max-width: 44ch; opacity: .9; }
.abt-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 16px; }
.abt-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line, #e5e5e5); color: #111; text-decoration: none; font-size: .9rem; }
.abt-nav a[aria-current="page"] { background: #000; border-color: #000; color: #fff; }
.abt-sec { padding: 8px 20px 20px; }
.abt-sec h2 { margin: 0 0 10px; }
.abt-sec p { line-height: 1.65; color: #333; max-width: 68ch; }
.abt-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .abt-cards { grid-template-columns: repeat(3, 1fr); } }
.abt-card { border: 1px solid var(--line, #eee); border-radius: 16px; padding: 16px; background: #fff; }
.abt-card h3 { margin: 10px 0 4px; font-size: 1rem; }
.abt-card p { margin: 0; font-size: .88rem; color: var(--muted); }
.abt-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #FBEFF3; color: var(--wine, #6D0C2B); }
.abt-cta { text-align: center; }
.abt-cta p { margin-left: auto; margin-right: auto; }
.abt-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* Stage 19c: policy pages */
.pol-date { text-align: center; color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.pol-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; padding: 6px 20px 14px; }
.pol-toc a { color: var(--wine, #6D0C2B); font-size: .85rem; text-decoration: none; }
.pol-toc a:hover { text-decoration: underline; }
.pol .abt-sec { scroll-margin-top: 80px; }
.pol .abt-sec h2 { font-size: 1.15rem; }
.pol .abt-sec ul { margin: 0 0 10px; padding-left: 20px; color: #333; line-height: 1.6; max-width: 68ch; }
.pol .abt-sec li { margin: 4px 0; }

/* Stage 19d: help center */
.hlp-q .abt-card { text-decoration: none; color: inherit; display: block; }
.hlp-q .abt-card:hover { border-color: var(--wine, #6D0C2B); }
.faq { border: 1px solid var(--line, #eee); border-radius: 12px; background: #fff; margin: 0 0 8px; }
.faq summary { cursor: pointer; padding: 13px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--wine, #6D0C2B); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 14px 14px; }
.trk-order { margin: 0 0 18px; }
.trk-order h3 { margin: 0 0 4px; }
.trk-part { margin-top: 10px; }
.trk { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 4px; padding: 0; }
.trk li { position: relative; text-align: center; font-size: .72rem; color: var(--muted); padding-top: 18px; }
.trk li i { position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: #e6e6e6; }
.trk li.on { color: #111; font-weight: 600; }
.trk li.on i { background: var(--wine, #6D0C2B); }
#trk-out { margin-top: 18px; }

/* S19e: Partner with us */
.ptn-body { padding: 0 16px 28px; margin-top: -22px; position: relative; max-width: 760px; margin-left: auto; margin-right: auto; }
.ptn-picks { display: grid; gap: 10px; border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.ptn-picks legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ptn-pick { position: relative; display: block; cursor: pointer; }
.ptn-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.ptn-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(86, 10, 34, .1); transition: border-color .15s, background .15s; }
.ptn-pick:hover .ptn-card { border-color: var(--wine); }
.ptn-card b { display: block; font-size: 1.05rem; }
.ptn-card small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.ptn-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--wine-tint); color: var(--wine); }
.ptn-ic .ico { width: 24px; height: 24px; }
.ptn-tick { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #D9D2CF; color: transparent; }
.ptn-tick .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.ptn-pick input:checked + .ptn-card { border-color: var(--wine); background: var(--wine-tint); }
.ptn-pick input:checked + .ptn-card .ptn-tick { background: var(--wine); border-color: var(--wine); color: #fff; }
.ptn-pick input:focus-visible + .ptn-card { outline: 2px solid var(--wine); outline-offset: 2px; }
.ptn-form { padding: 22px 18px; border-radius: 18px; }
.ptn-form h2 { font-size: 1.35rem; margin-bottom: 6px; }
.ptn-form > .muted { margin: 0 0 16px; max-width: 60ch; }
.ptn-form .btn-primary { width: 100%; min-height: 48px; font-size: 1rem; }
.ptn-meta { margin: 8px 0; overflow-wrap: anywhere; }
@media (min-width: 700px) { .ptn-picks { grid-template-columns: 1fr 1fr; } .ptn-form { padding: 28px; } }

/* S20a: the Haircetera team */
.tm-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.tm-head p { margin: 4px 0 0; max-width: 56ch; }
.tm-form { margin-bottom: 18px; }
.tm-form h3 { margin-bottom: 4px; }
.tm-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-presets .chip[aria-current="true"] { background: var(--wine); color: #fff; border-color: var(--wine); }
.tm-areas { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px 14px; margin: 14px 0; min-width: 0; }
.tm-areas legend { font-weight: 600; padding: 0 6px; }
.tm-group h4 { margin: 14px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tm-area { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.tm-area label { flex: 1; min-width: 0; }
.tm-area label b { display: block; font-size: .95rem; }
.tm-area label small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.tm-area select { flex: none; width: 150px; min-height: 42px; }
.tm-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tm-access { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tm-remove { color: #A12B2B; }
.tm-done { margin-bottom: 18px; border-color: var(--wine); }
.tm-link { display: flex; gap: 8px; margin: 10px 0; }
.tm-link input { flex: 1; min-width: 0; font-size: .85rem; }
@media (max-width: 520px) { .tm-area { flex-direction: column; align-items: stretch; gap: 6px; } .tm-area select { width: 100%; } .tm-link { flex-direction: column; } }

/* S20b: brand settings and the brand in the footer */
.foot .foot-brand img.logo-invert, .auth-logo.logo-invert { filter: brightness(0) invert(1); }
.foot-contact { display: grid; gap: 4px; margin: 0 0 14px; font-size: .9rem; color: #cfcfcf; }
.foot-contact a { color: #fff; text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.br-lead { margin: 0 0 16px; }
.br-panel { margin-bottom: 16px; }
.br-panel h3 { margin-bottom: 4px; }
.br-two { display: grid; gap: 0 12px; }
@media (min-width: 640px) { .br-two { grid-template-columns: 1fr 1fr; } }
.br-logos { display: grid; gap: 12px; margin-top: 10px; }
@media (min-width: 640px) { .br-logos { grid-template-columns: 1fr 1fr; } }
.br-logo { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.br-logo-view { display: grid; place-items: center; min-height: 96px; padding: 18px; background: #fff; }
.br-logo-view.dark { background: #000; }
.br-logo-view img { max-height: 48px; max-width: 80%; width: auto; height: auto; display: block; }
.br-logo-view img.logo-invert { filter: brightness(0) invert(1); }
.br-logo-bar { padding: 10px 12px; display: grid; gap: 8px; }
.br-logo-bar b { font-size: .9rem; }
.br-logo-bar small { color: var(--muted, #6b6b6b); }
.br-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.br-actions .btn { min-height: 38px; padding: 6px 14px; }
.br-at { display: flex; align-items: center; }
.br-at span { padding: 0 10px; color: var(--muted, #6b6b6b); }
.br-at input { flex: 1; }
.br-save { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 0; margin-top: 8px; display: flex; gap: 10px; align-items: center; }

/* Stage S21a: sections the owner adds to Home and About, and the Pages editor in the admin area */
.ps { margin: 28px 0; }
.abt .ps { margin: 8px 0 20px; padding: 8px 20px; }
.ps h2 { margin: 0 0 10px; }
.ps-p { line-height: 1.65; color: #333; max-width: 68ch; white-space: pre-line; }
.ps-text[data-align="center"] { text-align: center; }
.ps-text[data-align="center"] .ps-p { margin-left: auto; margin-right: auto; }
.ps-image { margin: 28px auto; }
.ps-image[data-w="wide"] { max-width: 900px; }
.ps-image img { width: 100%; height: auto; border-radius: 16px; }
.ps-image figcaption { margin-top: 8px; color: var(--muted); font-size: .88rem; text-align: center; }
.ps-banner { border-radius: 20px; padding: 48px 24px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--wine, #6D0C2B), #3b0618); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.ps-banner.has-img::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.ps-banner-in { position: relative; max-width: 560px; margin: 0 auto; }
.ps-banner h2 { color: #fff; margin: 0 0 8px; }
.ps-banner p { margin: 0 auto 16px; color: #fff; opacity: .92; }
.btn-light { background: #fff; color: #111; border-color: #fff; }
.btn-light:hover { background: #f1f1f1; }
.ps-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ps-grid { grid-template-columns: repeat(3, 1fr); } }
.ps-card { display: block; border: 1px solid var(--line, #eee); border-radius: 16px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; }
a.ps-card:hover { border-color: #111; }
.ps-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ps-card-b { padding: 14px 16px; }
.ps-card-b h3 { margin: 0 0 4px; font-size: 1rem; }
.ps-card-b p { margin: 0; font-size: .88rem; color: var(--muted); white-space: pre-line; }
.ps-logi { border: 1px solid var(--line, #eee); border-radius: 20px; padding: 24px 20px; background: var(--wine-tint, #FBEFF3); }
.ps-logi header { margin-bottom: 14px; }
.ps-logi header .abt-ic { background: #fff; margin-bottom: 10px; }
.ps-logi header p { margin: 0; color: #333; }
.ps-logi .abt-cards { margin-top: 4px; }
@media (min-width: 700px) { .ps-logi .abt-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

.sx-tabs { display: flex; gap: 8px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.sx-tab { border: 1px solid var(--line, #e5e5e5); background: #fff; border-radius: 999px; padding: 8px 18px; font: inherit; cursor: pointer; }
.sx-tab[aria-selected="true"] { background: #000; border-color: #000; color: #fff; }
.sx-view { margin-left: auto; font-size: .9rem; }
.sx-thumb { display: block; width: 132px; height: 48px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; background: #f2f2f2; }
.sx-card.is-hidden .sx-thumb { opacity: .4; }
.sx-add { margin: 12px 0; }
.sx-list { display: grid; gap: 8px; }
.sx-card { border: 1px solid var(--line, #e5e5e5); border-radius: 14px; background: #fff; }
.sx-card.is-open { border-color: #111; }
.sx-card.is-hidden .sx-main { opacity: .5; }
.sx-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 4px; }
.sx-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; font: inherit; padding: 8px 10px; cursor: pointer; display: grid; gap: 2px; }
.sx-main b { font-weight: 600; }
.sx-main small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-tag { justify-self: start; font-size: .7rem; padding: 1px 8px; border-radius: 999px; background: #f0f0f0; color: #555; }
.sx-tools { display: flex; gap: 2px; flex: none; }
.sx-mini { display: grid; place-items: center; min-width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; font: inherit; cursor: pointer; color: #111; }
.sx-mini:hover:not(:disabled) { background: #f0f0f0; }
.sx-mini:disabled { opacity: .3; cursor: default; }
.sx-edit { border-top: 1px solid var(--line, #eee); padding: 14px 14px 16px; }
.sx-edit textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line, #ddd); border-radius: 10px; resize: vertical; }
.sx-pic { display: grid; gap: 8px; }
.sx-pic img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; }
.sx-pic-b { display: flex; gap: 8px; }
.sx-items { margin-top: 8px; display: grid; gap: 10px; }
.sx-items-h { font-weight: 600; }
.sx-item { border: 1px solid var(--line, #eee); border-radius: 12px; padding: 10px 12px; background: #fafafa; }
.sx-item-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sx-del { margin-top: 12px; border-top: 1px solid var(--line, #eee); padding-top: 10px; }
.sx-save { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding: 12px 0; margin-top: 12px; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); }
.sx-state { margin-right: auto; color: var(--muted); font-size: .88rem; }
.sx-picker { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: grid; place-items: end center; }
.sx-picker-in { background: #fff; width: min(560px, 100%); border-radius: 20px 20px 0 0; padding: 16px; max-height: 85vh; overflow: auto; }
@media (min-width: 700px) { .sx-picker { place-items: center; } .sx-picker-in { border-radius: 20px; } }
.sx-picker-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sx-types { display: grid; gap: 8px; }
.sx-type { text-align: left; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line, #e5e5e5); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; }
.sx-type:hover { border-color: #111; }
.sx-type span { color: var(--muted); font-size: .88rem; }
.sx-item-h > span { display: flex; gap: 2px; }
.sx-item-h .sx-mini { min-width: 32px; height: 32px; }

/* S22a: a quiet placeholder instead of the word "Loading…" */
.loading.skel { display: grid; gap: 14px; max-width: 760px; margin: 32px auto; padding: 0 16px; font-size: 0; }
.loading.skel i { display: block; height: 56px; border-radius: 12px; background: linear-gradient(90deg, #f1f1f1 25%, #f8f8f8 50%, #f1f1f1 75%); background-size: 200% 100%; animation: skel 1.1s ease-in-out infinite; }
.loading.skel i:first-child { height: 28px; width: 40%; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .loading.skel i { animation: none; } }

/* ───────── S22b: calmer admin ───────── */
body.adm .pg-intro { margin: 4px 0 16px; color: #666; font-size: .95rem; max-width: 640px; line-height: 1.45; }
/* secondary actions are plain text, not outlined pills; the one main action per page stays a filled button */
body.adm #main .btn-ghost, body.adm #main .btn-quiet, body.adm #main .btn-light { background: none; border: 0; border-radius: 6px; padding: 0 8px; min-height: 36px; color: var(--plum); text-decoration: none; font-weight: 600; }
body.adm #main .btn-ghost:hover, body.adm #main .btn-quiet:hover, body.adm #main .btn-light:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
body.adm #main .btn-primary { border-radius: 10px; }
/* filters and tabs are plain words with an underline for the one you are on */
body.adm #main .chips { gap: 4px 18px; }
body.adm #main .chip, body.adm #main .sx-tab { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 2px; min-height: 0; color: #666; box-shadow: none; display: inline-flex; align-items: center; }
body.adm #main .chip:hover, body.adm #main .sx-tab:hover { color: #111; border-color: #ddd; }
body.adm #main .chip[aria-current="true"], body.adm #main .chip[aria-checked="true"], body.adm #main .sx-tab[aria-selected="true"] { background: none; color: #111; border-color: #111; box-shadow: none; font-weight: 700; }
body.adm #main .sx-tabs { gap: 4px 18px; }
body.adm #main .sx-mini { display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; }
/* anything inside a button, pill or badge is centred both ways */
.btn, .chip, .pill-link, .sx-mini, .sx-tab, .badge, .tag, .status { box-sizing: border-box; }
.btn, .sx-mini, .badge, .tag, .status { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; }
.btn svg, .chip svg, .sx-mini svg { flex: none; }

/* ───────── S23a: product page in the style of a long, calm buying page ───────── */
.pd-info { gap: 0; }
.pd-info h1 { font: 600 1.35rem/1.3 var(--sans); margin: 0 0 8px; }
.pd-priceline { margin: 6px 0 4px; }
.pd-price { color: #111; }
.pd-info #buy { border: 0; padding: 0; margin-top: 14px; }
.pd-info #buy .opt { margin-bottom: 18px; }
.pd-info #buy .opt-head { font-weight: 600; margin-bottom: 10px; }
.pd-info #buy .chips { gap: 10px; margin-top: 0; }
.pd-info #buy .chip { min-height: 48px; min-width: 72px; padding: 8px 18px; border: 1.5px solid #D9D9D9; border-radius: 12px; background: #fff; color: #111; font-weight: 500; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; }
.pd-info #buy .chip:hover { border-color: #111; }
.pd-info #buy .chip[aria-checked="true"] { border: 2px solid #111; background: #FAF6F6; color: #111; font-weight: 700; box-shadow: none; }
.pd-info #buy .buybar { display: block; margin: 8px 0 0; }
.pd-info #buy .buybar-total { display: none; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-actions .btn, .pd-actions .btn.btn-buy.pd-add, .pd-actions .btn.btn-now { min-height: 54px; font-size: 1rem; border-radius: 14px; gap: 8px; width: 100%; flex: none; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.pd-actions .btn.btn-buy.pd-add { background: #fff; color: var(--wine); border: 1.5px solid var(--wine); }
.pd-actions .btn.btn-buy.pd-add .ico { width: 22px; height: 22px; color: var(--wine); }
.pd-actions .btn.btn-buy.pd-add:hover { background: var(--wine-tint); }
.pd-actions .btn.btn-now { background: var(--wine); color: #fff; border: 1.5px solid var(--wine); }
.pd-actions .btn.btn-now:hover { background: #000; border-color: #000; }
.pd-secure { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; color: #666; font-size: .88rem; }
.pd-secure .ico { width: 18px; height: 18px; }
.pd-sec { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.pd-sec .pd-h { font: 700 1.25rem var(--sans); margin: 0 0 14px; }
.pd-guar { margin: 40px 0 8px; }
.pd-guar h2 { font: 700 1.4rem var(--sans); margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pd-guar-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .pd-guar-grid { grid-template-columns: 1fr 1fr; } }
.pd-gcard { background: #F8F3F1; border-radius: 14px; padding: 22px 24px; }
.pd-gcard h3 { display: flex; align-items: center; gap: 10px; font: 700 1.1rem var(--sans); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid #E8DEDA; }
.pd-gcard p { margin: 0 0 10px; line-height: 1.6; }
.pd-gcard .pd-gline { color: #444; font-weight: 600; }
/* the bar that follows you down the page */
.pd-stick { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 40; width: min(720px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 26px; background: #fff; border: 1.5px solid var(--wine); border-radius: 999px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
.pd-stick[hidden] { display: none; }
.pd-stick small { display: block; color: #666; font-size: .72rem; line-height: 1; }
.pd-stick b { font: 700 1.3rem var(--serif); line-height: 1.2; }
.pd-stick .btn-now { min-height: 48px; padding: 0 32px; border-radius: 999px; background: var(--wine); color: #fff; border: 0; }
body.has-tabbar .pd-stick { bottom: 76px; }
@media (max-width: 520px) { .pd-actions .btn { font-size: .92rem; } .pd-stick { padding-left: 18px; } }

/* Stage 23b: extra product page sections (Why you'll love it, See it in action, pictures in the description) and their seller form rows. */
.pd-hl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.pd-hlc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.pd-hlc b { display: block; font-size: .92rem; margin: 0 0 3px; }
.pd-hlc p { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.pd-vids { display: grid; gap: 12px; margin: 0 0 14px; }
.pd-vid video, .pd-vid iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.pd-vid small { display: block; margin: 6px 2px 0; color: var(--muted); font-size: .82rem; }
.pd-desc figure { margin: .8em 0; }
.pd-desc figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.pf-row2 { margin-bottom: 8px; }
.pf-row2 > .tlink { margin-top: 8px; }
@media (max-width: 560px) { .pd-hl { grid-template-columns: 1fr; } }

/* Stage 24a: a warmer, more inviting product page. Colour cards for the selling points, dropdown sections, trust pills. */
.pd-info .pd-price { color: var(--wine); font-size: 2.3rem; }
.pd-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; padding: 0; }
.pd-pills li { display: inline-flex; align-items: center; gap: 7px; background: var(--wine-tint); color: var(--wine-deep); border-radius: 999px; padding: 8px 14px; font-size: .82rem; font-weight: 600; }
.pd-pills .ico { width: 16px; height: 16px; }
.pd-hl-sec { margin: 22px 0 6px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #FBEFF3 0%, #FFF6E5 100%); border: 1px solid #F2D9E1; }
.pd-eyebrow { display: block; font: 800 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin: 0 0 14px; }
.pd-eyebrow::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--wine); margin-top: 8px; }
.pd-hl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.pd-hlc { display: flex; gap: 12px; align-items: flex-start; border: 0; border-radius: 16px; padding: 14px; background: #fff; box-shadow: 0 4px 14px rgba(109, 12, 43, .08); }
.pd-hl-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--wine); }
.pd-hl-ic .ico { width: 18px; height: 18px; }
.pd-hlc.t1 .pd-hl-ic { background: #D4891B; } .pd-hlc.t2 .pd-hl-ic { background: #C2386B; } .pd-hlc.t3 .pd-hl-ic { background: #5B2A86; }
.pd-hlc b { display: block; font-size: .95rem; margin: 0 0 3px; }
.pd-accs { margin: 18px 0 0; display: grid; gap: 10px; }
.pd-acc { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.pd-acc[open] { border-color: #E7C3CF; box-shadow: 0 6px 18px rgba(109, 12, 43, .07); }
.pd-acc summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; font-weight: 700; font-size: 1rem; min-height: 56px; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--wine-tint); color: var(--wine); display: grid; place-items: center; }
.pd-acc-ic .ico { width: 18px; height: 18px; }
.pd-acc-t { flex: 1; }
.pd-chev { width: 9px; height: 9px; border-right: 2px solid var(--wine); border-bottom: 2px solid var(--wine); transform: rotate(45deg); transition: transform .2s; margin: -3px 4px 0 0; }
.pd-acc[open] .pd-chev { transform: rotate(-135deg); margin-top: 3px; }
.pd-acc-b { padding: 14px 16px 16px; border-top: 1px dashed #F0DCE3; }
.pd-acc-b p { margin: 0 0 8px; line-height: 1.55; }
.pd-acc-b p:last-child { margin-bottom: 0; }
.pd-acc .pd-gline { font-weight: 600; color: var(--wine); }
.pd-acc .pd-spec { margin: 0; border-radius: 10px; overflow: hidden; }
.pd-acc .pd-spec th { background: var(--wine-tint); color: var(--wine-deep); font-weight: 600; }
.pd-acc .pd-spec td { background: #fff; }
.pd-acc .pd-spec tr:nth-child(even) td { background: #FBF7F8; }
@media (max-width: 560px) { .pd-hl { grid-template-columns: 1fr; } .pd-hl-sec { padding: 14px; } .pd-info .pd-price { font-size: 2rem; } }

/* Stage 24a (phone sizes): moderate text, buttons and cards on small screens so the page reads comfortably. */
@media (max-width: 560px) {
  .pd-info h1 { font-size: 16px; line-height: 1.3; margin: 2px 0 4px; }
  .pd-info .pd-price { font-size: 22px; }
  .pd-info #buy .chip { min-height: 38px; min-width: 56px; padding: 5px 13px; font-size: 13px; border-radius: 10px; }
  .pd-info #buy .buybar .btn { min-height: 42px; height: 42px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
  .pd-info #buy .buybar .btn .ico { width: 17px; height: 17px; }
  #buy .buybar { padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); gap: 10px; }
  .pd-pills { gap: 6px; margin: 12px 0 2px; }
  .pd-pills li { font-size: 11.5px; padding: 6px 10px; gap: 5px; }
  .pd-pills .ico { width: 14px; height: 14px; }
  .pd-hl-sec { margin: 16px 0 4px; padding: 12px; border-radius: 16px; }
  .pd-eyebrow { font-size: 10.5px; margin-bottom: 10px; }
  .pd-hlc { padding: 10px 12px; gap: 10px; border-radius: 12px; }
  .pd-hl-ic { width: 28px; height: 28px; }
  .pd-hl-ic .ico { width: 15px; height: 15px; }
  .pd-hlc b { font-size: 13px; margin-bottom: 1px; }
  .pd-hlc p { font-size: 12px; line-height: 1.4; }
  .pd-accs { gap: 8px; margin-top: 14px; }
  .pd-acc { border-radius: 12px; }
  .pd-acc summary { min-height: 46px; padding: 7px 12px; font-size: 13.5px; gap: 10px; }
  .pd-acc-ic { width: 28px; height: 28px; border-radius: 8px; }
  .pd-acc-ic .ico { width: 15px; height: 15px; }
  .pd-acc-b { padding: 10px 12px 12px; font-size: 13px; }
  .pd-acc-b p, .pd-acc .pd-desc { font-size: 13px; line-height: 1.5; }
  .pd-acc .pd-spec { font-size: 12.5px; }
  .pd-acc .pd-spec th, .pd-acc .pd-spec td { padding: 6px 8px; }
  .pd-acc .pd-gline { font-size: 13px; }
}

/* Stage 24b: a product's video plays inside its card, and the form shows a small player. */
.pimg { overflow: hidden; }
.pimg .pvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 0; }
.pimg .pheart, .pimg .ptag, .pimg .psold { z-index: 2; }
.pf-vid { display: block; width: 100%; max-height: 280px; border-radius: 10px; background: #000; }

/* Stage 24c: homepage sections with their own look (watch and shop, shop by budget, category shelves). */
.hs-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--wine); color: #fff; vertical-align: -5px; }
.hs-ic .ico { width: 14px; height: 14px; }
.hsec-reels { background: linear-gradient(135deg, #FBEFF3 0%, #FFF6E5 100%); border: 1px solid #F2D9E1; border-radius: 22px; padding: 16px 14px 8px; }
.hbudget { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hbt { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; border-radius: 18px; color: #fff; text-decoration: none; min-height: 112px; justify-content: flex-end; background: var(--wine); box-shadow: 0 8px 20px rgba(109, 12, 43, .14); transition: transform .15s; }
.hbt:hover { transform: translateY(-2px); }
.hbt small { font: 600 .78rem var(--sans); opacity: .85; }
.hbt b { font: 700 1.45rem var(--serif); letter-spacing: -.01em; }
.hbt span { font: 600 .8rem var(--sans); margin-top: 6px; opacity: .9; }
.hbt.t0 { background: linear-gradient(135deg, #6D0C2B, #A3204B); }
.hbt.t1 { background: linear-gradient(135deg, #B8741A, #E3A64A); }
.hbt.t2 { background: linear-gradient(135deg, #3E1F66, #6B3AA0); }
.hsec-shelf { border-radius: 22px; padding: 16px 14px 8px; }
.hsec-shelf.t0 { background: linear-gradient(180deg, #FBEFF3, #fff 70%); }
.hsec-shelf.t1 { background: linear-gradient(180deg, #FFF4DC, #fff 70%); }
.hsec-shelf.t2 { background: linear-gradient(180deg, #F1E9F8, #fff 70%); }
@media (max-width: 560px) {
  .hbudget { grid-template-columns: 1fr; gap: 8px; }
  .hbt { min-height: 0; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 6px; padding: 14px 16px; border-radius: 14px; }
  .hbt b { font-size: 18px; } .hbt small { font-size: 12px; } .hbt span { margin: 0 0 0 auto; font-size: 12px; }
  .hsec-reels, .hsec-shelf { border-radius: 16px; padding: 12px 10px 4px; }
  .hs-ic { width: 22px; height: 22px; margin-right: 6px; vertical-align: -4px; }
}

/* Stage 24d: customer reviews that slide across, and the questions section. */
.hsec-reviews { background: linear-gradient(135deg, #FFF6E5 0%, #FBEFF3 100%); border: 1px solid #F2D9E1; border-radius: 22px; padding: 16px 14px 18px; }
.hsec-reviews header { align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.rvs-sum { display: inline-flex; align-items: center; gap: 6px; font: 600 .9rem var(--sans); color: #2a2a2a; }
.rvs-sum b { font: 700 1.3rem var(--serif); color: var(--wine); }
.rvs-sum small { color: #6b6b6b; font-weight: 500; }
.rvs-stars { color: #D9962B; letter-spacing: 1px; white-space: nowrap; font-size: .95rem; }
.rvs-stars i { font-style: normal; color: #E6D5BD; }
.rvs-wrap { position: relative; }
.rvs-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 6px; scroll-behavior: smooth; outline: none; }
.rvs-track::-webkit-scrollbar { display: none; }
.rvs-card { flex: 0 0 min(300px, 78%); scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid #F0DDE4; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 6px 16px rgba(109, 12, 43, .08); transition: transform .15s; }
a.rvs-card:hover { transform: translateY(-2px); }
.rvs-ph { display: block; aspect-ratio: 4 / 3; background: #f3e6ea; }
.rvs-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rvs-b { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; flex: 1; }
.rvs-b q { quotes: none; font: 500 .92rem/1.45 var(--sans); color: #2a2a2a; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rvs-card:not(.has-ph) .rvs-b q { -webkit-line-clamp: 7; font-size: 1rem; }
.rvs-who { margin-top: auto; display: flex; flex-direction: column; gap: 1px; font: 600 .85rem var(--sans); }
.rvs-who small { color: var(--wine); font-weight: 600; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvs-arrow { position: absolute; top: 40%; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #F0DDE4; background: #fff; color: var(--wine); font: 400 22px/1 var(--sans); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); cursor: pointer; display: none; place-items: center; padding: 0 0 3px; }
.rvs-arrow.prev { left: -10px; } .rvs-arrow.next { right: -10px; }
@media (hover: hover) and (min-width: 900px) { .rvs-arrow { display: grid; } .rvs-card { flex-basis: 280px; } }
.hsec-faq { max-width: 860px; margin-left: auto; margin-right: auto; }
.faqlist { display: flex; flex-direction: column; gap: 8px; }
.hsec-faq details.faq { background: #fff; border: 1px solid #EBDDE2; border-radius: 14px; padding: 0 16px; margin: 0; }
.hsec-faq details.faq[open] { border-color: var(--wine); box-shadow: 0 4px 14px rgba(109, 12, 43, .07); }
.hsec-faq details.faq summary { padding: 14px 0; font: 600 .98rem var(--sans); cursor: pointer; }
.hsec-faq details.faq p { margin: 0 0 14px; color: #444; line-height: 1.55; }
@media (max-width: 560px) {
  .hsec-reviews { border-radius: 16px; padding: 12px 10px 14px; }
  .rvs-card { flex-basis: 76%; border-radius: 14px; }
  .rvs-b { padding: 12px; } .rvs-b q { font-size: 13px; } .rvs-card:not(.has-ph) .rvs-b q { font-size: 14px; }
  .rvs-sum b { font-size: 1.1rem; } .rvs-sum { font-size: 12px; }
  .hsec-faq details.faq { padding: 0 12px; border-radius: 12px; } .hsec-faq details.faq summary { font-size: 14px; padding: 12px 0; }
}
/* 24d: a review without a photo is a wine card with a big quote mark, so it fills its height on purpose. */
.rvs-card:not(.has-ph) { background: linear-gradient(160deg, #6D0C2B, #A3204B); border-color: transparent; color: #fff; }
.rvs-card:not(.has-ph) .rvs-b { justify-content: center; gap: 10px; }
.rvs-card:not(.has-ph) .rvs-b::before { content: "\201C"; font: 700 3.2rem/0.6 var(--serif); color: #E3A64A; height: 26px; }
.rvs-card:not(.has-ph) .rvs-b q { color: #fff; font-size: 1.05rem; line-height: 1.5; }
.rvs-card:not(.has-ph) .rvs-who { margin-top: 6px; color: #fff; }
.rvs-card:not(.has-ph) .rvs-who small { color: #F4D9A6; }
.rvs-card:not(.has-ph) .rvs-stars i { color: rgba(255, 255, 255, .35); }
.rvs-card:not(.has-ph) .rvs-stars { color: #F2B84B; }
@media (max-width: 560px) { .rvs-card:not(.has-ph) .rvs-b q { font-size: 14px; } .rvs-card:not(.has-ph) .rvs-b::before { font-size: 2.6rem; height: 22px; } }

/* Stage 24e: video reviews. A play button over the first frame on the homepage, a player with sound when tapped, a video in review lists and in the review form. */
.rvs-play { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #1b0a12; }
.rvs-play video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rvs-play i { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 20px; padding-left: 4px; color: var(--wine); background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .15s; }
.rvs-play:hover i { transform: scale(1.08); }
.rvs-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.rvp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(94vw, 460px); max-height: 94vh; }
.rvp video { width: 100%; max-height: 74vh; border-radius: 14px; background: #000; }
.rvp-x { align-self: flex-end; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: #111; font: 400 26px/1 var(--sans); cursor: pointer; padding: 0 0 3px; }
.rv-video { display: block; width: 100%; max-width: 420px; max-height: 360px; margin-top: 8px; border-radius: 12px; background: #000; }
.rv-vup { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rv-vup video { width: 100%; max-width: 320px; max-height: 220px; border-radius: 10px; background: #000; }
.rvs-play { aspect-ratio: 4 / 3; overflow: hidden; }
.rvs-play video { position: absolute; inset: 0; }

/* ───── S25a: web Login and Create account — form on the left, the photo on the right edge, no card, a shorter form ───── */
@media (min-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .auth-split .auth-wrap { grid-column: 1; grid-row: 1; align-self: stretch; justify-self: stretch; display: flex; flex-direction: column; justify-content: center; max-width: none; width: 100%; padding: 32px 9%; }
  .auth-split .auth-art { grid-column: 2; grid-row: 1; min-height: 100vh; min-height: 100dvh; }
  .auth-logo { display: block; width: 150px; max-width: none; margin: 0 0 26px; }
  .auth-split .auth-card { background: transparent; box-shadow: none; border-radius: 0; padding: 0; width: 100%; max-width: 460px; color: #fff; }
  .auth-split .auth-card h2 { font-size: 1.8rem; margin-bottom: 18px; color: #fff; }
  .auth-split .auth-card label, .auth-split .auth-card .hint, .auth-split .auth-card .auth-sub { color: rgba(255, 255, 255, .86); }
  .auth-split .auth-card .field { margin-bottom: 12px; }
  .auth-split .auth-card input, .auth-split .auth-card select { min-height: 46px; font-size: .96rem; background: #fff; color: #1a1a1a; }
  .auth-split .auth-card .btn-wide { min-height: 48px; font-size: 1rem; margin-top: 6px; }
  body.auth .auth-split .auth-card .btn-primary { background: #fff; color: #6D0C2B; border-color: #fff; font-weight: 800; }
  body.auth .auth-split .auth-card .btn-primary:hover { background: #F6E9ED; }
  body.auth .auth-split .auth-card a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  body.auth .auth-split .auth-card input:focus, body.auth .auth-split .auth-card select:focus { border-color: #fff; outline: 2px solid rgba(255, 255, 255, .5); }
  .auth-split .auth-alt { text-align: left; margin-top: 16px; font-size: .95rem; color: rgba(255, 255, 255, .86); }
  .auth-split .auth-card .err, .auth-split .auth-card .field-err { color: #FFD9E2; }
  /* Create account: two across, so the form is half as tall */
  .auth-split .auth-reg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; max-width: 540px; }
  .auth-split .auth-reg > h2, .auth-split .auth-reg > .auth-sub, .auth-split .auth-reg > .f-email, .auth-split .auth-reg > .f-go, .auth-split .auth-reg > .auth-alt, .auth-split .auth-reg > .notice { grid-column: 1 / -1; }
}

/* ───── S25a: newsletter sign-up in the footer ───── */
.foot-nl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 0 0; border-top: 1px solid #242424; }
.foot-nl > div:first-child { flex: 1 1 260px; display: grid; gap: 2px; }
.foot-nl b { color: #fff; font-size: 1rem; }
.foot-nl small { color: #9a9a9a; font-size: .82rem; }
.foot-nl input[type=email] { flex: 1 1 240px; min-width: 0; max-width: 380px; min-height: 44px; padding: 0 14px; border: 1px solid #3a3a3a; border-radius: 999px; background: #1b1b1b; color: #fff; font-size: .95rem; }
.foot-nl input[type=email]:focus { outline: 2px solid #E9CD9C; border-color: #E9CD9C; }
.foot-nl button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #E9CD9C; color: #3a0615; font-weight: 800; cursor: pointer; }
.foot-nl button:disabled { opacity: .6; }
.foot-nl .nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot-nl-msg { flex-basis: 100%; margin: 0; min-height: 1em; color: #E9CD9C; font-size: .85rem; }
.foot-nl.done { padding-bottom: 4px; }

/* ───── S25b: Shop by budget as sliding hair-picture cards (no dots); a livelier, card-free FAQ ───── */
.hbudget { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hbudget::-webkit-scrollbar { display: none; }
.hbudget .hbt { flex: 0 0 calc((100% - 24px) / 3); scroll-snap-align: start; min-height: 200px; justify-content: flex-end; position: relative; overflow: hidden; isolation: isolate; background: var(--pic) center / cover no-repeat, var(--wine); box-shadow: 0 8px 20px rgba(109, 12, 43, .18); }
.hbudget .hbt::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(40, 4, 16, .05) 25%, rgba(40, 4, 16, .78) 100%); }
.hbudget .hbt.t1::before { background: linear-gradient(180deg, rgba(60, 30, 0, .05) 25%, rgba(60, 30, 0, .78) 100%); }
.hbudget .hbt.t2::before { background: linear-gradient(180deg, rgba(25, 10, 50, .05) 25%, rgba(25, 10, 50, .8) 100%); }
.hbudget .hbt span { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--wine); font-weight: 700; }
@media (max-width: 560px) {
  .hbudget { gap: 10px; }
  .hbudget .hbt { flex: 0 0 74%; min-height: 168px; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; padding: 14px; gap: 2px; }
  .hbudget .hbt b { font-size: 20px; } .hbudget .hbt small { font-size: 12px; } .hbudget .hbt span { margin: 6px 0 0; font-size: 12px; }
}

/* FAQ: no cards around the questions, just a warm panel, lines between rows and a round plus that turns into a minus */
.hsec-faq { max-width: 880px; padding: 26px 22px 18px; border-radius: 26px; background: linear-gradient(160deg, #FBEFF3 0%, #FFF8EC 100%); }
.hsec-faq header h2 { font: 700 1.7rem var(--serif); color: var(--wine); letter-spacing: -.01em; }
.hsec-faq header a { color: var(--wine); font-weight: 700; }
.faqlist { gap: 0; }
.hsec-faq details.faq, .hsec-faq details.faq[open] { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; border-bottom: 1px solid rgba(109, 12, 43, .16); }
.hsec-faq details.faq:last-child { border-bottom: 0; }
.hsec-faq details.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; list-style: none; font: 700 1.02rem var(--sans); color: #2a0a14; }
.hsec-faq details.faq summary::-webkit-details-marker { display: none; }
.hsec-faq details.faq[open] summary { color: var(--wine); }
.faq-pm { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wine); }
.faq-pm::before, .faq-pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #fff; border-radius: 2px; transition: transform .2s; }
.faq-pm::after { transform: rotate(90deg); }
.hsec-faq details.faq[open] .faq-pm { background: #C9973A; }
.hsec-faq details.faq[open] .faq-pm::after { transform: rotate(0); }
.hsec-faq details.faq p { margin: 0 0 16px; padding-right: 44px; color: #4a3a3f; }
@media (max-width: 560px) {
  .hsec-faq { padding: 18px 14px 10px; border-radius: 20px; }
  .hsec-faq header h2 { font-size: 20px; }
  .hsec-faq details.faq summary { font-size: 14px; padding: 13px 0; } .faq-pm { width: 26px; height: 26px; }
  .hsec-faq details.faq p { padding-right: 0; font-size: 13.5px; }
}
.hsec-faq details.faq summary::after { content: none; }
.hsec-faq details.faq summary > span { flex: 1; text-align: left; }

/* S26a: how do you want to sell? Three stacked choice cards (marketplace, own store, both). */
.sellmodes { display: grid; gap: 8px; }
.sellmode { position: relative; display: block; cursor: pointer; }
.sellmode input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.sellmode span { display: block; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.sellmode b { display: block; font-size: .95rem; }
.sellmode small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.sellmode input:checked + span { border-color: #6D0C2B; box-shadow: 0 0 0 1px #6D0C2B inset; background: #fdf7f8; }
.sellmode input:focus-visible + span { outline: 2px solid #D41954; outline-offset: 2px; }

/* S26b: Create your website (public page and dashboard pitch), plan cards, and the dashboard invitation. */
.cw { max-width: 980px; margin: 0 auto; padding: 0 16px 56px; }
.cw-hero { background: #6D0C2B; color: #fff; border-radius: 20px; padding: 36px 22px; margin: 16px 0 28px; text-align: center; }
.cw-hero h1 { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.12; margin: 6px 0 12px; color: #fff; }
.cw-hero p { color: #f3e3e8; max-width: 560px; margin: 0 auto 16px; }
.cw-eyebrow { color: #E9CD9C !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.cw-hero .row { justify-content: center; gap: 14px; }
.cw-hero .btn-primary { background: #E9CD9C; color: #6D0C2B; }
.cw-light { color: #E9CD9C; }
.cw-fine { font-size: .8rem; margin-top: 10px !important; }
.cw h2 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; margin: 26px 0 12px; }
.cw-steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.cw-steps li { counter-increment: s; display: grid; gap: 2px; padding: 14px 14px 14px 52px; border: 1px solid var(--line); border-radius: 14px; background: #fff; position: relative; }
.cw-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: #D41954; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.cw-steps li span { color: var(--muted); font-size: .9rem; }
.cw-feats ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.cw-end { text-align: center; background: #faf3e6; border-radius: 16px; padding: 18px; margin-top: 26px; }
.wp-one { border: 1.5px solid #6D0C2B; border-radius: 16px; padding: 18px; background: #fff; box-shadow: 0 6px 20px rgba(109, 12, 43, .10); }
.wp-one h3 { margin: 0 0 8px; }
.wp-one ul { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; }
.wp-opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .wp-opts { grid-template-columns: repeat(3, 1fr); } .cw-hero h1 { font-size: 2.6rem; } }
.wp-opt { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.wp-opt .wp-name { font-weight: 700; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wp-opt b { font-size: 1.5rem; color: #6D0C2B; }
.wp-sub { font-size: .85rem; color: var(--muted); }
.wp-sub em { font-style: normal; color: #BD8C21; font-weight: 700; }
.wp-buy { margin-top: auto; width: 100%; }
.wp-opt .wp-buy { margin-top: auto; }
.wp-opt > span:last-of-type { margin-bottom: 12px; }
.wp-buy[disabled] { opacity: .6; cursor: default; }
.wp-note { margin-top: 12px; }
.webnudge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #faf3e6; border: 1px solid #E9CD9C; border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; position: relative; }
.webnudge > div { flex: 1 1 200px; display: grid; gap: 2px; }
.webnudge span { color: var(--muted); font-size: .85rem; }
.webnudge-x { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }

/* Stage 26d: the Home page promo for the website plan, and its pop-up */
.hsec-wpromo { margin: 0 0 28px; }
.wpromo { display: grid; gap: 18px; padding: 22px 20px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #6D0C2B 0%, #8e1238 55%, #D41954 130%); position: relative; overflow: hidden; }
.wpromo::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 205, 156, .28), rgba(233, 205, 156, 0) 70%); pointer-events: none; }
.wpromo-txt { display: grid; gap: 8px; position: relative; z-index: 1; }
.wpromo-txt small { color: #E9CD9C; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.wpromo h2 { color: #fff; margin: 0; font-size: clamp(1.3rem, 5vw, 1.8rem); text-wrap: balance; }
.wpromo p { margin: 0; color: rgba(255, 255, 255, .88); }
.wpromo-act { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.wpromo .btn-primary { background: #fff; color: var(--wine); border-color: #fff; }
.wpromo-more { color: #E9CD9C; font-weight: 600; text-decoration: none; }
.wpromo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; z-index: 1; font-size: .92rem; }
.wpromo-list li { padding-left: 24px; position: relative; color: rgba(255, 255, 255, .92); }
.wpromo-list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 12px; height: 7px; border-left: 2px solid #E9CD9C; border-bottom: 2px solid #E9CD9C; transform: rotate(-45deg); }
@media (min-width: 760px) { .wpromo { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 28px 32px; gap: 32px; } }
.wp-pop .nl-card h2 { font-size: clamp(1.4rem, 5.4vw, 1.75rem); }
.wp-pop .nl-later { margin-top: 10px; }
/* 26d: the website plans table scrolls sideways on phones instead of squashing its columns */
.wplans table { min-width: 700px; }
.wplans td, .wplans th { white-space: nowrap; }

/* S27: Contact, Careers and Press */
.ctc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 820px; }
.ctc-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; min-width: 0; }
.ctc-card small { display: block; color: var(--muted); font-size: .8rem; }
.ctc-card a, .ctc-card b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ctc-soc { margin: 14px 0 0; color: var(--muted); }
.ctc-routes { display: grid; gap: 10px; max-width: 820px; }
.ctc-route { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; }
.ctc-route:hover { border-color: var(--wine); }
.ctc-route b { display: block; }
.ctc-route small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.ctc-go { margin-left: auto; color: var(--wine); font-weight: 600; white-space: nowrap; font-size: .9rem; }
.ctc-route > span:nth-child(2) { flex: 1; min-width: 0; }
@media (max-width: 560px) { .ctc-route { flex-wrap: wrap; } .ctc-route > span:nth-child(2) { flex: 1 1 0; } .ctc-go { margin-left: 0; flex-basis: 100%; padding-left: 54px; } }
.car-vals { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); max-width: 900px; }
.car-val { padding: 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; }
.car-val b { display: block; margin: 10px 0 4px; }
.car-val p { margin: 0; font-size: .92rem; color: #444; }
.car-roles { display: grid; gap: 10px; max-width: 820px; }
.car-role { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; }
.car-role summary { cursor: pointer; list-style: none; padding: 14px 16px; }
.car-role summary::-webkit-details-marker { display: none; }
.car-role summary b { display: block; }
.car-role summary small { display: block; color: var(--muted); margin-top: 2px; }
.car-role[open] { border-color: var(--wine); }
.car-body { padding: 0 16px 16px; }
.car-body p, .car-body li { line-height: 1.6; color: #333; }
.car-form { margin-top: 8px; }
.prs-about { max-width: 68ch; }
.prs-logos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); max-width: 640px; }
.prs-logo { margin: 0; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.prs-logo.dark { background: #111; color: #fff; }
.prs-logo img { display: block; width: 100%; max-height: 110px; object-fit: contain; padding: 18px; box-sizing: border-box; }
.prs-logo figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: .86rem; border-top: 1px solid var(--line); }
.prs-logo.dark figcaption { border-color: #333; }
.prs-logo.dark a { color: #fff; }

/* Stage S28c: Delivery prices (admin) */
.dp-lead { margin-bottom: 14px; }
.dp-panel { margin-bottom: 16px; }
.dp-panel h3 { margin-bottom: 4px; }
.dp-list { border-top: 1px solid var(--line); margin: 10px 0; }
.dp-state { border-bottom: 1px solid var(--line); }
.dp-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; flex-wrap: wrap; }
.dp-name { flex: 1 1 180px; min-width: 0; font-weight: 600; text-align: left; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; }
.dp-toggle { cursor: pointer; }
.dp-name small { font-weight: 400; color: var(--muted, #6b6b6b); margin-left: 4px; }
.dp-tag { color: #9a3412 !important; }
.dp-off .dp-name { opacity: .65; }
.dp-price { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; }
.dp-price input { border: 0; outline: 0; width: 104px; padding: 8px 0; background: transparent; text-align: right; font: inherit; }
.dp-acts { display: inline-flex; gap: 2px; }
.dp-areas { padding: 0 0 12px 18px; border-left: 2px solid var(--line); margin: 0 0 6px 6px; }
.dp-area .dp-name { font-weight: 500; }
.dp-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.dp-add > input[name=name] { flex: 1 1 200px; min-width: 0; }
.dp-two { display: grid; gap: 0 12px; }
@media (min-width: 640px) { .dp-two { grid-template-columns: 1fr 1fr; } }
.dp-result { margin: 10px 0 0; font-size: 1.05rem; }
@media (max-width: 560px) { .dp-acts { width: 100%; } .dp-price input { width: 84px; } }

/* Stage S29a: Home reviews as one wine card that moves on by itself */
.hsec-rdeck { margin-bottom: 20px; }
.hsec-rdeck > header { margin-bottom: 8px; }
.rd-stage { position: relative; display: grid; outline: none; margin: 0 6px 14px; touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; }
.rd-stage::before, .rd-stage::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 22px; z-index: 0; display: none; }
.rd-stage.multi::before { display: block; background: #A3204B; transform: translateY(8px) scale(.94); opacity: .55; }
.rd-stage.multi::after { display: block; background: #C4577A; transform: translateY(15px) scale(.88); opacity: .32; z-index: -1; }
.rd-stage:focus-visible { box-shadow: 0 0 0 3px rgba(163, 32, 75, .35); border-radius: 22px; }
.rd-card { grid-area: 1 / 1; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 30px; border-radius: 22px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #B3285A 0%, rgba(179, 40, 90, 0) 55%), linear-gradient(160deg, #6D0C2B, #8E1A41);
  box-shadow: 0 10px 24px rgba(109, 12, 43, .22); opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s .55s; }
.rd-card.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 2; }
.rd-card.out { opacity: 0; visibility: visible; transform: translate(-34px, -10px) rotate(-3deg); z-index: 3; transition-delay: 0s; }
.rd-q { position: absolute; right: 16px; top: -2px; font: 700 6rem/1 var(--serif); color: #E3A64A; opacity: .28; pointer-events: none; }
.rd-stars { color: #E3A64A; letter-spacing: 2px; font-size: 1.05rem; white-space: nowrap; }
.rd-stars i { font-style: normal; color: rgba(255, 255, 255, .28); }
.rd-card p { margin: 0; font: 500 1.12rem/1.45 var(--serif); color: #fff; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rd-card footer { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.rd-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #E3A64A; color: #5a0a24; font: 700 .95rem var(--sans); }
.rd-who { display: flex; flex-direction: column; min-width: 0; font: 700 .9rem var(--sans); }
.rd-who small { color: #F3C98B; font-weight: 600; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-card.on .rd-stars { animation: rdpop .6s .12s both; }
.rd-card.on p { animation: rdrise .6s .08s both; }
.rd-card.on footer { animation: rdrise .6s .2s both; }
.rd-bars { position: absolute; left: 18px; right: 18px; bottom: 12px; z-index: 4; display: flex; gap: 5px; }
.rd-bar { flex: 1; height: 14px; padding: 5px 0; border: 0; background: none; cursor: pointer; position: relative; }
.rd-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.rd-bar i { position: absolute; left: 0; top: 5px; height: 4px; width: 0; border-radius: 4px; background: #E3A64A; }
.rd-bar.done i { width: 100%; }
.rd-bar.on i { animation: rdfill 5.5s linear forwards; }
.rd-stage.paused .rd-bar.on i { animation-play-state: paused; }
@keyframes rdfill { from { width: 0; } to { width: 100%; } }
@keyframes rdpop { from { opacity: 0; transform: scale(.7); transform-origin: left center; } to { opacity: 1; transform: none; } }
@keyframes rdrise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .rd-card { padding: 12px 16px 28px; border-radius: 18px; } .rd-card p { font-size: 1.02rem; } .rd-stage { margin: 0 4px 12px; } .rd-stage::before, .rd-stage::after { border-radius: 18px; } .hsec-rdeck > header h2 { font-size: 1.15rem; } }
@media (prefers-reduced-motion: reduce) { .rd-card, .rd-card.on, .rd-card.out { transition: none; } .rd-card.on .rd-stars, .rd-card.on p, .rd-card.on footer, .rd-bar.on i { animation: none; } .rd-bar.on i { width: 100%; } }
/* Stage S29a: admin Home reviews */
.hr-card { margin-bottom: 12px; } .hr-card.hr-off { opacity: .7; }
.hr-two { display: grid; gap: 0 12px; } @media (min-width: 640px) { .hr-two { grid-template-columns: 1fr 1fr; } }
.hr-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.hr-count { font-size: .8rem; color: #6b6b6b; margin-top: 2px; }
.hr-tag { color: #9a3412; font-size: .8rem; font-weight: 600; margin-left: 6px; }

/* Stage S29b: empty and not-found pages, and the "narrow to" pills under the search bar */
.ce-sm { padding: 18px 16px 22px; } .ce-sm .ce-art .art { width: min(170px, 55%); }
.ce-cats { margin: 20px auto 0; max-width: 560px; } .ce-cats > span { display: block; font: 600 .8rem var(--sans); color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.ce-cats .chips { justify-content: center; }
.nrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; align-items: center; margin: 2px 0 10px; padding: 2px 1px; }
.nrow::-webkit-scrollbar { display: none; }
.nlabel { flex: none; font: 600 .78rem var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.npill { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font: 600 .86rem var(--sans); white-space: nowrap; }
.npill small { font-weight: 500; color: var(--muted); } .npill:hover { border-color: var(--wine); }
.npill[aria-current="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ══ S29c: new Haircetera wordmark, centred in the header ══
   Row 1: back and menu on the left, logo in the exact middle, account and cart on the right. Search sits on its own row under it. */
#bar .bar-shop { position: relative; flex-wrap: wrap; gap: 2px; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
#bar .bar-shop .brand { position: absolute; left: 50%; top: 8px; height: 44px; transform: translateX(-50%); display: flex; align-items: center; margin: 0; order: 0; }
#bar .bar-shop .brand img { height: 38px; width: auto; }
#bar .bar-shop .bar-acts { order: 3; margin-left: auto; }
#bar .bar-shop .bsrow { order: 4; flex: 1 1 100%; max-width: none; margin: 0; justify-content: center; }
#bar .bar-shop .bsearch { order: 0; flex: 1 1 auto; max-width: 760px; margin: 0; }
@media (min-width: 860px) {
  #bar .bar-shop { gap: 6px; row-gap: 10px; padding-top: 10px; padding-bottom: 12px; }
  #bar .bar-shop .brand { top: 10px; }
  #bar .bar-shop .brand img { height: 44px; }
}
/* seller and admin dashboards: same, logo in the middle of the header */
body.has-side .bar-in { position: relative; }
body.has-side .bar-in .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; display: flex; align-items: center; }
body.has-side .brand img { height: 34px; }
@media (min-width: 860px) { body.has-side .brand img { height: 38px; } }

/* S29e: thinner header icons (avatar, wishlist, cart) and the avatar a little closer to the cart */
#bar .bar-acts .act .ico { stroke-width: 1.2; }
@media (max-width: 859px) { #bar .bar-acts .act { min-width: 33px; padding: 2px 4px; } }
@media (min-width: 860px) { #bar .bar-acts .act { min-width: 42px; padding: 2px 4px; } }

/* ══ Stage S25a: fewer cards. Customer quotes and reviews sit straight on the section's own background; the web header keeps the logo beside the menu icon at the far left. ══ */
.cs-qs .cs-q, .cs[data-bg="dark"] .cs-qs .cs-q { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 8px 4px; color: inherit; }
.cs-qs[data-flow="grid"] .cs-q { border-top: 1px solid rgba(128, 128, 128, .28); padding-top: 18px; }
body[data-corners="sharp"] .cs-qs .cs-q, body[data-corners="round"] .cs-qs .cs-q { border-radius: 0; }
#rev .panel, .pv-sec[data-sec="reviews"] .panel, .pd-reviews .rv-list .panel { background: transparent; border: 0; border-bottom: 1px solid rgba(128, 128, 128, .28); border-radius: 0; padding: 16px 2px; margin: 0; }
#rev .panel:last-child, .pv-sec[data-sec="reviews"] .panel:last-child, .pd-reviews .rv-list .panel:last-child { border-bottom: 0; }
@media (min-width: 860px) {
  .bar-shop { max-width: none; padding-left: 24px; padding-right: 24px; }
}

/* ══ Stage S25b: Stylists and salons near you ══ */
.stl-tools { display: flex; align-items: center; gap: 14px; }
.stl-loc { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .86rem var(--sans, inherit); cursor: pointer; }
.stl-loc .ico { width: 16px; height: 16px; color: var(--wine); }
.stl-loc:hover { border-color: var(--wine); }
.stl-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 8px; }
.stl-row::-webkit-scrollbar { display: none; }
.stl-row .stl { flex: 0 0 min(78%, 270px); scroll-snap-align: start; }
.stl-note { margin: 0 0 10px; font-size: .9rem; }
.stl { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.stl:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.stl-cover { display: grid; place-items: center; height: 120px; background: linear-gradient(135deg, #EBD3D0, #E3C59B) center / cover no-repeat; color: rgba(255, 255, 255, .8); }
.stl-cover .ico { width: 34px; height: 34px; }
.stl-logo { position: absolute; top: 90px; left: 14px; width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; background: var(--wine); color: #fff; display: grid; place-items: center; font: 700 1.2rem var(--serif, inherit); overflow: hidden; }
.stl-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stl-body { display: flex; flex-direction: column; gap: 5px; padding: 34px 14px 14px; }
.stl-name { font-size: 1rem; line-height: 1.25; }
.stl-ok { display: inline-grid; vertical-align: middle; color: var(--wine); }
.stl-ok .ico { width: 15px; height: 15px; }
.stl-where { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .82rem; }
.stl-where .ico { width: 14px; height: 14px; flex: none; }
.stl-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; }
.stl-from { font-weight: 700; font-size: .9rem; color: var(--wine); }
.stl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.stl-chips i { font-style: normal; font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: var(--champagne-soft, #F6EBE0); color: var(--oxblood, #6B0F2A); }
.stl-sk { min-height: 250px; background: linear-gradient(90deg, #F3F3F3, #FAFAFA, #F3F3F3); }
.stl-page-h { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin: 18px 0 12px; }
.stl-page-h h1 { margin: 0; }
.stl-page-h p { margin: 4px 0 0; }
.stl-search { display: flex; gap: 8px; margin-bottom: 18px; }
.stl-search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.stl-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .stl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .stl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stl-row .stl { flex-basis: 300px; } }
@media (min-width: 1200px) { .stl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stl-morebox { display: flex; justify-content: center; margin: 22px 0 8px; }
.hsec-stylists > header { flex-wrap: wrap; row-gap: 8px; }
.hsec-stylists > header h2 { white-space: nowrap; }
@media (max-width: 520px) { .hsec-stylists .stl-tools { width: 100%; justify-content: space-between; } }

/* S25c: the marketplace store page (cover, stars, photo strip, tabs) and the seller's Store details page */
.sl-page .sl-cover { height: 150px; border-radius: 16px; background: var(--champagne-soft) center / cover no-repeat; margin: 0 0 -26px; }
.sl-page .sl-cover[data-none] { background-image: linear-gradient(135deg, var(--wine), #b98a7a); }
.sl-page .sl-head { position: relative; padding: 0 6px; align-items: flex-end; }
.sl-page .sl-logo { width: 72px; height: 72px; border: 3px solid var(--bg, #fff); box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.sl-rate { margin: 0 0 2px; display: flex; align-items: center; gap: 6px; font-size: .88rem; }
.sl-rate a { color: inherit; text-decoration: none; }
.sl-rate .pd-stars { font-size: .95rem; }
.sl-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sl-meta svg { width: 14px; height: 14px; flex: none; }
.sl-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0 4px; }
.sl-ph { position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--champagne-soft); aspect-ratio: 1; cursor: pointer; }
.sl-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-ph > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; color: #fff; font-size: .78rem; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.sl-ph > .sl-more { inset: 0; display: grid; place-items: center; padding: 0; font: 700 1.1rem var(--serif); background: rgba(0, 0, 0, .45); text-align: center; }
.sl-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sl-rv-sum { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.sl-rv-sum b { font: 700 1.8rem var(--serif); }
.sl-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 12px 0 0; }
.sl-info dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; }
.sl-info dt svg { width: 14px; height: 14px; }
.sl-info dd { margin: 0; font-size: .92rem; }
.sd-imgs { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
.sd-logo { width: 88px; height: 88px; border-radius: 18px; background: var(--champagne-soft) center / cover no-repeat; margin-bottom: 6px; }
.sd-cover { height: 88px; border-radius: 14px; background: var(--champagne-soft) center / cover no-repeat; margin-bottom: 6px; }
.sd-h { font: 700 1rem var(--serif); margin: 18px 0 4px; }
.sd-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.sd-ph { display: flex; flex-direction: column; gap: 6px; }
.sd-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.sd-ph input { font-size: .8rem; padding: 6px 8px; }
.sd-ph-act { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; }
.sd-ph-act button:disabled { opacity: .35; }
.sd-gal-card { margin-top: 14px; }
@media (max-width: 560px) {
  .sl-page .sl-cover { height: 110px; border-radius: 12px; }
  .sl-page .sl-logo { width: 60px; height: 60px; }
  .sl-strip { gap: 4px; }
  .sd-imgs { grid-template-columns: 1fr; }
}

/* ══ S25d: web layout. From 1000px up, every page uses the room it has instead of a 560px column ══ */
@media (min-width: 1000px) {
  /* Seller and admin pages that were a narrow column: cards sit two across, forms use two columns */
  body.has-side:not(.ed-full) .narrow { max-width: 1240px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  body.has-side:not(.ed-full) .narrow > * { grid-column: 1 / -1; min-width: 0; }
  body.has-side:not(.ed-full) .narrow > .panel:not(form), body.has-side:not(.ed-full) .narrow > .sec-card { grid-column: auto; margin: 14px 0 0; }
  body.has-side:not(.ed-full) .narrow > .errbox { max-width: 640px; }
  body.has-side:not(.ed-full) .narrow.pf { grid-template-columns: minmax(0, 1fr) 400px; max-width: 1240px; }
  body.has-side:not(.ed-full) .narrow.pf > form { grid-column: 1; }
  body.has-side:not(.ed-full) .narrow.pf > .pf-prev { grid-column: 2; }
  body.has-side:not(.ed-full) .narrow.wk { max-width: 1240px !important; }
  body.has-side:not(.ed-full) .narrow.ps { max-width: none; }

  /* forms: fields two across; long things (text areas, tick lists, photos, hints) take the whole row */
  .narrow > form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .narrow > form > * { grid-column: 1 / -1; min-width: 0; }
  .narrow > form > .field:not(:first-child):not(:has(textarea, .check, .choice, .row, .drop, .legend, .rt-bar, .seg, .seg-o, select[multiple])) { grid-column: auto; }
  .narrow > form > .field[data-field="name"], .narrow > form > .field[data-field="address_line"], .narrow > form > .field[data-field="description"] { grid-column: 1 / -1; }
  .narrow > form.panel:not(:has(> .field)) { max-width: 860px; }
  .narrow.wk > form { display: grid; }

  /* shopping side: same idea inside the 1120px page */
  body:not(.has-side) .narrow { max-width: 1120px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  body:not(.has-side) .narrow > * { grid-column: 1 / -1; min-width: 0; }
  body:not(.has-side) .narrow > .panel:not(form), body:not(.has-side) .narrow > .sec-card { grid-column: auto; margin: 0 0 14px; }
  body:not(.has-side) .narrow > .errbox, body:not(.has-side) .narrow.ob-wrap, body.auth .narrow { max-width: 560px; display: block; }
  body:not(.has-side) .acc { max-width: 1120px; columns: 2; column-gap: 32px; }
  body:not(.has-side) .acc > * { break-inside: avoid; }
  body:not(.has-side) .acc > h1, body:not(.has-side) .acc > h2, body:not(.has-side) .acc > .crumb-back, body:not(.has-side) .acc > .set-store { column-span: all; }

  /* lists of cards go two across */
  .pcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; align-items: start; margin-top: 12px; }
  .pcols > .panel { margin: 0; }
  body.has-side:not(.ed-full) .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }

  /* staff */
  .stf-stats { grid-template-columns: repeat(3, minmax(0, 220px)); }
  .stf-tabs { width: fit-content; min-width: 420px; }
  .stf-add { width: auto; justify-self: start; }
  .stf-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px 20px; }
  .stf-tpl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); overflow: visible; }
  .stf-tpl-card { flex: none; }
  .stf-empty { max-width: 560px; }

  /* About, policies and help: wide hero, cards four across, text in two columns */
  .abt { max-width: 1120px; }
  .abt-sec { padding: 12px 32px 28px; }
  .abt-sec p { max-width: 80ch; }
  .abt-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
  .abt-sec[id="story"] p { max-width: 90ch; }
  .pol .abt-sec ul { max-width: 80ch; }
}
@media (min-width: 1700px) { body.has-side:not(.ed-full) .plist { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pcols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ══ S25e: About page as a full-width story, orders summary row, staff side panel ══ */
.abt.abt-wide { max-width: none; padding: 0; }
.abt-wide > .abt-hero { padding: 64px 24px 56px; }
.abt-wide > .abt-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.abt-wide > .abt-hero p { max-width: 60ch; font-size: 1.05rem; }
.abt-wide > .abt-sec { max-width: 1180px; margin-inline: auto; padding: 36px 24px 24px; }
.abt-wide > .abt-sec p { max-width: 90ch; }
.abt-wide > .abt-cta { padding-bottom: 64px; }
.ab-band { padding: 56px 24px; }
.ab-in { max-width: 1180px; margin: 0 auto; }
.ab-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 10px; }
.ab-lead { max-width: 70ch; color: var(--muted); font-size: 1.02rem; margin: 0 0 24px; }
.ab-kicker { display: inline-block; font: 700 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--wine, #6D0C2B); margin-bottom: 10px; }
.ab-founder { background: #F3E7DA; }
.ab-split { display: grid; gap: 28px; align-items: center; }
.ab-photo { margin: 0; position: relative; }
.ab-photo img { width: 100%; border-radius: 22px; box-shadow: 0 18px 50px rgba(70, 40, 20, .25); aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.ab-photo figcaption { display: grid; margin-top: 12px; } .ab-photo figcaption b { font: 600 1.2rem var(--serif); } .ab-photo figcaption span { color: var(--muted); font-size: .9rem; }
.ab-copy p { max-width: 62ch; line-height: 1.7; color: #3a2d26; font-size: 1.03rem; }
.ab-dark { background: linear-gradient(135deg, var(--wine, #6D0C2B), #3b0618); color: #fff; }
.ab-dark .ab-lead { color: rgba(255, 255, 255, .8); }
.ab-tint { background: #FBF3F6; }
.ab-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.ab-card { position: relative; background: #fff; border: 1px solid var(--line, #eee); border-radius: 18px; padding: 24px; }
.ab-card h3 { margin: 14px 0 6px; font-size: 1.12rem; } .ab-card p { margin: 0; color: var(--muted); line-height: 1.6; max-width: none; }
.ab-dark .ab-card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); } .ab-dark .ab-card p { color: rgba(255, 255, 255, .82); } .ab-dark .abt-ic { background: rgba(255, 255, 255, .15); color: #fff; }
.ab-step { position: absolute; top: 16px; right: 18px; font: 700 .8rem var(--sans); color: var(--wine, #6D0C2B); opacity: .55; }
.ab-pop { border-color: var(--wine, #6D0C2B); box-shadow: 0 10px 30px rgba(109, 12, 43, .12); }
@media (min-width: 700px) { .ab-grid { grid-template-columns: repeat(3, 1fr); } .ab-grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .ab-band { padding: 80px 32px; }
  .ab-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
  .ab-photo { position: sticky; top: 90px; }
  .ab-grid4 { grid-template-columns: repeat(4, 1fr); }
  .ab-copy p { font-size: 1.1rem; }
}

/* orders: a summary row so the top of the page is used */
.ostats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 4px; }
.ostats > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.ostats b { font: 700 1.25rem var(--sans); } .ostats span { color: var(--muted); font-size: .8rem; }
@media (min-width: 900px) { .ostats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* staff: a side panel beside the list on wide screens */
.stf-side { display: none; }
@media (min-width: 1000px) {
  .stf-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  .stf-side { display: block; position: sticky; top: 16px; }
  .stf-side .panel { margin: 0 0 14px; } .stf-side h3 { margin: 0 0 8px; font-size: 1.02rem; }
  .stf-side ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; line-height: 1.55; } .stf-side li { margin: 0 0 6px; }
  .stf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stf-tabs { width: 100%; max-width: 480px; }
  .stf-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
.ab-band { padding-left: 24px; padding-right: 24px; }
.abt-wide > .abt-sec { width: min(1180px, 100% - 48px); padding-left: 0; padding-right: 0; }
.ab-in .abt-btns { margin-top: 32px; }
@media (min-width: 1000px) {
  .ab-band { padding-left: 24px; padding-right: 24px; }
  .abt-wide > .abt-sec#story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; padding-top: 64px; padding-bottom: 56px; }
  .abt-wide > .abt-sec#story h2 { font-size: 2.2rem; position: sticky; top: 90px; }
  .abt-wide > .abt-sec#story p { font-size: 1.1rem; line-height: 1.75; max-width: 64ch; }
  .abt-wide > .abt-sec:not(#story):not(.abt-cta) { padding-top: 56px; }
}
@media (min-width: 1000px) {
  .abt-wide > .abt-sec#story > h2 { grid-column: 1; grid-row: 1 / span 6; }
  .abt-wide > .abt-sec#story > p { grid-column: 2; margin: 0 0 1em; }
}
@media (min-width: 1000px) { .abt-wide > .abt-sec#story { row-gap: 0; } }

/* ══ S30: merged build ══ */
/* Stylists near you: small cards (name, rating, place) so two to three fit on a phone screen */
.stl-row { gap: 10px; }
.stl-row .stl { flex: 0 0 calc((100% - 20px) / 2.35); }
.stl { border-radius: 14px; }
.stl-cover { height: 64px; }
.stl-cover .ico { width: 24px; height: 24px; }
.stl-logo { top: 38px; left: 10px; width: 42px; height: 42px; border-width: 2px; font-size: 1rem; }
.stl-body { gap: 3px; padding: 26px 10px 10px; }
.stl-name { font-size: .9rem; }
.stl-meta { font-size: .78rem; }
.stl-where { font-size: .74rem; }
.stl-sk { min-height: 150px; }
.stl-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .stl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stl-row .stl { flex-basis: 190px; } }
@media (min-width: 900px) { .stl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stl-row .stl { flex-basis: 200px; } }
@media (min-width: 1200px) { .stl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Logo beside the menu icon on web (shop header and seller/admin dashboards); phones keep it centred */
@media (min-width: 860px) {
  #bar .bar-shop .brand { position: static; transform: none; height: auto; order: 1; margin: 0 0 0 4px; }
  #bar .bar-shop .menu-btn { order: 0; }
  #bar .bar-shop .backbtn { order: 0; }
  body.has-side .bar-in .brand { position: static; transform: none; margin: 0 auto 0 6px; }
}

/* Home loading: page-shaped placeholder shown under the splash */
.hskel { display: grid; gap: 16px; padding-top: 12px; }
.hskel i, .hskel .hs-hero { display: block; background: linear-gradient(90deg, #f1f1f1 25%, #f8f8f8 50%, #f1f1f1 75%); background-size: 200% 100%; animation: skel 1.1s ease-in-out infinite; }
.hs-cats { display: flex; gap: 14px; overflow: hidden; }
.hs-cats i { flex: 0 0 56px; height: 56px; border-radius: 50%; }
.hs-hero { height: 190px; border-radius: 18px; }
.hs-row { display: flex; gap: 12px; overflow: hidden; }
.hs-row i { flex: 0 0 148px; height: 210px; border-radius: 14px; }
@media (min-width: 900px) { .hs-hero { height: 340px; } }
@media (prefers-reduced-motion: reduce) { .hskel i, .hskel .hs-hero { animation: none; } }

/* Opening a page: a thin progress line, and the page you are on stays put until the next one is ready */
body.navbusy::after { content: ""; position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 9999; background: var(--wine, #6D0C2B); transform-origin: left; animation: navbar 1.2s ease-out forwards; }
body.navbusy #main { opacity: .72; transition: opacity .2s .25s; pointer-events: none; }
@keyframes navbar { from { transform: scaleX(.05); } to { transform: scaleX(.9); } }
@media (prefers-reduced-motion: reduce) { body.navbusy::after { animation: none; transform: scaleX(.6); } }

/* S31b: the outline a page shows for a moment while its first answers arrive (shaped like the page, with the name you tapped) */
.skel2 { display: grid; gap: 16px; align-content: start; padding-top: 18px; text-align: left; }
.skel2 .skel-h { margin: 0; font-size: 1.5rem; }
.skel2 .skel-t { display: block; height: 28px; width: 40%; border-radius: 8px; }
.skel2 i { display: block; border-radius: 12px; background: linear-gradient(90deg, #f1f1f1 25%, #f8f8f8 50%, #f1f1f1 75%); background-size: 200% 100%; animation: skel 1.1s ease-in-out infinite; }
.skel2 .sk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.skel2 .sk-stats i { height: 84px; }
.skel2 .sk-rows { display: grid; gap: 10px; }
.skel2 .sk-rows i { height: 64px; }
.skel2 .sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.skel2 .sk-grid i { aspect-ratio: 3 / 4; }
@media (prefers-reduced-motion: reduce) { .skel2 i { animation: none; } }

/* S31c: the store page, built for finding a salon: actions up top, a gallery of the work, then services, products, reviews, find us */
.sl-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.sl-cta .btn { min-height: 40px; padding: 0 16px; }
.sl-page .sl-cover { height: 190px; }
.sl-mosaic { display: grid; gap: 6px; margin: 14px 0 6px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; }
.sl-mosaic .sl-ph { aspect-ratio: auto; height: 100%; border-radius: 14px; }
.sl-mosaic .sl-ph:first-child { grid-column: span 2; grid-row: span 2; }
.sl-mosaic.n1 { grid-template-columns: 1fr; grid-auto-rows: 260px; } .sl-mosaic.n1 .sl-ph:first-child { grid-column: auto; grid-row: auto; }
.sl-mosaic.n2 .sl-ph:first-child, .sl-mosaic.n3 .sl-ph:first-child { grid-row: span 2; }
.sl-mosaic.n2 { grid-template-columns: 2fr 1fr; } .sl-mosaic.n2 .sl-ph:nth-child(2) { grid-row: span 2; }
.sl-mosaic.n3 { grid-template-columns: 2fr 1fr; grid-auto-rows: 130px; } .sl-mosaic.n3 .sl-ph:first-child { grid-column: auto; }
.sl-photos { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sl-photos .sl-ph { aspect-ratio: 4 / 5; }
.sl-about-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .sl-about-grid { grid-template-columns: 3fr 2fr; } }
.sl-find h3 { margin-top: 0; }
.sl-find-where { display: flex; gap: 8px; margin: 0 0 8px; line-height: 1.4; }
.sl-find-where svg, .sl-find-area svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.sl-find-area { display: flex; gap: 8px; margin: 0 0 10px; }
.sl-find-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 600px) { .sl-page .sl-cover { height: 130px; } .sl-mosaic { grid-auto-rows: 84px; } .sl-mosaic.n1 { grid-auto-rows: 200px; } }

.sl-map { margin: 0 0 12px; border-radius: 14px; overflow: hidden; background: var(--champagne-soft); aspect-ratio: 16 / 10; }
.sl-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* S31d: header — the logo sits on the cover edge, the name and facts start below the cover, actions in a row under it */
.sl-page .sl-cover { margin: 0; }
.sl-page .sl-head { align-items: flex-start; gap: 12px; padding: 0 6px; margin: 0 0 4px; }
.sl-page .sl-logo { margin-top: -34px; flex: none; position: relative; z-index: 1; }
.sl-page .sl-head > div { padding-top: 10px; min-width: 0; }
.sl-page .sl-head h1 { overflow-wrap: anywhere; }
.sl-page > .sl-cta { padding: 0 6px; margin: 8px 0 0; }

/* ══ S32c: the store page. Tabs, a profile header of its own, a booking card, instant switching. Aligned with the header: starts at the logo, ends at the account icon ══ */
.sl-v3 { --sl-l: 16px; --sl-r: 16px; padding: 14px var(--sl-r) 110px var(--sl-l); max-width: none; margin: 0; font-size: 1rem; }
@media (min-width: 860px) { .sl-v3 { --sl-l: 68px; --sl-r: 24px; padding-top: 22px; padding-bottom: 60px; } }
.sl-cover { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 6; max-height: 280px; width: 100%; background: linear-gradient(120deg, var(--wine), #b98a7a 60%, var(--champagne-soft)); }
.sl-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-allph { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 700 .82rem var(--sans); cursor: pointer; box-shadow: 0 3px 12px rgba(0, 0, 0, .2); }
.sl-allph svg { width: 16px; height: 16px; }
.sl-id { display: grid; grid-template-areas: "av act" "main main"; grid-template-columns: auto 1fr; margin: -36px 4px 0; position: relative; }
.sl-avatar { grid-area: av; width: 76px; height: 76px; border-radius: 22px; border: 4px solid #fff; background: var(--wine-tint); overflow: hidden; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(80, 10, 30, .18); }
.sl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sl-avatar b { font: 700 1.9rem var(--serif); color: var(--wine); }
.sl-act { grid-area: act; justify-self: end; align-self: end; display: flex; gap: 8px; padding-bottom: 2px; }
.sl-ibtn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; transition: border-color .15s, transform .15s; }
.sl-ibtn:hover { border-color: var(--wine); transform: translateY(-1px); }
.sl-ibtn svg { width: 19px; height: 19px; }
.sl-id-main { grid-area: main; padding-top: 10px; min-width: 0; }
.sl-id-main h1 { font: 700 clamp(1.3rem, 3.4vw, 1.75rem)/1.15 var(--serif); letter-spacing: -.01em; margin: 0 0 6px; }
.sl-id-main h1 .badge { font: 700 .68rem var(--sans); vertical-align: middle; letter-spacing: 0; }
.sl-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; max-width: none; color: var(--muted); font-size: .92rem; }
.sl-line svg { width: 15px; height: 15px; flex: none; }
.sl-stars { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; }
.sl-stars svg { color: var(--star); fill: var(--star); }
.sl-where { display: inline-flex; align-items: center; gap: 4px; }
.sl-kind { padding: 2px 10px; border-radius: 999px; background: var(--wine-tint); color: var(--wine); font-weight: 600; font-size: .8rem; }
@media (min-width: 700px) {
  .sl-cover { aspect-ratio: 21 / 6; }
  .sl-id { grid-template-areas: "av main act"; grid-template-columns: auto 1fr auto; gap: 18px; margin-top: -52px; }
  .sl-avatar { width: 104px; height: 104px; border-radius: 28px; }
  .sl-id-main { padding-top: 62px; }
  .sl-act { padding-top: 62px; align-self: start; }
}
/* tabs */
.sl-tabs { position: sticky; top: var(--bar-h); z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 16px 0 0; padding: 8px 0; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sl-tabs::-webkit-scrollbar { display: none; }
.sl-tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; color: var(--muted); font: 700 .92rem var(--sans); text-decoration: none; transition: background .15s, color .15s; }
.sl-tabs a:hover { color: var(--ink); }
.sl-tabs a[aria-selected="true"] { background: var(--wine); color: #fff; }
.sl-tabs a em { font: 700 .72rem var(--sans); font-style: normal; padding: 1px 7px; border-radius: 999px; background: var(--wine-tint); color: var(--wine); }
.sl-tabs a[aria-selected="true"] em { background: rgba(255, 255, 255, .22); color: #fff; }
/* page columns */
.sl-cols { display: grid; gap: 24px; margin-top: 18px; }
.sl-main { min-width: 0; }
.sl-side { display: none; }
@media (min-width: 980px) { .sl-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } .sl-side { display: block; } .sl-bar { display: none !important; } }
.sl-panel[hidden] { display: none; }
.sl-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.sl-card > h2, .sl-fold summary h2 { font: 700 1.2rem var(--serif); margin: 0 0 12px; }
.sl-abgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.sl-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.sl-card { min-width: 0; }
@media (min-width: 760px) and (max-width: 979px), (min-width: 1240px) { .sl-abgrid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; } .sl-col { gap: 20px; } }
.sl-bio { font-size: 1.06rem; line-height: 1.75; color: #3a3a3a; max-width: 62ch; margin: 0 0 16px; white-space: pre-line; }
.sl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sl-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--wine-tint); color: var(--wine); font-weight: 600; font-size: .88rem; }
.sl-chips svg { width: 15px; height: 15px; }
.sl-photos { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.sl-ph { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--champagne-soft); cursor: pointer; }
.sl-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.sl-ph:hover img { transform: scale(1.05); }
.sl-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(40, 8, 20, .55); color: #fff; font: 700 1.3rem var(--sans); }
.sl-find-where { display: flex; gap: 10px; margin: 0 0 14px; max-width: none; line-height: 1.5; }
.sl-find-where svg { width: 18px; height: 18px; margin-top: 2px; flex: none; color: var(--wine); }
.sl-map { height: 250px; width: 100%; aspect-ratio: auto; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #f4f4f4; }
.sl-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.sl-find-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sl-find-act .btn { min-height: 44px; padding: 0 22px; border-radius: 999px; }
.sl-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sl-contact li { display: flex; gap: 12px; align-items: center; }
.sl-contact small { display: block; color: var(--muted); font-size: .78rem; }
.sl-contact a { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.sl-contact a:hover { color: var(--wine); }
.sl-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--wine-tint); color: var(--wine); }
.sl-ic svg { width: 18px; height: 18px; }
.sl-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sl-socials a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: 600 .86rem var(--sans); text-decoration: none; }
.sl-socials a:hover { border-color: var(--wine); }
.sl-socials svg { width: 17px; height: 17px; }
/* folds, hours, ticks */
.sl-fold > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-right: 30px; cursor: pointer; list-style: none; position: relative; }
.sl-fold > summary::-webkit-details-marker { display: none; }
.sl-fold > summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.sl-fold[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.sl-fold > summary h2 { margin: 0; }
.sl-fold[open] > summary { margin-bottom: 8px; }
.sl-status { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: .88rem; color: var(--muted); }
.sl-status i { width: 10px; height: 10px; border-radius: 50%; background: #B8B8B8; }
.sl-status.on { color: var(--ok); }
.sl-status.on i { background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 107, 79, .18); }
.sl-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--wine-tint); color: var(--wine); font: 700 .8rem/24px var(--sans); text-align: center; }
.sl-hours, .sl-amen { list-style: none; margin: 0; padding: 0; }
.sl-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; margin: 0 -12px; border-radius: 10px; font-size: .96rem; }
.sl-hours li > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.sl-hours li i { width: 9px; height: 9px; border-radius: 50%; background: var(--wine); flex: none; }
.sl-hours li.off i { background: #C9C2C4; } .sl-hours li.off { color: var(--muted); }
.sl-hours li.today { background: var(--wine-tint); font-weight: 700; }
.sl-amen { display: flex; flex-wrap: wrap; gap: 8px; }
.sl-amen li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--wine-tint); color: var(--wine); font-weight: 600; font-size: .9rem; }
.sl-amen svg { width: 16px; height: 16px; }
/* services */
.sl-filter { width: 100%; min-height: 46px; margin: 0 0 14px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; font: inherit; }
.sl-svc-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .sl-svc-grid { grid-template-columns: repeat(2, 1fr); } }
.sl-svc, .sl-pick-row { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sl-svc:hover, .sl-pick-row:hover { border-color: var(--wine); box-shadow: 0 8px 22px rgba(109, 12, 43, .1); transform: translateY(-1px); }
.sl-svc[hidden], .sl-pick-row[hidden] { display: none; }
.sl-svc-img { flex: none; width: 56px; height: 56px; border-radius: 15px; background: var(--champagne-soft) center / cover; display: grid; place-items: center; color: var(--wine); }
.sl-svc-img svg { width: 22px; height: 22px; }
.sl-svc-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sl-svc-main b { font-size: 1rem; font-weight: 600; }
.sl-svc-main small { color: var(--muted); font-size: .86rem; }
.sl-svc-price { font: 700 1rem var(--sans); color: var(--price); white-space: nowrap; }
.sl-svc .btn-sm { min-height: 36px; padding: 0 16px; border-radius: 10px; pointer-events: none; }
.sl-chev { font-size: 1.6rem; color: var(--muted); line-height: 1; }
.sl-pick { display: grid; gap: 10px; }
.sl-skel { height: 76px; border-radius: 18px; margin-bottom: 12px; background: linear-gradient(90deg, #f3f0f1 25%, #fbf9f9 50%, #f3f0f1 75%) 0 0 / 200% 100%; animation: sl-sh 1.2s linear infinite; }
@keyframes sl-sh { to { background-position: -200% 0; } }
.sl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.sl-rv-sum { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sl-rv-sum b { font: 700 2rem var(--serif); }
/* booking card (wide screens) */
.sl-side .sl-book { position: sticky; top: calc(var(--bar-h) + 78px); display: grid; gap: 10px; padding: 24px; box-shadow: 0 14px 40px rgba(109, 12, 43, .1); }
.sl-eyebrow { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.sl-book-name { font: 700 1.3rem/1.2 var(--serif); }
.sl-from { margin: 0 0 4px; color: var(--muted); max-width: none; }
.sl-book .btn-block { width: 100%; min-height: 48px; border-radius: 14px; }
.sl-side-links { display: flex; gap: 8px; margin-top: 4px; }
.sl-side-links a, .sl-side-links button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 600 .84rem var(--sans); text-decoration: none; cursor: pointer; }
.sl-side-links a:hover, .sl-side-links button:hover { border-color: var(--wine); }
.sl-side-links svg { width: 16px; height: 16px; }
/* bottom bar (phones, tablets) */
.sl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 34; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--sl-r) calc(10px + env(safe-area-inset-bottom)) var(--sl-l); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.sl-bar-name { display: grid; min-width: 0; }
.sl-bar-name b { font: 600 1rem var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-bar-name small { color: var(--muted); font-size: .8rem; }
.sl-bar .btn { min-height: 44px; padding: 0 26px; border-radius: 12px; flex: none; }
body.has-tabbar .sl-bar { bottom: 58px; } body.has-tabbar .sl-v3 { padding-bottom: 160px; }
/* sheets */
#sl-sheet { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; }
#sl-sheet .sh-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); }
#sl-sheet .sh-card { max-height: 88vh; display: flex; flex-direction: column; }
#sl-sheet .sl-sheet-body { overflow-y: auto; padding-top: 12px; }
@media (min-width: 640px) { #sl-sheet { place-items: center; } #sl-sheet .sh-card { border-radius: 20px; width: min(480px, 92vw); } }
.sl-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sl-tiles a, .sl-tiles button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; }
.sl-tiles a:hover, .sl-tiles button:hover { border-color: var(--wine); }
.sl-tiles svg { width: 20px; height: 20px; }
.sl-x { font-weight: 700; font-size: 1.1rem; line-height: 1; }
/* Store details form */
.sd-pin-map { height: 200px; border-radius: 14px; overflow: hidden; background: var(--champagne-soft); display: grid; place-items: center; margin-bottom: 10px; }
.sd-pin-map iframe { width: 100%; height: 100%; border: 0; }
.sd-amen { display: grid; gap: 4px 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .sl-ibtn, .sl-svc, .sl-pick-row, .sl-ph img, .sl-fold > summary::after { transition: none; } .sl-skel { animation: none; } }

/* ══ S33a: new layout, stage 1 ══
   Web header on ONE line: menu, logo, search, then account/wishlist/cart. Phones keep the logo centred with search under it.
   Web pages get real side room (they started at the edge), and Press, About, Contact and the other info pages get room under the top banner. */
:root { --page-pad: clamp(24px, 3.5vw, 56px); --page-max: 1480px; }
@media (min-width: 860px) {
  #bar .bar-shop { flex-wrap: nowrap; row-gap: 0; gap: 10px; max-width: var(--page-max); margin-inline: auto; padding: 10px var(--page-pad); }
  #bar .bar-shop .menu-btn { order: 0; flex: none; }
  #bar .bar-shop .brand { order: 1; flex: none; margin: 0 18px 0 2px; }
  #bar .bar-shop .bsrow { order: 2; flex: 1 1 auto; min-width: 0; max-width: 760px; margin: 0 auto; }
  #bar .bar-shop .bsearch { flex: 1 1 auto; max-width: none; width: 100%; }
  #bar .bar-shop .bar-acts { order: 3; flex: none; margin-left: 18px; }
  #bar .bar-shop.no-search .bar-acts { margin-left: auto; }
  .catbar .catscroll, .catbar:not(.on-home) .catscroll { max-width: var(--page-max); padding-left: var(--page-pad); padding-right: var(--page-pad); }
  /* page content: room at the sides, lined up with the header */
  .wrap.wide { max-width: var(--page-max); padding-left: var(--page-pad); padding-right: var(--page-pad); }
  .wrap.wide.listing, .wrap.wide.store-body { padding-left: var(--page-pad); padding-right: var(--page-pad); }
}
@media (max-width: 859px) { #bar .bar-shop .bsrow { order: 4; } }

/* Info pages: the first block sits clear of the banner, sections have air between them, and Press / Contact / Careers / Partner stay centred */
.abt > .abt-hero + .abt-sec, .abt > .abt-nav + .abt-sec { padding-top: 36px; }
.abt .abt-sec + .abt-sec { padding-top: 28px; }
@media (min-width: 860px) {
  .abt > .abt-hero + .abt-sec, .abt > .abt-nav + .abt-sec { padding-top: 52px; }
  .abt .abt-sec + .abt-sec { padding-top: 40px; }
  .abt > .abt-sec { padding-left: var(--page-pad); padding-right: var(--page-pad); }
}
.prs > .abt-sec, .ctc > .abt-sec, .car > .abt-sec, .ptn > .abt-sec { text-align: center; }
.prs > .abt-sec p, .ctc > .abt-sec p, .car > .abt-sec p, .ptn > .abt-sec p, .prs-about { margin-left: auto; margin-right: auto; }
.prs-about { text-align: center; }
.prs-logos, .ctc-grid, .ctc-routes { margin-left: auto; margin-right: auto; }
.prs-logo figcaption, .ctc-card, .ctc-route { text-align: left; }
.ctc-routes { margin-top: 16px; }
.ctc-grid + .ctc-soc { text-align: center; }
.prs .ptn-body, .ctc .ptn-body { margin-top: 12px; }

/* ══ S33b: gold reviews section, and stylists drawn with the product card ══ */
:root { --gold-faint: #FBF5E6; --gold-card: #FFFDF8; --gold-ink: #6B5232; --gold-star: #C9A24B; --gold-line: #EFE3C4; }
.hsec-gold { background: var(--gold-faint); border-radius: 22px; padding: 36px 16px 30px; margin: 8px 0 32px; }
.hsec-gold > header { justify-content: center; text-align: center; margin-bottom: 22px; }
.hsec-gold > header h2 { font: 600 clamp(1.5rem, 3.2vw, 2.3rem)/1.15 var(--serif); letter-spacing: -.01em; }
.hsec-gold .rvs-track { gap: 14px; padding: 4px 2px 8px; }
.rg-card { flex: 0 0 min(84%, 330px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--gold-card); border: 1px solid var(--gold-line); border-radius: 18px; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(107, 82, 50, .06); }
a.rg-card:hover { box-shadow: 0 10px 26px rgba(107, 82, 50, .12); }
.rg-top { display: flex; align-items: center; gap: 14px; }
.rg-av { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #B49B7A; color: #fff; font: 600 1.4rem var(--serif); }
.rg-who { display: grid; gap: 6px; min-width: 0; }
.rg-who b { font: 600 1.15rem var(--serif); color: var(--gold-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-ver { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 10px; border-radius: 8px; background: #EFE6D3; color: var(--gold-ink); font-size: .82rem; }
.rg-ver svg { width: 14px; height: 14px; }
.rg-card p { margin: 0; font-size: 1rem; line-height: 1.6; color: #2A2118; flex: 1; }
.rg-stars { align-self: center; color: var(--gold-star); letter-spacing: 3px; font-size: 1.25rem; line-height: 1; }
.rg-stars i { font-style: normal; color: #E4D6B3; }
.rg-what { text-align: center; color: var(--gold-ink); opacity: .8; }
.rg-ph { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; }
.rg-play { align-self: flex-start; border: 1px solid var(--gold-line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 .86rem var(--sans); color: var(--gold-ink); cursor: pointer; }
@media (min-width: 900px) {
  .hsec-gold { padding: 56px var(--page-pad) 48px; }
  .hsec-gold .rvs-track { overflow: hidden; }
  .hsec-gold .rg-card { flex: 0 0 calc((100% - 28px) / 3); }
}
@media (hover: hover) and (min-width: 900px) { .hsec-gold .rvs-arrow.prev { left: -6px; } .hsec-gold .rvs-arrow.next { right: -6px; } }

/* stylists use the product grid; keep the "near you" row sliding on phones and a grid on web */
.stl-pg .pcard.stl-sk { min-height: 210px; background: linear-gradient(90deg, #f1f1f1 25%, #f8f8f8 50%, #f1f1f1 75%); background-size: 200% 100%; animation: skel 1.1s ease-in-out infinite; border-radius: 8px; }
.stl-pg .pcard.stl-sk .pimg { opacity: 0; }
.stl-note { margin: 0 0 10px; }

/* ══ S33c: the shopper's menu, made for hair ══ */
.menu.menu-shop { width: min(380px, 92vw); background: #FFFDF9; }
.menu-shop .menu-head { padding: 16px 18px 4px 22px; }
.menu-shop .menu-title { font: 600 1.35rem var(--serif); color: var(--wine, #6D0C2B); }
.menu-shopper { display: block !important; padding: 4px 18px 24px !important; }
.menu-shopper .mwel { display: grid; gap: 4px; padding: 14px 16px; margin: 4px 0 6px; border-radius: 16px; background: var(--gold-faint, #FBF5E6); }
.menu-shopper .mwel b { font: 600 1.25rem var(--serif); color: var(--gold-ink, #6B5232); }
.menu-shopper .mwel span { font-size: .9rem; color: #6B5A45; }
.menu-shopper .msec { padding: 14px 0 2px; }
.menu-shopper .msec h3 { margin: 0 0 10px; font: 700 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.menu-shopper .mtiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.menu-shopper a.mt { position: relative; display: flex; align-items: flex-end; min-height: 84px; padding: 10px 12px; border-radius: 14px; overflow: hidden; background: var(--wine, #6D0C2B) center / cover; color: #fff; text-decoration: none; font: 600 .95rem var(--sans); box-shadow: none; min-width: 0; }
.menu-shopper a.mt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 6, 14, .72), rgba(30, 6, 14, .05) 70%); }
.menu-shopper a.mt span { position: relative; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.menu-shopper a.mt:hover { box-shadow: 0 0 0 2px var(--gold-star, #C9A24B); background-color: var(--wine, #6D0C2B); }
.menu-shopper a.mall { display: inline-flex; margin-top: 10px; padding: 0; min-height: 0; font-weight: 700; font-size: .88rem; color: var(--wine, #6D0C2B); background: none; }
.menu-shopper a.mrow, .menu-shopper a.mfeat { display: flex; align-items: center; gap: 12px; padding: 10px 6px; min-height: 52px; border-radius: 12px; color: var(--ink); text-decoration: none; background: none; font-weight: 400; }
.menu-shopper a.mrow:hover { background: var(--gold-faint, #FBF5E6); }
.menu-shopper a.mrow[aria-current] { background: var(--gold-faint, #FBF5E6); box-shadow: none; }
.menu-shopper a.mfeat { padding: 14px; margin-bottom: 6px; background: var(--wine, #6D0C2B); color: #fff; border-radius: 16px; }
.menu-shopper a.mfeat small { color: rgba(255, 255, 255, .8); }
.menu-shopper a.mfeat .mrow-ic { background: rgba(255, 255, 255, .16); color: #fff; }
.menu-shopper .mrow-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold-faint, #FBF5E6); color: var(--wine, #6D0C2B); }
.menu-shopper .mrow-ic svg { width: 20px; height: 20px; color: inherit; }
.menu-shopper .mrow-tx { display: grid; gap: 1px; flex: 1; min-width: 0; }
.menu-shopper .mrow-tx b { font: 600 .98rem var(--sans); }
.menu-shopper .mrow-tx small { color: var(--muted); font-size: .82rem; }
.menu-shopper .mrow-go { color: #B8AA92; font-size: 1.4rem; line-height: 1; }
.menu-shop .menu-foot { border-top: 1px solid var(--gold-line, #EFE3C4); }
.menu-shopper .msec { border: 0; border-radius: 0; background: none; box-shadow: none; margin: 0; padding-left: 0; padding-right: 0; }

/* ══ S33d: Home reviews without the panel behind them, smaller shorter cards; a little more room above FAQ and reviews on phones ══ */
.hsec-gold { background: none; border: 0; border-radius: 0; padding: 0; margin: 20px 0 22px; }
.hsec-gold > header { margin-bottom: 10px; }
.hsec-gold > header h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.hsec-gold .rvs-track { gap: 10px; padding: 2px 2px 6px; }
.hsec-gold .rg-card { flex: 0 0 min(66%, 250px); gap: 8px; padding: 12px 14px; border-radius: 14px; }
.hsec-gold .rg-top { gap: 10px; }
.hsec-gold .rg-av { width: 34px; height: 34px; font-size: 1.05rem; }
.hsec-gold .rg-who { gap: 2px; }
.hsec-gold .rg-who b { font-size: .95rem; }
.hsec-gold .rg-ver { padding: 2px 7px; border-radius: 6px; font-size: .7rem; gap: 4px; }
.hsec-gold .rg-ver svg { width: 11px; height: 11px; }
.hsec-gold .rg-card p { font-size: .85rem; line-height: 1.45; flex: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hsec-gold .rg-stars { font-size: 1rem; letter-spacing: 2px; align-self: flex-start; }
.hsec-gold .rg-ph { max-height: 90px; border-radius: 10px; }
.hsec-gold .rg-play { padding: 5px 10px; font-size: .78rem; }
@media (min-width: 900px) {
  .hsec-gold { padding: 0; margin: 28px 0 30px; }
  .hsec-gold .rg-card { flex: 0 0 calc((100% - 20px) / 3); }
}
@media (max-width: 899px) {
  .hsec-gold { margin-top: 30px; }
  .hsec-faq { margin-top: 30px; }
}

/* ══ S33d (part 2): calmer page titles, readable menu colours, tighter lists, store page, footer end, quicker taps ══ */
/* page names reached from the menu are not shouted */
main > .wrap > h1:first-child, main > .wrap > h2:first-child, main > .narrow > h1:first-child, main > .narrow > h2:first-child, main > .wrap > .row:first-child > h2,
main .stl-page-h h1, main .wl-title h1, main .cp-head h1, main .fin-top h2, main .pf-head h2, main .acc > h1, main .acc > h2 { font-size: clamp(1.15rem, 3.4vw, 1.45rem); line-height: 1.2; letter-spacing: -.01em; }
main .wl-title p, main .stl-page-h p { font-size: .88rem; }

/* the shopper's menu is cream: every row, the active one, log out and the Shopping/Selling switch keep dark readable text */
.menu-shop nav a, .menu-shop .menu-item { color: var(--ink); }
.menu-shop nav a:hover, .menu-shop .menu-item:hover { background: var(--gold-faint, #FBF5E6); color: var(--ink); }
.menu-shop .menu-item .ico, .menu-shop nav a .ico { color: var(--wine, #6D0C2B); }
.menu-shopper a.mrow[aria-current], .menu-shopper a.mrow[aria-current]:hover, .menu-shopper a.mrow:active, .menu-shopper a.mrow:focus-visible { color: var(--ink); background: var(--gold-faint, #FBF5E6); }
.menu-shopper a.mrow[aria-current] .mrow-tx b { color: var(--wine, #6D0C2B); }
.menu-shopper a.mrow[aria-current] .mrow-tx small { color: #6B5A45; }
.menu-shopper a.mrow[aria-current] .mrow-ic { background: #fff; color: var(--wine, #6D0C2B); }
.menu-shopper a.mfeat, .menu-shopper a.mfeat:hover, .menu-shopper a.mfeat:active, .menu-shopper a.mfeat .mrow-tx b { color: #fff; }
.menu-shopper a.mfeat:hover { background: var(--wine-deep, #55091F); }
.menu-shop .menu-foot { border-top-color: var(--gold-line, #EFE3C4); }
.menu-shop .menu-item span { color: var(--ink); }
.menu-shop .menu-mode .modeswitch { background: #F1E9D6; }
.menu-shop .menu-mode .modeswitch button { color: #4A3A22; }
.menu-shop .menu-mode .modeswitch button[aria-pressed="true"] { background: var(--wine, #6D0C2B); color: #fff; }
.menu-shop .menu-x { color: #6B5A45; } .menu-shop .menu-x:hover { background: var(--gold-faint, #FBF5E6); }

/* a small on/off switch inside the account menu */
.pop .pop-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font: 600 .9rem var(--sans); color: var(--ink); }
.pop .pop-row .ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pop .pop-row > span { flex: 1; min-width: 0; }
.pop button.tgl, .pop button.tgl:hover { position: relative; display: block; flex: none; width: 34px; height: 20px; padding: 0; border-radius: 999px; background: #CFC6C8; cursor: pointer; transition: background .15s; }
.pop button.tgl i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.pop button.tgl[aria-checked="true"], .pop button.tgl[aria-checked="true"]:hover { background: var(--wine, #6D0C2B); }
.pop button.tgl[aria-checked="true"] i { transform: translateX(14px); }
.pop button.tgl:focus-visible { outline: 2px solid var(--wine, #6D0C2B); outline-offset: 2px; }

/* a store page: products in two clean columns (they were a grid inside a grid); no "Book now" bar at the bottom of the screen */
.sl-bar { display: none !important; }
.sl-v3, body.has-tabbar .sl-v3 { padding-bottom: 40px; }
.sl-grid { display: block; }
.sl-grid .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
@media (min-width: 700px) { .sl-grid .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sl-grid .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the category tabs (All, wigs…) are not on phones: the filter button is already there */
@media (max-width: 859px) {
  .catbar { display: none; }
  /* search, sort and filter row, and the cards under it, are shorter */
  .tbar { gap: 8px; margin: 10px 0 8px; }
  .tbar input[type="search"], .tsort select, .tfilter { min-height: 40px; border-radius: 10px; font-size: .92rem; }
  .tsort select { min-width: 104px; padding-left: 10px; } .tfilter { width: 40px; } .tfilter .ico { width: 20px; height: 20px; }
  .stl-search { margin-bottom: 12px; } .stl-search input, .stl-search .btn { min-height: 40px; font-size: .92rem; } .stl-search .btn { padding: 0 16px; }
  .stl-page-h { margin: 12px 0 8px; }
  .listing-svc .pgrid .pimg, .stl-pg .pimg { aspect-ratio: 16 / 10; }
  .listing-svc .pgrid .pbody, .stl-pg .pbody { padding: 8px; gap: 4px; }
  .listing-svc .pgrid .pname, .stl-pg .pname { min-height: 0; font-size: .8rem; }
  .listing-svc .pgrid .pprice, .stl-pg .pprice { font-size: .95rem; }
  .listing-svc .pcart, .stl-pg .pcart { width: 30px; height: 30px; border-radius: 8px; } .listing-svc .pcart .ico, .stl-pg .pcart .ico { width: 16px; height: 16px; }
}

/* the page ends at the footer's "all rights reserved" line: no white strip below it */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }
.foot { flex: none; padding-bottom: env(safe-area-inset-bottom); }
@media (display-mode: standalone), (display-mode: fullscreen) { body { padding-bottom: 0; } }

/* taps respond at once */
a, button, summary, label, [role="button"], input, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn, button, a[data-link] { transition-duration: .08s; }
.btn:active, .tfilter:active, .pcart:active, .mrow:active, .menu-item:active { transform: scale(.97); opacity: .9; }

/* ══ S33f: search | sort | filter lives in the header on wide screens; menu icon and button text stay visible ══ */
@media (min-width: 860px) {
  #bar .tbar.tbar-dock { order: 3; flex: 1 1 auto; min-width: 0; max-width: 760px; margin: 0 auto; gap: 8px; align-items: center; }
  #bar .tbar-dock input[type="search"], #bar .tbar-dock .tsort select, #bar .tbar-dock .tfilter { min-height: 42px; }
  #bar .tbar-dock .tfilter { width: 42px; }
  #bar .tbar-dock .tsort select { min-width: 150px; }
}
/* "Stylists near you" tile: white icon on the burgundy (the earlier rule coloured it burgundy on burgundy) */
.menu-shop nav a.mfeat .mrow-ic { background: rgba(255, 255, 255, .22); }
.menu-shop nav a.mfeat .mrow-ic, .menu-shop nav a.mfeat .mrow-ic .ico, .menu-shop nav a.mfeat .mrow-ic svg { color: #fff; }
.menu-shop nav a.mfeat .mrow-tx b { color: #fff; } .menu-shop nav a.mfeat .mrow-tx small { color: rgba(255, 255, 255, .85); }
/* Log in / Become a seller at the bottom of the cream menu */
.menu-shop .menu-foot .btn-ghost { background: #fff; color: var(--wine, #6D0C2B); border: 1.5px solid var(--wine, #6D0C2B); font-weight: 700; }
.menu-shop .menu-foot .btn-primary { background: var(--wine, #6D0C2B); color: #fff; border-color: var(--wine, #6D0C2B); font-weight: 700; }
.menu-shop .menu-foot .btn { opacity: 1; }

/* S34a: forgot password link under the password box */
.auth-forgot { display: inline-block; margin-top: 8px; font-size: .9rem; color: inherit; opacity: .9; text-decoration: underline; }
