/* "Little Wardrobe" look (2026-10-24): warm cream, deep green ink, coral, sun yellow. Light + dark. Mobile-first. */
/* Text that must stay readable uses --ink2 (axe colour-contrast, WCAG AA); --ink3 is for icons and decoration only.
   --coral is for large bold text only (headline); small coral text uses --rose, which passes AA on every surface. */
/* Nunito (display) and Nunito Sans (text), SIL Open Font License 1.1 (licences in /fonts/OFL.txt), self-hosted: no request to Google.
   Variable weights, latin + latin-ext subsets (covers English and Portuguese). */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600 900; font-display: swap; src: url(/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600 900; font-display: swap; src: url(/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/nunito-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/nunito-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #FFF7EE; --bg2: #FBEBDD; --card: #ffffff; --ink: #1F3B36; --ink2: #566A65; --ink3: #93A39E; --ink-soft: #566A65;
  --line: rgba(31,59,54,.12); --glass: rgba(255,247,238,.82); --scrim: rgba(31,59,54,.32);
  --accent: #1F3B36; --accent-ink: #FFF7EE; --rose: #A83A24; --rose-soft: rgba(168,58,36,.10); --coral: #C2452D;
  --green: #24704C; --green-soft: rgba(36,112,76,.10); --amber: #855600; --amber-soft: rgba(133,86,0,.10);
  --sun: #F4C653; --sun-ink: #1F3B36; --peach: #F8D3C0; --sage: #CFE3D6;
  --shadow-sm: 0 1px 2px rgba(31,59,54,.05), 0 2px 8px rgba(31,59,54,.05);
  --shadow: 0 2px 6px rgba(31,59,54,.05), 0 12px 32px rgba(31,59,54,.09);
  --r: 22px; --ease: cubic-bezier(.2,.8,.2,1);
  --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Nunito', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13221F; --bg2: #1D332E; --card: #1A2D29; --ink: #FFF7EE; --ink2: #B4C4BE; --ink3: #6F827D; --ink-soft: #B4C4BE;
    --line: rgba(255,247,238,.12); --glass: rgba(19,34,31,.82); --scrim: rgba(0,0,0,.55);
    --accent: #F4C653; --accent-ink: #1F3B36; --rose: #FF9A80; --rose-soft: rgba(255,154,128,.14); --coral: #FF9A80;
    --green: #7DD3A5; --green-soft: rgba(125,211,165,.14); --amber: #F4C653; --amber-soft: rgba(244,198,83,.14);
    --peach: #3B2F28; --sage: #2C4A42;
    --shadow-sm: none; --shadow: 0 12px 40px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 500; color: var(--ink); background: var(--bg); line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, .wordmark, .price, .original .big, .busy-title, .sheet-head h2 { font-family: var(--font-display); }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.link { background: none; border: 0; padding: 0; color: var(--rose); font-weight: 700; cursor: pointer; }

/* Frosted sticky header */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px; background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.bar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.brand .sun { fill: var(--sun); stroke: none; }
.brand .hanger { stroke: var(--sun-ink); stroke-width: 4.4; }
.wordmark { font-size: 25px; font-weight: 900; letter-spacing: -.02em; line-height: 1; text-transform: lowercase; padding-bottom: 2px; }
.hero h1 .soft { color: var(--coral); }

/* Segmented control */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 14px; font-size: 13.5px; font-weight: 700; color: var(--ink2); cursor: pointer; border-radius: 99px; transition: color .25s; white-space: nowrap; }
.seg button[aria-checked="true"] { color: var(--accent-ink); }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--accent); border-radius: 99px; box-shadow: 0 1px 3px rgba(31,59,54,.18); transition: transform .35s var(--ease), width .35s var(--ease); }
.seg[data-active="women"] .seg-thumb { transform: translateX(100%); }
/* With JS the thumb takes the active button's measured box, so it still fits when a long label ("Bebê e Infantil") makes the columns unequal. */
.seg.measured .seg-thumb { left: 0; width: var(--tw); transform: translateX(var(--tx)); }

main { max-width: 1280px; margin: 0 auto; padding: 0 16px 56px; }

