/* ---------- leak guard (fix2, 19.10.2026): the theme (Astra), ux-polish and the design system's generic .row/ul/li/h3/p/button rules must not reach into the block.
   Every rule is :where() based (zero specificity) so the block's own rules below always win; this only fills what the block does not set. ---------- */
.ds2 .fx{font-family:var(--ds-font,"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif);font-style:normal;letter-spacing:normal;text-transform:none;text-indent:0;word-spacing:normal;text-align:left}
.ds2 .fx :where(ul,ol){list-style:none;margin:0;padding:0}
.ds2 .fx :where(li){list-style:none;margin:0}
.ds2 .fx :where(h2,h3,h4,p,figure){margin-block:0;letter-spacing:normal;text-transform:none}
.ds2 .fx :where(a){text-decoration:none;box-shadow:none}
.ds2 .fx :where(button,select,input){font-family:inherit;letter-spacing:normal;text-transform:none;box-shadow:none}
/* Deal Homepage 1.0.0, LAYOUT (package P5): structure and everything that keeps the page from moving.
   Grid and flex structure, sticky positions, z-index, overlay and sheet positioning, scroll containers and their fade masks,
   reserved sizes (card image frame 4:5, title 2 lines, meta line, 44px tap areas), breakpoints.
   No colours, borders, radii, shadows or font weights here: that is dhp-look.css. Uses the tokens of deal-design-system
   (components.css) under body.ds2: --gutter --pad --gap --btn-h --tile --lh-1 --lh-2.
   Contract: reports/home_build_20261018/p5_contract.md */

/* ---------- base ---------- */
.ds2 .dhp{padding-bottom:var(--gap)}
.ds2 .dhp .row__t a{text-decoration:none}
.ds2 .dhp .row__t a:hover{text-decoration:underline;text-underline-offset:3px}
.ds2 .fx,.ds2 .fx *,.ds2 .fx *::before,.ds2 .fx *::after{box-sizing:border-box}
.ds2 .fx :where(h2,h3,h4,p,ul){margin:0}
.ds2 .fx__grid{display:block}
.ds2 .fx-main{position:relative;min-width:0}
.ds2 .fx>.h2{margin-bottom:8px}
body.fx-lock{overflow:hidden}

/* ---------- logo tile: ONE wrapper everywhere ---------- */
.ds2 .fx{--tile:48px}
.ds2 .fx .lo{flex:none;width:var(--tile);height:var(--tile);padding:6px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
.ds2 .fx .lo img{width:auto;height:auto;max-width:100%;max-height:100%;padding:0;object-fit:contain}
.ds2 .fx .lo.lo--m{padding:0}
.ds2 .fx .lo.lo--m img{display:none}
.ds2 .lo--more svg{width:24px;height:24px}

/* ---------- facet panel: a column from 900px, a bottom sheet below ---------- */
.ds2 .fx-side{padding:0 var(--pad)}
.ds2 .fx-grp{padding:4px 0 8px}
.ds2 .fx-lab{padding:12px 0 4px}
.ds2 .fx-opt{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
.ds2 .fx-opt .fx-t{flex:1;min-width:0}
.ds2 .fx-opt .fx-n{flex:none}
.ds2 .fx-opt input{flex:none;appearance:none;-webkit-appearance:none;margin:0;width:20px;height:20px;display:grid;place-content:center;cursor:pointer}
.ds2 .fx-hint{padding:4px 0 8px}
.ds2 .fx-sh-hd,.ds2 .fx-sh-ft,.ds2 .fx-bd{display:none}
.ds2 .fx-grp--sort{display:none}

/* ---------- shop / offer search and its typeahead ---------- */
.ds2 .fx-find{position:relative;margin-top:12px}
.ds2 .fx-find__i{position:absolute;left:12px;top:0;width:20px;height:44px;display:flex;align-items:center;pointer-events:none}
.ds2 .fx-find__i svg{width:18px;height:18px}
.ds2 .fx-q{display:block;width:100%;height:var(--btn-h);margin:0;padding:0 12px 0 44px;appearance:none;-webkit-appearance:none}
.ds2 .fx-ta{position:absolute;z-index:40;left:0;right:0;top:48px;margin:0;list-style:none;padding:0;overflow:hidden}
.ds2 .srch .fx-ta{top:56px}
.ds2 .fx-ta li{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 12px;cursor:pointer}
.ds2 .fx-ta .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds2 .fx-ta .ct{flex:none}
.ds2 .fx-ta .lo,.ds2 .fx-sug .lo{flex:none;width:40px;height:40px;padding:5px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
.ds2 .fx-ta .lo img,.ds2 .fx-sug .lo img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.ds2 .fx-ta .lo.lo--m,.ds2 .fx-sug .lo.lo--m{padding:0}
.ds2 .fx-ta .lo.lo--m img,.ds2 .fx-sug .lo.lo--m img{display:none}

/* ---------- category tiles ---------- */
.ds2 .fx-cat{margin-top:0}
.ds2 .cat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ds2 .cat{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:0 12px;margin:0;border:0;text-align:left;cursor:pointer}
.ds2 .cat__t{flex:1;min-width:0;padding:11px 0}
.ds2 .cat__n{flex:none}
.ds2 .fx-catmore{display:flex;align-items:center;width:100%;min-height:44px;padding:0;background:none;border:0;cursor:pointer}
.ds2 .cat-grid:not(.is-open) .cat[data-x="1"]:not([aria-pressed=true]){display:none}
.ds2 .al-cs .cat-grid{margin:12px 0 8px}

/* ---------- popular shops: one swipe row with edge fades (classes has-l / has-r are set by the script) ---------- */
.ds2 .fx-pop{margin-top:4px;margin-bottom:8px}
.ds2 .fx-ttl2{padding:4px 0}
.ds2 .shops,.ds2 .fx-cats{--ml:0px;--mr:0px;-webkit-mask-image:linear-gradient(to right,transparent,var(--ink) var(--ml),var(--ink) calc(100% - var(--mr)),transparent);mask-image:linear-gradient(to right,transparent,var(--ink) var(--ml),var(--ink) calc(100% - var(--mr)),transparent)}
.ds2 .shops.has-l,.ds2 .fx-cats.has-l{--ml:24px}
.ds2 .shops.has-r,.ds2 .fx-cats.has-r{--mr:48px}
.ds2 .shops{overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
.ds2 .shops::-webkit-scrollbar,.ds2 .fx-cats::-webkit-scrollbar,.ds2 .al-ends__sc::-webkit-scrollbar{display:none}
.ds2 .shops__l{display:flex;gap:0;list-style:none;padding:0;margin:0;width:max-content}
.ds2 .shops__l li{flex:none;scroll-snap-align:start}
.ds2 .fx-shop{display:flex;flex-direction:column;align-items:center;width:104px;margin:0;padding:6px 8px;border:0;cursor:pointer;text-align:center}
.ds2 .fx-shop .lo{--tile:48px}
.ds2 .fx-shop .nm{display:block;max-width:100%;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds2 .fx-shop .ct{display:block;min-height:var(--lh-1)}

/* ---------- tab row (sticky), chip bar, controls ---------- */
.ds2 .fx-top{display:flex;align-items:center;justify-content:space-between;position:sticky;top:var(--st,0px);z-index:20;margin-top:0}
.ds2 .fx .tabbar{margin-top:0;flex:1;min-width:0;border:0;padding-inline:var(--pad)}
.ds2 .fx .tab{min-height:48px}
.ds2 .fx-ctl{display:none}
.ds2 .fx-sortw{display:flex;align-items:center;gap:8px;margin:0 var(--pad) 0 12px}
.ds2 .fx-sortl{flex:none}
.ds2 .fx-sort{height:var(--btn-h);max-width:100%;margin:0;padding:0 36px 0 12px;background-repeat:no-repeat;background-position:calc(100% - 18px) 19px,calc(100% - 13px) 19px;background-size:5px 5px,5px 5px;cursor:pointer;appearance:none;-webkit-appearance:none;text-overflow:ellipsis}
.ds2 .fx-sent{height:0;margin:0;padding:0;pointer-events:none}
.ds2 .fx-chipw{position:sticky;top:52px;height:0;z-index:21}
.ds2 .fx-chipbar{position:absolute;left:calc(-1*var(--gutter));right:calc(-1*var(--gutter));bottom:0;height:52px;display:flex;align-items:center;gap:8px;padding:0 var(--gutter);visibility:hidden;opacity:0}
.ds2 .fx.is-stuck .fx-chipbar{visibility:visible;opacity:1}
.ds2 .fx.is-stuck .fx-top{--st:52px}
.ds2 .fx-cats{flex:1;min-width:0;display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.ds2 .fx-chip-c{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:0;cursor:pointer;white-space:nowrap}
.ds2 .fx-open{flex:none;display:inline-flex;align-items:center;gap:6px;height:var(--btn-h);padding:0 12px;margin:0;border:0;cursor:pointer;white-space:nowrap}
.ds2 .fx.is-stuck .fx-open--sum{display:none}
.ds2 .al-chev{display:none}

/* ---------- count line, quick filters, active filters ---------- */
.ds2 .fx-sum{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;padding:0;min-height:44px}
.ds2 .fx-count{flex:1;min-width:0;min-height:44px;display:flex;align-items:center;flex-wrap:wrap;column-gap:12px}
.ds2 .al-q{display:flex;gap:6px;flex:none;align-items:center;min-width:0}
.ds2 .al-q[hidden],.ds2 .al-q__b[hidden]{display:none}
.ds2 .al-q__b{height:44px;margin:-6px 0;padding:0;background:none;border:0;cursor:pointer}
.ds2 .al-q__i{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;white-space:nowrap}
.ds2 .al-q__i svg{width:12px;height:12px;flex:none}
.ds2 .al-q__d{width:6px;height:6px;flex:none}
.ds2 .fx-tok{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;min-width:0}
.ds2 .fx-tok[hidden]{display:none!important}
.ds2 .fx-chip{display:inline-flex;align-items:center;height:44px;padding:0;background:none;border:0;cursor:pointer}
.ds2 .fx-chip span{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px}
.ds2 .fx-chip svg{width:12px;height:12px;flex:none}
.ds2 .fx-clear{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;background:none;border:0;cursor:pointer}
.ds2 .fx-note{flex:0 0 100%;order:5;margin:0 0 8px}
.ds2 .fx-note[hidden]{display:none}
.ds2 .fx.is-filtered .fx-res{min-height:calc(100vh - 110px)}

/* ---------- the card grid: 2 columns on a phone, image frame 4:5 reserved, title 2 lines reserved, meta line reserved ---------- */
.ds2 .fx .rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;margin:8px 0 0;padding:0;list-style:none}
.ds2 .fx .row.vc{position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:0;padding:0;margin:0;overflow:hidden}
.ds2 .fx .vm{position:relative;flex:none;aspect-ratio:4/5;width:100%}
.ds2 .fx .vp{position:absolute;inset:0;display:block}
.ds2 .fx .vp img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
.ds2 .fx .vm>.lo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:72px;height:72px;padding:10px}
.ds2 .fx .vm>.lo img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
.ds2 .fx .vm>.lo.lo--m{padding:0}
.ds2 .fx .has-ph .vm>.lo{display:none}
.ds2 .fx .vb{display:flex;flex-direction:column;flex:1;min-width:0;padding:12px}
.ds2 .fx .vh,.ds2 .fx .vh .tx{display:block;min-width:0}
.ds2 .fx .vh .row__t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds2 .fx .row .row__t a::after{content:"";position:absolute;inset:0;z-index:1}
.ds2 .fx .vc .row__s{margin:4px 1px 0 0;min-height:40px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:normal;word-break:normal;hyphens:manual}
.ds2 .fx .vc .row__s.is-brk{overflow-wrap:anywhere}
.ds2 .fx .vl{display:flex;align-items:baseline;gap:8px;min-width:0;margin-top:8px;min-height:22px}
.ds2 .fx .vl>.fg{position:static;display:inline-flex;align-items:baseline;flex:none;gap:4px;margin:0;white-space:nowrap}
.ds2 .fx .vl>.fg>span::before{content:"-"}
.ds2 .fx .vl>.fg .u{margin:0}
.ds2 .fx .vc .row__p{flex:1;min-width:0;margin:0}
.ds2 .fx .vc .row__p .best{display:none}
.ds2 .fx .vc .row__p .mt{margin:0;min-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds2 .fx .vc .row__p .mt::before{content:"\200b"}  /* a baseline exists before the script fills the line: nothing moves when it does */
.ds2 .fx .vc .row__p .code__w{display:block;padding:0;border:0;background:none;overflow:visible}
.ds2 .fx .vc .row__p .code__w[hidden]{display:none}
/* codes: ONE slim outline button, 36px drawn inside a 44px tap area; sales have none, the whole card is the link */
.ds2 .fx .vc .row__a{display:block;margin:8px 0 0;width:auto}
.ds2 .fx .vc .row__a>*{width:100%}
.ds2 .fx .vc .code{display:block;width:100%;height:44px}
.ds2 .fx .vc .code .btn,.ds2 .fx .vc .code .btn:hover{position:relative;z-index:3;display:flex;width:100%;min-width:0;height:44px;padding:0 12px}
.ds2 .fx .vc .code .btn::before{content:"";position:absolute;left:0;right:0;top:4px;bottom:4px}
.ds2 .fx .vc .code .btn.is-copied{width:100%;min-width:0;padding:0}
.ds2 .fx .vc .code .btn svg{width:16px;height:16px}
.ds2 .fx .fg--none{display:none}
.ds2 .fx .rows>.fx-poprow{display:none;grid-column:1/-1;list-style:none;margin:0}
/* phones only: below the first two rows the cards are not laid out until they near the viewport (measured at 4x CPU: layout 740 ms -> 615 ms, CLS 0).
   contain-intrinsic-size sits above the tallest real phone card (344 to 372) so an unrendered card never reports less than its content; 'auto' remembers the true size once shown. */
@media(max-width:767px){.ds2 .fx .rows>.row.vc:nth-child(n+9){content-visibility:auto;contain-intrinsic-size:auto 400px}}
.ds2 .fx .fx-poprow .fx-pop{margin:0;padding:12px 0 6px}
.ds2 .fx .fx-poprow .fx-ttl2{padding:0 12px 4px}
.ds2 .fx .fx-poprow .shops{padding:0 8px}
.ds2 .fx-more{display:flex;justify-content:center;margin-top:16px}
.ds2 .fx-more .btn{width:100%;max-width:320px}

/* ---------- "ends today / tomorrow": the same card at 156px in a snap row ---------- */
.ds2 .fx .al-ends{margin:4px 0 16px}
.ds2 .fx .al-ends[hidden]{display:none}
.ds2 .fx.is-filtered .al-ends{display:none}
.ds2 .fx .al-ends__h{margin:0 0 8px}
.ds2 .fx .al-ends__sc{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;margin:0 calc(-1*var(--gutter));padding:0 var(--gutter) 4px;scroll-padding-left:var(--gutter)}
.ds2 .fx .al-ends__sc>.row.vc{flex:0 0 156px;scroll-snap-align:start;margin:0}
.ds2 .fx .al-ends__sc .vm>.lo{width:56px;height:56px;padding:8px}
/* narrow cards: the meta line ("Lõpeb täna") gets its own line under the figure instead of being cut to "Lõpeb t..." next to "kuni 80%" */
.ds2 .fx .al-ends__sc .vl{flex-wrap:wrap;row-gap:0}
.ds2 .fx .al-ends__sc .vc .row__p{flex:1 0 100%}
.ds2 .fx .al-ends__sc .vc .row__p .mt{padding-right:3px}  /* the script fits the meta text to the box: keep it off the 12px edge line */

/* ---------- empty state ---------- */
.ds2 .fx-empty{margin-top:8px;padding:20px var(--pad)}
.ds2 .fx-empty h4{margin-top:12px}
.ds2 .fx-empty .fx-act{display:flex;flex-direction:column;align-items:flex-start;margin-top:8px}
.ds2 .fx-sug{list-style:none;padding:0;margin-top:4px}
.ds2 .fx-sug button{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 0;background:none;border:0;cursor:pointer;text-align:left}
.ds2 .fx-sug .nm{flex:1;min-width:0}
.ds2 .fx-sug .ct{flex:none}

/* ---------- tested offers: one quiet card, a proof expander, a dialog (all optional, absent with fewer than 3 live tests) ---------- */
.ds2 .fx-tcard :where(p,h3,figure){margin:0}
.ds2 .fx.is-filtered .fx-tcard{display:none}
.ds2 .fx .tcard__row{display:grid;grid-template-columns:var(--tile) minmax(0,1fr) auto;column-gap:12px;align-items:center;padding:12px var(--pad) 11px}
.ds2 .fx .tcard__row>.lo{grid-column:1;align-self:center}
.ds2 .fx .tcard__tx{min-width:0}
.ds2 .fx .tcard__l{white-space:nowrap}
.ds2 .fx .tcard__t a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds2 .fx .tcard__s{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds2 .fx .tcard__a{grid-column:3;grid-row:1;align-self:center;position:relative;z-index:1}
.ds2 .fx .tcard__a .btn{width:auto;min-width:0}
.ds2 .fx .tcard__f{display:flex;align-items:center;justify-content:space-between;padding:0 var(--pad)}
.ds2 .fx .tcard__f button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;background:none;border:0;cursor:pointer}
.ds2 .fx .tcard__f button svg{width:12px;height:12px;flex:none;transition:transform .15s}
.ds2 .fx .tcard__f .tcard__x[aria-expanded=true] svg{transform:rotate(180deg)}
.ds2 .fx .tcard__p{padding:12px var(--pad) 16px}
.ds2 .fx .tcard__p[hidden]{display:none}
.ds2 .fx .tp__f{margin:0 0 8px}
.ds2 .fx .tp__f img{display:block;height:auto;max-width:100%}
.ds2 .fx .tp__d{margin-top:4px}
.ds2 .fx .tp__n{margin-top:8px}
.ds2 .fx .tp__l{margin-top:4px;display:flex;flex-wrap:wrap;column-gap:16px}
.ds2 .fx .tp__l a,.ds2 .fx .tl__f a,.ds2 .fx .tl__t a{display:inline-flex;align-items:center;min-height:44px}
.ds2 .fx .fx-tbd{position:fixed;inset:0;z-index:1000}
.ds2 .fx .fx-tl{position:fixed;left:0;right:0;bottom:0;z-index:1001;max-height:88vh;overflow:auto;padding:0 var(--pad) 8px}
.ds2 .fx .fx-tbd[hidden],.ds2 .fx .fx-tl[hidden]{display:none}
.ds2 .fx .tl__hd{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2;margin-inline:calc(-1*var(--pad));padding:4px var(--pad)}
.ds2 .fx .tl__hd h3{margin:0}
.ds2 .fx .tl__l{list-style:none;margin:0;padding:0}
.ds2 .fx .tl__i{display:grid;grid-template-columns:var(--tile) minmax(0,1fr) auto;column-gap:12px;align-items:center;padding:12px 0}
.ds2 .fx .tl__tx{min-width:0}
.ds2 .fx .tl__tx p{margin:0}
.ds2 .fx .tl__i .btn{width:auto;min-width:0;padding:0 12px}
.ds2 .fx .tl__f{margin:0;padding:8px 0}
.ds2 .fx .fx-x{padding:0;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-right:-12px;background:none;border:0;cursor:pointer}
.ds2 .fx .fx-x svg{width:18px;height:18px;flex:none}
/* a tested row keeps the card height: the marker is part of the one meta line */

/* ---------- header magnifier and the hero on phones ---------- */
.fx-hs-wrap{display:none}
.ds2 .hero .srch .fx-so__x{display:none}  /* beats components.css '.ds2 .srch button': only the phone overlay shows the close button */

/* ================= phones (below 768px) ================= */
@media(max-width:767px){
.ds2 .hero .lead{display:none}
body.ds2:has(.fx-hs-wrap) .hero form.srch{display:none}
.ds2 .hero{padding-top:4px}
.ds2 .fx>.h2{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ds2 .fx.sec{margin-top:8px}
.ds2 .fx-main{display:flex;flex-direction:column}
.ds2 .fx-find{display:none}
.ds2 .fx-cat,.ds2 .fx-main>.fx-pop{display:none}
.ds2 .fx-chipw{order:1;position:static;height:auto;z-index:auto}
.ds2 .fx-sent{order:2}
.ds2 .fx-top{order:3}
.ds2 .al-ends{order:4}
.ds2 .fx-tcard{order:5;margin-top:0;margin-bottom:12px}
.ds2 .fx-sum{order:6;min-height:32px;margin-bottom:8px;flex-wrap:nowrap}
.ds2 .fx-res{order:7}
.ds2 .fx-chipbar{position:relative;left:auto;right:auto;bottom:auto;height:auto;margin:0 calc(-1*var(--gutter));padding:0 var(--gutter) 6px;display:block;visibility:visible;opacity:1}
.ds2 .fx-chipbar .fx-open--bar{display:none}
.ds2 .fx-cats{flex:none;width:auto}
.ds2 .fx.is-stuck .fx-top{--st:0px}
.ds2 .fx .fx-open--sum,.ds2 .fx.is-stuck .fx-open--sum{display:none}
.ds2 .fx-ctl{display:flex;align-items:center}
.ds2 .fx-sortw{display:none}
.ds2 .fx .tabbar{padding-right:12px}
.ds2 .fx-count{flex:1 1 auto;flex-wrap:nowrap;white-space:nowrap;min-height:32px}
.ds2 .fx .al-ld{display:none}  /* the words before the number ("Leitud") drop out on phones */
.ds2 .al-q{flex:0 1 auto;overflow-x:auto;scrollbar-width:none}
.ds2 .fx .rows>.fx-poprow{display:block}
.ds2 .fx .rows>.fx-poprow[hidden]{display:none}
.ds2 .fx-chipbar .al-chev{position:absolute;right:0;top:0;width:44px;height:44px;margin:0;padding:0;border:0;background:none;cursor:pointer;display:none;align-items:center;justify-content:center}
.ds2 .fx-chipbar.has-more .al-chev{display:flex}
.ds2 .fx-chipbar .al-chev::before{content:"";width:9px;height:9px;border-style:solid;border-width:2px 2px 0 0;transform:rotate(45deg);margin-right:4px}
.fx-hs-wrap{display:flex;align-items:center;margin-right:8px}
.fx-hs{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;background:transparent;cursor:pointer}
.main-header-menu-toggle,.main-header-menu-toggle .mobile-menu,.main-header-menu-toggle .mobile-menu-wrap{white-space:nowrap}
/* the search overlay: the hero form becomes a 64px top bar while body.fx-so-open */
body.fx-so-open{overflow:hidden}
body.fx-so-open::after{content:"";position:fixed;inset:0;z-index:99998}
body.fx-so-open.ds2 .hero form.srch,body.fx-so-open .hero form.srch{display:flex;position:fixed;top:0;left:0;right:0;z-index:99999;margin:0;height:64px;max-width:none;padding:10px 16px;gap:8px;align-items:center}
body.fx-so-open.ds2 .hero form.srch input[type=search]{flex:1 1 auto!important;width:auto!important;min-width:0;height:44px!important;padding:0 12px 0 16px!important}
body.fx-so-open.ds2 .hero form.srch button[type=submit]{position:static!important;inset:auto!important;transform:none!important;flex:none;width:44px!important;height:44px!important;margin:0!important}
body.fx-so-open.ds2 .hero form.srch .fx-so__x{position:static!important;inset:auto!important;transform:none!important;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;margin:0;padding:0;cursor:pointer}
body.fx-so-open .hero form.srch .fx-ta{top:60px;left:16px;right:16px;width:auto}
}

/* ================= tablets and up (768px) ================= */
@media(min-width:768px){
.ds2 .fx .rows{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:24px 16px}
.ds2 .fx .rows>.fx-poprow{display:none}
.ds2 .fx .al-ends__sc>.row.vc{flex-basis:170px}
.ds2 .cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ds2 .fx-chipbar{left:0;right:0;padding:0 var(--pad)}
.ds2 .fx-top{align-items:center}
.ds2 .fx-more .btn{width:auto;min-width:240px}
.ds2 .fx .tcard__row{padding:12px var(--pad) 12px}
}
@media(max-width:767px){
.ds2 .fx .tcard__tx{display:contents}
.ds2 .fx .tcard__row{grid-template-rows:auto auto auto;row-gap:0}
.ds2 .fx .tcard__row>.lo{grid-row:1/span 3}
.ds2 .fx .tcard__l{grid-column:2;grid-row:1;align-self:end}
.ds2 .fx .tcard__t{grid-column:2;grid-row:2;align-self:center}
.ds2 .fx .tcard__s{grid-column:2/4;grid-row:3;align-self:start}
.ds2 .fx .tcard__a{grid-row:1/span 2}
}

/* ================= below 900px: the facets are a bottom sheet, the sort moves into it ================= */
@media(max-width:899px){
.ds2 .fx-grp--sort{display:block}
.ds2 .fx-side{position:fixed;left:0;right:0;bottom:0;z-index:1001;max-height:88vh;overflow:auto;border:0;transform:translateY(100%);visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s}
.ds2 .fx-side.is-open{transform:none;visibility:visible;transition:transform .22s ease}
.ds2 .fx-bd{position:fixed;inset:0;z-index:1000}
.ds2 .fx-bd.is-open{display:block}
.ds2 .fx-sh-hd{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2;margin-inline:calc(-1*var(--pad));padding:4px var(--pad)}
.ds2 .fx-sh-ft{display:flex;align-items:center;gap:16px;position:sticky;bottom:0;z-index:2;margin-inline:calc(-1*var(--pad));padding:12px var(--pad)}
.ds2 .fx-sh-ft .btn{flex:1;width:auto}
.ds2 .fx-tok{flex-basis:100%}
.ds2 .fx-sub:not(.fx-shoplink){display:none}
}
@media(prefers-reduced-motion:reduce){.ds2 .fx-side,.ds2 .fx .tcard__f button svg{transition:none}}

/* ================= 900px and up: facet column, filter buttons gone ================= */
@media(min-width:900px){
.ds2 .fx-ctl{display:flex;align-items:center;flex:none}
.ds2 .fx__grid{display:grid;grid-template-columns:232px minmax(0,1fr);column-gap:24px;align-items:start}
.ds2 .fx-side{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto;align-self:start}
.ds2 .fx-side.is-expanded{position:static;max-height:none;overflow:visible}
.ds2 .fx-find{margin-top:0}
.ds2 .fx-opt{min-height:36px}
.ds2 .fx-open{display:none}
.ds2 .fx-chipbar{padding:0 var(--pad)}
.ds2 .fx .fx-tl{left:50%;right:auto;top:50%;bottom:auto;width:560px;max-height:80vh;transform:translate(-50%,-50%)}
}
@media(min-width:900px) and (max-width:1000px){
.ds2 .fx__grid{grid-template-columns:184px minmax(0,1fr);column-gap:16px}
}
