/* MO R3 — category + search extras (category lane). Target: /assets/themes/mo-staging-ai/css/mo-r3-cat.css.
   The mockup's category blocks already live in css/mo-r3.css (lead's file). This file only adds what Neto's markup needs:
   filter options are links (Neto PRODUCT_FILTER), the filter body is a div not a form, the hero image sits in a <picture>,
   the sort select sits in a GET form, and the search page head. */
.cat-page{padding-bottom:8px}
.cat-hero-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cat-intro[hidden],[data-cat-count][hidden]{display:none!important}
.crumbs span[aria-current]{color:var(--ink-2)}
.cat-facts i.cc{font-style:normal}

/* sort form */
.sort-form{margin:0;display:flex}
.sort-form[hidden]{display:none}

/* filter options as links with a drawn checkbox */
a.f-opt{color:var(--ink);text-decoration:none}
.f-box{flex:none;width:20px;height:20px;border:1.5px solid #9A948B;border-radius:5px;background:#fff;display:grid;place-items:center;transition:background .15s,border-color .15s}
a.f-opt:hover .f-box{border-color:var(--ink)}
a.f-opt.on .f-box{background:var(--teal-700);border-color:var(--teal-700)}
a.f-opt.on .f-box::after{content:"";width:10px;height:6px;border:2px solid #fff;border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}
a.f-opt.on span:not(.f-box){font-weight:500}
.f-opt small:empty{display:none}
a.f-opt:focus-visible{outline:2px solid var(--teal-700);outline-offset:2px;border-radius:6px}
.f-active a.chip{text-decoration:none}

/* mobile sheet: the mockup styles ".filters.on form"; Neto's filter body is div.f-form */
@media (max-width:900px){
  .filters.on .f-form{overflow-y:auto;padding:4px 18px 8px;flex:1}
  .filters.on .f-foot .mo-btn{min-height:46px}
  .sort-form{flex:1}
  .sort-form .select,.sort-form .select select{width:100%}
}

/* FAQ / SEO text that comes from the category's Description fields (free HTML from the control panel) */
.cat-faq h3,.cat-faq h4{font-size:17px;font-weight:500;margin:18px 0 6px}
.cat-faq p{color:var(--ink-2);margin:0 0 12px;max-width:760px}
.cat-faq details{border-bottom:1px solid var(--line)}

/* Load more */
.load [data-more][aria-busy]{opacity:.6;pointer-events:none}

/* search page head */
.search-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;background:var(--sand);border-radius:var(--r-lg);padding:28px 32px;margin-bottom:6px}
.search-head h1{font-size:clamp(26px,3vw,36px);letter-spacing:-.02em;margin:0}
.search-again{display:flex;gap:8px;flex:1 1 320px;max-width:520px}
.search-again input{flex:1;height:48px;border:1.5px solid var(--line);border-radius:999px;padding:0 18px;font-size:16px;background:#fff;min-width:0}
.search-again .mo-btn{height:48px;width:48px;padding:0;border-radius:999px;display:grid;place-items:center}
@media (max-width:900px){
  .search-head{padding:20px 18px}
  .search-page .toolbar{margin-top:12px}
}

/* ---------- R6 (lane C) ---------- */
/* filters: Clear all at the top of the column (B7), our own price bands + From-To box (B7), no empty category group (B6) */
.f-clearrow{margin:0 0 6px}
.f-clearrow .f-clear{display:inline-flex;align-items:center;padding:0;min-height:32px;font-weight:500}
.f-clearrow .f-clear[hidden]{display:none}
.f-edges{display:none}
.f-group[data-g="cat"]:not(:has(a.f-opt)){display:none}
.f-group[data-g="pr"][data-bands]:not([data-bands=""]) .f-body{min-height:320px}
.f-range{margin-top:10px;padding-top:12px;border-top:1px dashed var(--line)}
.f-range-t{display:block;font-size:13.5px;color:var(--muted);margin-bottom:8px}
.f-range-r{display:flex;gap:8px;align-items:center}
.f-range label{position:relative;flex:1;min-width:0}
.f-range label i{position:absolute;left:11px;top:50%;transform:translateY(-50%);font-style:normal;color:var(--muted);pointer-events:none}
.f-range input{width:100%;height:42px;border:1.5px solid var(--line);border-radius:10px;padding:0 8px 0 24px;font-size:16px;background:#fff}
.f-range input:focus{outline:2px solid var(--teal-700);outline-offset:1px;border-color:var(--teal-700)}
.f-range .mo-btn{flex:none;min-height:42px;padding:0 16px;border-color:var(--teal-700);color:var(--teal-700)}
.f-range .mo-btn:hover{background:var(--teal-700);color:#fff}
.f-range-e{color:var(--sale);font-size:13px;margin-top:6px}
.f-range-e[hidden]{display:none}
/* pager: page 1 always there; a thin divider where pages are skipped */
.pager .pg-gap{width:1px;height:22px;background:var(--line);min-width:0;border:0}
/* phone: subcategories as a two-column pill grid, never a slider (B8, rule 47 / W11) */
@media (max-width:767px){
  .size-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;margin:0;padding:14px 0 4px}
  .size-nav a{min-width:0;height:auto;min-height:48px;padding:5px 10px 5px 6px;border-radius:26px;line-height:1.2;white-space:normal;font-size:15px}
  .size-nav a:not(:has(img)){padding:6px 14px;justify-content:center;text-align:center}
}
/* phone toolbar: Filter button shrinks to its content so "Sort: Best selling" is never cut off */
@media (max-width:480px){
  .toolbar .filter-btn{flex:0 0 auto;padding:0 16px}
  .toolbar .tb-r{flex:1;min-width:0;gap:8px}
  .sort-form,.sort-form .select{min-width:0}
  .sort-form .select select{padding-right:34px;font-size:15px}
}
/* ---------- R6 card block (also injected by js/mo-r3-card.js on pages that don't load this file) ---------- */
:root{--mo-r6:1}
.mo-card{border-color:#D7E7E5}
.mo-card:hover{border-color:var(--teal-300)}
.mo-card .mo-card-body{gap:5px}
.mo-card .mo-card-name{display:block;-webkit-line-clamp:unset;overflow:visible;min-height:0;margin:0 -0px -2px;overflow-wrap:anywhere}
.mo-card .mo-card-price{margin-top:auto;gap:3px}
.mo-card .mo-card-cta{margin-top:0;padding-top:8px}
.mo-card .pr .now:not(.sale){color:var(--ink)}
.mo-card .mem{position:relative;padding-left:27px;min-height:19px;font-size:13.5px;line-height:1.35;font-weight:500}
.mo-card .mem img{position:absolute;left:0;top:1px;margin:0;height:15px;width:auto}
.mo-card .mem b{font-weight:600;white-space:nowrap}
.mo-card .mo-btn-line{border-color:var(--teal-700);color:var(--teal-700)}
.mo-card .mo-btn-line:hover{background:var(--teal-700);color:#fff}
.mo-card .mo-card-sw{flex-wrap:wrap;gap:5px;overflow:visible}
.mo-card .mo-card-sw .csw:nth-of-type(n+4){display:block}
.mo-card .csw-more{display:none}
.mo-card .wish{display:grid;place-items:center;padding:0;line-height:0}
.mo-card .wish .add{display:grid;place-items:center;width:100%;height:100%;line-height:0}
.mo-card .wish .ico{display:block;width:20px;height:20px;margin:0}
.mo-card .mo-card-img img.alt:not(.ok){opacity:0!important}

/* ---------- R7 (lane C) ---------- */
/* #97 real product filters (Neto variations): one group per item specific, values as Neto stores them (first letter capitalised) */
.f-dummy,.f-va-wrap>details[hidden]{display:none!important}
.f-va-wrap{display:contents}
.f-opt .f-v{display:inline-block;min-width:0;overflow-wrap:anywhere}
.f-opt .f-v::first-letter{text-transform:uppercase}
a.f-opt.f-more-x{display:none}
.f-more{display:inline-flex;align-items:center;min-height:40px;padding:0;border:0;background:none;color:var(--teal-700);font:inherit;font-weight:600;font-size:14.5px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.f-more:focus-visible{outline:2px solid var(--teal-700);outline-offset:2px;border-radius:6px}
.f-va:not(:has(a.f-opt)){display:none}
/* MO-035/034: category hero. Phone + tablet: the category's own image as a square next to the heading (never a blank box); the intro paragraph
   is desktop-only so the size chips / tiles sit at the same height on every sibling page. Desktop: the wide photo; a square category image gets a square slot. */
.cat-hero-img.is-sq{min-height:0}
@media (min-width:901px){
  .cat-page .cat-hero:has(.is-sq){grid-template-columns:minmax(0,1fr) 260px}
  .cat-page .cat-hero-img.is-sq{height:260px}
}
.cat-hero-img picture{display:block;position:absolute;inset:0}
.cat-hero-img picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media (max-width:900px){
  .cat-page .cat-hero{grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;min-height:96px;border-radius:var(--r)}
  .cat-page .cat-hero-copy{padding:14px 0 14px 16px}
  .cat-page .cat-hero h1{font-size:clamp(24px,6.6vw,30px);line-height:1.15}
  .cat-page .cat-intro{display:none!important}
  .cat-page .cat-hero-img{display:block;position:relative;width:96px;height:96px;min-height:0;margin:0 0 0 0;border-radius:0 var(--r) var(--r) 0;overflow:hidden}
  .cat-page .cat-hero:not(:has(.cat-hero-img)){grid-template-columns:1fr}
}
@media (min-width:600px) and (max-width:900px){.cat-page .cat-hero-img{width:128px;height:128px}.cat-page .cat-hero{min-height:128px}}

/* #96 / MO-040 / MO-045 / MO-039: subcategory tiles = real product photo + name in a box (HR / PLA pattern). Phone 2 across, tablet 3, desktop a grid. Never a slider. */
.cat-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px 0 4px}
.cat-tiles:not(:has(a)){display:none}
.cat-tile{display:flex;align-items:center;gap:10px;min-width:0;min-height:64px;padding:6px 10px 6px 6px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-weight:500;font-size:15px;line-height:1.25;text-decoration:none;transition:border-color .15s,background-color .15s}
.cat-tile:hover{border-color:var(--teal-700)}
.cat-tile[aria-current="page"]{border-color:var(--teal-700);background:var(--teal-50);box-shadow:inset 0 0 0 1px var(--teal-700);color:var(--teal-800)}
.ct-img{flex:none;width:52px;height:52px;border-radius:8px;overflow:hidden;background:var(--sand)}
.ct-img img{width:100%;height:100%;object-fit:cover;display:block}
.ct-n{min-width:0;overflow-wrap:anywhere}
.cat-tiles.clip .cat-tile:nth-child(n+9){display:none}
.cat-tiles-more{grid-column:1/-1;justify-self:start;min-height:40px;padding:0 4px;color:var(--teal-700);font-weight:600;font-size:15px;text-decoration:underline;text-underline-offset:3px}
@media (min-width:600px){.cat-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:901px){
  .cat-tiles{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;padding-top:20px}
  .cat-tile{min-height:76px;font-size:15.5px}
  .ct-img{width:64px;height:64px}
}

/* #94 / MO-036/037/038: size chips (lane S .mo-size) on mattress + bed-frame pages: same 6 chips on every sibling; Foldable is a type below */
.cat-sizes{padding:14px 0 2px}
@media (min-width:901px){.cat-sizes{padding-top:20px}.cat-sizes .mo-sizes{grid-template-columns:repeat(6,minmax(0,1fr))}}
.cat-type{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.cat-type-l{font-size:14px;color:var(--muted);margin-right:2px}
.cat-type .chip{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:14.5px;font-weight:500;text-decoration:none}
.cat-type .chip:hover{border-color:var(--teal-700)}
.cat-type .chip[aria-current="page"]{border-color:var(--teal-700);background:var(--teal-50);color:var(--teal-800);box-shadow:inset 0 0 0 1px var(--teal-700)}

/* #98: price, Splash member line and button sit together at the bottom of every card in a row (the gap goes under the title instead) */
/* MO-002: card size tags use the shared size chip (.mo-size--sm), card-sized */
.mo-card .mo-card-sizes .mo-size--sm{min-height:26px;padding:2px 8px;border-radius:8px;font-size:12.5px;color:var(--ink-2)}
.mo-card .mo-card-sizes .mo-size--sm .mo-size-n{font-size:12.5px;font-weight:500;color:inherit}
.mo-card .mo-card-sizes .mo-size--sm.on{color:var(--teal-800)}
/* #99 Sale page */
.sale-hero{grid-template-columns:1fr!important;min-height:0!important}
.sale-sub{color:var(--ink-2);margin-top:8px;font-size:16px}
.sale-cats{margin:16px 0 4px}
.sale-count{margin:10px 0 0;color:var(--muted)}
.sale-h{font-size:22px;margin:22px 0 12px}
.sale-grid{margin-top:12px}
.sale-grid.clip>.mo-card:nth-child(n+31){display:none}
.sale-more{display:flex;margin:18px auto 0}
.sale-empty{margin-top:18px}
@media (max-width:900px){.sale-page .sale-sub{display:block}}
.cat-type .chip[hidden]{display:none}
/* MO-129 All categories */
.ac-page .ac-sec{padding:18px 0 8px;border-bottom:1px solid var(--line)}
.ac-page .ac-sec:last-child{border-bottom:0}
.ac-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.ac-head h2{font-size:22px}
.ac-sub{font-size:16px;color:var(--ink-2);margin:18px 0 0}
.ac-depts{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;padding-top:10px}
.ac-dept{display:flex;flex-direction:column;gap:6px}
.ac-links{display:flex;flex-wrap:wrap;gap:4px 14px;padding:0 4px;font-size:14.5px}
.ac-links a{color:var(--teal-700);text-decoration:underline;text-underline-offset:3px;line-height:2}
@media (max-width:599px){.ac-depts{grid-template-columns:1fr}}
@media (max-width:480px){.cat-page .cat-hero h1{font-size:22px;line-height:1.15}}
@media (max-width:600px){
  /* 10-11 CLS fix: the same one-line "‹ parent" look applies from first paint (before mo-r3-cat.js runs), so the page no longer jumps 10px at ~5 s on 4G. Pre-JS the current page is still the last <a>, so the parent is a:nth-last-of-type(2). */
  .cat-page .crumbs.has-up>*:not(.crumb-up),.cat-page .crumbs:not(.has-up):not(:has(>span))>*:not(a:nth-last-of-type(2)),.cat-page .crumbs:not(.has-up):has(>span)>*:not(a:last-of-type){display:none}
  .cat-page .crumbs.has-up .crumb-up,.cat-page .crumbs:not(.has-up):not(:has(>span))>a:nth-last-of-type(2),.cat-page .crumbs:not(.has-up):has(>span)>a:last-of-type{display:inline-flex;align-items:center;gap:4px;min-height:32px}
  .cat-page .crumbs.has-up .crumb-up::before,.cat-page .crumbs:not(.has-up):not(:has(>span))>a:nth-last-of-type(2)::before,.cat-page .crumbs:not(.has-up):has(>span)>a:last-of-type::before{content:"";width:8px;height:8px;border-left:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);margin:0 2px 0 3px}
}
/* category size chips keep image-left rows at 360 too (products stay near the top); the image shrinks a little instead of stacking */
.cat-sizes .mo-sizes{container-type:normal}
@media (max-width:374px){.cat-sizes .mo-size{gap:8px;padding:8px 10px}.cat-sizes .mo-size-img{width:36px;height:23px}.cat-sizes .mo-size-n{font-size:15px}.cat-sizes .mo-size-cm{font-size:12.5px}}
/* NEW-ra-01: Foldable not offered where there are none in that size */
.cat-type .chip.na{border-style:dashed;color:var(--muted);background:#fff;cursor:default}
span.mo-size.na{cursor:default}
.sale-filters{margin:10px 0 0;font-size:14.5px;color:var(--ink-2)}.sale-filters a{color:var(--teal-700);text-decoration:underline;margin-left:6px}.sale-filters[hidden]{display:none}
/* NEW-fb-02: card names the same weight on every page that loads this file (Lay Down Days had them bold) */
.mo-card .mo-card-name,.mo-card .mo-card-name a{font-weight:400}
/* R8 lane C */
.mo-sz-hit [data-badge-move]{display:none}
.grp-sec{margin-top:28px}.grp-sec .sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}.grp-sec h2{font-size:22px;line-height:1.2}
.grp-sec .link-all{white-space:nowrap}.grp-page .cat-tiles{margin-top:6px}
@media (max-width:599px){.grp-sec{margin-top:22px}.grp-sec h2{font-size:19px}}
.sale-page .pager{margin-top:18px}.sale-page .pager .pg-prev,.sale-page .pager .pg-next{padding:0 14px}
.sr-tiles{margin:18px auto 6px;justify-content:center}
.cat-tile--all .ct-n{font-weight:600}
.promo-card.sp .spt-v{display:none;flex-direction:column;gap:10px;height:100%}
.promo-card.sp[data-variant="a"] .spt-v[data-v="a"],.promo-card.sp[data-variant="b"] .spt-v[data-v="b"],.promo-card.sp[data-variant="c"] .spt-v[data-v="c"],.promo-card.sp .spt-m{display:flex}
.promo-card.sp .sp-title{font-size:23px;margin:4px 0 0}.promo-card.sp .sp-text{margin:0;font-size:15px}.promo-card.sp .sp-fine{display:block;margin:0}
.promo-card.sp .mo-btn{margin-top:auto}
.promo-card.sp .spt-big{display:block;font-size:34px;line-height:1.05;margin-bottom:8px}
@media (max-width:599px){.promo-card.sp .sp-title{font-size:18px}.promo-card.sp .sp-text{font-size:13.5px}.promo-card.sp .spt-big{font-size:26px}}
.sr-tiles .ct-n{overflow-wrap:normal;word-break:normal;hyphens:none}
@media (max-width:599px){.sr-tiles{grid-template-columns:1fr 1fr;width:100%}.sr-tiles .ct-img{width:44px;height:44px;flex:none}.sr-tiles .ct-img img{width:44px;height:44px}.sr-tiles .ct-n{font-size:14px}}

/* R9 lane C: card RRP line (#107), Free shipping + short-description badges (live parity), Neto filter names capitalised by CSS (no rename map) */
.mo-card .rrp{font-size:12.5px;line-height:1.2;color:var(--muted)}.mo-card .rrp s{font-variant-numeric:tabular-nums}.bdg-ship{background:var(--teal-50);color:var(--teal-800)}.bdg-note{max-width:150px;overflow:hidden;white-space:nowrap;text-overflow:clip;background:#fff;color:var(--ink);border:1px solid var(--line)}.filters .f-group summary h4::first-letter{text-transform:uppercase}
/* R9 #136: filter groups scroll inside their own box (like HR live), thin scrollbar; Price keeps its bands + From–To box unclipped */
.filters .f-group:not([data-g="pr"]) > .f-body{max-height:280px;overflow-y:auto;overscroll-behavior:contain;padding-right:8px;scrollbar-width:thin;scrollbar-color:#C9D6D6 transparent}
.filters .f-group > .f-body::-webkit-scrollbar{width:6px}.filters .f-group > .f-body::-webkit-scrollbar-track{background:transparent}.filters .f-group > .f-body::-webkit-scrollbar-thumb{background:#C9D6D6;border-radius:6px}
@media (max-width:900px){.filters .f-group:not([data-g="pr"]) > .f-body{max-height:240px}}
/* R9 #138: out-of-stock cards (Neto stock < 1, no backorder): red badge, faded photo, muted price, red outline Notify me */
.bdg-oos{background:#C0262D;color:#fff}
.mo-card.is-oos .mo-card-img img{opacity:.55;filter:grayscale(.3)}
.mo-card.is-oos .bdg-save{display:none}
.mo-card.is-oos .pr .now,.mo-card.is-oos .pr .now.sale,.mo-card.is-oos .mem,.mo-card.is-oos .mem b,.mo-card.is-oos .rrp{color:var(--muted)}
.mo-card.is-oos .mem img{filter:grayscale(1);opacity:.6}
.mo-btn.mo-btn-oos{background:#fff;border:1.5px solid #C0262D;color:#C0262D}
.mo-btn.mo-btn-oos:hover{background:#FDF1F1;border-color:#A01E24;color:#A01E24}

/* R9 #143/#144: Product Top Banner advert on category + search; New badge (Neto show_new_item); Low stock uses lane S .bdg-low (amber) */
.bdg-new{background:var(--teal-700);color:#fff}.mo-cat-ad{margin:0 0 16px}.mo-cat-ad img{display:block;width:100%;height:auto;border-radius:var(--r,12px)}

/* 17-11 (Head relay, HR/PLA fault 3): a filter option with nothing to show is greyed and not clickable */
.f-opt.is-off{opacity:.45;cursor:not-allowed;pointer-events:none}
/* G9 / #49 (23-11-2026): wide desktop category banner from the category's second Neto image */
.cat-banner-wide{display:none}
@media (min-width:768px){.cat-banner-wide{display:block;grid-column:1/-1;order:-1;margin-bottom:4px}.cat-banner-wide img{width:100%;height:auto;max-height:340px;object-fit:cover;border-radius:var(--r-lg)}.cat-hero-img.has-wide{display:none}}
/* 24-11-2026 overnight (Kathan): no empty slots at the end of page 1. The promo cards (Splash Pass, quiz) span the full grid row, so the 30 products still fill whole rows at 3 (desktop) and 2 (phone) columns. */
.cat-layout .grid>.promo-card{grid-column:1/-1;min-height:0}
@media (min-width:600px){
.cat-layout .grid>.promo-card{padding:22px 28px}
.cat-layout .grid>.promo-card.sp[data-variant="a"] .spt-v[data-v="a"],.cat-layout .grid>.promo-card.sp[data-variant="b"] .spt-v[data-v="b"],.cat-layout .grid>.promo-card.sp[data-variant="c"] .spt-v[data-v="c"],.cat-layout .grid>.promo-card.sp .spt-m{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:32px;row-gap:6px;align-items:center;height:auto}
.cat-layout .grid>.promo-card.sp .spt-v>*{grid-column:1;margin:0}
.cat-layout .grid>.promo-card.sp .spt-v>.mo-btn{grid-column:2;grid-row:1/span 4;width:auto;min-width:200px;margin:0}
.cat-layout .grid>.promo-card.sp .spt-big{display:inline;font-size:inherit;margin:0 8px 0 0}
.cat-layout .grid>.promo-card.quiz{flex-direction:row;align-items:center;gap:28px}
.cat-layout .grid>.promo-card.quiz>div{flex:1 1 auto}
.cat-layout .grid>.promo-card.quiz .mo-btn{width:auto;min-width:200px;flex:none}
}
/* r9sa (25-11-2026, Kathan phone review, lane A) */
/* #2: the in-grid quiz is one short full-width strip (was a tall dark block) */
.cat-layout .grid>.promo-card.quiz-strip,.grid>.promo-card.quiz-strip{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px 20px;min-height:0;padding:12px 16px;background:var(--teal-50);color:var(--ink);border:1px solid var(--teal-100);border-radius:var(--r,12px)}
.promo-card.quiz-strip .qs-t{margin:0;font-size:15px;line-height:1.35;color:var(--ink-2)}
.promo-card.quiz-strip .qs-t b{color:var(--ink);font-weight:600}
.promo-card.quiz-strip .mo-btn{width:auto;flex:none;min-width:0;min-height:40px;padding:0 16px;margin:0;white-space:nowrap}
@media (max-width:599px){.promo-card.quiz-strip .qs-t{font-size:14px}.promo-card.quiz-strip .qs-t b{display:block}.promo-card.quiz-strip .mo-btn{font-size:14px;padding:0 12px;min-height:40px}}
/* #1: the end of the list fills the last row (only when every product is showing and the last row is short) */
.grid>.grid-end{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;padding:18px;border:1px dashed var(--teal-300);border-radius:var(--r,12px);background:var(--sand);color:var(--ink-2);font-size:14.5px;line-height:1.4}
.grid>.grid-end b{color:var(--ink);font-size:16px}
.grid>.grid-end .mo-btn{width:auto;min-height:40px}
/* #6: the card chip / swatch that matches the selected filter gets the selected box */
.mo-card .mo-card-sizes .mo-size--sm.on{border-color:var(--teal-700);background:var(--teal-50);color:var(--teal-800);font-weight:600}
.mo-card .csw.hit{border-color:var(--teal-700);box-shadow:0 0 0 2px var(--teal-700)}
/* #7: More-for-the-home cards keep their options on one line that scrolls sideways, with "+N more sizes" into the product */
.mo-card .mo-vrow{position:relative;min-width:0}
.mo-card .mo-vrow>.is-slide{flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px 2px 3px;margin:0 -2px}
.mo-card .mo-vrow>.is-slide::-webkit-scrollbar{display:none}
.mo-card .mo-vrow>.is-slide>*{flex:none;scroll-snap-align:start}
.mo-card .mo-vrow>.is-slide .csw{display:block!important}
.mo-card .mo-vrow.has-more::after{content:"";position:absolute;right:0;top:0;bottom:3px;width:28px;background:linear-gradient(90deg,rgba(255,255,255,0),#fff);pointer-events:none}
.mo-card .mo-vrow.at-end::after{display:none}
.mo-card .mo-var-more{display:inline-block;margin-top:3px;font-size:12.5px;font-weight:600;color:var(--teal-700);text-decoration:underline;text-underline-offset:2px}
.mo-card .mo-var-next{display:none}
@media (hover:hover) and (pointer:fine){.mo-card .mo-vrow.has-more .mo-var-next{display:grid;place-items:center;position:absolute;right:-2px;top:50%;transform:translateY(-50%);z-index:1;width:26px;height:26px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:16px;line-height:1;box-shadow:0 1px 3px rgba(0,0,0,.12);cursor:pointer;padding:0}.mo-card .mo-vrow.at-end .mo-var-next{display:none}.mo-card .mo-var-next:hover{border-color:var(--teal-700);color:var(--teal-700)}}
.mo-card .mo-card-sizes .mo-size{cursor:pointer}
/* r9sa07: with a variation filter on, the count and Load-more line stay hidden (no layout change) until the whole filtered list is read */
.cat-page[data-vf]:not(.vf-done) [data-toolbar] .count,.cat-page[data-vf]:not(.vf-done) [data-load]{visibility:hidden}
/* r9sa09: no "Showing  of  products" flash before the script has filled the numbers in */
[data-toolbar] .count:has(b[data-shown]:empty){visibility:hidden}