/* Hero */
.hero { position: relative; isolation: isolate; text-align: center; padding: clamp(44px, 11vh, 110px) 0 28px; transition: padding .5s var(--ease); }
/* soft wardrobe shapes behind the hero, kept to the edges so no text sits on them */
@media (min-width: 900px) {
  .hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
  .hero::before { width: 220px; height: 220px; right: -40px; top: 24px; background: var(--peach); }
  .hero::after { width: 150px; height: 150px; left: -30px; top: 210px; background: var(--sage); }
  body.has-results .hero::before, body.has-results .hero::after { display: none; }
}
.hero h1, .hero .sub { display: grid; }
.hero .hv { grid-area: 1 / 1; display: block; }
#hero:not([data-audience="women"]) .hv[data-hero="women"], #hero[data-audience="women"] .hv[data-hero="kids"] { visibility: hidden; }
.hero h1 { font-size: clamp(40px, 10.4vw, 86px); line-height: 1.02; font-weight: 900; letter-spacing: -.025em; margin: 0 0 16px; text-wrap: balance; }
.hero .sub { color: var(--ink2); font-size: clamp(17px, 2.4vw, 21px); font-weight: 600; margin: 0 auto 30px; max-width: 34ch; }
body.has-results .hero { padding: 20px 0 12px; }
body.has-results .hero h1, body.has-results .hero .sub, body.has-results .suggest, body.has-results .trust { display: none; }

/* One search bar */
.search { position: relative; display: flex; align-items: center; gap: 4px; max-width: 680px; margin: 0 auto; background: var(--card); border: 2px solid var(--peach);
  border-radius: 99px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s var(--ease); }
