/* Prototype B: Warm Vibrant, sets-first.
   Palette: cream #FFF6EC, ink #231A15, clay #B5452B (CTA, white text), saffron #F2B33D (fills, ink text only),
   sage #4F6B4B (text-safe), blush #F6C9B8 (fills, ink text only), deep taupe #5E5145 (announcement).
   Forbidden pairs: clay on blush, clay on saffron, white on saffron. Taupe #8C7B6B is a border/anchor, never text. */

@font-face { font-family: "Nunito"; src: url(../fonts/nunito-latin-wght-normal.woff2) format("woff2"); font-display: swap; font-weight: 200 1000; }
@font-face { font-family: "DM Sans"; src: url(../fonts/dm-sans-latin-wght-normal.woff2) format("woff2"); font-display: swap; font-weight: 100 1000; }

:root {
  --qb-color-bg: #FFF6EC; --qb-color-surface: #FBE6D1; --qb-color-surface-2: #F3D3B5;
  --qb-color-ink: #231A15; --qb-color-ink-2: #5A4A3E; --qb-color-line: #E6CDB4; --qb-color-control-border: #8C7B6B;
  --qb-color-brand: #8C7B6B; --qb-color-brand-deep: #5E5145; --qb-color-on-brand: #FFFFFF;
  --qb-color-cta: #B5452B; --qb-color-cta-hover: #933520; --qb-color-on-cta: #FFFFFF;
  --qb-color-accent: #B5452B; --qb-color-success: #3F5F3B; --qb-color-alert: #8A4B00; --qb-color-error: #A3261A;
  --qb-color-focus: #231A15; --qb-color-star: #8A4B00; --qb-color-sample: #5E5145;
  --b-clay: #B5452B; --b-saffron: #F2B33D; --b-sage: #4F6B4B; --b-blush: #F6C9B8; --b-mint: #D5E3CC; --b-sand: #E7D2BE; --b-ink: #231A15;
  --qb-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --qb-font-display: "Nunito", "DM Sans", system-ui, sans-serif;
  --qb-text-base: 1.0625rem; --qb-leading: 1.55;
  --qb-radius-s: 8px; --qb-radius-m: 14px; --qb-radius-l: 24px;
  --qb-shadow-1: 0 2px 0 rgba(35,26,21,.08), 0 6px 18px rgba(94,60,30,.10); --qb-shadow-2: 0 14px 40px rgba(60,35,15,.22);
  --qb-motion-fast: 140ms; --qb-motion: 180ms; --qb-ease: cubic-bezier(.2,.8,.3,1);
  --b-spring: cubic-bezier(.34,1.45,.64,1);
  --qb-container: 1360px; --qb-header-h: 120px;
}
@media (max-width: 899px) { :root { --qb-header-h: 120px; } }

body { padding-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--qb-font-display); font-weight: 900; letter-spacing: -.01em; }
a { text-decoration-thickness: 2px; }

