/* PinayFashion — storefront. Mobile-first, social-feed layout: gray canvas, white rounded posts, blue actions. */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* core palette (owner's direction) */
  --blue: #1877f2;          /* fills: primary buttons, active tab, links on gray chips */
  --blue-ink: #0f5bc4;      /* blue text on white/gray (AA contrast) */
  --blue-press: #1466d8;
  --blue-soft: #e7f0fe;     /* soft blue backgrounds */
  --white: #ffffff;
  --canvas: #f0f2f5;        /* page background */
  --ink: #1c1e21;           /* text */
  --muted: #65676b;         /* secondary text */
  --line: #dadde1;
  --line-soft: #e4e6eb;
  /* cheerful accents, used sparingly */
  --sun: #ffc83d;           /* "New", hero greeting */
  --sun-soft: #fff4d1;
  --pink: #e41e57;          /* hearts / saved, "Popular" */
  --pink-soft: #fde8ee;
  --green: #1a7f46;         /* WhatsApp, success */
  --green-soft: #e3f5e9;
  --danger-soft: #fdecec;
  --danger-ink: #b3261e;

  /* one radius scale */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(28, 30, 33, .08), 0 1px 1px rgba(28, 30, 33, .04);
  --shadow-2: 0 10px 30px -12px rgba(28, 30, 33, .35);

  --tap: 48px;              /* comfortable touch target (≥44px) */
  --tabbar-h: 64px;
  --display: "Fredoka", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.5 var(--text); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.2; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.ico { flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 90; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.no-js .js-only, .no-js [data-save], .no-js .tools, .no-js .chat-fab { display: none !important; } /* JS-only controls */
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ wordmark */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); min-height: var(--tap); border-radius: var(--r-s); }
.wm { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; display: inline-flex; align-items: baseline; }
.wm-a { color: var(--blue); }
.wm-b { color: var(--ink); font-weight: 600; }
.wm-i { position: relative; display: inline-block; }
.wm-heart { position: absolute; left: 50%; top: -.06em; width: .36em; height: .33em; transform: translateX(-50%) rotate(-8deg); color: var(--pink); }
.wm-plain { color: var(--blue); }

/* ------------------------------------------------------------------ header */
.announce { background: var(--blue-soft); color: var(--blue-ink); text-align: center; font-size: 14px; font-weight: 700; padding: 7px 16px; }
.top { background: var(--white); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line-soft), 0 2px 6px -4px rgba(28, 30, 33, .2); }
.top-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.top-search { position: relative; flex: 1; max-width: 420px; display: flex; align-items: center; }
.top-search .ico { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.top-search input, .page-search input { width: 100%; min-height: 44px; border: 0; border-radius: var(--r-pill); background: var(--canvas); padding: 10px 16px 10px 44px; font-size: 16px; }
.top-search input:focus, .page-search input:focus { outline: none; box-shadow: 0 0 0 2px var(--blue); background: var(--white); }
.top-nav { display: flex; gap: 4px; margin-inline: auto; }
.top-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: var(--r-m); text-decoration: none; color: var(--muted); font-weight: 600; position: relative; }
.top-nav a:hover { background: var(--canvas); }
.top-nav a[aria-current] { color: var(--blue-ink); }
.top-nav a[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -6px; height: 3px; border-radius: 3px; background: var(--blue); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: var(--canvas); color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--line-soft); }
.icon-btn[aria-current] { background: var(--blue-soft); color: var(--blue-ink); }
.count { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font: 700 12px/21px var(--text); text-align: center; box-shadow: 0 0 0 2px var(--white); }
.count-pink { background: var(--pink); }
.count-inline { position: static; box-shadow: none; display: inline-block; margin-left: 2px; }