.search:focus-within { box-shadow: 0 0 0 4px var(--rose-soft), var(--shadow); }
.ico-search { width: 20px; height: 20px; color: var(--ink3); flex: none; }
.search input[type=text] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 17px var(--font); color: var(--ink); padding: 12px 8px; }
.search input::placeholder { color: var(--ink2); font-weight: 500; }
.kind { flex: none; font-size: 11.5px; font-weight: 600; color: var(--rose); background: var(--rose-soft); padding: 4px 8px; border-radius: 99px; animation: pop .25s var(--ease); }
.icon-btn, .go { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; border: 0; transition: transform .15s, background .2s; }
.icon-btn { color: var(--ink2); background: transparent; }
.icon-btn:hover { background: var(--bg2); color: var(--ink); }
/* photo input stays keyboard-focusable but invisible; the label shows the focus ring */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon-btn:has(.vh:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }
.icon-btn svg, .go svg { width: 22px; height: 22px; }
.go { background: var(--accent); color: var(--accent-ink); }
.go:active, .icon-btn:active { transform: scale(.94); }
.go[disabled] { opacity: .5; }
.photo-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 6px 8px 6px 6px; background: var(--bg2); border-radius: 14px; font-size: 13px; color: var(--ink2); animation: pop .3s var(--ease); }
.photo-chip img { width: 36px; height: 36px; object-fit: cover; border-radius: 9px; }
.photo-chip button { border: 0; background: none; cursor: pointer; color: var(--ink3); padding: 4px 6px; }
.fine { font-size: 12px; color: var(--ink2); max-width: 560px; margin: 10px auto 0; }
.fine a { color: var(--ink2); }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px auto 0; padding: 0; font-size: 13px; color: var(--ink2); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.trust .trust-key { flex-basis: 100%; justify-content: center; order: -1; font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.trust .trust-key::before { width: 18px; height: 18px; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%231F3B36' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat; }
.trust a { color: var(--ink2); }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
body:not(.has-results) #suggest { display: grid; }
#suggest > .hv { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.suggest button { border: 1.5px solid var(--sage); background: var(--card); padding: 9px 15px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; transition: all .2s; }
.suggest button:hover { background: var(--sage); }

.status { text-align: center; font-size: 14px; color: var(--ink2); margin: 6px 0 14px; animation: fade .3s; }
.status.error { color: var(--rose); }

/* Original item */
.original { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; max-width: 760px; margin: 0 auto 26px; padding: 14px; background: var(--bg2); border-radius: var(--r); animation: rise .5s var(--ease); }
.original img { width: 88px; height: 110px; object-fit: cover; border-radius: 14px; background: var(--line); }
.original .eyebrow { font-size: 12px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }
.original .big { font-size: 22px; font-weight: 900; letter-spacing: -.025em; margin: 2px 0; }
.original .t { font-size: 14px; color: var(--ink); }
.original .m { font-size: 13px; color: var(--ink2); margin-top: 4px; }

/* Toolbar */
.toolbar { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; margin-bottom: 6px; background: linear-gradient(var(--bg) 70%, transparent); }
.summary { font-size: 14px; color: var(--ink2); }
.summary b { color: var(--ink); font-weight: 600; }
.pill-btn { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s; }
.pill-btn:active { transform: scale(.97); }
.pill-btn svg { width: 18px; height: 18px; }
.pill-btn .count { background: var(--rose); color: var(--bg); font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; } }
.card { display: flex; flex-direction: column; animation: rise .5s var(--ease) both; }
.media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--bg2); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), opacity .4s; opacity: 0; }
.media img.loaded { opacity: 1; }
.card:hover .media img { transform: scale(1.035); }
.flag { position: absolute; top: 10px; left: 10px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; }
.card.cheapest .flag { background: var(--sun); color: var(--sun-ink); }
.body { padding: 12px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.row1 { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.store { font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rating { color: var(--ink2); white-space: nowrap; }
.rating .star { color: var(--amber); }
.title { font-size: 14px; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.title:hover { text-decoration: underline; text-underline-offset: 2px; }
.price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.price { font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.old { font-size: 13px; color: var(--ink2); }
.approx { font-size: 11px; color: var(--ink2); }
.save { font-size: 12.5px; font-weight: 700; color: var(--green); }
.save.more { color: var(--ink2); font-weight: 500; }
.material { font-size: 12.5px; color: var(--ink); }
.material.unknown { color: var(--ink2); }
.material small { color: var(--ink2); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--bg2); color: var(--ink2); }
.badge.best-fabric { background: var(--green-soft); color: var(--green); }
/* Fabric line + grade (comfort / breathability from the listed composition; see /how-fabric-grades-work) */
.fabric { display: flex; flex-direction: column; gap: 3px; }
.grade-pill { display: inline-flex; align-items: center; gap: 3px; border: 0; margin: 2px 0 0; padding: 2px 9px; border-radius: 99px; background: var(--sage); color: var(--ink); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; min-height: 24px; }
.grade-pill b { font-weight: 900; }
.grade-pill.none { background: none; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.grade-pill.static { cursor: default; font-size: 13px; }
.grade-pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fabric-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink2); }
.fabric-notes li { line-height: 1.35; }
.fabric-notes a { color: var(--rose); }
.fab-src, .fab-msg { margin: 0; font-size: 12px; line-height: 1.35; color: var(--ink2); }
.fab-src a, .fab-msg a { color: var(--rose); font-weight: 700; }
.fab-src .tick { font-weight: 900; color: var(--green); }
.pill-btn.fab-check { align-self: flex-start; margin: 2px 0 0; padding: 3px 11px; min-height: 28px; font-size: 12px; font-weight: 700; box-shadow: none; color: var(--ink); }
.pill-btn.fab-check:disabled { cursor: default; color: var(--ink2); }
.pill-btn.fab-check:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.card.kids .fabric { margin: 1px 0 3px; }
.card.kids .material { font-size: 14px; font-weight: 700; }
.card.kids .material.unknown { font-weight: 600; font-size: 13px; }
.card.kids .fabric-notes { font-size: 12.5px; color: var(--ink); }
.card.kids .fabric-notes li.kidsSoft { color: var(--green); font-weight: 700; }
#fabricBody p { font-size: 14.5px; line-height: 1.5; margin: 8px 0; }
#fabricBody a { color: var(--rose); }
#fabricBody .fab-item { background: var(--bg2); border-radius: 14px; padding: 10px 12px; }
.badge.top-rated, .badge.well-reviewed { background: var(--amber-soft); color: var(--amber); }
.badge.preowned { background: var(--bg2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.badge.oos { background: var(--rose-soft); color: var(--rose); }
.card.oos img { opacity: .55; }
.size-link { align-self: flex-start; border: 0; background: none; padding: 2px 0; font-size: 12.5px; color: var(--rose); cursor: pointer; font-weight: 500; }

/* Skeletons */
.skel .media { background: linear-gradient(100deg, var(--bg2) 30%, var(--line) 50%, var(--bg2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
.skel .line { height: 12px; border-radius: 6px; margin-top: 8px; background: var(--bg2); }
.skel .line.s { width: 40%; } .skel .line.m { width: 70%; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; transition: opacity .3s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; background: var(--card); border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.18); transform: translateY(105%); transition: transform .45s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.sheet.open { transform: none; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 6px; }
.sheet-head h2 { font-size: 20px; margin: 0; letter-spacing: -.02em; }
.sheet-body { overflow-y: auto; padding: 4px 20px 16px; -webkit-overflow-scrolling: touch; }
.sheet-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin: 18px 0 10px; font-weight: 600; }
.sheet-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.primary { width: 100%; border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 15px; font-size: 16px; font-weight: 800; cursor: pointer; }
@media (min-width: 900px) {
  .sheet { left: auto; top: 0; width: 400px; max-height: none; border-radius: 0; transform: translateX(105%); box-shadow: -10px 0 40px rgba(0,0,0,.12); }
  .sheet.wide { width: min(720px, 92vw); }
  .grab { display: none; }
  .sheet-head { padding-top: 22px; }
}
.options { display: grid; gap: 2px; }
.opt { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; cursor: pointer; font-size: 15px; border: 0; background: none; text-align: left; }
.opt:hover { background: var(--bg2); }
.opt[aria-checked="true"] { background: var(--bg2); font-weight: 600; }
.opt[aria-checked="true"]::after { content: '✓'; color: var(--rose); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 8px 13px; font-size: 14px; cursor: pointer; transition: all .2s; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip .n { opacity: .72; margin-left: 5px; font-size: 12px; }

/* Size guide tables */
.guide-meta { font-size: 13px; color: var(--ink2); margin: 0 0 6px; }
.guide-meta a { color: var(--rose); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 8px 0 18px; }
.tbl-wrap table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.tbl-wrap td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl-wrap tr:first-child td { font-weight: 600; background: var(--bg2); }
.tbl-wrap td:first-child { font-weight: 600; position: sticky; left: 0; background: var(--card); }
.tbl-wrap tr:first-child td:first-child { background: var(--bg2); }
.guide-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.empty { grid-column: 1 / -1; text-align: center; color: var(--ink2); padding: 50px 0; }
.foot { max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; text-align: center; font-size: 12px; color: var(--ink2); }
/* footer "Featured on" badge strip: compact, centred, low weight; wraps on narrow screens */
.featured { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.featured-label { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; }
.badges a { display: block; line-height: 0; border-radius: 8px; opacity: .8; transition: opacity .2s var(--ease); }
.badges a:hover, .badges a:focus-visible { opacity: 1; }
.badges img { display: block; height: 40px; width: auto; max-width: 100%; }
.dropzone { position: fixed; inset: 12px; z-index: 60; border: 2px dashed var(--rose); border-radius: 28px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: grid; place-items: center; font-size: 22px; font-weight: 700; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* capacity fallback ("Elsie is busy") */
.busy { grid-column: 1 / -1; text-align: center; padding: 40px 0 30px; }
.busy-title { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.busy-sub { color: var(--ink2); font-size: 14px; margin: 0; }
.busy-chips { margin-top: 16px; }
body.has-results .busy-chips { display: flex; }

/* Market switcher (US / Brasil / UK) next to the audience control */
.bar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.market { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23566A65' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center / 9px 6px;
  color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; border-radius: 99px; padding: 10px 26px 10px 13px; cursor: pointer; min-height: 38px; }
.market:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.inst { font-size: 12px; color: var(--ink2); }
@media (max-width: 420px) {
  .bar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .brand { gap: 6px; }
  .brand svg { width: 28px; height: 28px; }
  .wordmark { font-size: 21px; }
  .seg button { padding: 7px 9px; font-size: 12.5px; }
  .market { padding-left: 10px; padding-right: 22px; background-position: right 8px center; }
}

/* Privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 28px 20px 64px; line-height: 1.55; }
.doc h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 900; letter-spacing: -.02em; margin: 8px 0 6px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--ink); font-size: 16px; }
.doc ul { padding-inline-start: 22px; }
.doc .meta { color: var(--ink2); font-size: 14px; }
.doc .langs { display: flex; gap: 14px; margin: 8px 0 18px; font-size: 15px; }
.doc a { color: var(--rose); }
.doc section + section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.doc code { font-size: 14px; background: var(--bg2); padding: 1px 5px; border-radius: 6px; }
.doc section { scroll-margin-top: 72px; }
/* Static "how it works" block on the homepage (SEO copy) */
.about { max-width: 640px; margin: 8px auto 0; padding: 0 20px; text-align: center; color: var(--ink2, #555); font-size: 14px; line-height: 1.6; }
.about h2 { font-size: 16px; font-weight: 800; margin: 0 0 6px; color: var(--ink, #111); }
.about p { margin: 0 0 10px; }
.about a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.about[hidden] { display: none; }

/* photo search: look-alikes without a price + one-tap text search */
.lens-hint { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--card, #fff); border: 1px solid var(--line, #e7e2da); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.lens-hint p { margin: 0; flex: 1 1 240px; }
.lens-hint .sub { color: var(--ink2); font-size: .9em; }
.lens-hint button { border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; background: var(--accent); color: var(--accent-ink); }
.lens-hint button.ghost { background: transparent; color: var(--ink, #1d1b19); border: 1px solid var(--line, #e7e2da); }
.card.no-price .price { font-size: .95em; font-weight: 600; color: var(--ink2); }

/* Ranking line, share bar, match labels, price age, honest no-match (2026-10-19) */
.rank-line { margin: -4px 0 8px; font-size: 12.5px; color: var(--ink2); }
.rank-line a { color: var(--rose); font-weight: 600; }
.rank-line .aff-line { display: block; margin-top: 2px; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.share-label { font-size: 12.5px; color: var(--ink2); }
.share-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
@media (max-width: 420px) { .share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .share-btns { flex-wrap: nowrap; overflow-x: auto; min-width: 0; scrollbar-width: none; } }
.share-btn svg { width: 16px; height: 16px; }
.share-link { flex: 1 1 100%; font: 13px var(--font); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--ink); }
.match { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--bg2); color: var(--ink2); }
.match.same { background: var(--green-soft); color: var(--green); }
.checked { font-size: 12px; color: var(--ink2); }
.nomatch, .hidden-stores { grid-column: 1 / -1; }
.nomatch { text-align: center; padding: 18px 0 8px; }
.nomatch .pill-btn { margin-top: 8px; }
.hidden-stores { font-size: 13px; color: var(--ink2); }

/* Kids' age filter row above the results (2026-10-20). One scrollable line on phones. */
.age-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; min-width: 0; }
.age-label { font-size: 12.5px; color: var(--ink2); flex: none; }
.age-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; min-width: 0; }
.age-chips::-webkit-scrollbar { display: none; }
.age-chips .chip { flex: none; padding: 6px 11px; font-size: 13px; min-height: 36px; }
.sheet-note { margin: 6px 0 0; font-size: 12.5px; color: var(--ink2); }

/* Item sheet (Yuka-style): photo, name, store, price, fabric score, fibre rows, better alternatives */
.item-sheet .sheet-head { padding-bottom: 2px; }
.item-head-k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.item-top { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0 14px; }
.item-img { flex: 0 0 96px; height: 96px; border-radius: 16px; overflow: hidden; background: var(--bg2); }
.item-img img, .alt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-meta { min-width: 0; }
.item-store { font-size: 13px; font-weight: 700; color: var(--ink2); }
.item-title { font-size: 18px; line-height: 1.25; margin: 2px 0 6px; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.item-price s { font-size: 14px; color: var(--ink3); font-weight: 600; }
.item-score { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.is-left { display: flex; flex-direction: column; }
.is-k { font-size: 13px; color: var(--ink2); font-weight: 700; }
.is-label { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.is-right { display: flex; align-items: center; gap: 10px; }
.is-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.is-num small { font-size: 14px; color: var(--ink2); font-weight: 700; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; background: #9AA6A2; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.dot.big { width: 22px; height: 22px; }
.lv-excellent.dot { background: #1E8449; } .lv-good.dot { background: #6BAF3A; } .lv-poor.dot { background: #E07B1F; } .lv-bad.dot { background: #D23A2A; }
.item-sec-head { display: flex; justify-content: space-between; align-items: baseline; }
.item-sheet h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin: 20px 0 8px; font-weight: 700; }
.item-sheet .item-part { margin-top: 14px; }
.fibre-list, .alt-list { list-style: none; margin: 0; padding: 0; }
.fibre-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fibre-row:last-child { border-bottom: 0; }
.fr-main { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.fr-name { flex: 1; }
.fr-pct { font-family: var(--font-display); font-weight: 800; }
.fr-verdict { margin: 2px 0 0 22px; font-size: 13.5px; color: var(--ink2); }
.fr-why { margin: 6px 0 0 22px; font-size: 13px; color: var(--ink2); }
.fr-why p { margin: 0 0 4px; }
.fr-src a { color: var(--rose); }
.alt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.alt-list li:last-child .alt { border-bottom: 0; }
.alt-img { flex: 0 0 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--bg2); }
.alt-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.alt-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alt-store { font-size: 12.5px; color: var(--ink2); }
.alt-price { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.alt-price small { font-family: var(--font); font-weight: 600; color: var(--ink2); font-size: 12.5px; }
.alt-score { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; }
.item-how { margin: 18px 0 4px; font-weight: 700; }
.item-how a { color: var(--rose); }
.item-shop { display: block; text-align: center; text-decoration: none; }
.alt:focus-visible, .item-sheet a:focus-visible, .item-sheet button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }
