/* ─────────────────────────────────────────────────────────────────────────────
   Quick-shop look: department tabs with their own header colour, picture tiles
   for shelves, product cards with ADD under the photo, "See all products",
   a "View basket" pill and bottom tabs, in the shop's own blue (actions) and
   red (offers).

   index.html loads styles.css, theme.css and dark.css into the `base` cascade
   layer and this file after them, unlayered, so a rule here wins over theirs
   whatever their specificity (their !important rules still win). Colours are
   tokens below, set again for dark; gen-dark does not read this file.
   ───────────────────────────────────────────────────────────────────────────── */
:root{
  --qc-bg:#ffffff;--qc-card:#ffffff;--qc-panel:#f3f5f8;--qc-raise:#f5f6f8;--qc-line:#e7e8ec;
  --qc-ink:#1c1c1f;--qc-muted:#686b73;--qc-brand:#0868e8;--qc-brand-2:#0656c4;--qc-brand-ink:#0868e8;--qc-add-bg:#f2f7ff;--qc-off:#e3262f;
  --qc-blue:#256fef;--qc-chip:#f5efe1;--qc-chip-ink:#6a5626;--qc-deal:#fdeceb;--qc-deal-ink:#c3242c;--qc-star:#f2a600;
  --qc-head-ink:#1c1c1f;--qc-head-soft:#1c1c1fb3;--qc-tab-line:#0000001a;
}
html[data-theme="dark"]{
  --qc-bg:#18181c;--qc-card:#202126;--qc-panel:#2a2b30;--qc-raise:#2c2d33;--qc-line:#313238;
  --qc-ink:#f4f4f6;--qc-muted:#9d9ea6;--qc-brand-ink:#6aa7ff;--qc-add-bg:#13213a;--qc-off:#ff7b84;
  --qc-blue:#6ea4ff;--qc-chip:#2c2618;--qc-chip-ink:#e3d09f;--qc-deal:#3a1719;--qc-deal-ink:#ff9ba1;--qc-star:#ffc12e;
  --qc-head-ink:#ffffff;--qc-head-soft:#ffffffc2;--qc-tab-line:#ffffff1f;
}
body{background:var(--qc-bg)}
html[data-theme="dark"] body{background:var(--qc-bg)}

/* ── Product card ──────────────────────────────────────────────────────────── */
.qc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(164px,1fr));gap:22px 14px;align-items:start}
.qc-card{display:flex;flex-direction:column;min-width:0;color:var(--qc-ink)}
.qc-box{position:relative;border:1px solid var(--qc-line);border-radius:12px;overflow:hidden;background:var(--qc-card)}
.qc-media{position:relative;aspect-ratio:1/1;background:var(--qc-panel)}
.qc-img{display:block;width:100%;height:100%;padding:0;margin:0;border:0;background:none;cursor:pointer;border-radius:0}
.qc-img img{display:block;width:100%;height:100%;object-fit:contain;padding:8%;box-sizing:border-box;background:transparent;transition:transform .25s ease}
.qc-img img.own-photo{object-fit:cover;padding:0}
.qc-img .no-photo{display:grid;place-items:center;width:100%;height:100%;min-height:0;border-radius:0;background:var(--qc-panel);container-type:size}
.qc-img .no-photo .art{font-size:46cqmin;line-height:1;transition:transform .25s ease}
.qc-img .no-photo em{display:none}
.qc-heart{position:absolute;top:6px;inset-inline-end:6px;width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:none;color:var(--qc-muted);cursor:pointer}
.qc-heart svg{width:19px;height:19px;stroke-width:2}
.qc-heart.on{color:#f0424b}
.qc-heart.on svg{fill:currentColor}
.qc-dismiss{position:absolute;top:6px;inset-inline-start:6px;width:24px;height:24px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:#00000066;color:#fff;cursor:pointer}
.qc-dismiss svg{width:13px;height:13px;stroke-width:2.6}
.qc-ends{position:absolute;bottom:6px;inset-inline-start:6px;display:flex;align-items:center;gap:3px;max-width:calc(100% - 12px);padding:2px 6px;border-radius:5px;background:#000000b3;color:#fff;font-size:10px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qc-ends svg{width:11px;height:11px;flex-shrink:0}
.qc-unit-row{position:relative;display:flex;align-items:center;height:34px;padding-inline:8px 78px;border-top:1px solid var(--qc-line);background:var(--qc-card)}
.qc-unit{font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--qc-ink)}
/* ADD / − n + sits inside the card, from the divider line down to the card's inner edge. It
   used to hang 1px past the edge, and .qc-box's overflow:hidden then cut off its right and
   bottom borders and shaved the lower corner. 11px = the card's 12px corner minus its border. */
.qc-add,.qc-step{position:absolute;inset-inline-end:0;top:-1px;bottom:0;width:72px;border-radius:9px;border-end-end-radius:11px}
.qc-add{display:grid;place-items:center;padding:0;border:1px solid var(--qc-brand);background:var(--qc-add-bg);color:var(--qc-brand-ink);font-size:13.5px;font-weight:800;letter-spacing:.2px;cursor:pointer;transition:background .15s,transform .15s}
.qc-add:hover{background:var(--qc-brand);color:#fff}
.qc-add:active{transform:scale(.95)}
.qc-step{display:flex;align-items:center;justify-content:space-between;background:var(--qc-brand);color:#fff;overflow:hidden}
.qc-step button{display:grid;place-items:center;width:24px;height:100%;padding:0;border:0;background:none;color:#fff;cursor:pointer}
.qc-step button svg{width:14px;height:14px;stroke-width:3}
.qc-step span{flex:1;text-align:center;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.qc-info{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 2px 0;min-width:0}
.qc-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 5px;margin:0}
.qc-price b{font-size:16px;font-weight:800;letter-spacing:-.2px;font-variant-numeric:tabular-nums}
.qc-price s{font-size:11.5px;color:var(--qc-muted);font-variant-numeric:tabular-nums}
.qc-save{margin:0;font-size:11.5px;font-weight:750;color:var(--qc-off)}
.qc-name{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:2px 0 0;padding:0;border:0;background:none;color:var(--qc-ink);font-size:13.5px;font-weight:650;line-height:1.3;text-align:start;cursor:pointer;overflow-wrap:anywhere}
.qc-name:hover{text-decoration:underline;text-decoration-thickness:1px}
.qc-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px;max-width:100%}
.qc-tag{display:inline-flex;align-items:center;gap:3px;max-width:100%;padding:2px 6px;border-radius:5px;background:var(--qc-chip);color:var(--qc-chip-ink);font-size:10.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qc-tag svg{width:11px;height:11px;flex-shrink:0}
.qc-tag.deal{background:var(--qc-deal);color:var(--qc-deal-ink)}
.qc-rating{display:flex;align-items:center;gap:4px;margin:4px 0 0;font-size:11px;color:var(--qc-muted)}
.qc-rating .pd-stars{color:var(--qc-star);font-size:12px;letter-spacing:1px}
.qc-rating .pd-stars span{color:var(--qc-line)}
.qc-meta{display:flex;flex-wrap:wrap;align-items:center;gap:3px 10px;margin:4px 0 0;font-size:11px;color:var(--qc-muted)}
.qc-meta>span{display:inline-flex;align-items:center;gap:3px}
.qc-meta svg{width:12px;height:12px;stroke-width:2.2}
.qc-low{color:var(--qc-ink)}
.qc-low.out{color:#ef4f57;font-weight:700}
.qc-sk .qc-sk-img{aspect-ratio:1/1;border-radius:0}
.qc-sk .sk-line{height:11px;width:80%;border-radius:6px;margin-top:6px}
.qc-sk .sk-line.short{width:50%}
.qc-card.enter{animation:rise .5s var(--ease) backwards}

/* ── Sections: heads, shelves, "See all products" ──────────────────────────── */
.qc-shelf,.qc-cats{margin-top:26px}
.qc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.qc-head h2{margin:0;font-size:20px;font-weight:800;letter-spacing:-.3px;color:var(--qc-ink)}
.qc-head .tabs{flex-shrink:0}
.qc-link{display:inline-flex;align-items:center;gap:2px;font-size:13.5px;font-weight:700;color:var(--qc-brand-ink)}
.qc-link svg{width:15px;height:15px;transform:rotate(-90deg)}
.rtl .qc-link svg{transform:rotate(90deg)}
.qc-seeall{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;margin-top:16px;padding:6px 14px;border:1px solid var(--qc-line);border-radius:12px;background:var(--qc-raise);color:var(--qc-ink);font-size:14.5px;font-weight:700;cursor:pointer;transition:background .15s}
.qc-seeall:hover{background:var(--qc-panel)}
.qc-seeall>svg:not(.qc-chev){width:18px;height:18px}
.qc-chev{width:15px;height:15px;transform:rotate(-90deg);stroke-width:2.6}
.rtl .qc-chev{transform:rotate(90deg)}
.qc-stack{display:flex}
.qc-stack>span{width:30px;height:30px;border-radius:50%;overflow:hidden;background:var(--qc-panel);border:2px solid var(--qc-raise);display:grid;place-items:center}
.qc-stack>span+span{margin-inline-start:-11px}
.qc-stack img{width:100%;height:100%;object-fit:contain;padding:3px;box-sizing:border-box;background:#fff}
.qc-stack .no-photo{width:100%;height:100%;min-height:0;display:grid;place-items:center;border-radius:0;background:var(--qc-panel)}
.qc-stack .no-photo .art{font-size:15px;line-height:1}
.qc-stack .no-photo em{display:none}
.qc-explore{margin-top:28px}

/* ── Shelf tiles and department collages ───────────────────────────────────── */
.qc-tiles{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:18px 12px}
.qc-tile{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;padding:0;border:0;background:none;color:var(--qc-ink);text-align:center;cursor:pointer}
.qc-tile-img{display:grid;place-items:center;width:100%;aspect-ratio:1/1;border-radius:12px;background:var(--qc-card);border:1px solid var(--qc-line);overflow:hidden;transition:transform .2s var(--ease)}
html[data-theme="dark"] .qc-tile-img{border-color:transparent}
.qc-tile-img img{width:84%;height:84%;object-fit:cover;border-radius:12px;display:block}
.qc-tile-img .no-photo{width:100%;height:100%;min-height:0;display:grid;place-items:center;border-radius:0;container-type:size;background:var(--qc-card)}
.qc-tile-img .no-photo .art{font-size:48cqmin;line-height:1}
.qc-tile-img .no-photo em{display:none}
.qc-tile:active .qc-tile-img{transform:scale(.96)}
.qc-tile-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12.5px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}
.qc-tile-more .qc-tile-img b{font-size:16px;font-weight:800;color:var(--qc-brand-ink)}
span.qc-tile .sk-line{width:70%;height:10px;border-radius:6px}
.qc-collages{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.qc-collage{display:grid;grid-template-rows:auto auto;gap:12px;padding:8px 8px 12px;border:1px solid var(--qc-line);border-radius:12px;background:var(--qc-card);color:var(--qc-ink);text-align:center;cursor:pointer;transition:transform .2s var(--ease)}
html[data-theme="dark"] .qc-collage{border-color:transparent}
.qc-collage:active{transform:scale(.97)}
.qc-collage-grid{grid-row:1;grid-column:1;display:grid;grid-template-columns:1fr 1fr;gap:5px}
.qc-collage-grid>span{aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:#fff;display:grid;place-items:center}
.qc-collage-grid img{width:100%;height:100%;object-fit:cover;display:block}
.qc-collage-grid .no-photo{width:100%;height:100%;min-height:0;display:grid;place-items:center;border-radius:0;container-type:size}
.qc-collage-grid .no-photo .art{font-size:52cqmin;line-height:1}
.qc-collage-grid.one{grid-template-columns:1fr}
.qc-collage-grid.one>span{border-radius:12px}
.qc-collage-grid.one .no-photo .art{font-size:44cqmin}
.qc-collage-grid .no-photo em{display:none}
.qc-more{grid-row:1;grid-column:1;align-self:end;justify-self:center;margin-bottom:-9px;z-index:1;padding:2px 8px;border-radius:999px;background:var(--qc-card);border:1px solid var(--qc-line);color:var(--qc-muted);font-size:10.5px;font-weight:700;white-space:nowrap}
.qc-collage-name{grid-row:2;font-size:13px;font-weight:700;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ── Department tabs ───────────────────────────────────────────────────────── */
.qc-tabs{color:var(--qc-head-ink)}
.qc-tabs-row{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;scroll-behavior:smooth}
.qc-tabs-row::-webkit-scrollbar{display:none}
.qc-tab{position:relative;flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:66px;max-width:104px;padding:6px 8px 10px;border:0;background:none;color:var(--qc-head-soft);font-size:12.5px;font-weight:600;line-height:1.15;cursor:pointer;transition:color .15s}
.qc-tab span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.qc-tab svg{width:25px;height:25px;stroke-width:1.7}
.qc-tab.on{color:var(--qc-head-ink);font-weight:800}
.qc-tab.on svg{stroke-width:2.2}
.qc-tab.on::after{content:'';position:absolute;inset-inline:10px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:currentColor}
/* Computers: the tabs head the page, on the department's colour. */
.qc-tabs-phone{display:none}
.qc-tabs-wide{margin:0 0 20px;padding:12px 10px 0;border-radius:12px;background:linear-gradient(180deg,hsl(var(--dh,38) 70% 90%),hsl(var(--dh,38) 60% 96%));border-bottom:1px solid var(--qc-tab-line)}
html[data-theme="dark"] .qc-tabs-wide{background:linear-gradient(180deg,hsl(var(--dh,38) 42% 26%),hsl(var(--dh,38) 30% 15%))}
.qc-where{display:none}

/* ── Home: live order, Categories page quick links ─────────────────────────── */
.qc-live{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:12px 14px;border-radius:16px;background:var(--qc-brand);color:#fff}
.qc-live-ico{width:40px;height:40px;border-radius:12px;background:#ffffff26;display:grid;place-items:center;flex-shrink:0}
.qc-live-ico svg{width:20px;height:20px}
.qc-live-text{display:flex;flex-direction:column;min-width:0;flex:1}
.qc-live-text small{font-size:12px;opacity:.85}
.qc-live-text strong{font-size:15.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qc-live-go{display:flex;align-items:center;gap:2px;font-size:13px;font-weight:700;white-space:nowrap}
.qc-live-go svg{width:15px;height:15px;transform:rotate(-90deg)}
.rtl .qc-live-go svg{transform:rotate(90deg)}
.qc-quick{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:4px 0 6px;padding-bottom:2px}
.qc-quick::-webkit-scrollbar{display:none}
.qc-quick>a,.qc-quick>button{flex-shrink:0;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 14px;border:1px solid var(--qc-line);border-radius:999px;background:var(--qc-card);color:var(--qc-ink);font-size:13.5px;font-weight:650;cursor:pointer}
.qc-quick svg{width:17px;height:17px}
body.live .banners{margin-top:0}

/* ── Catalogue: a department's shelves down the side ───────────────────────── */
.qc-catalog{display:grid;grid-template-columns:132px minmax(0,1fr);gap:0 22px;align-items:start}
.qc-rail{position:sticky;top:calc(var(--top) + 64px);max-height:calc(100dvh - var(--top) - 84px);overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:2px;padding:4px 0 24px;border-inline-end:1px solid var(--qc-line)}
.qc-rail::-webkit-scrollbar{display:none}
.qc-rail>button{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 8px;border:0;background:none;color:var(--qc-muted);font-size:12px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer;border-radius:12px 0 0 12px}
.rtl .qc-rail>button{border-radius:0 12px 12px 0}
.qc-rail-img{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;overflow:hidden;background:var(--qc-raise);transition:transform .2s var(--ease)}
.qc-rail-img img{width:100%;height:100%;object-fit:cover;display:block}
.qc-rail-img .no-photo{width:100%;height:100%;min-height:0;display:grid;place-items:center;border-radius:0}
.qc-rail-img .no-photo .art{font-size:26px;line-height:1}
.qc-rail-img .no-photo em{display:none}
.qc-rail-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.qc-rail>button.on{color:var(--qc-ink);font-weight:800;background:var(--qc-raise)}
.qc-rail>button.on .qc-rail-img{transform:scale(1.06);box-shadow:0 0 0 2px var(--qc-brand)}
.qc-rail>button.on::after{content:'';position:absolute;inset-inline-end:-1px;top:12px;bottom:12px;width:4px;border-radius:4px 0 0 4px;background:var(--qc-brand)}
.rtl .qc-rail>button.on::after{border-radius:0 4px 4px 0}
.qc-cat-main{min-width:0}
.qc-cat-main .filterbar{margin-top:0}
.qc-cat-title{margin-bottom:14px}

/* ── Basket: the shipment line and the stepper ─────────────────────────────── */
.qc-ship{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--qc-line)}
.qc-ship-ico{width:40px;height:40px;border-radius:12px;background:var(--qc-raise);color:var(--qc-brand-ink);display:grid;place-items:center;flex-shrink:0}
.qc-ship-ico svg{width:20px;height:20px}
.qc-ship strong{display:block;font-size:16px;font-weight:800;color:var(--qc-ink)}
.qc-ship small{display:block;font-size:12.5px;color:var(--qc-muted)}
.basket-controls .qc-step{position:static;width:76px;height:32px;border-radius:8px}
.basket-controls{gap:6px}
.basket-controls .price{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.basket-controls .price s{font-size:11.5px;font-weight:500;color:var(--qc-muted)}

/* ── View-basket pill ──────────────────────────────────────────────────────── */
.basket-bar{background:var(--qc-brand);box-shadow:0 8px 24px #0f1a2824;padding:6px 6px 6px 8px}
.rtl .basket-bar{padding:6px 8px 6px 6px}
.basket-bar:hover{background:var(--qc-brand-2)}
.bb-thumb{width:38px;height:38px;border-color:var(--qc-brand);background:#fff}
.bb-thumb .no-photo{background:#fff}
.basket-bar .bb-text strong{font-size:16px}
.basket-bar .bb-text small{color:#e3edff;font-size:12px}
.basket-bar .bb-go{width:38px;height:38px;background:#ffffff26}

@media(max-width:1150px){.qc-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}.qc-collages{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:920px){.qc-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ── Phones ────────────────────────────────────────────────────────────────── */
@media(max-width:650px){
  .qc-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 8px}
  .qc-unit-row{height:30px;padding-inline:6px 58px}
  .qc-unit{font-size:11px}
  .qc-add,.qc-step{width:56px;border-radius:8px;border-end-end-radius:11px}
  .qc-add{font-size:12.5px}
  .qc-step button{width:19px}
  .qc-step span{font-size:13px}
  /* A 44px tap target around the small controls. */
  .qc-add::after,.qc-heart::after,.qc-dismiss::after{content:'';position:absolute;inset:-8px}
  .qc-heart{width:26px;height:26px;top:4px;inset-inline-end:4px}
  .qc-heart svg{width:17px;height:17px}
  .qc-price b{font-size:14.5px}
  .qc-price s{font-size:10.5px}
  .qc-save{font-size:10.5px}
  .qc-name{font-size:12.5px}
  .qc-tag{font-size:10px;padding:2px 5px}
  .qc-meta{font-size:10.5px}
  .qc-head h2{font-size:18.5px}
  .qc-shelf,.qc-cats{margin-top:24px}
  .qc-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 8px}
  .qc-tile-img{border-radius:16px}
  .qc-tile-name{font-size:11.5px}
  .qc-collages{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
  .qc-collage{padding:6px 6px 10px;border-radius:16px;gap:12px}
  .qc-collage-grid{gap:4px}
  .qc-collage-grid>span{border-radius:8px}
  .qc-collage-name{font-size:12px}
  .qc-tabs-wide{display:none}

  /* The header on Home: "Bazzar Market in 20 minutes" and the place, the search,
     then the department tabs, on the department's colour. Scrolling leaves the
     search and the tabs pinned. */
  body.live.qc-r-home .topbar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"where actions" "search search" "tabs tabs";gap:10px 8px;padding:calc(10px + var(--safe-t)) 16px 0;top:-74px;border-bottom:0;box-shadow:none;background:linear-gradient(180deg,hsl(var(--dh,38) 72% 88%) 0%,hsl(var(--dh,38) 60% 95%) 100%);transition:background .3s}
  html[data-theme="dark"] body.live.qc-r-home .topbar{background:linear-gradient(180deg,hsl(var(--dh,38) 42% 28%) 0%,hsl(var(--dh,38) 30% 16%) 100%)}
  html.qc-scrolled body.live.qc-r-home .topbar{background:var(--qc-bg);box-shadow:0 1px 0 var(--qc-line)}
  html.qc-scrolled[data-theme="dark"] body.live.qc-r-home .topbar{background:var(--qc-bg)}
  body.live.qc-r-home .topbar .top-brand,body.live.qc-r-home .topbar .delivery{display:none}
  body.live.qc-r-home .topbar .search,body.live.qc-r-catalog .topbar .search{display:flex;grid-area:search}
  .qc-where{grid-area:where;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;height:64px;min-width:0;padding:0;border:0;background:none;color:var(--qc-head-ink);text-align:start;cursor:pointer}
  .qc-where small{font-size:13px;font-weight:800;line-height:1.2;color:var(--qc-head-ink)}
  .qc-eta{display:flex;align-items:center;gap:8px;max-width:100%}
  .qc-eta strong{font-size:27px;font-weight:850;letter-spacing:-.6px;line-height:1.15;white-space:nowrap}
  .qc-eta em{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:7px;background:var(--qc-tab-line);font-style:normal;font-size:11.5px;font-weight:700;white-space:nowrap}
  .qc-eta em svg{width:12px;height:12px}
  .qc-place{display:flex;align-items:center;gap:3px;max-width:100%;font-size:14px;font-weight:600;color:var(--qc-head-soft);white-space:nowrap;overflow:hidden}
  .qc-place svg{width:16px;height:16px;flex-shrink:0;stroke-width:2.6}
  body.live.qc-r-home .top-actions{grid-area:actions;align-self:start;margin-top:6px}
  body.live.qc-r-home .top-actions .lang-pill,body.live.qc-r-home .top-actions .bell,body.live.qc-r-home .top-actions .avatar{background:#00000026;border-color:transparent;color:var(--qc-head-ink)}
  html[data-theme="dark"] body.live.qc-r-home .top-actions .lang-pill,html[data-theme="dark"] body.live.qc-r-home .top-actions .bell,html[data-theme="dark"] body.live.qc-r-home .top-actions .avatar{background:#00000059}
  body.live.qc-r-home .top-actions .lang,body.live.qc-r-home .top-actions .lang-chev{color:var(--qc-head-ink)}
  .qc-tabs-phone{display:block;grid-area:tabs;margin:0 -16px;border-bottom:1px solid var(--qc-tab-line)}
  .qc-tabs-phone .qc-tabs-row{padding-inline:8px}
  /* The search, as a dark field on any header. */
  body.live .topbar .search{height:48px;border-radius:12px;padding:0 6px 0 14px;background:var(--qc-card);border:1px solid var(--qc-line);color:var(--qc-ink)}
  html[data-theme="dark"] body.live .topbar .search{background:#2f3034;border-color:#3a3b41}
  body.live .topbar .search input::placeholder{color:var(--qc-muted)}
  body.live .topbar .search>svg{width:20px;height:20px;color:var(--qc-ink)}
  body.live .topbar .search kbd{display:none}
  body.live.qc-r-catalog .topbar{grid-template-areas:"brand actions" "search search";top:-62px}
  body.live.qc-r-catalog .topbar .delivery{display:none}

  /* Bottom tabs */
  .mobile-nav{background:var(--qc-card);border-top:1px solid var(--qc-line);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:6px 2px calc(6px + var(--safe-b))}
  .mobile-nav a{position:relative;min-width:0;flex:1;gap:3px;font-size:11px;font-weight:600;color:var(--qc-muted)}
  .mobile-nav a svg{width:24px;height:24px;padding:3px 10px;stroke-width:1.8;background:none}
  .mobile-nav a.active{color:var(--qc-brand-ink);font-weight:800}
  .mobile-nav a.active svg{background:none;stroke-width:2.3}
  .mobile-nav a.active::before{content:'';position:absolute;top:-7px;left:26%;right:26%;height:3px;border-radius:0 0 3px 3px;background:currentColor}
  .mobile-nav .tab-count{top:0}

  .basket-bar{bottom:calc(80px + var(--safe-b))}
  .basket-bar .bb-text strong{font-size:15.5px}

  /* Catalogue rail: a narrow column of round pictures, the products two to a row. */
  .qc-catalog{grid-template-columns:82px minmax(0,1fr);gap:0 10px;margin-inline-start:-16px}
  .rtl .qc-catalog{margin-inline-start:-16px}
  .qc-rail{top:76px;max-height:calc(100dvh - 76px - 72px - var(--safe-b));padding-bottom:90px;background:var(--qc-card)}
  .qc-rail>button{padding:10px 4px;font-size:11px;border-radius:0}
  .qc-rail-img{width:52px;height:52px}
  .qc-rail>button.on{background:var(--qc-raise)}
  .qc-cat-main .qc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}
  .qc-cat-main .qc-unit-row{height:32px;padding-inline:8px 70px}
  .qc-cat-main .qc-add,.qc-cat-main .qc-step{width:66px}
  .qc-cat-main .filterbar{margin:0 0 14px;padding:2px 0 6px}
  .qc-cat-title h1{font-size:22px}
}
@media(max-width:359px){
  .qc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qc-catalog{grid-template-columns:70px minmax(0,1fr)}
  .qc-cat-main .qc-grid{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.qc-img img,.qc-img .art,.qc-tile-img,.qc-collage,.qc-tabs-row{transition:none;scroll-behavior:auto}}

/* ── Offer pictures ───────────────────────────────────────────────────────────
   The store's own square posters (POS → Promotions → Offer image, or Offer Studio):
   the product, its prices and the store's logo. Shown whole and edge to edge, never
   padded like a product photo. Top deals lists them in a row that scrolls sideways. */
.qc-img img.offer-pic,.bb-thumb img.offer-pic{object-fit:cover;padding:0}
.pd-media .detail-media>img.offer-pic{padding:0;object-fit:contain}
.pd-thumb img.offer-pic{object-fit:cover;mix-blend-mode:normal}
.op-shelf{margin:0 0 20px}
.op-row{display:grid;grid-auto-flow:column;grid-auto-columns:240px;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding-bottom:2px}
.op-row::-webkit-scrollbar{display:none}
.op-card{position:relative;min-width:0;scroll-snap-align:start;border:1px solid var(--qc-line);border-radius:12px;overflow:hidden;background:var(--qc-card)}
.op-img{display:block;width:100%;aspect-ratio:1/1;padding:0;margin:0;border:0;background:var(--qc-panel);cursor:pointer}
.op-img img,.op-img .no-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.op-card .qc-unit-row{height:40px;padding-inline:10px 82px}
.op-card .qc-unit{font-size:12.5px}
.op-card .qc-add,.op-card .qc-step{width:76px}
@media(max-width:650px){
  .op-row{grid-auto-columns:min(70vw,280px);gap:10px}
  .op-card .qc-unit-row{height:36px;padding-inline:8px 70px}
  .op-card .qc-add,.op-card .qc-step{width:64px}
}