@media (max-width: 899px) {
  .top-nav, .top-search, .hide-mob { display: none; }
  .top-row { min-height: 56px; }
}
@media (min-width: 900px) {
  .hide-desk { display: none; }
  .top-search { order: 2; max-width: 280px; }
  .top-nav { order: 1; }
  .top-actions { order: 3; margin-left: 0; }
  .brand { margin-right: 8px; }
}

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 22px; border: 0; border-radius: var(--r-m); background: var(--canvas); color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center; transition: background-color .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-press); }
.btn-soft { background: var(--blue-soft); color: var(--blue-ink); }
.btn-soft:hover { background: #d6e6fd; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--canvas); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line-soft); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 17px; padding: 14px 24px; }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: #156a3a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-stack { display: grid; gap: 10px; margin-top: 8px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; min-height: 0; }

/* ------------------------------------------------------------------ type + sections */
.block { padding: 20px 0 4px; }
.h-page { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 6vw, 38px); letter-spacing: -.01em; margin: 6px 0 12px; text-wrap: balance; }
.h-sec { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 4.4vw, 26px); margin: 0; }
.h-sub { font-size: 17px; margin: 22px 0 10px; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 18px; max-width: 60ch; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-weight: 700; color: var(--blue-ink); text-decoration: none; background: var(--white); box-shadow: var(--shadow-1); white-space: nowrap; }
.more:hover { background: var(--blue-soft); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 16px 0 4px; }
.hero-in { display: grid; gap: 12px; }
.hero-card { position: relative; overflow: hidden; background: var(--blue); color: #fff; border-radius: var(--r-l); padding: 22px 20px 20px; isolation: isolate; }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero-card::before { width: 220px; height: 220px; right: -70px; top: -80px; background: rgba(255, 255, 255, .12); }
.hero-card::after { width: 92px; height: 92px; right: -30px; top: 96px; background: var(--sun); }
.hero-hi { display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 17px; }
.hero-title { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 8vw, 50px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 12px; max-width: 15ch; text-wrap: balance; }
.hero-text { margin: 0 0 18px; font-size: 17px; max-width: 46ch; color: #eaf2ff; }
.hero-cta { display: grid; gap: 10px; }
.hero .btn-primary { background: var(--white); color: var(--blue-ink); }
.hero .btn-primary:hover { background: var(--blue-soft); }
.hero .btn-soft { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.hero .btn-soft:hover { background: rgba(255, 255, 255, .26); }
.hero-promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero-promise li { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; background: var(--white); border-radius: var(--r-m); padding: 10px 6px; font-weight: 700; font-size: 14px; line-height: 1.25; box-shadow: var(--shadow-1); }
.dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; }
.dot-blue { background: var(--blue-soft); color: var(--blue-ink); }
.dot-pink { background: var(--pink-soft); color: var(--pink); }
.dot-sun { background: var(--sun-soft); color: #8a5a00; }
@media (min-width: 560px) { .hero-cta { display: flex; flex-wrap: wrap; } }
@media (min-width: 900px) {
  .hero { padding-top: 24px; }
  .hero-in { grid-template-columns: 1.6fr 1fr; align-items: stretch; gap: 16px; }
  .hero-card { padding: 44px 44px 40px; }
  .hero-card::before { width: 360px; height: 360px; right: -100px; top: -140px; }
  .hero-card::after { width: 150px; height: 150px; right: -40px; top: auto; bottom: -50px; }
  .hero-promise { grid-template-columns: 1fr; align-content: center; gap: 12px; }
  .hero-promise li { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 18px 20px; font-size: 17px; }
  .hero-promise .dot { width: 44px; height: 44px; }
}

/* ------------------------------------------------------------------ placeholders (missing / broken photos) */
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: #b9c3d3; background: linear-gradient(160deg, #e9eef6, #dde4ef); }
.card-img img, .post-media img, .gallery-main img, .bubble-img img, .cat-img img, .thumb img, .thumbs img, .cart-item .thumb img { position: relative; z-index: 1; }
img.img-broken { visibility: hidden; }

/* ------------------------------------------------------------------ category bubbles (home) */
.bubbles { list-style: none; margin: 0 -16px; padding: 4px 16px 10px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.bubbles::-webkit-scrollbar { display: none; }
.bubbles li { scroll-snap-align: start; flex: none; }
.bubble { display: grid; justify-items: center; gap: 8px; width: 84px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.25; text-align: center; border-radius: var(--r-m); padding-top: 2px; }
.bubble-img { position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--white); box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--blue); }
.bubble-img img { width: 100%; height: 100%; object-fit: cover; }
.bubble:hover .bubble-img { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--pink); }
@media (min-width: 900px) { .bubbles { margin: 0; padding: 4px 4px 10px; gap: 22px; flex-wrap: wrap; } .bubble { width: 100px; } .bubble-img { width: 88px; height: 88px; } }

/* ------------------------------------------------------------------ product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 12px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { scroll-snap-align: start; }
@media (min-width: 640px) { .row-scroll { grid-auto-columns: 30%; } }
@media (min-width: 1000px) { .row-scroll { grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; margin: 0; padding: 2px 2px 14px; scrollbar-width: thin; } }
.card { position: relative; background: var(--white); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; min-width: 0; }
.card-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; border-radius: var(--r-m); }
.card-link:focus-visible { outline-offset: -3px; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--canvas); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: grid; gap: 2px; padding: 10px 12px 12px; }
.card-title { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-price { font-weight: 800; font-size: 17px; }
.card-price s, .post-price s, .was { font-weight: 500; font-size: .85em; color: var(--muted); }
.card.is-out .card-img img { opacity: .55; }
.card-out { position: absolute; z-index: 2; left: 8px; bottom: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.card-sample { position: absolute; z-index: 2; top: 8px; left: 8px; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .02em; padding: 3px 9px; border-radius: var(--r-pill); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: var(--r-pill); line-height: 1.2; }
.card-img .chip { position: absolute; z-index: 2; left: 8px; bottom: 8px; }
.chip-new { background: var(--sun); color: var(--ink); }
.chip-popular { background: var(--pink); color: #fff; }
.chip-out { background: var(--ink); color: #fff; }
.chip-static { margin-bottom: 8px; }

/* save (heart) */
.save { position: absolute; z-index: 3; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--shadow-1); }
.save:hover { color: var(--pink); }
[data-save][aria-pressed="true"] { color: var(--pink); }
[data-save][aria-pressed="true"] .ico path { fill: currentColor; }
.save-lg { top: 12px; right: 12px; width: 52px; height: 52px; }
.save.pop .ico { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.3); } }