/* ---------- shared bits ---------- */
.b-h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 28px 0 16px; }
.b-h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 12px; }
.b-h2--xl { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.b-h3 { font-size: 1.5rem; margin: 0 0 14px; }
.b-nowrap { white-space: nowrap; }
.b-kicker { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: var(--b-saffron); color: var(--b-ink); font: 800 .875rem/1.2 var(--qb-font-display); letter-spacing: .02em; }
.b-kicker--dark { background: var(--b-ink); color: var(--qb-color-bg); }
.b-kicker--ink { background: var(--qb-color-bg); color: var(--b-ink); }
.b-section { padding-block: 56px; }
.b-section--tint { background: var(--b-blush); color: var(--b-ink); padding-bottom: 40px; }
.b-section--tint .qb-note { color: #3B2C22; }
.b-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.b-head .b-h2 { margin: 0; }
.b-more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; color: var(--b-ink); text-decoration: underline; text-decoration-color: var(--b-clay); }
.b-more .qb-icon { width: 20px; height: 20px; }
.b-note-sample { margin: 12px 0 0; font-size: .875rem; color: var(--qb-color-ink-2); }

/* buttons: springy scale (disabled under reduced motion) */
.qb-btn { border-radius: 999px; font-weight: 800; font-family: var(--qb-font-display); letter-spacing: .005em; transition: transform 180ms var(--b-spring), background var(--qb-motion-fast) var(--qb-ease), color var(--qb-motion-fast) var(--qb-ease), border-color var(--qb-motion-fast) var(--qb-ease); }
.qb-btn:hover { transform: scale(1.04); }
.qb-btn:active { transform: scale(.94); }
.qb-btn--primary { box-shadow: 0 3px 0 #7A2A16; }
.qb-btn--primary:active { box-shadow: 0 1px 0 #7A2A16; }
.qb-btn--secondary { background: var(--b-ink); color: var(--qb-color-bg); }
.qb-btn--secondary:hover { background: #3B2C22; }
.qb-btn--ghost { background: var(--qb-color-bg); border-width: 2px; }
.qb-chip, .qb-pill, .qb-facet__swatch, .qb-sb__pill, .qb-quiz__opt { transition: transform 180ms var(--b-spring), background var(--qb-motion-fast) var(--qb-ease), border-color var(--qb-motion-fast) var(--qb-ease); }
.qb-chip:hover, .qb-pill:hover, .qb-facet__swatch:hover, .qb-quiz__opt:hover { transform: scale(1.05); }
.qb-chip:active, .qb-pill:active, .qb-facet__swatch:active { transform: scale(.94); }
.qb-chip.is-on, .qb-chip[aria-pressed="true"] { background: var(--b-ink); }
.qb-wish { transition: transform 180ms var(--b-spring); }
.qb-wish:hover { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .qb-btn:hover, .qb-btn:active, .qb-chip:hover, .qb-chip:active, .qb-pill:hover, .qb-pill:active, .qb-facet__swatch:hover, .qb-facet__swatch:active, .qb-quiz__opt:hover, .qb-wish:hover, .b-swatchhover { transform: none !important; }
}
input:checked + .qb-pill { background: var(--b-saffron); color: var(--b-ink); border-color: var(--b-ink); box-shadow: inset 0 0 0 2px var(--b-ink); }
input:checked + .qb-facet__swatch { background: var(--b-saffron); }
input:checked + .qb-quiz__opt { background: var(--b-saffron); color: var(--b-ink); }
.qb-badges li { background: var(--b-saffron); color: var(--b-ink); border-color: var(--b-ink); font-weight: 800; }
.qb-price { font-size: 1.0625rem; font-weight: 800; }
.qb-card__media { border-radius: var(--qb-radius-l); box-shadow: 0 0 0 2px var(--b-ink); }
.qb-card__title { font-family: var(--qb-font-display); font-weight: 800; font-size: 1.0625rem; }
.qb-card .qb-btn--primary { box-shadow: none; }

/* ---------- announcement + header ---------- */
.b-announce { background: #5E5145; color: #fff; text-align: center; padding: 8px var(--qb-gutter); font-size: .9375rem; font-weight: 500; }
.b-announce p { margin: 0; }
.b-announce__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--b-saffron); margin-right: 8px; }
.b-announce__slot { opacity: 1; }
@media (max-width: 599px) { .b-announce__sep, .b-announce__slot { display: none; } }
.b-header { position: relative; z-index: 60; background: var(--qb-color-bg); border-bottom: 3px solid var(--b-ink); }
.b-header__row { display: flex; align-items: center; gap: 8px; padding-block: 10px; flex-wrap: wrap; }
.b-logo { display: inline-flex; align-items: center; gap: 2px; font: 1000 1.75rem/1 var(--qb-font-display); text-decoration: none; color: var(--b-ink); letter-spacing: -.02em; min-height: 44px; }
.b-logo__q { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--b-clay); color: #fff; margin-right: 4px; font-size: 1.5rem; transform: rotate(-6deg); }
.b-logo--sm { font-size: 1.375rem; } .b-logo--sm .b-logo__q { width: 34px; height: 34px; font-size: 1.2rem; }
.b-header__search { flex: 1 1 100%; order: 10; }
.b-header__nav { order: 0; }
.b-logo { order: 1; margin-right: auto; }
.b-header__wish, .b-header__acct, .b-header__cart { order: 2; }
.b-header__acct, .b-header__wish { display: none; }
.b-header .qb-search-field { border: 2px solid var(--b-ink); box-shadow: 3px 3px 0 var(--b-ink); padding-inline: 12px 4px; background: #fff; }
.b-header .qb-search-field > .qb-icon { color: var(--b-ink); }
.b-header .qb-search-field input[type=search] { font-size: 1.0625rem; }
.b-header .qb-search-field [data-qb-visual-open] { background: var(--b-saffron); color: var(--b-ink); }
.b-header .qb-search-field [data-qb-visual-open]:hover { background: #E9A62B; }
.b-header .qb-search-field button[type=submit] { background: var(--b-clay); color: #fff; }
.b-header .qb-search-field button[type=submit]:hover { background: var(--qb-color-cta-hover); }
.b-header .qb-icon-btn { color: var(--b-ink); }
.b-header .qb-icon-btn:hover { background: var(--b-blush); }
.b-header .qb-badge-count { background: var(--b-clay); color: #fff; }
.b-menu { display: none; border-top: 2px solid var(--qb-color-line); position: relative; }
.b-menu__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; padding-block: 8px; align-items: center; }
.b-menu__link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 12px; border: 2px solid transparent; border-radius: 999px; background: none; font: 800 .9375rem/1.1 var(--qb-font-display); color: var(--b-ink); text-decoration: none; transition: transform 180ms var(--b-spring), background var(--qb-motion-fast); }
.b-menu__link:hover, .b-menu__trigger[aria-expanded="true"] { transform: scale(1.05); border-color: var(--b-ink); }
.b-menu__link .qb-icon { width: 16px; height: 16px; }
.b-c1 { --c: var(--b-blush); } .b-c2 { --c: var(--b-mint); } .b-c3 { --c: var(--b-saffron); } .b-c4 { --c: var(--b-sand); } .b-c5 { --c: #C9D8B4; }
.b-menu__link.b-c1, .b-menu__link.b-c2, .b-menu__link.b-c3, .b-menu__link.b-c4, .b-menu__link.b-c5 { background: var(--c); color: var(--b-ink); }
.b-menu__sale { background: var(--b-clay); color: #fff; }
.b-menu__sale:hover { border-color: var(--b-clay); }
.b-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 70; background: var(--b-blush); color: var(--b-ink); border-block: 3px solid var(--b-ink); padding-block: 24px; box-shadow: var(--qb-shadow-2); }
.b-mega__tiles { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.b-mega__tile { display: block; text-decoration: none; background: var(--t); border: 2px solid var(--b-ink); border-radius: 18px; padding: 10px; text-align: center; color: var(--b-ink); transition: transform 180ms var(--b-spring); }
.b-mega__tile:hover { transform: translateY(-3px) scale(1.03); }
.b-mega__tile img { width: 100%; aspect-ratio: 5/3; object-fit: cover; border-radius: 10px; }
.b-mega__tile span { display: block; margin-top: 6px; font: 800 1rem var(--qb-font-display); }
.b-mega__colors { display: flex; align-items: center; gap: 16px; margin: 18px 0 0; flex-wrap: wrap; }
.b-mega__colors > span { font: 900 1rem var(--qb-font-display); }
.b-mega .qb-colorrow { margin: 0; }
.b-mega .qb-colorrow a { padding: 4px 12px 4px 4px; }

@media (min-width: 900px) {
  .b-header { position: sticky; top: 0; }
  .b-header__nav { display: none; }
  .b-header__row { flex-wrap: nowrap; gap: 14px; }
  .b-logo { order: 0; margin-right: 0; }
  .b-header__search { order: 1; flex: 1 1 auto; max-width: 820px; margin-inline: auto; }
  .b-header__wish, .b-header__acct, .b-header__cart { order: 2; display: inline-grid; }
  .b-menu { display: block; }
  :root { --qb-header-h: 120px; }
}
@media (min-width: 900px) and (max-width: 1279px) { .b-menu__link { padding-inline: 8px; font-size: .875rem; } .b-menu__list { gap: 2px; } }
@media (max-width: 899px) {
  .b-header__row { padding-block: 8px; }
  .b-header__search { padding-bottom: 4px; }
}

/* mobile menu panel */
.b-navpanel { background: var(--qb-color-bg); }
.b-navlist { list-style: none; display: grid; gap: 10px; }
.b-navlist a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 6px 14px 6px 6px; border: 2px solid var(--b-ink); border-radius: 18px; background: var(--c); color: var(--b-ink); text-decoration: none; font: 900 1.125rem var(--qb-font-display); }
.b-navlist img { width: 76px; height: 52px; object-fit: cover; border-radius: 12px; }
.b-navlist__h { font: 900 1rem var(--qb-font-display); margin: 24px 0 8px; }
.b-navlist__plain { list-style: none; margin-top: 16px; }
.b-navlist__plain a { display: flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--qb-color-line); }

/* colour swatch row (F-15) */
.qb-colorrow { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.qb-colorrow a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 5px 18px 5px 5px; border: 2px solid var(--b-ink); border-radius: 999px; background: #fff; text-decoration: none; font: 800 1rem var(--qb-font-display); color: var(--b-ink); transition: transform 180ms var(--b-spring), background var(--qb-motion-fast); }
.qb-colorrow a:hover { transform: scale(1.06) rotate(-1deg); background: var(--b-saffron); }
.qb-colorrow__chip { width: 40px; height: 40px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(35,26,21,.55); flex: none; }
@media (max-width: 899px) { .qb-colorrow { flex-wrap: nowrap; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x proximity; margin-inline: calc(var(--qb-gutter) * -1); padding-inline: var(--qb-gutter); } .qb-colorrow li { flex: none; scroll-snap-align: start; } .b-mega .qb-colorrow, .b-navpanel .qb-colorrow { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.b-navpanel .qb-colorrow { gap: 8px; }
.b-navpanel .qb-colorrow a { min-height: 48px; font-size: .9375rem; }
.b-navpanel .qb-colorrow__chip { width: 32px; height: 32px; }

/* ---------- home: hero ---------- */
.b-hero { background: var(--b-saffron); color: var(--b-ink); border-bottom: 3px solid var(--b-ink); overflow: hidden; }
.b-hero__grid { display: grid; gap: 28px; padding-block: 28px 40px; align-items: center; }
.b-hero__h { font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: .98; font-weight: 1000; margin: 0 0 16px; }
.b-hl { display: inline-block; background: var(--qb-color-bg); padding: 0 .2em; border-radius: 14px; transform: rotate(-1.5deg); border: 3px solid var(--b-ink); }
.b-hero__p { font-size: 1.1875rem; max-width: 36rem; margin-bottom: 20px; }
.b-hero .b-kicker { background: var(--b-ink); color: var(--qb-color-bg); }
.b-hero__builder { max-width: 34rem; }
.b-hero__builder .qb-setbuilder { background: var(--qb-color-bg); border: 3px solid var(--b-ink); box-shadow: 6px 6px 0 var(--b-ink); border-radius: 22px; }
.b-hero__builder .qb-sb__title { font-size: 1.375rem; }
.b-hero .b-note-sample { color: #3B2C22; }
.b-hero__art { position: relative; margin: 0; order: -1; }
.b-hero__art img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border: 3px solid var(--b-ink); border-radius: 26px; box-shadow: 6px 6px 0 var(--b-ink); background: var(--b-blush); }
.b-sticker { position: absolute; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--b-ink); font: 900 .875rem/1.15 var(--qb-font-display); color: var(--b-ink); box-shadow: 3px 3px 0 var(--b-ink); }
.b-sticker--a { top: -8px; right: 12px; background: var(--b-mint); transform: rotate(5deg); }
.b-sticker--b { bottom: 12px; left: 10px; background: var(--b-blush); transform: rotate(-4deg); }
@media (min-width: 960px) {
  .b-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; padding-block: 48px 64px; }
  .b-hero__art { order: 0; }
  .b-hero__art img { aspect-ratio: 8/5; }
  .b-sticker { font-size: 1rem; padding: 10px 18px; }
  .b-sticker--a { top: 18px; right: -14px; } .b-sticker--b { bottom: 24px; left: -14px; }
}
.b-hero .qb-sb__pill, .b-hero .qb-sb__swatches label { color: var(--b-ink); }

/* ---------- home: sets rail ---------- */
.b-railwrap { position: relative; }
.b-rail { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 6px 4px 20px; margin-inline: -4px; overscroll-behavior-x: contain; }
.b-rail:focus-visible { outline: 3px solid var(--b-ink); outline-offset: 4px; border-radius: 12px; }
.b-rail__track { display: flex; gap: 20px; width: max-content; }
.b-rail__track > * { flex: none; width: min(70vw, 280px); scroll-snap-align: start; }
@media (min-width: 900px) { .b-rail__track > * { width: 290px; } }
.b-rail__hint { margin: 0; }
.b-section--tint .qb-card__media { box-shadow: 0 0 0 2px var(--b-ink); background: var(--qb-color-bg); }
.b-section--tint .qb-card__type, .b-section--tint .qb-card__meta, .b-section--tint .qb-price__from { color: #3B2C22; }
.b-section--tint .qb-btn--ghost { background: var(--qb-color-bg); }
.b-section--tint .qb-chip, .b-section--tint .qb-size-chip { color: var(--b-ink); }

/* quiz band */
.b-quizband { background: var(--b-mint); color: var(--b-ink); border-block: 3px solid var(--b-ink); padding-block: 48px; }
.b-quizband--slim { padding-block: 28px; margin-top: 56px; }
.b-quizband--in { margin-top: 32px; border: 3px solid var(--b-ink); border-radius: 24px; padding: 24px; }
.b-quizband__in { display: grid; gap: 20px; align-items: center; }
.b-quizband p { margin: 0 0 6px; max-width: 40rem; }
.b-quizband .b-kicker--ink { background: var(--qb-color-bg); }
.b-bigbtn { min-height: 64px; padding-inline: 32px; font-size: 1.125rem; justify-self: start; }
.b-bigbtn .qb-icon { width: 26px; height: 26px; }
@media (min-width: 900px) { .b-quizband__in { grid-template-columns: 1fr auto; gap: 48px; } .b-bigbtn { justify-self: end; } }

/* proof (one module) */
.b-proof { display: grid; gap: 28px; }
@media (min-width: 900px) { .b-proof { grid-template-columns: 1.2fr .8fr; gap: 36px; } }
.b-proof__note { font-size: .9375rem; background: var(--qb-color-bg); border: 2px dashed var(--qb-color-control-border); border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; }
.b-ugc__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.b-ugc__grid li { position: relative; background: var(--t); border: 2px dashed var(--b-ink); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; color: var(--b-ink); }
.b-ugc__grid img { width: 100%; aspect-ratio: 5/3; object-fit: cover; border-radius: 12px; opacity: .85; }
.b-ugc__grid span { display: block; margin-top: 8px; font: 800 .875rem/1.2 var(--qb-font-display); }
.b-wall__list { list-style: none; display: grid; gap: 14px; }
.b-wall__list li { background: #fff; border: 2px solid var(--b-ink); border-radius: 20px; padding: 16px 18px; box-shadow: 4px 4px 0 var(--b-blush); }
.b-wall__q { font: 700 1.0625rem/1.4 var(--qb-font-display); margin-bottom: 6px; }
.b-wall__who { font-size: .875rem; color: var(--qb-color-ink-2); margin: 0; }

/* story */
.b-story { background: var(--b-sage); color: #fff; padding-block: 56px; }
.b-story .b-kicker--ink { background: var(--b-saffron); }
.b-story__grid { display: grid; gap: 32px; align-items: start; }
.b-story .qb-btn--secondary { background: #fff; color: var(--b-ink); }
@media (min-width: 900px) { .b-story__grid { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.b-facts { list-style: none; display: grid; gap: 10px; }
.b-facts li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--qb-color-bg); color: var(--b-ink); border: 2px solid var(--b-ink); }
.b-facts__k { font: 900 .9375rem var(--qb-font-display); } .b-facts__v { font-size: .9375rem; }
@media (max-width: 479px) { .b-facts li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- footer ---------- */
.b-footer { background: var(--b-ink); color: #fff5ea; padding: 48px 0 32px; margin-top: 0; }
.b-footer a { color: #fff; display: inline-block; padding: 6px 0; text-underline-offset: .2em; }
.b-footer__top { display: grid; gap: 32px; }
@media (min-width: 900px) { .b-footer__top { grid-template-columns: 1.4fr .8fr .8fr; gap: 56px; } }
.b-footer__h { font-size: 1.75rem; color: #fff; }
.b-footer__h2 { font-size: 1.125rem; color: var(--b-saffron); }
.b-footer ul { list-style: none; }
.b-footer .qb-note { color: #E9D9C8; }
.b-footer__fine { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); }
.b-email label { display: block; font-weight: 700; margin-bottom: 6px; }
.b-email .qb-sample-tag { color: #E9D9C8; }
.b-email input { background: #fff; color: var(--b-ink); border-color: #fff; border-radius: 999px; padding-inline: 18px; }
.b-email .qb-btn--primary { box-shadow: none; white-space: nowrap; flex: none; }
.b-email .qb-email__msg { color: #fff; }

/* ---------- mobile tab bar ---------- */
.b-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--qb-color-bg); border-top: 3px solid var(--b-ink); padding-bottom: env(safe-area-inset-bottom); }
.b-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; border: 0; background: none; color: var(--b-ink); text-decoration: none; font: 800 .75rem/1.1 var(--qb-font-display); padding: 6px 2px; }
.b-tab .qb-icon { width: 24px; height: 24px; }
.b-tab:active { background: var(--b-saffron); }
.b-tab .qb-badge-count { top: 4px; right: calc(50% - 22px); background: var(--b-clay); color: #fff; }
.b-tab[aria-current="page"] { background: var(--b-saffron); }
@media (max-width: 899px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .qb-sticky { bottom: calc(63px + env(safe-area-inset-bottom)); }
  .qb-chat { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.qb-sticky.is-visible) .qb-chat { bottom: calc(148px + env(safe-area-inset-bottom)); }
  .qb-tray { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) { .b-tabs { display: none; } }
.qb-chat__btn { background: var(--b-clay); color: #fff; border: 2px solid var(--b-ink); }

/* ---------- collection ---------- */
.b-colhead { background: var(--b-blush); color: var(--b-ink); border-bottom: 3px solid var(--b-ink); padding-block: 8px 28px; }
.b-colhead .qb-breadcrumb ol, .b-colhead .qb-breadcrumb { color: #3B2C22; }
.b-colhead__h { font-size: clamp(2.1rem, 5.5vw, 4rem); font-weight: 1000; line-height: 1; margin: 6px 0 14px; }
.b-colhead__lead { font-size: 1.1875rem; max-width: 40rem; margin: 0; }
.b-colhead__answer .qb-answer { background: var(--qb-color-bg); border: 2px solid var(--b-ink); border-left-width: 8px; border-left-color: var(--b-clay); border-radius: 16px; padding: 12px 18px; margin: 0; max-width: 62rem; }
.b-colhead__answer .qb-answer__label { color: var(--qb-color-ink-2); }
.b-colhead--finder { background: var(--b-saffron); }
.b-colhead--finder .b-kicker--ink { background: var(--b-ink); color: var(--qb-color-bg); }
.b-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.b-jump .qb-chip { text-decoration: none; background: var(--qb-color-bg); font-weight: 800; color: var(--b-ink); }
.b-filterbar { position: relative; display: none; margin-block: 24px 4px; }
.b-filterbar__facets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.b-filterbar .qb-facet { position: relative; border: 0; }
.b-filterbar .qb-facet__h { min-height: 48px; padding: 6px 12px; border: 2px solid var(--b-ink); border-radius: 999px; background: #fff; gap: 8px; font: 800 .9375rem var(--qb-font-display); transition: transform 180ms var(--b-spring), background var(--qb-motion-fast); }
.b-filterbar .qb-facet__h:hover { transform: scale(1.04); background: var(--b-saffron); }
.b-filterbar .qb-facet[open] > .qb-facet__h { background: var(--b-ink); color: var(--qb-color-bg); }
.b-filterbar .qb-facet__list { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; min-width: 240px; max-width: 360px; max-height: 60vh; overflow: auto; padding: 14px 16px; background: var(--qb-color-bg); border: 2px solid var(--b-ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--b-ink); }
.b-filterbar .qb-facet__list--swatch { width: 320px; padding: 14px; }
.b-filterbar .qb-facet--toggle .qb-check { min-height: 48px; padding: 6px 12px; border: 2px solid var(--b-ink); border-radius: 999px; background: #fff; font-weight: 700; font-size: .9375rem; }
.b-filterbar .qb-facet--toggle:has(:checked) .qb-check { background: var(--b-saffron); }
.b-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 20px 0 14px; }
.b-count { margin: 0; font-weight: 700; flex: 1; }
.b-sort { display: flex; align-items: center; gap: 8px; } .b-sort label { font-weight: 700; } .b-sort select { width: auto; border-radius: 999px; border-width: 2px; padding-inline: 16px; background: #fff; }
.b-view { display: flex; gap: 6px; }
.b-view .qb-btn { border-radius: 999px; background: var(--qb-color-bg); border-color: var(--qb-color-control-border); color: var(--b-ink); }
.b-view .qb-btn[aria-pressed="true"] { background: var(--b-ink); color: var(--qb-color-bg); border-color: var(--b-ink); }
.b-filterbtn { margin-right: auto; }
.b-active { margin-bottom: 14px; }
@media (min-width: 900px) { .b-filterbar { display: block; } .b-filterbtn { display: none; } .b-toolbar { margin-top: 12px; } .b-view { margin-left: 0; } }
.b-grid { grid-auto-flow: dense; margin-bottom: 40px; }
.b-grid.is-list { grid-template-columns: 1fr; }
.qb-settile { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 24px; background: var(--b-saffron); color: var(--b-ink); border: 3px solid var(--b-ink); border-radius: 26px; box-shadow: 5px 5px 0 var(--b-ink); min-height: 220px; }
@media (min-width: 768px) { .qb-settile { grid-column: span 2; } }
.qb-settile__k { align-self: flex-start; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--b-ink); color: var(--qb-color-bg); font: 800 .8125rem var(--qb-font-display); }
.qb-settile__h { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05; margin: 8px 0 6px; font-weight: 1000; }
.qb-settile p { margin: 0 0 12px; max-width: 30rem; }
.qb-settile .qb-btn { align-self: flex-start; }
.b-faq { max-width: 56rem; }
.qb-faq__q { font-family: var(--qb-font-display); font-weight: 800; font-size: 1.0625rem; }
/* explainer (duvets & comforters) */
.qb-explainer { background: var(--b-mint); color: var(--b-ink); border: 3px solid var(--b-ink); border-radius: 26px; padding: 22px 24px 24px; margin: 28px 0 0; box-shadow: 5px 5px 0 var(--b-ink); }
.qb-explainer__h { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 1000; margin: 0 0 16px; }
.qb-explainer ul { list-style: none; display: grid; gap: 14px; }
.qb-explainer li { background: var(--qb-color-bg); border: 2px solid var(--b-ink); border-radius: 20px; padding: 12px; display: grid; grid-template-columns: 96px 1fr; gap: 4px 14px; align-items: center; }
.qb-explainer li img { grid-row: span 2; width: 96px; height: 80px; object-fit: cover; border-radius: 12px; }
.qb-explainer h3 { font-size: 1.1875rem; font-weight: 900; margin: 0; align-self: end; }
.qb-explainer p { margin: 0; font-size: .9375rem; align-self: start; }
@media (min-width: 768px) { .qb-explainer ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } .qb-explainer li { grid-template-columns: 1fr; padding: 14px; } .qb-explainer li img { grid-row: auto; width: 100%; height: 120px; } .qb-explainer h3 { align-self: auto; } }
.qb-breadcrumb ol { align-items: center; } .qb-breadcrumb li { display: inline-flex; align-items: center; }

/* ---------- PDP ---------- */
.b-pdpmain { padding-bottom: 8px; }
.b-pdp { display: grid; gap: 24px; margin-bottom: 32px; }
.b-pdp__media { max-width: 560px; }
.b-pdp__media .qb-gallery__main { aspect-ratio: 1/1; border: 3px solid var(--b-ink); border-radius: 26px; box-shadow: 5px 5px 0 var(--b-ink); }
.b-pdp__media .qb-gallery__thumb { width: 72px; border-radius: 14px; }
.b-pdp__media .qb-gallery__thumb.is-active { border-color: var(--b-ink); box-shadow: 0 0 0 2px var(--b-saffron); }
.b-pdp__h { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 1000; line-height: 1.05; margin: 0 0 8px; }
.b-pdp__rate { margin-bottom: 4px; }
.b-pdp__price { font: 900 1.75rem var(--qb-font-display); margin: 8px 0 16px; }
.b-pdp__price .qb-price { font-size: 1.75rem; font-weight: 900; }
.b-pdp .qb-atc__btn { min-height: 56px; font-size: 1.125rem; }
.b-pdp__buy .qb-badges { margin: 4px 0 8px; }
.b-pdp__buy .qb-delivery { margin: 16px 0; padding: 14px 16px; background: var(--b-mint); color: var(--b-ink); border-radius: 18px; border: 2px solid var(--b-ink); }
.b-pdp__buy .qb-delivery__cut { color: #2B3A29; }
.b-pdp__buy .qb-delivery .qb-note, .b-pdp__buy .qb-delivery label { color: var(--b-ink); }
.b-pdp__set { margin: 16px 0; }
.b-pdp__set .qb-setbuilder { border: 3px solid var(--b-ink); background: var(--b-saffron); color: var(--b-ink); border-radius: 22px; box-shadow: 4px 4px 0 var(--b-ink); padding: 10px 16px; }
.b-pdp__set .qb-sb__toggle { font: 900 1.0625rem var(--qb-font-display); min-height: 52px; }
.b-pdp__set .qb-sb__toggle s { color: #3B2C22; }
.b-pdp__set .qb-sb__panel { background: var(--qb-color-bg); border-radius: 16px; padding: 14px; margin: 6px 0 4px; }
.b-pdp__set .qb-sb__was { color: var(--qb-color-ink-2); }
.b-pdp__set .qb-btn--primary { box-shadow: none; }
@media (min-width: 900px) { .b-pdp { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; } .b-pdp__media { position: sticky; top: calc(var(--qb-header-h) + 16px); } }
.b-pdpcols { display: grid; gap: 20px; margin-block: 24px; }
@media (min-width: 900px) { .b-pdpcols { grid-template-columns: 1.2fr .8fr; } }
.b-block { background: #fff; border: 2px solid var(--b-ink); border-radius: 24px; padding: 22px 24px; margin-bottom: 20px; }
.b-pdpcols .b-block { margin-bottom: 0; align-self: start; }
.b-block--sage { background: #DDE8D2; color: var(--b-ink); }
.b-block--sage .qb-choose .qb-icon { color: var(--b-sage); }
.b-block--wide { }
.b-block .qb-note { color: var(--qb-color-ink-2); }
.qb-includes { margin: 12px 0 0 20px; }
.qb-sticky { border-top: 3px solid var(--b-ink); background: var(--qb-color-bg); }
.qb-sticky__label { color: var(--b-ink); font-weight: 700; }

/* ---------- cart ---------- */
.qb-dialog__panel { background: var(--qb-color-bg); border-left: 3px solid var(--b-ink); }
.qb-dialog--left .qb-dialog__panel { border-left: 0; border-right: 3px solid var(--b-ink); }
.qb-dialog__head { border-bottom: 3px solid var(--b-ink); background: var(--b-saffron); color: var(--b-ink); }
.qb-dialog__head h2, .b-dlg-h { font: 1000 1.375rem var(--qb-font-display); }
.qb-dialog__head .qb-icon-btn:hover { background: var(--qb-color-bg); }
.qb-progress { background: var(--b-mint); color: var(--b-ink); border: 2px solid var(--b-ink); border-radius: 18px; }
.qb-progress__note { color: #2B3A29; }
.qb-progress__track { box-shadow: inset 0 0 0 2px var(--b-ink); background: #fff; height: 12px; border-radius: 6px; }
.qb-progress__track span { background: var(--b-clay); }
.qb-progress.is-done .qb-progress__track span { background: var(--b-sage); }
.qb-progress.is-done .qb-progress__msg { color: #254023; }
.qb-line-group { border: 3px dashed var(--b-clay); border-radius: 20px; background: #fff; padding: 14px; position: relative; }
.qb-line-group__title { font: 1000 1.0625rem var(--qb-font-display); }
.qb-line-group__title::before { content: "SET"; background: var(--b-saffron); color: var(--b-ink); border: 2px solid var(--b-ink); border-radius: 999px; padding: 0 10px; font: 900 .75rem/1.6 var(--qb-font-display); letter-spacing: .06em; }
.qb-line-group__save { background: var(--b-sage); color: #fff; padding: 2px 10px; border-radius: 999px; }
.qb-line__img img { border-radius: 14px; border: 2px solid var(--b-ink); }
.qb-line__title { font-family: var(--qb-font-display); font-weight: 800; }
.qb-summary__save { color: var(--b-sage); }
.qb-summary__total { font-family: var(--qb-font-display); font-size: 1.375rem; font-weight: 900; }
.b-cartpage__grid { display: grid; gap: 24px; margin-bottom: 40px; }
.b-cartpage__side { background: var(--b-saffron); border: 3px solid var(--b-ink); border-radius: 24px; box-shadow: 5px 5px 0 var(--b-ink); padding: 22px; align-self: start; color: var(--b-ink); }
.b-cartpage__fine { color: #3B2C22; margin: 14px 0 0; }
@media (min-width: 900px) { .b-cartpage__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; } }

/* ---------- search, guide, finder, about, 404 ---------- */
.b-searchpage__form { max-width: 720px; margin-bottom: 18px; }
.b-searchpage .qb-search-field, .b-lost .qb-search-field { border: 2px solid var(--b-ink); box-shadow: 3px 3px 0 var(--b-ink); background: #fff; }
.b-searchpage .qb-search-field button[type=submit], .b-lost .qb-search-field button[type=submit] { background: var(--b-clay); color: #fff; }
.b-searchpage__note { margin-bottom: 20px; }
.b-searchpage .qb-noresults, .b-searchpage .qb-empty { background: var(--b-blush); color: var(--b-ink); border: 2px solid var(--b-ink); }
.b-guide, .b-about { padding-block: 32px; display: grid; gap: 20px; }
@media (min-width: 900px) { .b-guide, .b-about { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-block--wide, .b-quizband--in { grid-column: 1 / -1; } }
.b-guide .b-block, .b-about .b-block { margin: 0; }
.b-about .b-block--sage .b-facts li, .b-guide .b-block--sage .b-facts li { background: #fff; }
.b-facts--stack li { grid-template-columns: 8.5rem 1fr; }
.b-finder { padding-block: 32px 56px; }
.b-quiz { background: #fff; border: 3px solid var(--b-ink); border-radius: 28px; box-shadow: 6px 6px 0 var(--b-ink); padding: 24px; max-width: 920px; margin-inline: auto; }
@media (min-width: 768px) { .b-quiz { padding: 36px; } }
.qb-quiz__legend { font-weight: 1000; font-size: clamp(1.4rem, 3vw, 2rem); }
.qb-quiz__bar { height: 12px; border-radius: 6px; border: 2px solid var(--b-ink); background: #fff; }
.qb-quiz__bar span { background: var(--b-clay); }
.qb-quiz__opt { border-width: 2px; border-color: var(--b-ink); border-radius: 18px; min-height: 72px; font: 800 1.0625rem var(--qb-font-display); }
.qb-quiz__rank { background: var(--b-clay); color: #fff; border: 2px solid var(--b-ink); }
.qb-quiz__set { background: var(--b-saffron); color: var(--b-ink); border: 2px solid var(--b-ink); border-radius: 20px; }
.b-lost { padding-bottom: 24px; }
.b-lost__hero { background: var(--b-saffron); color: var(--b-ink); border: 3px solid var(--b-ink); border-radius: 28px; padding: 32px 24px; margin-top: 28px; box-shadow: 6px 6px 0 var(--b-ink); }
.b-lost__hero .b-kicker--ink { background: var(--b-ink); color: var(--qb-color-bg); }
.b-lost__hero p { max-width: 36rem; }
.b-cats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .b-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.b-cat { display: block; text-decoration: none; background: var(--c); color: var(--b-ink); border: 2px solid var(--b-ink); border-radius: 22px; padding: 10px; text-align: center; transition: transform 180ms var(--b-spring); }
.b-cat:hover { transform: translateY(-4px) scale(1.03); }
.b-cat img { width: 100%; aspect-ratio: 5/3; object-fit: cover; border-radius: 14px; }
.b-cat span { display: block; margin-top: 8px; font: 900 1.0625rem/1.15 var(--qb-font-display); }
.qb-cart-empty { background: var(--b-blush); color: var(--b-ink); border: 2px solid var(--b-ink); border-radius: 22px; }
.qb-setbuilder--stepper .qb-sb__steps li.is-current { background: var(--b-ink); }
.qb-sb__steps li { border: 1.5px solid var(--qb-color-control-border); background: #fff; }
.qb-sb__steps li.is-current { border-color: var(--b-ink); }
.qb-answer { border-left-color: var(--b-clay); border-left-width: 6px; }
@media (prefers-reduced-motion: reduce) { .b-cat:hover, .b-mega__tile:hover, .qb-colorrow a:hover, .b-menu__link:hover { transform: none; } }

@media (max-width: 599px) { .qb-card__actions [data-qb-quickview], .qb-card__actions .qb-btn { display: none; } .qb-card__actions { margin-top: 0; } }
.b-guide, .b-about { grid-template-columns: minmax(0, 1fr); } .b-guide > *, .b-about > * { min-width: 0; } .b-block .qb-pocket input { min-width: 0; max-width: 100%; }
@media (min-width: 900px) { .b-guide, .b-about { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- design review fixes ---- */
.b-tabs-proof { display: flex; gap: 8px; margin-bottom: 16px; }
.b-tabs-proof .qb-chip[aria-selected="true"] { background: var(--b-ink); color: var(--qb-color-bg); }
.b-proof.is-tabbed { grid-template-columns: 1fr; }
.b-ugc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .b-ugc__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .b-wall__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* colour-blocked card grounds */
.qb-grid > .qb-card:nth-child(3n+1) .qb-card__media, .b-rail__track > .qb-card:nth-child(3n+1) .qb-card__media { background: var(--b-blush); }
.qb-grid > .qb-card:nth-child(3n+2) .qb-card__media, .b-rail__track > .qb-card:nth-child(3n+2) .qb-card__media { background: var(--b-mint); }
.qb-grid > .qb-card:nth-child(3n) .qb-card__media, .b-rail__track > .qb-card:nth-child(3n) .qb-card__media { background: var(--b-sand); }
.b-section--tint .qb-card .qb-card__media { background: var(--qb-color-bg); }
.b-section--tint .qb-card:nth-child(3n+2) .qb-card__media { background: var(--b-mint); }
.b-section--tint .qb-card:nth-child(3n) .qb-card__media { background: var(--b-sand); }
.qb-card__media img { mix-blend-mode: multiply; }
.qb-card__body { flex: 1; }
.qb-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qb-card__actions { margin-top: auto; }
/* set tile art */
@media (min-width: 768px) {
  .qb-settile { position: relative; overflow: hidden; padding-right: 50%; }
  .qb-settile::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 46%; background: url(../img/scene/hero-b.svg) 58% center / cover no-repeat; border-left: 3px solid var(--b-ink); }
}
.qb-settile { min-height: 260px; }
/* PDP answer under title */
.b-pdp__answer .qb-answer { margin: 8px 0 14px; padding-block: 2px; }
.b-pdp__answer .qb-answer__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .9375rem; }
/* mobile fixed layers */
@media (max-width: 899px) {
  body:has(.qb-sticky.is-visible) .b-tabs { transform: translateY(100%); }
  .qb-sticky { bottom: 0 !important; }
  body { padding-bottom: 0; }
  .b-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* guide */
.b-guide > .b-block--sage { align-self: start; }
.qb-pocket .qb-btn { white-space: nowrap; }
.b-guide { padding-top: 32px; }
.qb-review__head { align-items: baseline; }
