/* mobile.css — the phone layer. Loaded LAST, so these rules win over every earlier stylesheet; nothing here applies above 600px,
   so the desktop layout is untouched. Rules are grouped by screen and each says what it fixes. */

/* The search icon in the bottom-right pill exists only for phones. */
#railSearchBtn{ display:none; }
#sbScrim{ display:none; }

@media (max-width:600px){
  /* The page must never be wider than the phone: anything wider makes the browser widen its layout viewport and shrink the whole
     page (and pushes the cart button and side icons off the screen). `clip` (not hidden) keeps position:sticky/fixed working. */
  html, body{ overflow-x:clip; max-width:100vw; }

  /* ── Header: logo, search, address, account and cart in ONE row that fits a 375px screen ─────────────────────────── */
  .logo-lockup{ --lh:24px; }
  .sh-inner{ gap:8px; }
  /* Everything in the header sits 2px lower: 2px more padding above, 2px less below, so the header's own height (and so everything under it) is unchanged. */
  .sh-top{ padding:5px 0 1px; }
  .sh-actions{ gap:4px; min-width:0; }

  /* The floating icon column, bottom right, in the PC site's black: Search is its own black circle, and Deals / Orders / Settings share one
     black pill underneath, all 44px wide, 14px off the right edge, with the same 4px of padding top and bottom. (The pill is a ::before on the
     column stretched down behind the gear, because the gear is a separate fixed button.) No backdrop blur - WebKit smears it on a fixed
     element that fades in and out. */
  .side-rail-quick, #settingsRailBtn.settings-gear{ right:14px !important; width:44px !important; }
  .side-rail-quick{ bottom:62px !important; gap:0 !important; padding:0 !important; background:none !important; box-shadow:none !important; border-radius:0 !important; }
  .side-rail-quick::before{
    content:""; position:absolute; left:0; right:0; top:52px; bottom:-44px; z-index:-1; pointer-events:none;
    background:rgba(0,0,0,.88); border-radius:22px; box-shadow:0 0 0 1px rgba(255,255,255,.10), 0 4px 14px rgba(0,0,0,.35);
  }
  #railSearchBtn.side-rail-icon{
    width:44px !important; height:44px !important; margin-bottom:12px; border-radius:50% !important;
    background:rgba(0,0,0,.88) !important; box-shadow:0 0 0 1px rgba(255,255,255,.10), 0 4px 14px rgba(0,0,0,.35) !important;
  }
  #railDealsBtn.side-rail-icon, #railOrdersBtn.side-rail-icon{ width:44px; height:40px; }
  #settingsRailBtn.settings-gear{ bottom:22px !important; height:40px !important; border-radius:0 !important; }
  .side-rail-quick .side-rail-icon, #settingsRailBtn.settings-gear{ color:#fff !important; }

  /* ── Popups fill the whole screen ──────────────────────────────────────────────────────────────────────────────
     Product, checkout, account, orders, address picker, the cart and the admin forms were centred cards with a margin around
     them; on a phone each now takes the full screen (dvh = the visible height, so the browser's bars don't hide the bottom). */
  .overlay, .kml-overlay, #ordersOverlay{ padding:0 !important; align-items:stretch; background:var(--bg-alt, #000); }
  .product-modal, .checkout-modal, .account-modal, .account-modal.acct-modal, .orders-modal,
  #ordersModal.orders-modal, #ordersModal.orders-modal.kmo-wide, .product-form-modal, .kml-modal{
    width:100%; max-width:none; height:100vh; height:100dvh; max-height:none; border-radius:0; box-shadow:none;
  }
  /* The cart was a centred card (transform-centred); now it is the screen. */
  #drawer{
    top:0; left:0; right:0; bottom:0; width:100%; max-width:none; height:100vh; height:100dvh; max-height:none;
    border-radius:0; border:0; box-shadow:none; transform:translateY(100%); opacity:0; display:flex; flex-direction:column;
    transition:transform .55s cubic-bezier(.2,.8,.2,1), opacity .55s ease-in-out, visibility 0s linear .55s;
  }
  #drawer.open{ transform:none; opacity:1; transition-delay:0s; }   /* the cart slides up from the bottom while fading in (and back down, fading out, on close) */
  #ordersOverlay:not([hidden]){ animation:sheetUp .55s cubic-bezier(.2,.8,.2,1) both, sheetFade .55s ease-in-out both; }   /* so do the orders */
  @media (prefers-reduced-motion:reduce){ #drawer{ transition:none; } #ordersOverlay:not([hidden]){ animation:none; } }
  #drawer .drawer-head{ border-radius:0; }
  #drawer .drawer-body{ flex:1; min-height:0; overflow:auto; }
  #drawerScrim{ display:none; }

  /* Close buttons: a 44px finger target (they were 32px), in the corner of the full-screen popup. */
  .modal-close, .kml-close, .drawer-head .close, .kmo-close, .deals-page-close{ min-width:44px; min-height:44px; }
  .modal-close{ top:8px; right:8px; }

  /* ── Finger-sized targets ─────────────────────────────────────────────────────────────────────────────────────── */
  #headerSearchBtn, #locWidget, #acctBtn, #cartBtn{ min-width:38px; min-height:38px; justify-content:center; }
  .add-btn{ min-height:42px; }
  .pager-bar{ gap:6px; }
  .pager-btn{ min-width:42px; height:42px; padding:0 10px; }
  #slidePrev, #slideNext{ min-width:42px; min-height:42px; }

  /* While the Filters panel is open the floating Deals / Orders / gear icons would sit on top of it. */
  /* The bottom-right buttons (search / deals / orders / gear) come and go WITH the Filters tab, mirrored: the tab fades out to the left (opacity +
     translateX(-12px), .3s ease, styles.css) and these fade out to the right with the very same timing. They show while the products are in view
     (app.js sets body.shop-in-view in the same call that shows the tab) and leave when the tab does: back at the top, a popup open, or the Filters panel open. */
  .side-rail-quick, #settingsRailBtn.settings-gear{
    opacity:0 !important; pointer-events:none !important; transform:translateX(12px) !important; display:flex;
    transition:opacity .3s ease, transform .3s ease, background-size .5s cubic-bezier(.4,0,.2,1), color .3s ease !important;
  }
  body.shop-in-view:not(.rail-quick-off):not(:has(.overlay:not([hidden]))):not(:has(.page-shift.filters-open)) .side-rail-quick,
  body.shop-in-view:not(.rail-quick-off):not(:has(.overlay:not([hidden]))):not(:has(.page-shift.filters-open)) #settingsRailBtn.settings-gear{
    opacity:1 !important; pointer-events:auto !important; transform:none !important;
  }

  /* ── Header = logo + address + account + cart, nothing else ──────────────────────────────────────────────────── */
  .topbar{ display:none !important; }            /* the thin row with the phone number, search, deals and orders */
  :root{ --topbar-h:0px; }
  #headerSearchBtn{ display:none !important; }   /* search now lives at the bottom right, with Deals and Orders */
  #railSearchBtn{ display:flex; }

  /* With the thin top row gone there is nothing for the header to tuck up behind, so it stays exactly where it is (the tuck
     distance is the row's height; .01px, not 0, because app.js treats 0 as "unset" and falls back to 34px). */
  :root, html:has(.page-shift.filters-open){ --tuck-dist:.01px; --tuck-lift:0px; --tuck-shrink:0; }
  /* Filters panel open: the header's contents sit 3px lower (--tuck-lift is the row's lift, negative = down; --tuck is 1 once the page is up). */
  html:has(.page-shift.filters-open){ --tuck-lift:-3px; }
  /* The address widget is always just its pin icon on a phone (no "Delivery address / Choose location" text). */
  .loc-widget .loc-text{ display:none !important; }
  .loc-widget{ gap:0; }

  /* ── Search on a phone: a popup in the middle of the screen over a dimmed page, with the suggestions already open under it ─────
     (app.js lifts the bar out of the header into <body> on phones and adds #sbScrim; --sb-top is where the bar sits, higher while the
     keyboard is up; --sb-vvh is the height left above the keyboard.)
     Liquid glass in the iOS keyboard's two flavours, following the PHONE's own Light / Dark appearance (not the site's theme): DARK = smoky
     translucent grey with white text, LIGHT = bright frosted white-grey with dark text (the prefers-color-scheme block below swaps the --sg-* values). iPhone Safari
     cannot run the desktop's SVG refraction lens inside a backdrop filter, so the glass is blur + colour boost + rim light + sheen. */
  body{
    --sb-top:max(84px, calc(50dvh - 230px));
    /* DARK glass (the keyboard's dark flavour): smoky grey, quite see-through, only lightly blurred, thin cool rim. */
    --sg-glass:rgba(62,62,68,.50);  --sg-panel-tint:rgba(0,0,0,.10);  --sg-filter:blur(6px) saturate(1.7) brightness(1.18);
    --sg-sheen-a:rgba(255,255,255,.13); --sg-sheen-b:rgba(255,255,255,.03); --sg-sheen-c:rgba(255,255,255,.05);
    --sg-top:rgba(255,255,255,.40); --sg-rim:rgba(255,255,255,.20); --sg-tl:rgba(255,255,255,.60); --sg-br:rgba(255,255,255,.38); --sg-ring:rgba(255,255,255,.14); --sg-glow:rgba(255,255,255,.10); --sg-low:rgba(0,0,0,.30);
    --sg-border:rgba(255,255,255,.16); --sg-shadow:rgba(0,0,0,.50); --sg-scrim:rgba(0,0,0,.34);
    --sg-ink:#fff; --sg-muted:rgba(255,255,255,.62); --sg-placeholder:rgba(255,255,255,.55);
    --sg-chip-bg:rgba(255,255,255,.12); --sg-chip-bd:rgba(255,255,255,.20); --sg-row-hover:rgba(255,255,255,.10);
  }
  /* LIGHT glass (the keyboard's light flavour): milky white-grey, see-through enough to show the page's shapes, lightly blurred, bright rim. */
  @media (prefers-color-scheme:light){ body{
    --sg-glass:rgba(238,238,243,.66);  --sg-panel-tint:rgba(255,255,255,0);  --sg-filter:blur(5px) saturate(1.7) brightness(1.10);
    --sg-sheen-a:rgba(255,255,255,.38); --sg-sheen-b:rgba(255,255,255,.06); --sg-sheen-c:rgba(255,255,255,.14);
    --sg-top:rgba(255,255,255,.98); --sg-rim:rgba(255,255,255,.75); --sg-tl:rgba(255,255,255,.98); --sg-br:rgba(255,255,255,.85); --sg-ring:rgba(255,255,255,.40); --sg-glow:rgba(255,255,255,.50); --sg-low:rgba(0,0,0,.07);
    --sg-border:rgba(255,255,255,.55); --sg-shadow:rgba(0,0,0,.24); --sg-scrim:rgba(0,0,0,.22);
    --sg-ink:#1c1c1e; --sg-muted:rgba(0,0,0,.50); --sg-placeholder:rgba(0,0,0,.40);
    --sg-chip-bg:rgba(0,0,0,.06); --sg-chip-bd:rgba(0,0,0,.10); --sg-row-hover:rgba(0,0,0,.06);
  } }
  body.search-kb{ --sb-top:76px; --sb-pad:64px; }   /* 64: the keyboard's own tool bar (arrows / tick) rides above it and hides the panel's bottom otherwise */
  #sbScrim{
    display:block; position:fixed; inset:0; z-index:299; background:var(--sg-scrim); touch-action:none;   /* dim only: the glass does the blurring */
    opacity:0; visibility:hidden; transition:opacity .2s ease, visibility 0s linear .2s;
  }
  body.search-open #sbScrim{ opacity:1; visibility:visible; transition:opacity .2s ease; }
  body .searchbar.searchbar{
    position:fixed !important; left:16px !important; right:16px !important; width:auto !important; max-width:none !important;
    top:calc(var(--sb-top) + var(--sb-vvtop, 0px)) !important; height:52px !important; border-radius:26px !important; z-index:300 !important;
    transform:translateY(10px) scale(.97) !important;
    background:transparent !important; background-image:none !important;
    -webkit-backdrop-filter:none !important; backdrop-filter:none !important;   /* the glass is on ::after (a backdrop filter on the bar itself would blind the suggestions panel's) */
    border:0 !important; box-shadow:0 14px 44px var(--sg-shadow) !important;
    opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .2s ease, transform .24s cubic-bezier(.22,1,.36,1), top .25s ease, visibility 0s linear .2s !important;
  }
  body.search-open .searchbar.searchbar{
    opacity:1 !important; visibility:visible !important; pointer-events:auto !important; transform:none !important;
    transition:opacity .2s ease, transform .24s cubic-bezier(.22,1,.36,1), top .25s ease !important;
  }
  /* the field and its buttons sit above the glass layers, so touches always reach them */
  body .searchbar #topbarSearchForm{ position:relative; z-index:2; }
  body .searchbar .sb-submit, body .searchbar .sb-close{ z-index:3; }
  /* glass body (behind the text) */
  body .searchbar.searchbar::after{
    content:""; position:absolute; inset:0; border-radius:inherit; z-index:-1; pointer-events:none;
    background:var(--sg-glass); -webkit-backdrop-filter:var(--sg-filter); backdrop-filter:var(--sg-filter);
  }
  /* rim light + sheen (over the glass; it does not take touches) */
  body .searchbar.searchbar::before{
    display:block !important; content:""; position:absolute; inset:0 !important; left:0 !important; right:0 !important; top:0 !important; height:auto !important;
    border-radius:inherit !important; pointer-events:none; opacity:1 !important; transition:none !important;
    background:linear-gradient(135deg, var(--sg-sheen-a) 0%, var(--sg-sheen-b) 36%, rgba(255,255,255,0) 60%, var(--sg-sheen-c) 100%) !important;
    box-shadow:inset 1.2px 1.2px 0 var(--sg-tl), inset -1.2px -1.2px 0 var(--sg-br), inset 0 0 0 1px var(--sg-ring), inset 0 0 14px var(--sg-glow);
  }
  .tsearch-input{ font-size:16px; padding:0 58px 0 24px !important; color:var(--sg-ink) !important; }   /* 16px: iOS zooms the page into any smaller field */
  .tsearch-input::placeholder{ color:var(--sg-placeholder) !important; }
  body .sb-submit{ right:20px; width:24px; height:24px; color:var(--sg-ink) !important; }
  body.search-open .sb-submit{ opacity:.95 !important; pointer-events:auto !important; transition-delay:0s !important; }
  /* The way out: a round X above the popup's top-right corner (tapping the dimmed page does the same). */
  body .sb-close{
    right:0 !important; top:-54px !important; translate:none !important; width:42px; height:42px; border-radius:50%; color:var(--sg-ink) !important;
    background:var(--sg-glass); -webkit-backdrop-filter:var(--sg-filter); backdrop-filter:var(--sg-filter);
    box-shadow:inset 1.2px 1.2px 0 var(--sg-tl), inset -1.2px -1.2px 0 var(--sg-br), inset 0 0 0 1px var(--sg-ring), inset 0 0 10px var(--sg-glow), 0 8px 24px var(--sg-shadow);
  }
  body.search-open .sb-close{ opacity:1 !important; pointer-events:auto !important; animation:none !important; transition-delay:0s !important; }
  body .tsearch-suggest{
    position:absolute !important; top:calc(100% + 10px) !important; left:0 !important; width:100% !important;
    background-color:var(--sg-glass) !important;
    background-image:linear-gradient(var(--sg-panel-tint), var(--sg-panel-tint)), linear-gradient(135deg, var(--sg-sheen-a) 0%, var(--sg-sheen-b) 36%, rgba(255,255,255,0) 60%, var(--sg-sheen-c) 100%) !important;
    -webkit-backdrop-filter:var(--sg-filter) !important; backdrop-filter:var(--sg-filter) !important;
    border:0 !important; border-radius:30px !important;
    box-shadow:0 14px 44px var(--sg-shadow), inset 1.2px 1.2px 0 var(--sg-tl), inset -1.2px -1.2px 0 var(--sg-br), inset 0 0 0 1px var(--sg-ring), inset 0 0 16px var(--sg-glow) !important;
    transition:none !important; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; z-index:1 !important;
  }
  body.search-open .tsearch-suggest.has-results{ max-height:min(460px, 60dvh, calc(var(--sb-vvh, 100dvh) - var(--sb-top) - 52px - 30px - var(--sb-pad, 0px))) !important; }
  .sg-head{ color:var(--sg-muted) !important; }
  .sg-term, .sg-name{ color:var(--sg-ink) !important; }
  .sg-term svg{ color:var(--sg-ink) !important; }
  .sg-price, .sg-empty{ color:var(--sg-muted) !important; }
  .sg-chip{ color:var(--sg-ink) !important; background:var(--sg-chip-bg) !important; border-color:var(--sg-chip-bd) !important; }
  .sg-term:hover, .sg-item:hover, .sg-term.hi, .sg-item.hi{ background:var(--sg-row-hover) !important; }
  body .tsearch-suggest{ padding:8px 6px; }
  .sg-head{ padding-left:20px !important; }
  .sg-term, .sg-item{ padding-left:20px !important; padding-right:20px !important; }
  .sg-chips{ padding-left:20px !important; padding-right:20px !important; }
  .sg-item, .sg-term{ min-height:46px; }
  .sg-view{ display:none; }

  /* ── Every white / highlighted button is the same liquid glass as the search popup (Add to Cart, the slide buttons, checkout, the picked
     department chip, picked size / filter chips…): a capsule of the --sg-* glass, which follows the phone's Light / Dark appearance. The old
     white fill, its black hover-wipe and its hover colours are all overridden, so a touch never flashes them. ─────────────────────────── */
  body{ --sg-btn-filter:blur(5px) saturate(1.7) brightness(1.12); }
  .add-btn, .add-btn:hover, .add-btn:active,
  .hero-cta, .hero-cta:hover,
  .btn-primary, .btn-primary:hover, .btn-primary:disabled,
  .btn-solid-plain, .btn-solid-plain:hover,
  .dept-chip.active, .dept-chip.active:hover,
  .variant-chip.active, .filter-pill.active, .pager-btn.is-current,
  .ad-cta, .ad-info-cta, .ad-card:hover .ad-cta, .btn-admin-add.alt, .btn-admin-add.alt:hover,
  .kmadm-btn-primary, .kmadm-btn-primary:hover:not(:disabled){
    background-color:var(--sg-glass) !important;
    background-image:linear-gradient(135deg, var(--sg-sheen-a) 0%, var(--sg-sheen-b) 36%, rgba(255,255,255,0) 60%, var(--sg-sheen-c) 100%) !important;
    background-repeat:no-repeat !important; background-position:0 0 !important; background-size:100% 100% !important;
    -webkit-backdrop-filter:var(--sg-btn-filter); backdrop-filter:var(--sg-btn-filter);
    color:var(--sg-ink) !important; border:0 !important; border-radius:999px !important;
    box-shadow:inset 1.2px 1.2px 0 var(--sg-tl), inset -1.2px -1.2px 0 var(--sg-br), inset 0 0 0 1px var(--sg-ring), inset 0 0 10px var(--sg-glow), 0 4px 14px rgba(0,0,0,.28) !important;
    transition:none !important;
  }
  /* Every product card has an Add to Cart button, so a page of 40 would be 40 live backdrop blurs the phone's GPU redraws on every scroll frame.
     Over the card's plain dark background the blur changes nothing you can see, so these buttons keep the glass fill, sheen and rim without it. */
  .add-btn, .add-btn:hover, .add-btn:active{ -webkit-backdrop-filter:none; backdrop-filter:none; }
  /* the page-swipe switches the glass blurs off while it runs (they are the costly part of it) and back on when it settles */
  body.is-swiping .add-btn, body.is-swiping .hero-cta, body.is-swiping .btn-primary, body.is-swiping .btn-solid-plain,
  body.is-swiping .dept-chip.active, body.is-swiping .variant-chip.active, body.is-swiping .filter-pill.active, body.is-swiping .pager-btn.is-current{
    -webkit-backdrop-filter:none; backdrop-filter:none;
  }

  /* ── The "N in cart" stepper: the same liquid glass as Add to Cart. The row is a glass capsule (same fill, sheen and rim as the Add to
     Cart button it swaps with, and the same height), and the − and + are small round glass buttons inside it. No live blur, for the same
     reason as the Add to Cart buttons (a card each, all scrolling). ─────────────────────────────────────────────────────────────── */
  .qty-row{
    background-color:var(--sg-glass) !important;
    background-image:linear-gradient(135deg, var(--sg-sheen-a) 0%, var(--sg-sheen-b) 36%, rgba(255,255,255,0) 60%, var(--sg-sheen-c) 100%) !important;
    color:var(--sg-ink) !important; border-radius:999px !important; padding:6px !important;
    box-shadow:inset 1.2px 1.2px 0 var(--sg-tl), inset -1.2px -1.2px 0 var(--sg-br), inset 0 0 0 1px var(--sg-ring), inset 0 0 10px var(--sg-glow), 0 4px 14px rgba(0,0,0,.28) !important;
  }
  .qty-row span{ color:var(--sg-ink); }
  .qty-row button, .qty-row button[data-step="-1"]{
    width:30px !important; height:30px !important; border-radius:50% !important; padding:0; line-height:1;
    background-color:rgba(255,255,255,.16) !important;
    background-image:linear-gradient(135deg, var(--sg-sheen-a) 0%, var(--sg-sheen-b) 36%, rgba(255,255,255,0) 60%, var(--sg-sheen-c) 100%) !important;
    background-repeat:no-repeat !important; background-position:0 0 !important; background-size:100% 100% !important;
    color:var(--sg-ink) !important; border:0 !important;
    box-shadow:inset 1px 1px 0 var(--sg-tl), inset -1px -1px 0 var(--sg-br), inset 0 0 0 1px var(--sg-ring), inset 0 0 6px var(--sg-glow) !important;
    transition:filter .12s ease-out !important;
  }
  .qty-row button:is(:active, .is-tapped){ filter:brightness(.8); }

  /* ── The picture runs up BEHIND the see-through header ────────────────────────────────────────────────────────────
     Desktop does this by letting each slide overflow the top of the hero box (the hero clips sideways only). Some phone browsers
     clip that overflow too, which leaves a solid black bar where the see-through header should show the picture. Here the hero box
     itself starts at the very top of the screen (pulled up by the header's height, with the same amount as padding), so the picture
     is wholly inside the box and no overflow trick is needed. Everything else keeps its absolute position and size. */
  .panel-hero{
    top:0; margin-top:calc(-1 * var(--header-wrap-h, 44px));
    height:100vh; height:100dvh;
    padding-top:calc(var(--header-wrap-h, 44px) + var(--dept-dock-h, 0px));
    box-sizing:border-box; overflow:hidden;
  }
  /* Slide 1 (the wok): the picture is much wider than a phone, and the stage was pinned a fixed distance from the left, which put the food
     at the right edge of the screen. The food sits about 45% of the way across the picture, so the stage is now placed so that spot lands
     in the middle of the screen (a touch right of it, to leave the headline some room). The width is the same one styles.css gives the stage. */
  .dc-stage.is-cover{ left:calc(50% + 14px - 0.45 * max(122%, calc((100dvh + 200px) * 1.78))) !important; }
  /* with the food now in the middle, the headline and button sit over it: a soft shade from the bottom keeps them readable */
  .dc-slide:has(.dc-stage.is-cover) .dc-overlay{
    background:linear-gradient(0deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.46) 34%, rgba(0,0,0,.22) 52%, rgba(0,0,0,0) 68%), linear-gradient(90deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.14) 34%, rgba(0,0,0,0) 56%) !important;
  }

  /* iPhone Safari (WebKit) quirk, found on the iOS Simulator: a slide that is NOT on its own GPU layer is painted without its top
     44px (the strip behind the see-through header), so the header shows as a solid black bar with the picture starting under it —
     and it flips back and forth each time a slide animation starts and stops (the "flicker"). Giving every slide its own layer
     keeps the picture painted up to the very top of the screen, before, during and after a slide change. */
  .dc-slide{ will-change:transform; }

  /* ── Press look ───────────────────────────────────────────────────────────────────────────────────────────────────
     A tap does what hovering does on the computer: touchhover.js rewrites every :hover rule of every stylesheet to react to a press
     (:active / .is-tapped) instead of a stuck hover. The computer's hover colours are white and black, so the two spots where that clashes
     with the phone's glass buttons are restated here in the glass: */
  a, button, summary, label, [role="button"], input, select, textarea{ -webkit-tap-highlight-color:transparent; }
  /* 1) an unpicked department chip: the computer wipes white in from the left; here the same left-to-right wipe is glass, with the
        label staying in the glass ink, and it is quick enough for a tap to show it */
  .dept-chip:not(.active):not(.dept-chip-blank){
    background-image:linear-gradient(var(--sg-glass), var(--sg-glass));
  }
  .dept-chip:not(.active):not(.dept-chip-blank):is(:active, .is-tapped){
    background-size:100% 100%; color:var(--sg-ink) !important; border-color:var(--sg-tl) !important;
    box-shadow:inset 1px 1px 0 var(--sg-tl), inset -1px -1px 0 var(--sg-br), inset 0 0 10px var(--sg-glow);
    transition:background-size .3s cubic-bezier(.4, 0, .2, 1), color .2s ease, border-color .2s ease, box-shadow .2s ease !important;
  }
  /* 2) a glass button (or a picked chip) pressed — and a picked chip pressed again to un-pick it: the computer's white button turns a
        shade darker on hover, so the glass dims a shade, quickly in and out */
  .add-btn:is(:active, .is-tapped), .hero-cta:is(:active, .is-tapped), .btn-primary:is(:active, .is-tapped), .btn-solid-plain:is(:active, .is-tapped),
  .dept-chip.active:is(:active, .is-tapped), .variant-chip.active:is(:active, .is-tapped), .filter-pill.active:is(:active, .is-tapped),
  .pager-btn.is-current:is(:active, .is-tapped), .ad-cta:is(:active, .is-tapped), .ad-info-cta:is(:active, .is-tapped), .btn-admin-add.alt:is(:active, .is-tapped){
    filter:brightness(.82); transition:filter .12s ease-out !important;
  }
  /* the cards and tiles never lift on a touch: pressing them should not look like a button press */
  .card:hover, .tile:hover, .promo-tile:hover{ transform:none; }

  /* The sticky department bar gets a layer of its own, so scrolling the cards behind it never repaints it. */
  .dept-bar:not(.dept-bar-docked){ will-change:transform; }

  /* The intro <-> products swipe is settled by app.js on phones (it lands the moment the finger lifts); the browser's own mandatory
     snap made the page crawl to ~95%, wait, then jump the rest. */
  html{ scroll-snap-type:none; }
  .snap-home, .snap-shop{ scroll-snap-align:none; scroll-snap-stop:normal; }
}

@keyframes sheetUp{ from{ transform:translateY(100%); } to{ transform:none; } }
@keyframes sheetFade{ from{ opacity:0; } to{ opacity:1; } }