/* ------------------------------------------------------------------ discover entry + feed */
.discover-cta { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px; border-radius: var(--r-l); background: var(--white); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; }
.discover-cta:hover { box-shadow: 0 0 0 2px var(--blue); }
.discover-cta-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; flex: none; background: var(--sun); color: var(--ink); }
.discover-cta-text { display: grid; gap: 2px; flex: 1; }
.discover-cta-text strong { font-family: var(--display); font-weight: 600; font-size: 19px; }
.discover-cta-text span { color: var(--muted); font-size: 15px; }
.discover-cta-arrow { color: var(--blue-ink); }

.feed-wrap { max-width: 600px; padding: 16px 0 8px; }
@media (min-width: 900px) { .feed-wrap { max-width: 540px; } }
.feed-head { margin-bottom: 4px; }
.feed-head .lead { margin-bottom: 14px; }
.feed { display: grid; gap: 14px; }
.post { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; flex: none; }
.post-avatar .ico path { fill: currentColor; stroke: none; }
.post-from { display: grid; flex: 1; line-height: 1.25; min-width: 0; }
.post-from strong { font-size: 15px; }
.post-from small { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-media { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 62vh; width: 100%; background: var(--canvas); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 14px 16px 12px; display: grid; gap: 4px; }
.post-title { font-size: 19px; font-weight: 700; margin: 0; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { text-decoration: underline; }
.post-price { margin: 0; font-weight: 800; font-size: 21px; }
.post-meta { margin: 0; color: var(--muted); font-size: 15px; }
.post-body .btn { margin-top: 10px; }
.post-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-soft); margin: 0 12px; padding: 4px 0 6px; }
.post-act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); border: 0; border-radius: var(--r-s); background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; }
.post-act:hover { background: var(--canvas); }
.post-act[aria-pressed="true"] { color: var(--pink); }
.feed-more { padding: 16px 0 8px; text-align: center; }
.feed-end { color: var(--muted); margin: 8px 0; }
.feed-loading { color: var(--muted); padding: 8px; }

/* ------------------------------------------------------------------ shop page */
.page-search { position: relative; display: flex; gap: 8px; align-items: center; margin: 0 0 18px; }
.page-search > .ico { position: absolute; left: 14px; color: var(--muted); pointer-events: none; z-index: 1; }
.page-search input { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); min-height: var(--tap); }
.page-search .btn { flex: none; }
.empty .page-search { max-width: 460px; margin: 0 auto 14px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .cat-list { grid-template-columns: 1fr 1fr; gap: 14px; } }
.cat-row { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); overflow: hidden; }
.cat-main { display: flex; align-items: center; gap: 14px; padding: 12px 14px; color: var(--ink); text-decoration: none; min-height: 84px; }
.cat-main:hover { background: #f7f8fa; }
.cat-img { position: relative; width: 60px; height: 60px; border-radius: var(--r-m); overflow: hidden; flex: none; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-text { display: grid; flex: 1; gap: 2px; }
.cat-text strong { font-size: 18px; }
.cat-text small { color: var(--muted); font-size: 15px; }
.cat-arrow { color: var(--muted); }
.cat-subs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 14px 14px 88px; }
@media (max-width: 420px) { .cat-subs { padding-left: 14px; } }

/* pills (subcategories, filters) */
.pills { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills-scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.pills-scroll::-webkit-scrollbar { display: none; }
.pills-scroll li { flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.pill small { color: var(--muted); font-weight: 500; }
.pill:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.pill-on, .pill[aria-current] { background: var(--blue-soft); color: var(--blue-ink); box-shadow: inset 0 0 0 2px var(--blue); }

/* radio "pick" buttons (filters, size/color on the product page) */
.pick { position: relative; display: inline-flex; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 48px; justify-content: center; padding: 0 16px; border-radius: var(--r-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; }
.pick:hover span { box-shadow: inset 0 0 0 2px var(--muted); }
.pick input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.pick.is-out span { color: var(--muted); text-decoration: line-through; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-soft); }
.pick.is-out small { text-decoration: none; font-weight: 500; }
.pick.is-out input { cursor: not-allowed; }
.sw { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.pick input:checked + span .sw { box-shadow: 0 0 0 2px #fff; }

/* ------------------------------------------------------------------ listing: crumbs, filters, pager */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-right: 6px; color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.crumbs a + a::before { content: "/"; color: var(--line); margin-right: 8px; }
.crumbs > span { display: none; }
@media (min-width: 900px) { .crumbs > span { display: inline; } .crumbs > span::before { content: "/"; color: var(--line); margin-right: 8px; } }
.filters { margin: 4px 0 14px; }
.filters-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-panel { position: relative; }
.filter-panel > summary { list-style: none; }
.filter-panel > summary::-webkit-details-marker { display: none; }
.btn-filter { padding: 10px 18px; }
.filter-panel[open] > summary { background: var(--blue); color: #fff; }
.filter-panel[open] > summary .count-inline { background: #fff; color: var(--blue-ink); }
.filter-panel { position: static; }
.filter-body { position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 8px); background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-2), 0 0 0 1px var(--line-soft); padding: 16px; display: grid; gap: 16px; max-width: 640px; }
.filter-top { display: none; }
@media (max-width: 899px) { /* phones: a bottom sheet above the tab bar, results button always in reach */
  .filter-panel[open]::before { content: ""; position: fixed; inset: 0; z-index: 74; background: rgba(28, 30, 33, .5); }
  .filter-body { position: fixed; z-index: 75; top: auto; bottom: 0; max-width: none; max-height: 86vh; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-l) var(--r-l) 0 0; padding: 0 16px; gap: 18px; }
  .filter-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 60px; margin: 0 -16px; padding: 6px 12px 0 16px; background: var(--white); font-family: var(--display); font-weight: 600; font-size: 22px; }
  .filter-go { position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -1px 0 var(--line-soft); }
  .no-js .filter-panel[open]::before { display: none; }
}
.fgroup { border: 0; margin: 0; padding: 0; }
.fgroup legend { font-weight: 700; font-size: 16px; margin-bottom: 8px; padding: 0; }
.fgroup .pills { margin: 0; }
.filter-go { display: grid; gap: 8px; }
@media (min-width: 640px) { .filter-go { grid-template-columns: auto auto; justify-content: start; } .filter-go .btn-block { width: auto; } }
.sort select { min-height: var(--tap); border: 0; border-radius: var(--r-m); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231c1e21' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; box-shadow: inset 0 0 0 1px var(--line); padding: 10px 42px 10px 16px; font-weight: 600; appearance: none; -webkit-appearance: none; max-width: 100%; }
.count-line { margin: 0 0 0 auto; color: var(--muted); font-size: 15px; white-space: nowrap; }
@media (max-width: 479px) { .count-line { flex-basis: 100%; margin: 2px 0 0; } }
.active-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.active-filters .pill { padding-right: 12px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 22px 0 8px; }
.pager > :last-child { justify-self: end; }
.pager-at { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ empty states, alerts */
.empty { text-align: center; background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: 32px 20px; margin: 10px 0 20px; }
.empty h2, .empty h1 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 8px 0; }
.empty p { max-width: 44ch; margin: 0 auto 18px; color: var(--muted); }
.empty-ico { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); }
.empty-ico-pink { background: var(--pink-soft); color: var(--pink); }
.alert { background: var(--danger-soft); color: var(--danger-ink); border-radius: var(--r-m); padding: 12px 14px; margin: 0 0 16px; font-weight: 600; }
.sample-note { margin: 0 0 12px; padding: 10px 14px; background: var(--sun-soft); border-radius: var(--r-m); font-size: 15px; }
.sample-note strong { display: inline-block; background: var(--sun); border-radius: var(--r-pill); padding: 1px 9px; margin-right: 6px; font-size: 12px; letter-spacing: .02em; }

/* ------------------------------------------------------------------ product page */
.pdp-wrap { padding-top: 8px; }
.pdp { display: grid; gap: 16px; margin-top: 4px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; } .gallery { position: sticky; top: 80px; } }
.gallery-main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--canvas); margin-inline: -16px; border-radius: 0; }
@media (max-width: 639px) { .gallery-main { aspect-ratio: auto; height: min(118vw, 56vh); } }
@media (min-width: 640px) { .gallery-main { margin-inline: 0; border-radius: var(--r-l); } }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .card-sample { top: 14px; left: 14px; font-size: 13px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { position: relative; flex: none; width: 64px; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--r-s); overflow: hidden; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.thumbs button[aria-current] { box-shadow: 0 0 0 3px var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: 18px 16px; }
@media (min-width: 640px) { .pdp-info { padding: 24px; } }
.pdp-title { font-family: var(--display); font-weight: 600; font-size: clamp(25px, 5.4vw, 32px); margin: 0 0 6px; text-wrap: balance; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; font-size: 28px; font-weight: 800; }
.pdp-pay { display: flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; margin: 0 0 16px; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 12px 8px; border: 0; border-radius: var(--r-m); text-align: center; font-size: 15px; line-height: 1.25; color: var(--ink); }
@media (min-width: 520px) { .tool { flex-direction: row; text-align: left; gap: 12px; padding: 12px 14px; justify-content: flex-start; } }
.tool strong { display: block; font-size: 16px; }
.tool small { display: block; color: var(--muted); font-size: 13px; }
.tool-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; }
.tool-size { background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun); }
.tool-size .tool-ico { background: var(--sun); }
.tool-tryon { background: var(--pink-soft); box-shadow: inset 0 0 0 2px #f6a6bd; }
.tool-tryon .tool-ico { background: var(--pink); color: #fff; }
.tool:hover { filter: brightness(.97); }
@media (max-width: 330px) { .tools { grid-template-columns: 1fr; } }
.buy { display: grid; gap: 16px; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend { font-weight: 700; margin-bottom: 8px; font-size: 16px; padding: 0; }
.opt-pick { font-weight: 500; color: var(--muted); }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chart { border-radius: var(--r-m); background: var(--canvas); padding: 0 14px; }
.size-chart summary { display: flex; align-items: center; gap: 8px; min-height: var(--tap); font-weight: 700; color: var(--blue-ink); cursor: pointer; }
.size-chart[open] { padding-bottom: 12px; }
.size-chart-wrap { overflow-x: auto; margin: 4px 0 6px; }
.size-chart table { border-collapse: collapse; font-size: 15px; min-width: 100%; background: var(--white); border-radius: var(--r-s); overflow: hidden; }
.size-chart th, .size-chart td { border: 1px solid var(--line-soft); padding: 7px 10px; text-align: center; }
.size-chart thead th { background: var(--blue-soft); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 700; }
.qty { display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--canvas); }
.qty button { display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: none; color: var(--blue-ink); }
.qty button:hover { background: var(--line-soft); }
.qty input { width: 44px; border: 0; text-align: center; background: transparent; font-weight: 700; font-size: 17px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-msg { min-height: 0; margin: 0; font-weight: 700; color: var(--blue-ink); }
.buy-msg:empty { display: none; }
.buy-msg.is-error { color: var(--danger-ink); }
.buy-ctas { display: grid; gap: 10px; }
.buy-more { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.buy-more .btn { padding-inline: 14px; }
.buy-more [aria-pressed="true"] { color: var(--pink); }
.desc { margin-top: 20px; }
.desc h2 { font-size: 18px; margin: 0 0 6px; }
.desc p { margin: 0; color: #3a3d42; }
.assure { margin-top: 18px; display: grid; gap: 10px; }
.assure p { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--r-m); background: var(--canvas); font-size: 15px; }
.assure .ico { color: var(--blue-ink); margin-top: 1px; }

/* sticky buy bar (phones, product page) — sits just above the tab bar */
.buybar { display: none; }
@media (max-width: 899px) {
  .buybar { position: fixed; z-index: 39; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--white); box-shadow: 0 -1px 0 var(--line-soft), 0 -8px 16px -12px rgba(28, 30, 33, .35); }
  .buybar[hidden] { display: none !important; }
  .buybar-price { display: grid; line-height: 1.2; }
  .buybar-price strong { font-size: 19px; }
  .buybar-price small { color: var(--green); font-weight: 700; font-size: 13px; }
  .buybar .btn { flex: 0 1 220px; }
}

/* shopping tool modals: Find My Size / Try It On Me (bottom sheet on phones, dialog on desktop) */
.tool-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(28, 30, 33, .5); padding: 0; }
.tool-sheet { width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--white); border-radius: var(--r-l) var(--r-l) 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-2); }
@media (min-width: 640px) { .tool-modal { align-items: center; padding: 24px; } .tool-sheet { border-radius: var(--r-l); padding-bottom: 22px; } }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 10px; }
.tool-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 600; font-size: 23px; }
.tool-body { display: grid; gap: 14px; }
.tool-sheet { overscroll-behavior: contain; }
.tool-head { position: sticky; top: -8px; z-index: 2; background: var(--white); margin: -8px -18px 0; padding: 14px 12px 10px 18px; }
.tool-lead { margin: 0; color: #3a3d42; }
.tool-fine { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.tool-fine .ico { color: var(--pink); }
.tool-empty { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 8px 4px 4px; }
.tool-empty p { margin: 4px 0 0; max-width: 40ch; }
.tool-empty strong { font-size: 18px; }
.tool-ok { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px; border-radius: var(--r-m); background: var(--green-soft); color: var(--green); font-weight: 700; }
.check-sm { font-size: 15px; line-height: 1.4; }
.check-sm input { width: 22px; height: 22px; margin-top: 1px; }

/* Find My Size */
.fit-form { display: grid; gap: 14px; }
.fit-note, .fit-how, .tryon-warn { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--r-m); font-size: 15px; line-height: 1.4; }
.fit-note { background: var(--sun-soft); }
.fit-note .ico { color: #8a5a00; margin-top: 2px; }
.fit-how { background: var(--canvas); color: #3a3d42; }
.fit-how .ico { color: var(--blue-ink); margin-top: 2px; }
.unit-switch { display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start; border: 0; margin: 0; padding: 3px; border-radius: var(--r-pill); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.unit-switch label { position: relative; }
.unit-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.unit-switch span { display: grid; place-items: center; min-height: 40px; min-width: 84px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 700; color: var(--muted); }
.unit-switch input:checked + span { background: var(--ink); color: #fff; }
.unit-switch input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }
.fit-fields { display: grid; gap: 14px; }
@media (min-width: 480px) { .fit-fields { grid-template-columns: 1fr 1fr; } }
.fit-field { display: grid; gap: 4px; align-content: start; }
.fit-field label { font-weight: 700; }
.fit-field small { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.fit-input { position: relative; }
.fit-input input { width: 100%; min-height: 52px; padding: 10px 52px 10px 14px; border: 0; border-radius: var(--r-m); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; font-weight: 700; }
.fit-input input:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 2px var(--blue); }
.fit-input input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger-ink); background: var(--danger-soft); }
.fit-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.fit-form .alert, .tryon-form .alert { margin: 0; }
.fit-result { display: grid; gap: 12px; outline: none; }
.fit-answer { display: grid; justify-items: center; gap: 2px; padding: 16px 12px 14px; border-radius: var(--r-l); background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun); text-align: center; }
.fit-answer-label { font-weight: 700; color: #6b4a00; }
.fit-size { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1.05; }
.fit-conf { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: var(--r-pill); background: var(--white); }
.fit-conf-good { color: var(--green); }
.fit-conf-ok { color: var(--blue-ink); }
.fit-conf-unsure { color: #8a5a00; }
.fit-answer-none { background: var(--danger-soft); box-shadow: none; }
.fit-none { font-size: 20px; color: var(--danger-ink); }
.fit-summary { margin: 0; font-size: 17px; font-weight: 600; }
.fit-lines, .fit-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fit-line { padding: 9px 12px 9px 34px; border-radius: var(--r-m); background: var(--canvas); font-size: 15px; position: relative; }
.fit-line::before { content: ""; position: absolute; left: 13px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.fit-line-edge::before, .fit-line-between::before, .fit-line-below::before { background: var(--sun); }
.fit-line-above::before { background: var(--danger-ink); }
.fit-length { margin: 0; color: var(--muted); font-size: 15px; }
.fit-notes li { padding-left: 18px; position: relative; font-size: 15px; color: #3a3d42; }
.fit-notes li::before { content: "•"; position: absolute; left: 4px; color: var(--blue-ink); font-weight: 800; }
.fit-pick-msg { margin: 0; font-weight: 700; color: var(--danger-ink); }

/* Try It On Me */
.tryon-form { display: grid; gap: 14px; }
.tryon-warn { background: var(--pink-soft); }
.tryon-warn .ico { color: var(--pink); margin-top: 2px; }
.tryon-garments { border: 0; margin: 0; padding: 0; min-width: 0; }
.tryon-garments legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.tryon-garment-list { display: flex; gap: 8px; overflow-x: auto; padding: 3px; }
.tryon-garment { position: relative; flex: none; }
.tryon-garment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.tryon-garment .ph { position: relative; display: grid; width: 64px; height: 80px; border-radius: var(--r-s); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.tryon-garment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tryon-garment input:checked + .ph { box-shadow: 0 0 0 3px var(--blue); }
.tryon-garment input:focus-visible + .ph { outline: 3px solid var(--blue); outline-offset: 3px; }
.tryon-pick { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.tryon-pick small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; }
.tryon-preview { position: relative; display: grid; width: 84px; height: 108px; border-radius: var(--r-m); overflow: hidden; color: #f6a6bd; background: var(--pink-soft); }
.tryon-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tryon-file { position: relative; overflow: hidden; }
.tryon-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.tryon-file:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.tryon-consent { padding: 12px; border-radius: var(--r-m); background: var(--canvas); }
.tryon-progress { display: grid; justify-items: center; gap: 12px; padding: 24px 8px 12px; text-align: center; }
.tryon-progress p { margin: 0; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--pink-soft); border-top-color: var(--pink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { display: block; width: min(320px, 100%); height: 8px; border-radius: var(--r-pill); background: var(--canvas); overflow: hidden; }
.bar i { display: block; height: 100%; width: 4%; background: var(--pink); border-radius: inherit; transition: width .8s ease; }
.tryon-result { display: grid; gap: 10px; outline: none; }
.tryon-result figure { margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--canvas); }
.tryon-result img { width: 100%; max-height: 62vh; object-fit: contain; background: var(--canvas); }
.tryon-result figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; font-size: 13.5px; font-weight: 700; color: #8f1a3d; background: var(--pink-soft); }
.tryon-result .small { margin: 0; font-size: 14px; }
.tryon-deleted { display: grid; gap: 10px; }

/* the assistant's tool buttons inside the chat */
.msg-tool { align-self: flex-start; display: flex; align-items: center; gap: 12px; max-width: 88%; min-height: 56px; margin: 2px 0 6px; padding: 10px 16px 10px 10px; border: 0; border-radius: var(--r-l); text-align: left; text-decoration: none; color: var(--ink); font: inherit; line-height: 1.25; cursor: pointer; }
.msg-tool-size { background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun); }
.msg-tool-tryon { background: var(--pink-soft); box-shadow: inset 0 0 0 2px #f6a6bd; }
.msg-tool-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; }
.msg-tool-size .msg-tool-ico { background: var(--sun); }
.msg-tool-tryon .msg-tool-ico { background: var(--pink); color: #fff; }
.msg-tool-text { display: grid; min-width: 0; }
.msg-tool-text strong { font-size: 16px; }
.msg-tool-text small { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg-tool:hover { filter: brightness(.97); }

/* ------------------------------------------------------------------ cart, checkout, review, order */
.box { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: 16px; }
@media (min-width: 640px) { .box { padding: 22px; } }
.cart-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px; background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); align-items: start; }
.cart-item .thumb { position: relative; width: 80px; aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden; background: var(--canvas); }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-mid { display: grid; gap: 2px; min-width: 0; }
.cart-mid > a { color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; }
.cart-mid small { color: var(--muted); font-size: 14px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cart-line strong { font-size: 17px; }
.cart-remove { border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 15px; min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin: 6px 0 14px; padding: 14px 16px; background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.cart-total strong { font-size: 22px; }
.cart-note { text-align: center; color: var(--muted); font-size: 15px; }

.progress { list-style: none; display: flex; gap: 8px; margin: 6px 0 4px; padding: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.progress li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--white); }
.progress li > span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line-soft); color: var(--ink); font-size: 13px; }
.progress [aria-current] { color: var(--blue-ink); box-shadow: inset 0 0 0 2px var(--blue); }
.progress [aria-current] > span { background: var(--blue); color: #fff; }
.progress .is-done > span { background: var(--green); color: #fff; }

.co-summary { margin: 0 0 14px; }
.co-summary ul { list-style: none; margin: 0; padding: 0; }
.co-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.co-summary .tot { border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 10px; font-weight: 800; font-size: 17px; }
.co-edit { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 16px; padding: 0; }
.field small { color: var(--muted); font-size: 14px; }
.opt-label { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: var(--tap); padding: 12px 14px; border: 0; border-radius: var(--r-m); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 2px var(--blue); }
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: grid; gap: 2px; padding: 14px 16px 14px 48px; border-radius: var(--r-m); background: var(--canvas); position: relative; min-height: 56px; }
.choice > span::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--muted); }
.choice small { color: var(--muted); font-size: 14px; font-weight: 400; }
.choice input:checked + span { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.choice input:checked + span::before { box-shadow: inset 0 0 0 6px var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice.is-off { cursor: not-allowed; opacity: .55; }
.choice-note { font-style: normal; font-size: 13px; font-weight: 700; color: var(--danger-ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; padding: 4px 0; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.small-note { font-size: 15px; margin: 6px 0 0; }
.done { text-align: center; background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: 24px 18px 8px; margin-top: 8px; }
.done-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; }
.done .lead { margin-inline: auto; }
.done .code { background: var(--sun-soft); padding: 2px 8px; border-radius: var(--r-s); letter-spacing: .04em; white-space: nowrap; }
.order-box { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: 16px; margin: 14px 0 18px; }
.order-items { list-style: none; margin: 4px 0 10px; padding: 0; }
.order-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.order-items .thumb { position: relative; display: block; width: 48px; aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden; background: var(--canvas); }
.order-items .thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-items small { color: var(--muted); }
.order-items-plain li { grid-template-columns: 1fr; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin: 6px 0 0; }
.order-total strong { font-size: 21px; }
.status { margin: 0 0 6px; }
.review-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: 15px; background: var(--canvas); border-radius: var(--r-m); padding: 14px; }
.review-facts dt { color: var(--muted); font-weight: 600; }
.review-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .review-facts { grid-template-columns: 1fr; gap: 0; } .review-facts dd { margin-bottom: 10px; } }
.wa-box { display: grid; gap: 6px; margin: 16px 0; }

/* ------------------------------------------------------------------ how it works, info pages */
.how { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: 20px 16px; }
@media (min-width: 640px) { .how { padding: 28px; } }
.how-sub { color: var(--muted); margin: 4px 0 14px; }
.steps { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; } }
.steps li { position: relative; display: grid; gap: 2px; padding: 14px 14px 14px 64px; border-radius: var(--r-m); background: var(--canvas); }
.steps strong { font-size: 17px; }
.steps li > span:not(.step-n) { color: #3a3d42; font-size: 15px; }
.step-n { position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 600; font-size: 19px; }
.steps li:nth-child(2) .step-n { background: var(--pink); }
.steps li:nth-child(3) .step-n { background: var(--sun); color: var(--ink); }
.steps li:nth-child(4) .step-n { background: var(--green); }
.prose { background: var(--white); border-radius: var(--r-l); box-shadow: var(--shadow-1); padding: 20px 18px; margin-top: 16px; }
@media (min-width: 640px) { .prose { padding: 28px 32px; } }
.prose .h-page { margin-top: 0; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 26px 0 6px; }
.prose p { max-width: 68ch; }
.facts { margin: 0; }
.facts dt { font-weight: 700; margin-top: 14px; }
.facts dd { margin: 2px 0 0; color: #3a3d42; }

/* ------------------------------------------------------------------ footer */
.foot { margin-top: 36px; background: var(--white); border-top: 1px solid var(--line-soft); color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; padding: 28px 0 16px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin: 4px 0 0; color: var(--muted); font-size: 15px; max-width: 36ch; }
.foot-note { font-weight: 600; color: var(--green) !important; }
.foot h2 { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a, .foot li .linkish { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; font-size: 15px; }
.foot li a:hover, .foot li .linkish:hover { color: var(--blue-ink); text-decoration: underline; }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line-soft); padding: 14px 0 20px; font-size: 14px; color: var(--muted); }
.foot-legal a { color: var(--muted); display: inline-flex; min-height: 40px; align-items: center; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }

/* ------------------------------------------------------------------ bottom tab bar (mobile, one-hand use) */
.tabbar { display: none; }
@media (max-width: 899px) {
  html { scroll-padding-bottom: calc(var(--tabbar-h) + 72px + env(safe-area-inset-bottom)); } /* focused fields never hide behind the bars */
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body:has(.buybar:not([hidden])) { padding-bottom: calc(var(--tabbar-h) + 64px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--white); box-shadow: 0 -1px 0 var(--line-soft), 0 -6px 16px -10px rgba(28, 30, 33, .3); }
  .tab { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; padding: 6px 2px 4px; }
  .tab .ico { width: 26px; height: 26px; }
  .tab[aria-current] { color: var(--blue-ink); }
  .tab[aria-current]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
  .tab[aria-current] .ico path:first-child { fill: var(--blue-soft); }
  .tab-ico { position: relative; display: inline-grid; }
  .tab .count { top: -6px; right: -12px; }
  .chat-fab { display: none !important; }  /* the Chat tab replaces the floating button on phones */
}

/* ------------------------------------------------------------------ chat */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: var(--shadow-2); }
.chat-fab:hover { background: var(--blue-press); }
.is-checkout .chat-fab { display: none; } /* nothing covers the checkout controls; chat stays in the footer */
.chat { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 24px)); height: min(660px, calc(100vh - 40px)); }
.chat-panel { height: 100%; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 24px 60px -18px rgba(28, 30, 33, .45), 0 0 0 1px var(--line-soft); }
@media (max-width: 899px) {
  .chat { inset: 0; width: 100%; height: 100%; height: 100dvh; }
  .chat-panel { border-radius: 0; box-shadow: none; }
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 14px; background: var(--white); border-bottom: 1px solid var(--line-soft); }
.chat-avatar { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; flex: none; }
.chat-avatar .ico path { fill: currentColor; stroke: none; }
.chat-avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #31a24c; box-shadow: 0 0 0 2px var(--white); }
.chat-who { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.chat-who strong { font-size: 17px; }
.chat-who span { font-size: 14px; color: var(--muted); }
.chat-x { display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: var(--canvas); color: var(--ink); }
.chat-x:hover { background: var(--line-soft); }
.chat-context { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--blue-soft); }
.chat-context-img { position: relative; width: 40px; height: 48px; border-radius: var(--r-s); overflow: hidden; flex: none; }
.chat-context-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.chat-context-text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.chat-context-text small { color: var(--muted); font-size: 13px; }
.chat-context-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-context-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); flex: none; }
.chat-context-x:hover { background: rgba(255, 255, 255, .6); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--white); overscroll-behavior: contain; }
.msg { max-width: 82%; padding: 9px 14px; border-radius: 20px; font-size: 16px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg a { color: inherit; text-decoration: underline; }
.msg-user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg-bot, .msg-agent { align-self: flex-start; background: var(--canvas); color: var(--ink); border-bottom-left-radius: 6px; }
.msg-agent { background: var(--sun-soft); }
.msg-who { display: block; font-size: 13px; font-weight: 700; color: #8a5a00; margin-bottom: 2px; }
.msg-system { align-self: center; max-width: 92%; background: none; color: var(--muted); font-size: 14px; text-align: center; padding: 4px 8px; }
.msg-typing { align-self: flex-start; background: var(--canvas); padding: 13px 16px; border-radius: 20px; display: inline-flex; gap: 5px; }
.msg-typing i { width: 8px; height: 8px; border-radius: 50%; background: #90949c; animation: blink 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .2s; }
.msg-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-quick { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 2px; background: var(--white); scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex: none; min-height: 40px; border: 0; background: var(--blue-soft); color: var(--blue-ink); border-radius: var(--r-pill); padding: 0 14px; font-size: 15px; font-weight: 700; }
.chat-quick button:hover { background: #d6e6fd; }
.chat-quick [data-human] { background: var(--sun-soft); color: #6b4a00; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; background: var(--white); }
.chat-form textarea { flex: 1; resize: none; min-height: var(--tap); max-height: 120px; border: 0; border-radius: 24px; padding: 12px 16px; font-size: 16px; background: var(--canvas); }
.chat-form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.chat-form button { flex: none; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.chat-form button:disabled { background: var(--line); }
.chat-fine { margin: 0; padding: 0 14px calc(10px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted); background: var(--white); }
.chat-fine a { color: var(--muted); }
html.chat-open { overflow: hidden; }
@media (min-width: 900px) { html.chat-open:not(.modal-open) { overflow: auto; } }
@media (max-width: 899px) { html.filters-open { overflow: hidden; } }
body.is-checkout:has(.form input:focus, .form textarea:focus) .tabbar { display: none; } /* the on-screen keyboard never pushes the tab bar over a field */

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