/* Customer shop page */
:root {
  --brand: #8B1E3F;
  --on-brand: #fff;
  --brand-soft: rgba(139, 30, 63, .08);
  --bg: #fbf8f3;
  --paper: #ffffff;
  --sand: #f3ede4;
  --ink: #1e1b18;
  --ink-2: #4f4943;
  --muted: #8a837b;
  --line: #ebe5dc;
  --off: #d23b3b;
  --wa: #1f9d55;
  --radius: 12px;
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  font-family: var(--sans);
}
@media (min-width: 900px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.caps { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- announcement bar ---------- */
.announce { background: var(--ink); color: #f4efe7; text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; height: 34px; overflow: hidden; position: relative; }
.announce p { margin: 0; height: 34px; line-height: 34px; padding: 0 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.announce p.on { opacity: 1; }

/* ---------- header ---------- */
.hdr { background: var(--paper); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 76px; }
.hdr-side { display: flex; gap: 4px; align-items: center; min-width: 0; }
.hdr-side.right { justify-content: flex-end; }
.search { display: none; align-items: center; width: 100%; max-width: 320px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding: 0 6px 0 16px; }
.search:focus-within { border-color: var(--ink-2); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; outline: none; }
.search button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.hdr-icon { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; height: 48px; padding: 0 6px; color: var(--ink); font-size: 11px; letter-spacing: .04em; }
.hdr-icon .t { display: none; }
.hdr-icon .dot { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-style: normal; line-height: 18px; text-align: center; }
.hdr-icon .dot[hidden] { display: none; }
@media (min-width: 900px) {
  .search { display: flex; }
  .msearch-btn { display: none; }
  .hdr-icon .t { display: block; }
  .hdr-in { height: 88px; }
}
.brandmark { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.brandmark img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brandmark span { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.1; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48vw; }
@media (min-width: 900px) { .brandmark { flex-direction: row; gap: 12px; } .brandmark img { width: 48px; height: 48px; } .brandmark span { font-size: 30px; } }
.msearch { padding-bottom: 12px; }
.msearch[hidden] { display: none; }
.msearch input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding: 0 18px; font-size: 15px; outline: none; }

.catnav { border-top: 1px solid var(--line); }
.catnav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1360px; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav button { height: 46px; white-space: nowrap; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid transparent; }
.catnav button:hover { color: var(--ink); }
.catnav button.on { color: var(--brand); border-color: var(--brand); }
.catnav .more { position: relative; display: none; }
.catnav .more > button { display: inline-flex; align-items: center; gap: 6px; }
.catnav .more > button svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.more-menu { position: absolute; right: 0; top: 100%; z-index: 40; min-width: 220px; max-height: 60vh; overflow: auto; background: var(--paper); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(20, 16, 12, .35), 0 0 0 1px var(--line); padding: 8px; display: grid; }
.more-menu[hidden] { display: none; }
.more-menu button { height: 40px; text-align: left; padding: 0 12px; border-radius: 8px; border: 0; font-size: 13px; }
.more-menu button:hover, .more-menu button.on { background: var(--brand-soft); color: var(--ink); }
@media (min-width: 900px) {
  .catnav ul { justify-content: center; overflow: visible; }
  .catnav .extra { display: none; }
  .catnav .more { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--sand); }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 8 / 3; }
.hero-slide { position: relative; }
.hero-slide > button[data-goto] { display: block; width: 100%; height: 100%; }
.hero-share { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.hero-share svg { width: 16px; height: 16px; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 28px; height: 3px; background: rgba(255, 255, 255, .45); }
.hero-dots button.on { background: #fff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: none; align-items: center; justify-content: center; }
.hero-arrow.prev { left: 20px; } .hero-arrow.next { right: 20px; }
.hero-arrow.next svg { transform: scaleX(-1); }
@media (hover: hover) and (min-width: 900px) { .hero:hover .hero-arrow { display: inline-flex; } }

/* ---------- listing ---------- */
.listing { padding-top: 36px; padding-bottom: 24px; }
.page-title { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.page-title h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; margin: 0; letter-spacing: .02em; text-transform: uppercase; }
@media (min-width: 900px) { .page-title h1 { font-size: 38px; } }
.page-title p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }

.layout { display: grid; gap: 28px; }
@media (min-width: 1000px) { .layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } }

/* filter sidebar */
.fside { display: none; }
@media (min-width: 1000px) {
  .fside { display: block; position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; scrollbar-width: thin; }
}
.fside-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fside-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.fgroup { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.flist { display: grid; gap: 2px; }
.flist.scroll { max-height: 280px; overflow: auto; }
.fbox { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; color: var(--ink); }
.fbox input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; margin: 0; }
.fbox span { flex: 1; }
.fbox em { font-style: normal; font-size: 12px; color: var(--muted); }
.fsizes { display: flex; flex-wrap: wrap; gap: 8px; }
.fsize { position: relative; cursor: pointer; }
.fsize input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fsize span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: var(--paper); }
.fsize input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); font-weight: 500; }
.fsize input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* results bar */
.resbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.found { font-size: 14px; color: var(--ink-2); }
.found b { color: var(--ink); }
.resbar-r { display: flex; align-items: center; gap: 10px; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; }
.fbtn svg { width: 18px; height: 18px; }
.fbtn i { font-style: normal; min-width: 18px; height: 18px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: 11px; line-height: 18px; text-align: center; padding: 0 5px; }
.fbtn i:empty { display: none; }
@media (min-width: 1000px) { .fbtn { display: none; } }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.sort select { height: 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 0 12px; font-size: 13px; color: var(--ink); cursor: pointer; }
.sort .t { display: none; }
@media (min-width: 700px) { .sort .t { display: inline; } }
.chips-on { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.chips-on:empty { display: none; }
.chip-on { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 14px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); font-size: 13px; }
.chip-on svg { width: 14px; height: 14px; }

