:root {
  --ground: #f8f6fd;
  --ink: #1d1942;
  --ink-soft: #5b5780;
  --line: #cdc7e6;
  --teal: #1f4f59;
  --teal-text: #1f5f66;
  --pink: #f4c1d6;
  --pink-strong: #d98fb3;
  --surface: #fff;
  --surface-2: #f4f2fa;
  --search-bg: #fff;
  --search-icon: #1f4f59;
  --placeholder: #3f4a5f;
  --tint: rgb(255 255 255 / 0.55);
  --glass: rgb(255 255 255 / 0.6);
  --bar-bg: rgb(255 255 255 / 0.92);
  --scrim: rgb(29 25 66 / 0.38);
  --edge: #a8a4c8;
  --edge-soft: #d9d2f2;
  --edge-strong: #77739e;
  --ink-faint: #6b6786;
  --link-alt: #2b2a8c;
  --hot: #c0265f;
  --hot-deep: #b0124f;
  --stars: #8a5a00;
  --low-bg: #e3f1e8;
  --low-ink: #1f5f3f;
  --prime-bg: #e4eefb;
  --prime-ink: #1b4f8f;
  --wash: 143 141 222;
  --wash-2: 170 164 232;
  --look-bg: linear-gradient(135deg, #ece2ff 0%, #f7e3f6 55%, #ffdfeb 100%);
  --look-edge: #e3d3f4;
  --look-kicker: #8a4f9e;
  --rate-happy: #1f5f66;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1942' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--ground);
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  /* A soft periwinkle wash at the edges, after the mockup's watercolour border. */
  background:
    radial-gradient(40rem 22rem at -6% 100%, rgb(var(--wash) / 0.28), transparent 70%),
    radial-gradient(34rem 20rem at 106% 100%, rgb(var(--wash) / 0.22), transparent 70%),
    radial-gradient(26rem 30rem at -8% 30%, rgb(var(--wash-2) / 0.16), transparent 70%),
    radial-gradient(26rem 30rem at 108% 40%, rgb(var(--wash-2) / 0.16), transparent 70%),
    var(--ground);
  background-attachment: fixed;
}
button, input, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- header ---- */
.top {
  display: flex; align-items: center; gap: clamp(14px, 3vw, 36px);
  padding: 14px clamp(16px, 4vw, 44px);
  color: #fff; background: #1f505a url("/header-floral.webp") center / 1200px auto repeat;
  position: relative; margin: 0; box-shadow: 0 1px 0 rgb(0 0 0 / 0.1);
}
.brand { display: flex; align-items: center; gap: clamp(6px, 0.8vw, 12px); text-decoration: none; color: #fff; padding-right: clamp(14px, 3vw, 36px); border-right: 2px solid rgb(255 255 255 / 0.75); }
.brand img { display: block; width: auto; }
.brand .mascot { height: clamp(48px, 5.4vw, 72px); margin: -6px 0; }
.brand .wordmark { height: clamp(30px, 3.5vw, 46px); }
.search { flex: 1; display: flex; align-items: center; gap: 12px; background: var(--search-bg); color: var(--search-icon); border-radius: 999px; padding: 0 clamp(14px, 1.8vw, 22px); height: clamp(42px, 4.4vw, 54px); min-width: 0; box-shadow: 0 1px 0 rgb(0 0 0 / 0.15); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: clamp(16px, 1.6vw, 20px); color: var(--ink); }
.search input::placeholder { color: var(--placeholder); }
.search:focus-within { outline: 3px solid var(--pink); }

/* ---- tabs ---- */
.tabs { display: flex; justify-content: center; gap: clamp(18px, 6vw, 96px); margin: 0 clamp(16px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; font-size: clamp(17px, 1.7vw, 21px); padding: 14px clamp(8px, 1.2vw, 16px) 12px; cursor: pointer; border-bottom: 4px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--teal-text); font-weight: 700; border-bottom-color: var(--pink-strong); }

/* ---- layout ---- */
/* The sidebar slides: the column closes to nothing while its contents, held at full width, move off to the left. */
.page { --side: clamp(210px, 23vw, 300px); display: grid; grid-template-columns: var(--side) minmax(0, 1fr); margin: 0 clamp(12px, 2vw, 24px); }
.page.ready { transition: grid-template-columns 0.3s ease; }
.page.side-closed { grid-template-columns: 0px minmax(0, 1fr); }
.filters { overflow: hidden; border-right: 1px solid var(--line); font-family: var(--sans); }
.filters-inner { width: var(--side); padding: 26px clamp(14px, 2vw, 26px) 40px 0; container-type: inline-size; }
.page.ready .filters-inner { transition: transform 0.3s ease, opacity 0.2s ease; }
.page.ready .filters { transition: border-color 0.3s ease; }
.side-closed .filters { border-right-color: transparent; }
.side-closed .filters-inner { transform: translateX(-100%); opacity: 0; }
.scrim { display: none; }
.side-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--edge-strong); background: var(--surface); border-radius: 7px; padding: 9px 12px; font-family: var(--sans); font-size: 15px; cursor: pointer; white-space: nowrap; }
.side-toggle:focus-visible, .side-close:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; }
.side-close { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--edge-soft); border-radius: 999px; background: var(--surface); padding: 4px 12px 4px 9px; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
@media (min-width: 760px) { .side-close { display: none; } }
.filters-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; }
.filters-head h2 { margin-right: auto; }
.filters-head h2 { margin: 0; font-size: clamp(21px, 2vw, 26px); }
.reset { border: 0; background: transparent; padding: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--teal-text); text-decoration: underline; cursor: pointer; }
.group { border-top: 1px solid var(--line); padding: 16px 0 20px; }
.group h3 { margin: 0 0 12px; font-size: 17px; }
.chips { display: grid; gap: 4px; }
/* As many chips per row as fit, so the size pickers reflow with the sidebar instead of squeezing. */
.chips.clothing { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.chips.shoe { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.chips button { height: 30px; border: 1px solid var(--edge); background: var(--surface); border-radius: 7px; cursor: pointer; font-size: 15px; font-variant-numeric: tabular-nums; padding: 0; }
.chips button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink-strong); font-weight: 600; }
.width { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.width select, #sort { border: 1px solid var(--edge-strong); border-radius: 7px; background: var(--surface); padding: 8px 10px; font-family: var(--sans); font-size: 14px; }
.check { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: 16px; cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--edge-strong); border-radius: 5px; background: var(--surface); display: grid; place-content: center; cursor: pointer; }
.check input:checked { background: var(--pink); border-color: var(--pink-strong); }
.check input:checked::after { content: ""; width: 11px; height: 6px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible, .chips button:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; }
.check small { margin-left: auto; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--edge); flex: 0 0 auto; margin-right: -4px; }
.group select.wide { width: 100%; border: 1px solid var(--edge); border-radius: 7px; background: var(--surface); padding: 9px 10px; font-family: var(--sans); font-size: 15px; }
.group .more { border: 0; background: transparent; padding: 6px 0 0; font-family: var(--serif); font-size: 15px; color: var(--link-alt); text-decoration: underline; cursor: pointer; }
.range { display: flex; align-items: center; gap: 10px; }
.money { min-width: 0; }
.money { flex: 1; }
.money input { width: 100%; border: 1px solid var(--edge); border-radius: 7px; background: var(--surface); padding: 9px 12px; font-family: var(--serif); font-size: 17px; }

main { padding: 14px 0 40px clamp(14px, 2vw, 28px); min-width: 0; container-type: inline-size; }
.page.ready main { transition: padding-left 0.3s ease; }
.side-closed main { padding-left: 0; }
.bar { display: flex; align-items: center; gap: 12px; padding: 0 clamp(12px, 2vw, 24px); background: var(--tint); border-bottom: 1px solid var(--line); }
.bar .tabs { flex: 1; border-bottom: 0; background: transparent; margin: 0; }
.bar .side-toggle, .bar #sort { flex: none; }
@media (max-width: 760px) { .bar { flex-wrap: wrap; padding-top: 8px; } .bar .tabs { order: 3; flex-basis: 100%; } .bar #sort { margin-left: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#sort { padding: 10px 12px; font-size: 15px; }
.banner { margin: 14px 0 0; padding: 9px 14px; border-radius: 8px; background: var(--glass); border: 1px dashed var(--edge); font-family: var(--sans); font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.banner strong { color: var(--ink); }
/* Amazon's disclosure: a dark teal strip at the very top of the sticky masthead (always in view), and in the footer. */
.disclosure-bar { margin: 0; padding: 5px 12px; background: #163c45; color: #e3efef; font-family: var(--sans); font-size: 12px; letter-spacing: .01em; text-align: center; }
.summary { margin: 12px 0 0; font-family: var(--sans); font-size: 14.5px; color: var(--ink-soft); }

/* ---- pictures ---- */
.pic { position: relative; display: grid; place-items: center; }
.pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pic > svg { width: 88%; height: auto; max-height: 92%; }
.demo-tag { position: absolute; top: 0; left: 0; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border: 1px dashed var(--edge); border-radius: 5px; padding: 2px 6px; background: rgb(255 255 255 / 0.6); }

/* ---- the first deal, large ---- */
.crumb { font-size: clamp(15px, 1.9cqi, 18px); }
.meta { font-size: clamp(15px, 1.9cqi, 18px); }
.cells { list-style: none; display: flex; margin: 16px 0 0; padding: 0; border: 1px solid var(--edge); background: var(--surface); font-variant-numeric: tabular-nums; }
.cells li { flex: 1; text-align: center; padding: 10px 4px 12px; border-left: 1px solid var(--edge); display: flex; flex-direction: column; line-height: 1.15; }
.cells li:first-child { border-left: 0; }
.cells .s, .cells .p { font-size: clamp(15px, 2.5cqi, 26px); font-weight: 700; }
.cells li.mine { background: var(--pink); }
.cells li.mine .p { font-size: clamp(18px, 3.1cqi, 32px); }
.cells li.out { color: var(--ink-faint); background: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--surface-2) 6px 12px); }
.why { margin: 14px 0 0; font-size: clamp(15.5px, 1.9cqi, 18px); line-height: 1.4; }
.fine { margin: 6px 0 0; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.amazon, .demo-link summary { display: inline-block; margin-top: 12px; font-size: clamp(17px, 2cqi, 20px); color: var(--teal-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; }
.demo-link summary { list-style: none; }
.demo-link summary::-webkit-details-marker { display: none; }
.demo-link p { margin: 8px 0 0; font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.demo-link code { display: block; margin-top: 3px; word-break: break-all; font-size: 12px; color: var(--ink); }

/* ---- the rest ---- */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 24cqi, 230px), 1fr)); gap: clamp(22px, 3.4cqi, 34px) clamp(12px, 2.8cqi, 28px); padding-top: 28px; }
.tile { text-align: center; display: flex; flex-direction: column; align-items: center; }
.tile .pic { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 10px; }
.tile h3 { margin: 0; font-size: clamp(17px, 2.3cqi, 22px); line-height: 1.2; }
.tile .size { font-size: clamp(14.5px, 1.8cqi, 17px); margin-top: 2px; }
.tile .price { font-size: clamp(21px, 2.8cqi, 27px); font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .why { font-size: clamp(13.5px, 1.6cqi, 15px); margin-top: 8px; }
.tile .amazon, .tile .demo-link summary { font-size: 16px; margin-top: 8px; }
.tile .demo-link p { text-align: left; }

.empty { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px; max-width: 640px; }
.empty h2 { margin: 0 0 8px; font-size: 24px; }
.empty p { margin: 0 0 14px; font-family: var(--sans); line-height: 1.5; color: var(--ink-soft); }
.empty button { border: 1px solid var(--ink); background: transparent; border-radius: 8px; padding: 9px 14px; cursor: pointer; font-family: var(--sans); font-weight: 600; margin: 0 8px 8px 0; }

.checked { margin-top: 34px; font-family: var(--sans); font-size: 14px; }
.checked summary { cursor: pointer; color: var(--ink-soft); font-weight: 600; }
.checked ul { padding-left: 18px; line-height: 1.6; }
.checked li span { color: var(--ink-soft); }
.rules { margin-top: 26px; max-width: 820px; font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--ink-soft); }

/* The big deal stacks once the main column is too narrow for picture and details side by side. */
@container (max-width: 620px) {
}

/* ---- narrow windows: filters fold away so the first deal is on screen ---- */
@media (max-width: 759px) {
  .top { flex-wrap: wrap; gap: 10px 12px; padding: 12px 16px; }
  .brand { border-right: 0; padding-right: 0; }
  .search { order: 3; flex: 0 0 100%; }
  .tabs { gap: 4px; justify-content: flex-start; margin: 0 16px; }
  /* On a narrow window the filters are a drawer that slides in over the feed. */
  .page, .page.side-closed { display: block; margin: 0 16px; }
  .filters { position: fixed; z-index: 20; inset: 0 auto 0 0; width: min(88vw, 340px); overflow-y: auto; overscroll-behavior: contain; border-right: 0; background: var(--ground); box-shadow: 0 0 40px rgb(29 25 66 / 0.28); }
  .page.ready .filters { transition: transform 0.3s ease, visibility 0.3s; }
  .side-closed .filters { transform: translateX(-105%); visibility: hidden; box-shadow: none; }
  .filters-inner, .side-closed .filters-inner { width: auto; padding: 18px 18px 32px; transform: none; opacity: 1; }
  .scrim { display: block; position: fixed; z-index: 19; inset: 0; background: var(--scrim); }
  .scrim[hidden] { display: none; }
  body.drawer-open { overflow: hidden; }
  main, .side-closed main { padding: 10px 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .page.ready, .page.ready .filters, .page.ready .filters-inner, .page.ready main { transition: none; }
}

/* ---- % off: the first thing you read on every deal ---- */
.off { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: center; line-height: 1;
  background: #c0265f; color: #fff; border-radius: 10px; padding: 7px 10px 6px; font-family: var(--sans); box-shadow: 0 2px 6px rgb(29 25 66 / 0.18); }
.off b { font-size: clamp(18px, 2.4cqi, 24px); font-weight: 800; font-variant-numeric: tabular-nums; }
.off span { font-size: 10.5px; font-weight: 600; margin-top: 3px; opacity: 0.92; white-space: nowrap; }
.off.big { padding: 10px 14px 8px; }
.off.big b { font-size: clamp(26px, 3.6cqi, 38px); }
.off.big span { font-size: 12px; }
.tile .price { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tile .price s { font-size: 0.62em; }
.tile .price em { font-style: normal; font-family: var(--sans); font-weight: 800; color: var(--hot); font-size: 0.62em; }
.marks { display: flex; flex-wrap: wrap; justify-content: inherit; align-items: center; gap: 4px 10px; margin-top: 4px; font-family: var(--sans); font-size: 13.5px; }
.marks:empty { display: none; }
.tile .marks { justify-content: center; }
.stars { color: var(--stars); font-weight: 600; }
.stars small { color: var(--ink-soft); font-weight: 400; font-size: 12.5px; }
.low { background: var(--low-bg); color: var(--low-ink); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; }

/* ---- header pieces from the mockup ---- */
body { border: 0; }
/* A tied bunch of lavender in each corner; the left one is mirrored so both fan outward. */
.sprig { position: absolute; top: 50%; width: clamp(64px, 7vw, 108px); height: auto; transform: translateY(-50%); pointer-events: none; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.25)); }
.sprig.left { left: 8px; transform: translateY(-50%) scaleX(-1) rotate(-8deg); }
.sprig.right { right: 8px; }
.top { padding-left: clamp(16px, 7vw, 108px); padding-right: clamp(16px, 7vw, 108px); }
.tagline { font-size: clamp(17px, 1.8vw, 24px); color: #f4eefc; white-space: nowrap; margin-left: calc(-1 * clamp(4px, 1.4vw, 18px)); }
.tabs { margin: 0; padding: 0 clamp(8px, 2vw, 16px); background: var(--tint); flex-wrap: wrap; }

/* Only the deals page has the filters beside it. */
.page:not(.view-browse) { grid-template-columns: 0px minmax(0, 1fr); }
.page:not(.view-browse) .filters, .page:not(.view-browse) .side-toggle { visibility: hidden; }
.page:not(.view-browse) main { padding-left: 0; }



.searches { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; grid-column: 1 / -1; }
.searches li { display: flex; align-items: stretch; gap: 8px; }
.open-search { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-align: left; border: 1px solid var(--edge-soft); background: var(--surface); border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.open-search:hover { border-color: var(--pink-strong); }
.open-search .name { font-size: 19px; }
.open-search .count { font-family: var(--sans); font-size: 14px; color: var(--hot); font-weight: 700; white-space: nowrap; }
.searches .remove, .gone button { border: 0; background: transparent; color: var(--ink-soft); text-decoration: underline; font-family: var(--sans); cursor: pointer; }
.gone { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 14px; display: grid; gap: 6px; }
.gone li { display: flex; justify-content: space-between; gap: 10px; }

@media (max-width: 1100px) { .tagline { display: none; } }
@media (max-width: 759px) {
  .top { margin: 0; padding: 12px 16px; border-radius: 0; }
  .sprig { display: none; }
  .saved span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabs { margin: 0 8px; gap: 0; overflow-x: auto; flex-wrap: nowrap; }
  .tabs button { flex: 0 0 auto; }
}
.prime { background: var(--prime-bg); color: var(--prime-ink); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.more-status { margin: 8px 0 0; font-family: var(--sans); font-size: 14px; color: var(--teal-text); }
.more-deals { display: block; margin: 30px auto 0; border: 1px solid var(--edge-strong); background: var(--surface); border-radius: 8px; padding: 11px 22px; font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; }
.more-deals:disabled { opacity: 0.6; cursor: default; }

/* ---- the Lottie rating: the mascot's face, nothing else ---- */
.axo { position: absolute; top: 4px; right: 4px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  filter: drop-shadow(0 2px 4px rgb(29 25 66 / 0.25)); pointer-events: none; }
.axo-face { display: block; flex: none; }
.axo-pct { font-family: var(--sans); font-size: 13px; font-weight: 800; color: #fff; background: #c0265f; border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.axo.big .axo-pct { font-size: 16px; padding: 2px 10px; }
.axo-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.axo-pick button { display: flex; align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--edge); background: var(--surface); border-radius: 10px; padding: 4px; min-height: 44px; cursor: pointer; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.axo-pick .up { font-size: 16px; font-weight: 800; color: var(--ink-soft); }
.axo-pick button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink-strong); }
.brandline { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.reason { margin: 6px 0 0; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--hot-deep); }
.gallery { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gallery .pic { flex: 1; }
.tile .gallery { width: 100%; margin-bottom: 10px; gap: 6px; }
.tile .gallery .pic { margin-bottom: 0; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; justify-content: center; }
.tile .thumb { width: 40px; height: 40px; border-radius: 6px; }
.thumb { flex: none; width: 54px; height: 54px; padding: 2px; border: 1px solid var(--edge-soft); border-radius: 8px; background: var(--surface); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb[aria-pressed="true"] { border-color: var(--pink-strong); box-shadow: 0 0 0 1px var(--pink-strong); }
.also { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; margin-top: 6px; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }
.also .chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--edge-soft); border-radius: 5px; padding: 2px 7px; color: var(--ink); background: var(--surface); text-decoration: none; }
.also a.chip:hover { border-color: var(--pink-strong); }

/* ---- Clear and Only on filter groups ---- */
.group h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.group h3 .clear { border: 0; background: transparent; padding: 0; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--teal-text); text-decoration: underline; cursor: pointer; }
.check .only { margin-left: auto; border: 0; background: transparent; padding: 0 2px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--teal-text); text-decoration: underline; cursor: pointer; opacity: 0; }
.check .only + small { margin-left: 6px; }
.check:hover .only, .check .only:focus-visible { opacity: 1; }
@media (hover: none) { .check .only { opacity: 1; } }

/* ---- a large photo beside the card on hover ---- */
.zoom { position: fixed; z-index: 50; background: var(--surface); border: 1px solid var(--edge-soft); border-radius: 12px; box-shadow: 0 12px 40px rgb(29 25 66 / 0.22); padding: 12px; pointer-events: none; }
.zoom img { width: 100%; height: 100%; object-fit: contain; }

/* ---- loading: the swimming Lottie ---- */
.loading { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 0; font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }

/* ---- every tile the same shape: badges on the photo, fixed rows of text ---- */
.tile { height: 100%; }
.tile .brandline { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.4em; }
.tile .size { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .also { min-height: 54px; align-content: flex-start; flex-wrap: wrap; max-width: 100%; margin-top: 8px; }
.tile .also .chip { max-width: 100%; line-height: 1.3; text-align: left; }
.also .chip .rate { flex: none; }
.tile .amazon, .tile .demo-link { margin-top: auto; padding-top: 8px; }
.tile .thumbs { min-height: 40px; }
.tags { position: absolute; left: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.tags-top { top: 6px; }
.tags-bottom { bottom: 6px; }
.tag { font-family: var(--sans); font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 999px; background: rgb(255 255 255 / 0.92); border: 1px solid var(--edge-soft); color: var(--ink); white-space: nowrap; }
.tag.used { background: #fff3fa; border-color: #f4bfd8; color: #9e1650; }
.tag.new { background: #1f5f66; border-color: #1f5f66; color: #fff; letter-spacing: 0.02em; }
/* New and Used on a card are filter buttons; the rest of the badge row lets the photo have the pointer */
.tags button.tag { pointer-events: auto; cursor: pointer; font-family: var(--sans); }
.tags button.tag:hover, .tags button.tag:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pink-strong); outline: none; }
.tags button.tag[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--teal-text); }
.news { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); }
.news[hidden] { display: none; }
.news-show { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700; color: var(--teal-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tag.reason { background: #b0124f; border-color: #b0124f; color: #fff; }
.tag.demo { letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; color: var(--ink-soft); }
.also button.chip { font: inherit; cursor: pointer; }
.also button.chip[aria-pressed="true"] { background: var(--pink); border-color: var(--pink-strong); font-weight: 700; }
.also button.chip:hover { border-color: var(--pink-strong); }

/* ---- dropdowns: our own chevron, with room around it ---- */
#sort, .width select, select.wide {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background: var(--surface) var(--chevron) no-repeat right 12px center;
  cursor: pointer;
}

/* ---- product card, compact: tall photo, deal swatches, left-aligned text that collapses ---- */
.feed { align-items: start; }
.tile { height: auto; text-align: left; align-items: stretch; gap: 0; }
.tile .pic { aspect-ratio: 4 / 5; margin-bottom: 8px; border-radius: 10px; background: var(--surface); overflow: hidden; }
.tile .pic > img { mix-blend-mode: normal; padding: 6px; }
.tile .tags-bottom { bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.swatch-deal { position: relative; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--edge-soft); background: var(--surface); cursor: pointer; overflow: visible; }
.swatch-deal img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50%; }
.swatch-deal[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--pink-strong); }
.swatch-deal .rate { position: absolute; right: -4px; bottom: -3px; width: 15px; height: 15px; background: var(--surface); border-radius: 50%; padding: 1.5px; box-shadow: 0 0 0 1px var(--edge-soft); }
.swatch-size { font-family: var(--sans); font-size: 11px; font-weight: 700; }
.swatch-more { align-self: center; font-family: var(--sans); font-size: 12px; color: var(--ink-soft); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tile .card-meta .brandline { font-size: 11.5px; }
.tile .card-meta .size { margin: 0; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tile h3 { min-height: 0; margin-top: 2px; font-size: clamp(15px, 1.9cqi, 18px); line-height: 1.25; }
.tile .price { justify-content: flex-start; font-size: 19px; }
.tile .amazon, .tile .demo-link { margin-top: 4px; padding-top: 0; font-size: 14px; align-self: flex-start; }

.card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; }
.card-foot .amazon, .card-foot .demo-link { margin-top: 0; }
.checked { font-family: var(--sans); font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.card-foot { flex-wrap: wrap; row-gap: 2px; }
.card-foot .amazon { white-space: nowrap; }
.card-foot { display: block; margin-top: 4px; }
.card-foot .checked { display: block; margin-top: 1px; }

/* ---- deal switches: photos for other colours, sizes for the same colour ---- */
.swatches { align-items: center; }
.size-deal { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 9px; border: 1px solid var(--edge-soft); border-radius: 6px; background: var(--surface); font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.size-deal .rate { width: 13px; height: 13px; }
.size-deal[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* The deal sizes that are in-love deals: filled pink, as on text cards. */
.size-deal.hot { background: #f4c1d6; border-color: #d98fb3; color: #1d1942; }
.size-deal:hover, .swatch-deal:hover { border-color: var(--pink-strong); }
/* other views of the item, under the photo */
.tile .gallery { margin-bottom: 8px; gap: 6px; }
.tile .gallery .pic { margin-bottom: 0; }
.tile .thumbs { min-height: 0; justify-content: flex-start; }
.tile .thumb { width: 44px; height: 55px; padding: 1px; border-radius: 6px; background: var(--surface); }
.tile .thumb img { object-fit: cover; object-position: top; mix-blend-mode: normal; border-radius: 4px; }

/* ---- the deal switches as a tower over the photo's bottom-right corner ---- */
.pic .swatches { position: absolute; right: 8px; bottom: 8px; margin: 0; flex-direction: column; flex-wrap: nowrap; align-items: flex-end; gap: 5px; z-index: 2; }
.pic .swatch-deal { width: 34px; height: 34px; box-shadow: 0 1px 4px rgb(29 25 66 / 0.18); }
.pic .swatch-deal[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pink-strong); }
.pic .size-deal { height: 26px; padding: 0 7px; font-size: 12px; box-shadow: 0 1px 4px rgb(29 25 66 / 0.15); }
.pic .swatch-more { background: rgb(255 255 255 / 0.9); border-radius: 6px; padding: 1px 6px; }

/* ---- sticky header: the masthead stays at the top; the filters scroll inside the page ---- */
.masthead { position: sticky; top: 0; z-index: 30; background: var(--ground); box-shadow: 0 2px 10px rgb(29 25 66 / 0.08); }
.bar { background: var(--bar-bg); backdrop-filter: blur(6px); }
@media (min-width: 760px) {
  .filters { position: sticky; top: var(--mast-h, 0px); align-self: start; height: calc(100vh - var(--mast-h, 0px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
}

/* ---- a smaller header, and a slim one once the page scrolls ---- */
.top { padding-top: 10px; padding-bottom: 10px; }
.brand .mascot { height: clamp(40px, 4.4vw, 58px); }
.brand .wordmark { height: clamp(26px, 2.9vw, 38px); }
.tagline { font-size: clamp(15px, 1.5vw, 20px); }
.search { height: clamp(38px, 3.6vw, 46px); }
.search input { font-size: clamp(15px, 1.3vw, 17px); }
.tabs button { font-size: clamp(15px, 1.4vw, 18px); padding-top: 10px; padding-bottom: 9px; }
.side-toggle { padding: 7px 11px; font-size: 14px; }
#sort { padding-top: 7px; padding-bottom: 7px; font-size: 14px; }
.masthead .top, .masthead .brand img, .masthead .tagline, .masthead .sprig, .masthead .tabs button { transition: all 0.2s ease; }
.masthead.slim .top { padding-top: 5px; padding-bottom: 5px; }
.masthead.slim .brand .mascot { height: 30px; margin: -2px 0; }
.masthead.slim .brand .wordmark { height: 22px; }
.masthead.slim .tagline, .masthead.slim .sprig { display: none; }
.masthead.slim .search { height: 34px; }
.masthead.slim .tabs button { padding-top: 6px; padding-bottom: 5px; font-size: 15px; }
.masthead.slim .bar { padding-top: 2px; padding-bottom: 2px; }
/* card text a notch smaller */
.tile h3 { font-size: clamp(14px, 1.7cqi, 16.5px); }
.tile .card-meta .brandline { font-size: 10.5px; }
.tile .card-meta .size { font-size: 12px; }
.tile .amazon, .tile .demo-link summary { font-size: 13px; }

/* ---- less space between the row and the first cards ---- */
.feed { padding-top: 0; }
.summary:empty, .summary[hidden] { display: none; }

/* ---- cards line up across a row: photo, other views, brand and size, name, colour, link share rows ---- */
.feed { align-items: stretch; }
.tile { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.tile > .pic { margin-bottom: 6px; }
.tile > .thumbs { margin-bottom: 6px; }
.tile > .thumbs:empty { margin: 0; }
.tile > h3, .tile > .colour-line { align-self: start; }
.tile > .card-foot { align-self: start; }

/* ---- one line each where it fits: the name shrinks before it wraps (fitNames) ---- */
.tile h3 { display: block; white-space: nowrap; overflow: hidden; -webkit-line-clamp: unset; line-clamp: none; min-height: 0; }
.tile h3.wrap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; }
.tile .card-meta { flex-wrap: nowrap; }
.tile .card-meta .brandline { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .card-meta .size { flex: none; }
/* With subgrid, the feed's row gap would also land between a card's own rows. No row gap; each
   card ends with its own space instead. */
.feed { row-gap: 0; }
.tile > .card-foot { padding-bottom: clamp(20px, 3cqi, 30px); }

/* ---- empty: the Lottie with its empty bag, then what to try ---- */
.empty { display: flex; align-items: center; gap: 24px; max-width: 720px; margin: 28px auto 0; }
.empty-axo { flex: none; width: 180px; height: auto; }
@media (max-width: 560px) { .empty { flex-direction: column; text-align: center; } .empty-axo { width: 150px; } }
.empty[hidden] { display: none; }
.more-deals[hidden] { display: none; }

/* ---- category tree, then sizes ---- */
.cat-tree { display: flex; flex-direction: column; font-family: var(--sans); }
.cat-top { display: flex; align-items: baseline; gap: 0; width: 100%; margin: 2px 0; padding: 3px 0; border: 0; background: transparent; font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.cat-top > span:nth-child(2) { flex: 1; }
.cat-top small { font-size: 11.5px; font-weight: 400; color: var(--ink-faint); padding-right: 4px; }
.cat-top:hover > span:nth-child(2) { color: var(--teal-text); }
.cat-row { display: flex; align-items: center; }
.cat-row.d2 { padding-left: 16px; }
.cat-caret { flex: none; width: 16px; height: 22px; padding: 0; border: 0; background: transparent; font-family: var(--sans); font-size: 13px; line-height: 22px; color: var(--ink); cursor: pointer; text-align: left; }
.cat { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; border: 0; background: transparent; padding: 2px 4px; border-radius: 4px; font-size: 13.5px; line-height: 1.35; color: var(--ink-soft); text-align: left; cursor: pointer; }
.cat-row.d1 > .cat { color: var(--ink); }
.cat small { font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.cat:hover { color: var(--teal-text); }
.cat[aria-pressed="true"] { color: var(--teal-text); font-weight: 700; box-shadow: inset 2px 0 0 var(--teal-text); background: var(--glass); }
.size-hint { margin: 4px 0 0; font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); }

/* ---- until the first deals arrive, the row under the header stays empty (no half-built controls) ---- */
.booting .bar > * { visibility: hidden; }
.booting .filters, .booting .legal { visibility: hidden; }
.pic .size-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-top: 2px; }

/* ---- filter groups fold ---- */
.group h3 { margin-bottom: 0; }
.group:not(.folded) h3 { margin-bottom: 10px; }
.fold { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.fold-caret { width: 12px; font-size: 12px; color: var(--ink-soft); }
.fold:hover { color: var(--teal-text); }
.group.folded { padding-top: 12px; padding-bottom: 12px; }

/* ---- the Associates disclosure and privacy note ---- */
.legal { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.legal p { margin: 0 0 4px; }
.top-finds { margin: 12px 0; }
.top-finds h2 { font: 600 12px var(--sans); margin: 0 0 4px; color: var(--ink); }
.top-finds ul { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 24px; }
.top-finds li { break-inside: avoid; margin: 0 0 2px; }
.cat-top[aria-pressed="true"] > span:nth-child(2) { color: var(--teal-text); }

/* the Lottie swims across a little stretch of water, turns, and swims back */
.loading .swim { width: 260px; height: 104px; position: relative; overflow: hidden; }
.loading .swim img { position: absolute; top: 4px; left: 0; animation: axo-swim 5s ease-in-out infinite; }
@keyframes axo-swim {
  0% { transform: translateX(0) scaleX(1); }
  47.9% { transform: translateX(110px) scaleX(1); }
  48% { transform: translateX(110px) scaleX(-1); }
  97.9% { transform: translateX(0) scaleX(-1); }
  98% { transform: translateX(0) scaleX(1); }
  100% { transform: translateX(0) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .loading .swim img { animation: none; left: 55px; } }

/* category tree alignment: the caret column is the same on every level; the pick is teal text only */
.cat-top { padding-left: 0; }
.cat-top .cat-caret { width: 16px; }
.cat-row.d1 { padding-left: 16px; }
.cat-row.d2 { padding-left: 32px; }
.cat-row > .cat-caret { width: 14px; }

/* the other views share the card's width: five equal columns, never a scrollbar */
.tile .thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; overflow: hidden; }
/* An empty strip still takes its row (the card is five rows shared with its neighbours), just out of sight. */
.tile .thumbs:empty { visibility: hidden; }
.tile .thumb { width: auto; height: auto; aspect-ratio: 4 / 5; min-width: 0; }

/* brand and size on a card are filter shortcuts */
.meta-link { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-underline-offset: 3px; }
.meta-link:hover, .meta-link:focus-visible { text-decoration: underline; color: var(--teal-text); }
.meta-link[aria-pressed="true"] { color: var(--teal-text); text-decoration: underline; }

/* ---- many deals on one style: colours in a column under the rating (three, then +N), sizes along the photo's bottom edge ---- */
/* The column keeps 6px of room on every side, so the ring round the colour showing and the
   rating chips on each photo aren't clipped by its overflow. */
.pic .swatches { top: 52px; right: 2px; bottom: auto; padding: 6px; max-height: calc(100% - 52px - 40px); overflow: hidden; }
.pic:has(.axo-pct) .swatches { top: 74px; max-height: calc(100% - 74px - 40px); }
.pic .swatches.all { overflow-y: auto; scrollbar-width: none; }
.pic .swatch-more { border: 1px solid var(--edge-soft); cursor: pointer; font-weight: 700; color: var(--ink); background: rgb(255 255 255 / 0.95); border-radius: 999px; padding: 2px 8px; }
.size-band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; gap: 4px; align-items: center; height: 38px; padding: 0 8px;
  background: rgb(255 255 255 / 0.92); border-top: 1px solid rgb(205 199 230 / 0.8);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.size-band::-webkit-scrollbar { display: none; }
.size-band.more-right { mask-image: linear-gradient(90deg, #000 82%, transparent); }
.size-band.more-left { mask-image: linear-gradient(90deg, transparent, #000 18%); }
.size-band.more-left.more-right { mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.size-band .size-deal { flex: none; height: 26px; padding: 0 7px; font-size: 12px; box-shadow: none; }
.size-band .size-deal .rate { width: 12px; height: 12px; }
/* a colour with no deal in the size showing: faded, with a line through it */
.swatch-deal.elsewhere { border-style: dashed; border-color: var(--edge-soft); }
.swatch-deal.elsewhere img { opacity: 0.45; filter: grayscale(0.6); }
.swatch-deal.elsewhere::after { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; border-radius: 1px;
  background: rgb(29 25 66 / 0.55); transform: rotate(45deg); pointer-events: none; }
/* the "Used" badge sits above the size row */
.pic:has(.size-band) .tags-bottom { bottom: 46px; }
.size-deal.elsewhere { color: var(--ink-soft); background: var(--surface-2); border-style: dashed; }
.size-deal.elsewhere span { text-decoration: line-through; text-decoration-color: rgb(29 25 66 / 0.45); }

/* ---- "Your Look": a look link's styles beside Lottie wearing them, then a divider to the rest ---- */
.look { display: flex; align-items: flex-end; gap: clamp(12px, 3cqi, 36px); margin: 4px 0 8px; padding: 18px clamp(14px, 2.4cqi, 26px) 22px;
  border-radius: 22px; background: var(--look-bg); border: 1px solid var(--look-edge);
  box-shadow: 0 6px 22px rgb(91 60 140 / 0.10); }
.look-kicker { margin: 0 0 2px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--look-kicker); }
.tag.one { background: #1d1942; border-color: #1d1942; color: #fff; margin-left: 4px; }
.look[hidden] { display: none; }
.look-axo { flex: 0 0 auto; width: clamp(110px, 20cqi, 240px); height: auto; align-self: center; }
.look-main { flex: 1; min-width: 0; }
.look-title { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(24px, 3.4cqi, 34px); font-weight: 700; color: var(--ink); }
.look-feed { padding-top: 0; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 24cqi, 230px), 250px)); }
.look-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 6px; font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.look-divider::before, .look-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.look-divider[hidden] { display: none; }
@container (max-width: 620px) {
  .look { flex-direction: column; align-items: stretch; }
  .look-axo { width: 120px; align-self: center; }
  .look-title, .look-kicker { text-align: center; }
}

/* ---- dark: follows the device until the shopper picks Light or Dark (the theme control in the header) ----
   The same tokens in both blocks: one for the device setting, one for an explicit pick. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #15132a; --ink: #ece9fb; --ink-soft: #bdb8dc; --ink-faint: #9e99c4; --line: #3a3662;
    --teal-text: #82d3d1; --pink: #6a2b51; --pink-strong: #e994bd;
    --surface: #221f3f; --surface-2: #2b2850; --search-bg: #221f3f; --search-icon: #82d3d1; --placeholder: #b4afd4;
    --tint: rgb(255 255 255 / 0.03); --glass: rgb(255 255 255 / 0.06); --bar-bg: rgb(21 19 42 / 0.92); --scrim: rgb(0 0 0 / 0.6);
    --edge: #5f5a92; --edge-soft: #45406f; --edge-strong: #8f8abd;
    --link-alt: #b8b5ff; --hot: #ff80ad; --hot-deep: #ff8fb7; --stars: #f2c14e;
    --low-bg: #1d3a2b; --low-ink: #9fdcb7; --prime-bg: #1c2f4d; --prime-ink: #a9c9f5;
    --wash: 110 100 210; --wash-2: 120 110 220;
    --look-bg: linear-gradient(135deg, #2a2350 0%, #33244a 55%, #3b2240 100%); --look-edge: #4a3d6e; --look-kicker: #e0a8f0;
    --rate-happy: #82d3d1;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ece9fb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #15132a; --ink: #ece9fb; --ink-soft: #bdb8dc; --ink-faint: #9e99c4; --line: #3a3662;
  --teal-text: #82d3d1; --pink: #6a2b51; --pink-strong: #e994bd;
  --surface: #221f3f; --surface-2: #2b2850; --search-bg: #221f3f; --search-icon: #82d3d1; --placeholder: #b4afd4;
  --tint: rgb(255 255 255 / 0.03); --glass: rgb(255 255 255 / 0.06); --bar-bg: rgb(21 19 42 / 0.92); --scrim: rgb(0 0 0 / 0.6);
  --edge: #5f5a92; --edge-soft: #45406f; --edge-strong: #8f8abd;
  --link-alt: #b8b5ff; --hot: #ff80ad; --hot-deep: #ff8fb7; --stars: #f2c14e;
  --low-bg: #1d3a2b; --low-ink: #9fdcb7; --prime-bg: #1c2f4d; --prime-ink: #a9c9f5;
  --wash: 110 100 210; --wash-2: 120 110 220;
  --look-bg: linear-gradient(135deg, #2a2350 0%, #33244a 55%, #3b2240 100%); --look-edge: #4a3d6e; --look-kicker: #e0a8f0;
  --rate-happy: #82d3d1;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ece9fb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}
/* Product photos keep their white ground in both themes, never dimmed or inverted. What sits on a
   photo (badges, colour and size switches) and the large hover photo keep the light colours with it. */
.tile .pic, .zoom, .thumb {
  --ink: #1d1942; --ink-soft: #5b5780; --ink-faint: #6b6786; --teal-text: #1f5f66; --pink: #f4c1d6; --pink-strong: #d98fb3;
  --surface: #fff; --surface-2: #f4f2fa; --edge: #a8a4c8; --edge-soft: #d9d2f2; --edge-strong: #77739e; --ground: #fff; --rate-happy: #1f5f66;
  color-scheme: light; color: var(--ink);
}
.rate-happy path { fill: var(--rate-happy); }

/* ---- the theme control: System, Light or Dark, in the header ---- */
.theme { position: relative; flex: none; display: inline-flex; align-items: center; color: #fff; }
.theme svg { position: absolute; left: 10px; pointer-events: none; }
.theme select {
  appearance: none; -webkit-appearance: none; height: 36px; padding: 0 30px 0 34px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.6); color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer;
  background: rgb(255 255 255 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;
}
.theme select:hover { background-color: rgb(255 255 255 / 0.2); }
.theme select:focus-visible { outline: 3px solid var(--pink-strong); outline-offset: 2px; }
/* the native list opens in the page's colours, not white-on-white */
.theme option { color: var(--ink); background: var(--surface); }
.theme .icon { display: none; }
.theme[data-pick="system"] .icon-system, .theme[data-pick="light"] .icon-light, .theme[data-pick="dark"] .icon-dark { display: block; }
.masthead.slim .theme select { height: 30px; font-size: 13px; }
@media (max-width: 759px) { .theme { margin-left: auto; } }

/* ---- the colour showing: its name in words, and a mark on its swatch that isn't colour alone ---- */
.colour-line { flex: none; margin: 2px 0 0; font-family: var(--sans); font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); }
.colour-line b { color: var(--ink); font-weight: 700; }
.photo-note { display: block; font-size: 11.5px; color: var(--ink-faint); }
/* A dark ring and a tick on the swatch showing. Swatches sit on the photo, which stays light in both themes. */
.swatch-deal[aria-pressed="true"], .pic .swatch-deal[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch-deal[aria-pressed="true"]::after {
  content: ""; position: absolute; top: -5px; left: -5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2l2.6 2.4L9 1.2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  box-shadow: 0 0 0 1.5px #fff;
}
.swatch-deal:focus-visible, .size-deal:focus-visible, .swatch-more:focus-visible { outline: 3px solid var(--teal-text); outline-offset: 3px; }
.swatch-deal .swatch-size { color: var(--ink); }

/* ---- the admin site (admin.axoloot.com): an always-visible bar, and prices on every card ---- */
:root { --admin-bg: #1d1942; --admin-ink: #fff; --admin-btn: #f4c1d6; --admin-btn-ink: #1d1942; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --admin-bg: #f4c1d6; --admin-ink: #1d1942; --admin-btn: #1d1942; --admin-btn-ink: #fff; } }
:root[data-theme="dark"] { --admin-bg: #f4c1d6; --admin-ink: #1d1942; --admin-btn: #1d1942; --admin-btn-ink: #fff; }
.admin-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 5px 16px;
  background: var(--admin-bg); color: var(--admin-ink); font-family: var(--sans); font-size: 13.5px; }
.admin-bar b { font-weight: 800; letter-spacing: 0.02em; }
.admin-bar form { margin: 0; }
.admin-bar button { border: 0; border-radius: 999px; padding: 3px 12px; background: var(--admin-btn); color: var(--admin-btn-ink);
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.admin-bar button:focus-visible { outline: 3px solid var(--pink-strong); outline-offset: 2px; }
.price-note { margin: 1px 0 3px; font-family: var(--sans); font-size: 12px; line-height: 1.35; color: var(--ink-soft); }
.price-note b { color: var(--hot); font-weight: 800; }
.price-note.stale { color: var(--ink); font-weight: 600; }

/* The country picker: Amazon US only for now, plus "Request a country". */
.region { position: relative; flex: none; }
.region > select { font: 600 13px var(--sans); color: #fff; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .45); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.region > select option { color: #1d1942; }
.region-request { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(320px, 86vw); display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card, #fff); color: var(--ink, #1d1942); border: 1px solid var(--line); box-shadow: 0 12px 32px rgb(0 0 0 / .2); font: 14px/1.45 var(--sans); }
.region-request p { margin: 0; }
.region-request select { font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.region-actions { display: flex; gap: 8px; }
.region-actions button { font: 600 14px var(--sans); padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer; background: #f4c1d6; color: #1d1942; }
.region-actions button[type=button] { background: transparent; border: 1px solid var(--line); color: inherit; }
.region-thanks { color: #2a6b77; font-weight: 600; }
/* Shown only to visitors outside the US. */
.region-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line); font: 14px/1.45 var(--sans); color: var(--ink-soft); }
.region-note button { margin-left: 8px; font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.legal a { color: inherit; }

.region-request[hidden], .region-note[hidden], .region-thanks[hidden] { display: none; }

/* ---- the Today tab: a link to /today, dressed like the tabs ---- */
.tabs .tab-link { font-size: clamp(15px, 1.4vw, 18px); padding: 10px clamp(8px, 1.2vw, 16px) 9px; border-bottom: 4px solid transparent; margin-bottom: -1px; color: inherit; text-decoration: none; }
.tabs .tab-link:hover { color: var(--teal-text); }
.masthead.slim .tabs .tab-link { padding-top: 6px; padding-bottom: 5px; font-size: 15px; }
@media (max-width: 759px) { .tabs .tab-link { flex: 0 0 auto; } }
#sort[hidden] { display: none; }

/* ---- over the cards: the brands view's heading and sort, a brand's name and categories ---- */
.heading { padding: 18px 0 4px; font-family: var(--sans); }
.heading[hidden] { display: none; }
.heading .intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.heading .page-title { margin: 0; font: 600 clamp(28px, 4cqi, 38px)/1.1 var(--serif); color: var(--ink); }
.heading .intro p { margin: 4px 0 0; color: var(--ink-soft); font-size: 16px; }
.sort-pills { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.sort-pills button, .cattabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: 14px var(--sans); cursor: pointer; }
.sort-pills button[aria-pressed="true"], .cattabs button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.cattabs small { opacity: .7; margin-left: 2px; }
.cattabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 2px; font-size: 14px; color: var(--ink-soft); }
.active .pill { border: 0; border-radius: 14px; padding: 4px 11px; background: #fbe2ee; color: #b0124f; font: 600 14px var(--sans); cursor: pointer; }
.crumbs { margin: 0 0 6px; color: var(--ink-faint); font-size: 14px; }
.crumbs button { border: 0; background: none; padding: 0; color: var(--teal-text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.crumbs b { color: var(--ink); }

/* ---- the brand tiles ---- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; padding-top: 16px; }
.brand-tile { display: flex; flex-direction: column; gap: 8px; min-height: 230px; padding: 20px 22px; border-radius: 20px; background: var(--tint-bg, var(--tint)); border: 1px solid rgb(0 0 0 / .05); box-shadow: 0 2px 10px rgb(29 25 66 / .06); color: var(--ink); text-decoration: none; font-family: var(--sans); }
.brand-tile:hover { box-shadow: 0 6px 20px rgb(29 25 66 / .12); }
.brand-tile:focus-visible { outline: 3px solid var(--teal-text); outline-offset: 2px; }
.brand-tile h3 { margin: 0; font: 600 30px/1.05 var(--serif); letter-spacing: .2px; }
.brand-tile .count { margin: 0; font-size: 16px; }
.brand-tile .love { color: var(--hot); font-weight: 600; }
.brand-tile .cats { margin: 0; font-size: 14px; color: var(--ink-soft); }
.brand-tile .dots { display: flex; flex-wrap: wrap; gap: 5px; }
.brand-tile .dot { width: 18px; height: 18px; }
.brand-tile .sizes { margin: 0; font-size: 13.5px; }
.brand-tile .sep { margin: 0 8px; color: var(--edge); }
.brand-tile .go { margin-top: auto; color: var(--teal-text); font-weight: 600; font-size: 15px; }
.dot { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .14); vertical-align: -2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-tile { --tint-bg: color-mix(in srgb, var(--tint) 14%, var(--surface)); } }
:root[data-theme="dark"] .brand-tile { --tint-bg: color-mix(in srgb, var(--tint) 14%, var(--surface)); }

/* ---- text cards: a block in the deal's color with Lottie on it, then words ---- */
.feed.styles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; row-gap: 16px; padding-top: 16px; align-items: start; }
.style { display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 2px 10px rgb(29 25 66 / .07); font-family: var(--sans); text-align: left; }
.color-block { position: relative; flex: 0 0 74px; height: 74px; border-radius: 14px; display: grid; place-items: center; border: 1px solid rgb(0 0 0 / .08); }
.color-block .axo-face { width: 52px; height: auto; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .25)); }
.color-block .axo-pct { position: absolute; bottom: -8px; font-size: 11.5px; }
.style .body { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.style .kicker { margin: 0; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); }
.style .kicker .meta-link { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-soft); font-weight: 700; cursor: pointer; }
.style .kicker .meta-link:hover { text-decoration: underline; }
.style h3 { margin: 0; font: 600 19px/1.15 var(--serif); color: var(--ink); }
.style .color { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 13.5px; color: var(--ink-soft); }
.color-pick { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.color-pick[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.color-pick:hover { text-decoration: underline; }
.color-more { border: 0; background: none; padding: 0; font: inherit; color: var(--teal-text); cursor: pointer; }
.szs { display: flex; flex-wrap: wrap; gap: 5px; }
.szs .sz { border: 1.5px solid var(--edge); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 2px 8px; font: 13px var(--sans); font-variant-numeric: tabular-nums; }
.szs button.sz { cursor: pointer; }
.szs .sz.hot { background: #f4c1d6; border-color: #d98fb3; color: #1d1942; font-weight: 600; }
.szs .sz[aria-pressed="true"] { border-color: var(--ink); }
.style .tags { position: static; margin: 2px 0 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; pointer-events: auto; }
.style .tag { border: 0; border-radius: 10px; padding: 2px 8px; background: var(--surface-2); color: var(--ink); font: 600 12px var(--sans); }
.style button.tag { cursor: pointer; }
.style .tag.used { background: #fbe2ee; color: #b0124f; }
.style .tag.fast { background: var(--prime-bg); color: var(--prime-ink); }
.style .tag.just { background: var(--low-bg); color: var(--low-ink); }
/* ---- the deal rating: pink gems under the sizes (markup and styles from public/gems.js) ---- */
.style .gems { margin: 1px 0; }
.tile > .gems { justify-self: start; align-self: start; margin: 4px 0 2px; }
.gems b { color: var(--hot); }
.gem-pick { display: flex; flex-direction: column; gap: 6px; }
.gem-pick button { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 12px; border: 1px solid var(--edge); background: var(--surface); border-radius: 10px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.gem-pick button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink-strong); }
.gem-pick button:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; }
.style .amazon, .style .demo-link summary { margin-top: 2px; font: 600 14px var(--sans); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.style .price { font-size: 20px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.style .price s { font-size: .62em; }
.look-feed:has(> .style) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }

/* ---- phones: a compact, fluid header ----
   One row for the logo and two small controls, the search below it; once the page scrolls, a single
   row of the mascot and the search, so the deals get the screen. Sizes scale with the screen width. */
@media (max-width: 759px) {
  .top { gap: 8px 10px; padding: 8px clamp(12px, 4vw, 18px) 10px; }
  .brand { margin-right: auto; }
  .brand .mascot { height: clamp(34px, 10vw, 44px); margin: -4px 0; }
  .brand .wordmark { height: clamp(22px, 6.6vw, 30px); }
  /* a select is as wide as its longest option ("Request a country…"): keep it to the code */
  .region > select { width: 60px; padding: 6px 10px; }
  /* the theme control shows its icon only */
  .theme { margin-left: 0; }
  .theme svg { left: 50%; transform: translateX(-50%); }
  .theme select { width: 38px; height: 32px; padding: 0; color: transparent; background-image: none; }
  .search { height: clamp(38px, 11vw, 44px); }
  .masthead.slim .top { flex-wrap: nowrap; padding: 6px clamp(10px, 3vw, 14px); }
  .masthead.slim .brand .wordmark, .masthead.slim .region, .masthead.slim .theme { display: none; }
  .masthead.slim .brand .mascot { height: 30px; }
  .masthead.slim .search { order: 0; flex: 1 1 auto; height: 36px; }
  .masthead.slim .search input { font-size: 16px; }
  /* a smaller disclosure fits one line (it wraps, never truncates); sort buttons keep their words together */
  .disclosure-bar { font-size: clamp(10.5px, 3.2vw, 12px); padding: 5px 8px; }
  .sort-pills { flex-wrap: wrap; gap: 6px; }
  .sort-pills button { white-space: nowrap; padding-left: 11px; padding-right: 11px; }
  /* Filters and Sort share one row: the sort select shrinks to fit */
  .bar .side-toggle { flex: none; }
  .bar #sort { flex: 0 1 auto; min-width: 0; max-width: 62vw; font-size: 13.5px; padding-left: 8px; padding-right: 8px; }
}