/* product grid and cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1300px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
@media (hover: hover) { .pcard:hover { box-shadow: 0 14px 30px -18px rgba(30, 20, 10, .35); transform: translateY(-2px); } }
.pcard.flash { outline: 2px solid var(--brand); outline-offset: 2px; }
.pimg { position: relative; aspect-ratio: 3 / 4; background: var(--sand); overflow: hidden; }
.pimg .open { display: block; width: 100%; height: 100%; }
.pimg img { width: 100%; height: 100%; object-fit: contain; transition: opacity .5s; }
.pimg .alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .pcard:hover .pimg .alt { opacity: 1; } }
.badge { position: absolute; left: 8px; top: 8px; background: var(--off); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; }
.badge.new { background: var(--ink); }
.badge.sold { background: #5c5650; }
.pcard.is-sold .pimg img { filter: grayscale(.8); opacity: .6; }
.heart { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.heart.on { color: #d23b5a; }
.heart.on svg { fill: currentColor; }
.pbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ptitle { text-align: left; font-size: 14px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.price b { font-weight: 600; color: var(--off); }
.price s { color: var(--muted); font-size: 13px; }
.price b:only-child { color: var(--ink); }
.pline { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin-top: auto; padding-top: 2px; }
.pline svg { width: 16px; height: 16px; }
.pline.wa { color: var(--wa); font-weight: 500; }
.pline.muted { color: var(--muted); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); }
.more-wrap { text-align: center; padding: 28px 0 8px; }
.more-wrap p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.more-wrap .btn { border-radius: 999px; min-width: 200px; }

/* buttons */
.btn { height: 46px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; border: 1px solid var(--ink); border-radius: 10px; background: transparent; }
.btn.solid { background: var(--ink); color: #fbf8f3; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* filter sheet (phones) */
.fsheet { position: fixed; inset: 0; z-index: 70; background: rgba(20, 16, 12, .5); display: flex; align-items: flex-end; }
.fsheet[hidden] { display: none; }
.fsheet-box { background: var(--paper); width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; }
.fsheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px; }
.fsheet-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.x-s { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); }
.fsheet-body { overflow: auto; padding: 0 16px; flex: 1; }
.fsheet-foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

/* visit store */
.visit { margin-top: 48px; background: var(--sand); }
.visit-in { display: grid; }
@media (min-width: 900px) { .visit-in { grid-template-columns: 1.1fr 1fr; min-height: 480px; } }
.visit-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-height: 280px; }
.visit-pics img { width: 100%; height: 100%; object-fit: cover; }
.visit-text { padding: 40px var(--gutter) 48px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
@media (min-width: 900px) { .visit-text { padding: 56px 64px; } }
.visit-text h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; margin: 0; }
@media (min-width: 900px) { .visit-text h2 { font-size: 44px; } }
.visit-list { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 12px; color: var(--ink-2); }
.visit-list li { display: flex; gap: 12px; align-items: flex-start; }
.visit-list svg { margin-top: 2px; color: var(--muted); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.group-card { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 20px; display: flex; gap: 14px; align-items: center; }
.group-card p { margin: 0; flex: 1; color: var(--ink-2); font-size: 14px; }
.group-card b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }

/* footer */
.foot { background: var(--ink); color: #d9d2c8; padding: 48px 0 28px; font-size: 14px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; color: #fff; margin: 0 0 10px; }
.foot h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #9a9288; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot button, .foot a { color: #d9d2c8; text-align: left; }
.foot button:hover, .foot a:hover { color: #fff; }
.foot p { margin: 0 0 6px; }
.foot-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid #36312c; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #8f877d; }
.foot-base a { color: #bdb5ab; text-decoration: underline; }

/* floating buttons */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.wa-float svg { width: 28px; height: 28px; }
.to-top { position: fixed; right: 22px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 40; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.to-top[hidden] { display: none; }

/* ---------- product viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 12, .6); display: flex; align-items: stretch; justify-content: center; }
.viewer[hidden] { display: none; }
/* phones: full screen, photo fills the first screen */
.viewer-box { position: relative; background: var(--bg); width: 100%; height: 100vh; height: 100dvh; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.viewer-box::-webkit-scrollbar { display: none; }
.vbar { position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: 12px; pointer-events: none; }
.vbar > * { pointer-events: auto; }
.vcount { background: rgba(20, 16, 12, .55); color: #fff; font-size: 12px; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }
.x { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.gallery { position: relative; background: var(--sand); height: calc(100vh - var(--keyh, 260px)); height: min(calc(100dvh - var(--keyh, 260px)), 133.34vw); min-height: 300px; }   /* the photo's own 3:4 shape when it fits: no empty strip */
.gtrack { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gtrack::-webkit-scrollbar { display: none; }
.gslide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow: hidden; }
/* blurred copy fills the space around the photo, the photo itself is never cropped */
.gslide .gbg { display: none; }
.gslide .gfg { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.gdots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.gdots span { width: 22px; height: 3px; background: rgba(255, 255, 255, .5); }
.gdots span.on { background: #fff; }
.vnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: none; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.vnav.prev { left: 12px; } .vnav.next { right: 12px; }
.vnav.next svg { transform: scaleX(-1); }
@media (hover: hover) { .vnav { display: inline-flex; } }
.vhint { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); background: rgba(20, 16, 12, .7); color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; animation: hint 1.3s ease-in-out 2; }
.vhint[hidden] { display: none; }
@keyframes hint { 50% { transform: translateX(calc(-50% - 14px)); } }
.pd.from-right .pd-media { animation: inR .28s ease-out; }
.pd.from-left .pd-media { animation: inL .28s ease-out; }
@keyframes inR { from { transform: translateX(40px); opacity: .4; } }
@keyframes inL { from { transform: translateX(-40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .pd .pd-media, .vhint { animation: none !important; } }
.gthumbs { display: none; }
@media (min-width: 900px) {
  .viewer { align-items: center; padding: 24px; }
  .viewer-box { max-width: 1180px; height: auto; max-height: 94vh; border-radius: 16px; }
  .pd { display: grid; grid-template-columns: 1.1fr 1fr; }
  .gallery { height: min(86vh, 900px); }
  .gthumbs { display: flex; gap: 8px; padding: 10px; background: var(--bg); }
  .gthumbs button { width: 64px; aspect-ratio: 3 / 4; opacity: .55; border-radius: 6px; overflow: hidden; }
  .gthumbs button.on { opacity: 1; outline: 1px solid var(--ink); }
  .gthumbs img { width: 100%; height: 100%; object-fit: cover; }
}
.pd-info { padding: 24px var(--gutter) 32px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .pd-info { padding: 48px 44px; } }
.pd-info .caps { color: var(--muted); }
.pd-info h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; margin: -6px 0 0; }
@media (min-width: 900px) { .pd-info h2 { font-size: 38px; } }
.pd-info .price { font-size: 22px; align-items: center; }
.pd-info .price s { font-size: 15px; }
.off-pill { background: var(--off); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.sizes-row { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 48px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.pd-actions { display: grid; gap: 10px; }
.pd-actions .btn { width: 100%; height: 52px; }
.pd-actions .two { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pd-actions .two .btn { padding: 0 8px; letter-spacing: .06em; font-size: 12px; }
.btn.like svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn.liked { color: #d23b5a; border-color: #d23b5a; }
.btn.liked svg { fill: currentColor; stroke: none; }
.pd-note { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; margin: 0; }
.pd-note svg { color: var(--muted); margin-top: 2px; }
.pd-more { padding: 8px var(--gutter) 32px; grid-column: 1 / -1; }
@media (min-width: 900px) { .pd-more { padding: 8px 44px 44px; } }
.pd-more h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 8px 0 16px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }
@media (min-width: 700px) { .row-scroll { grid-auto-columns: calc((100% - 36px) / 4); } }

/* directory (demo home) */
.dir { padding: 56px var(--gutter); max-width: 760px; }
.dir h1 { font-family: var(--serif); font-weight: 500; font-size: 44px; margin: 0 0 6px; }
.dir .lead { color: var(--muted); margin: 0 0 28px; }
.dir-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dir-item { display: flex; gap: 16px; align-items: center; background: var(--paper); padding: 16px; }
.dir-item img { width: 52px; height: 52px; border-radius: 50%; }
.dir-item b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.dir-item span { color: var(--muted); font-size: 13px; }
.dir-links { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.demo-note { background: #fff7e0; border: 1px solid #f0dfa8; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 20px; }

#toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: #b3261e; }

/* phone tweaks */
@media (max-width: 699px) {
  .announce { font-size: 11px; letter-spacing: .06em; }
  .hero-slide { aspect-ratio: 8 / 3; }
  .hero-slide img { object-position: left center; }
  .listing { padding-top: 24px; }
  .page-title { margin-bottom: 18px; }
  .page-title p { font-size: 13px; }
  .pbody { padding: 8px 10px 10px; }
  .ptitle { font-size: 13px; }
  .price { font-size: 14px; gap: 6px; }
  .price s { font-size: 12px; }
}

/* phones: the first screen shows the photo plus name, price and buttons */
@media (max-width: 899px) {
  .pd-info { padding: 0; gap: 0; }
  .pd-key { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); border-top: 1px solid var(--line); }
  .pd-key .caps { font-size: 11px; }
  .pd-key h2 { font-size: 24px; margin: 0; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pd-key .price { font-size: 19px; }
  .pd-key .pd-actions { gap: 8px; margin-top: 4px; }
  .pd-sizes, .pd-info > .pd-note { margin: 0 16px; padding: 16px 0; }
  .pd-sizes { border-top: 1px solid var(--line); }
}
@media (min-width: 900px) { .pd-key { display: flex; flex-direction: column; gap: 16px; } }

/* ---------- join WhatsApp group, follow, reels ---------- */
.join { margin-top: 40px; }
.join-card { border-radius: 20px; padding: 24px; background: #e9f6ee; background: color-mix(in srgb, var(--wa) 10%, #fffdf8); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wa) 18%, transparent); display: grid; gap: 18px; }
.join-main { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; }
.join-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--wa); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.join-ic svg { width: 28px; height: 28px; }
.join h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 0 0 4px; }
.join-only { margin: 0 !important; }
.join p { margin: 0; color: var(--ink-2); font-size: 14px; }
.join-btn { grid-column: 1 / -1; height: 50px; }
@media (min-width: 800px) {
  .join-card { padding: 28px 36px; }
  .join-main { grid-template-columns: auto 1fr auto; }
  .join-btn { grid-column: auto; padding: 0 28px; }
  .join h2 { font-size: 32px; }
}
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--wa) 18%, transparent); }
.follow > span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-right: 4px; }
.join-card > .follow:first-child, .join-only + .follow { border-top: 0; padding-top: 0; }
.soc { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.soc.ig svg { color: #d6249f; }
.soc.fb svg { color: #1877f2; }

/* join tile inside the product grid */
.grid-join { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--wa) 10%, #fffdf8); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wa) 20%, transparent); }
.grid-join .join-ic { width: 44px; height: 44px; }
.gj-text b { display: block; font-size: 16px; font-weight: 600; }
.gj-text span { font-size: 13px; color: var(--ink-2); }
.gj-btn { grid-column: 1 / -1; height: 44px; border-radius: 10px; background: var(--wa); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 700px) { .grid-join { grid-template-columns: auto 1fr auto; padding: 18px 24px; } .gj-btn { grid-column: auto; padding: 0 24px; } }

/* reels */
.reels { margin-top: 40px; }
.reels-h { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.reel-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.reel { flex: 0 0 auto; scroll-snap-align: start; width: min(78vw, 326px); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.reel iframe { display: block; width: 100%; border: 0; }
.reel.instagram iframe { height: 580px; }
.reel.youtube iframe, .reel.facebook iframe { aspect-ratio: 9 / 16; height: auto; }

/* store photo, one picture */
.visit-pics.one { grid-template-columns: 1fr; min-height: 0; align-self: center; }
/* the whole photo, never cut: its own shape, a tall photo is kept shorter than the screen */
.visit-pics.one img { height: auto; aspect-ratio: auto 4 / 3; max-height: 80vh; object-fit: contain; display: block; }

/* product view: buttons share the row evenly, whatever the owner switched on */
.pd-actions .two { display: flex; gap: 8px; }
.pd-actions .two > * { flex: 1 1 0; min-width: 0; }
.pd-join { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--wa) 10%, #fffdf8); color: var(--ink-2); font-size: 13px; }
.pd-join svg { color: var(--wa); width: 20px; height: 20px; }
.pd-join b { color: #16794a; font-weight: 600; }

/* computer: photo fills its box, no blurred band */
@media (min-width: 900px) {
  .gallery { height: auto; }
  .gtrack { height: auto; aspect-ratio: 3 / 4; max-height: 88vh; }
  .gslide .gfg { object-fit: contain; }
  .gslide .gbg { display: none; }
}
/* phones: keep the header to search, call and liked so the shop name has room */
@media (max-width: 899px) { .hdr-icon.m-hide { display: none; } }

/* computer: the photo box takes the photo's own shape (3:4), so nothing is cut off.
   Sizes are set exactly, so the window never grows wider than the screen and stays centred.
   The photo sits inside the window with space around it. */
@media (min-width: 900px) {
  .viewer { padding: 24px; justify-content: center; }
  .viewer-box {
    --info: 420px;
    --pad: 24px;
    --gh: min(860px, calc(100vh - 48px - 2 * var(--pad) - 80px), calc((100vw - 48px - var(--info) - var(--pad)) * 4 / 3));
    width: calc(var(--gh) * .75 + var(--pad) + var(--info)); max-width: calc(100vw - 48px); margin: auto;
  }
  .pd { grid-template-columns: calc(var(--gh) * .75 + var(--pad)) minmax(0, 1fr); align-items: start; }
  .pd-media { min-width: 0; padding: var(--pad) 0 0 var(--pad); }
  .gallery { height: auto; border-radius: 12px; overflow: hidden; }
  .gtrack { height: var(--gh); width: calc(var(--gh) * .75); aspect-ratio: auto; max-height: none; }
  .gslide .gfg { object-fit: contain; object-position: center; }
  .gthumbs { padding: 10px 0 0; background: none; }
  .pd-info { padding: 40px 36px; }
  .pd-more { padding: 24px var(--pad) 32px; }
}

/* phones: the photo strip does not scroll by finger, so a swipe always means "next dress" */
@media (pointer: coarse) {
  .gtrack { overflow-x: hidden; scroll-snap-type: none; touch-action: pan-y; }
}
/* small photo buttons on the photo, for dresses with more than one photo */
.gmini { position: absolute; left: 12px; bottom: 14px; z-index: 3; display: flex; gap: 6px; }
.gmini button { width: 44px; height: 58px; border-radius: 8px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .7); opacity: .75; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.gmini button.on { border-color: #fff; opacity: 1; }
.gmini img { width: 100%; height: 100%; object-fit: cover; }
.gallery:has(.gmini) .gdots { display: none; }
@media (min-width: 900px) { .gmini { display: none; } .gallery:has(.gmini) .gdots { display: flex; } }

/* price hidden by the shop owner */
.price .ask-price, .price b.ask-price:only-child { color: var(--ink-2); font-weight: 500; font-size: .92em; letter-spacing: .02em; }

/* owner looking at their own page before it is open to customers */
.owner-preview { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: #111827; color: #fff; font: 500 14px/1.4 system-ui, sans-serif; text-align: center; }
.owner-preview a { color: #111827; background: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Starter plan: small Storepath line in the footer */
.made-with a { font-weight: 600; }

/* sample shop: "the owner's side" popup and its button */
.demo-pop { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; padding: 12px; background: rgba(16, 24, 20, .5); backdrop-filter: blur(3px); animation: demoFade .25s ease; }
@media (min-width: 600px) { .demo-pop { align-items: center; padding: 24px; } }
.demo-box { position: relative; width: 100%; max-width: 400px; max-height: calc(100dvh - 24px); overflow: auto; background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: demoUp .35s cubic-bezier(.2, .8, .2, 1); font-family: "Figtree", var(--sans); }
.demo-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); display: grid; place-items: center; cursor: pointer; }
.demo-x svg { width: 20px; height: 20px; fill: #1f2a24; }
.demo-art { position: relative; height: 196px; overflow: hidden; border-radius: 22px 22px 0 0; background: radial-gradient(120% 90% at 50% 0%, #2d7a5f 0%, #1f5f4a 55%, #174636 100%); }
.demo-art::after { content: ""; position: absolute; inset: auto 0 0; height: 40px; background: linear-gradient(transparent, rgba(23, 70, 54, .35)); }
.demo-phone { position: absolute; left: 50%; top: 26px; width: 150px; margin-left: -75px; padding: 6px 6px 0; border-radius: 26px 26px 0 0; background: #0f1512; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.demo-phone img { display: block; width: 100%; border-radius: 20px 20px 0 0; }
.demo-chip { position: absolute; padding: 7px 12px; border-radius: 99px; background: #fff; color: #1f5f4a; font-size: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); animation: demoFloat 3.2s ease-in-out infinite; }
.demo-chip.c1 { left: 18px; top: 58px; }
.demo-chip.c2 { right: 18px; top: 112px; color: #b5651d; animation-delay: -1.6s; }
.demo-body { padding: 20px 22px 18px; text-align: center; }
.demo-tag { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 99px; background: #e8f3ee; color: #1f5f4a; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.demo-body h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; color: #17201b; }
.demo-body > p:not(.demo-tag):not(.demo-note) { margin: 0 0 18px; color: #4b5650; font-size: 15px; line-height: 1.5; }
.demo-go, .demo-own { display: block; padding: 14px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.demo-go { background: #1f5f4a; color: #fff; box-shadow: 0 8px 18px rgba(31, 95, 74, .3); }
.demo-own { margin-top: 10px; background: #fff; color: #1f5f4a; box-shadow: inset 0 0 0 1.5px #1f5f4a; }
.demo-go:active, .demo-own:active { transform: scale(.98); }
@media (hover: hover) { .demo-go:hover { box-shadow: 0 12px 24px rgba(31, 95, 74, .38); } .demo-own:hover { background: #f1f8f5; } }
.demo-note { margin: 12px 0 0; color: #7a847e; font-size: 13px; }
.demo-fab { position: fixed; left: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 13px; border: 0; border-radius: 99px; background: #1f5f4a; color: #fff; font: 700 14px "Figtree", var(--sans); box-shadow: 0 6px 20px rgba(0, 0, 0, .22); cursor: pointer; }
.demo-fab svg { width: 18px; height: 18px; fill: currentColor; }
@keyframes demoFade { from { opacity: 0; } }
@keyframes demoUp { from { transform: translateY(30px); opacity: 0; } }
@keyframes demoFloat { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .demo-pop, .demo-box, .demo-chip { animation: none; } }

/* filter lists: a thin, light scrollbar with no arrows */
.fside, .flist.scroll, .more-menu, .fsheet-body { scrollbar-width: thin; scrollbar-color: rgba(30, 27, 24, .18) transparent; }
.fside::-webkit-scrollbar, .flist.scroll::-webkit-scrollbar, .more-menu::-webkit-scrollbar, .fsheet-body::-webkit-scrollbar { width: 4px; height: 4px; }
.fside::-webkit-scrollbar-track, .flist.scroll::-webkit-scrollbar-track, .more-menu::-webkit-scrollbar-track, .fsheet-body::-webkit-scrollbar-track { background: transparent; }
.fside::-webkit-scrollbar-thumb, .flist.scroll::-webkit-scrollbar-thumb, .more-menu::-webkit-scrollbar-thumb, .fsheet-body::-webkit-scrollbar-thumb { background: rgba(30, 27, 24, .18); border-radius: 99px; }
.fside::-webkit-scrollbar-button, .flist.scroll::-webkit-scrollbar-button, .more-menu::-webkit-scrollbar-button, .fsheet-body::-webkit-scrollbar-button { display: none; }
/* phone filter sheet: show every category, so only the sheet scrolls (no second scrollbar over the counts) */
.fsheet-body .flist.scroll { max-height: none; overflow: visible; }
/* computer sidebar: keep the counts clear of the thin scrollbar */
.flist.scroll { padding-right: 10px; }
.fsheet-body .flist.scroll { padding-right: 0; }
