/* ==========================================================================
   Hachem Superstore — public storefront
   Brand green sampled from the official "HS" app icon (#046546).
   The one loud element: prices are printed on yellow shelf tags.
   ========================================================================== */
:root {
  --hs-green: #046546;
  --hs-green-deep: #023b29;
  --hs-green-wash: #e5efe9;
  --hs-tag: #ffd84d;
  --hs-tag-edge: #e8b923;
  --hs-red: #c8352b;
  --hs-ink: #15201a;
  --hs-muted: #5b6a61;
  --hs-line: #d9e0db;
  --hs-paper: #f3f5f1;
  --hs-white: #ffffff;
  --hs-radius-s: 6px;
  --hs-radius-m: 10px;
  --hs-radius-l: 16px;
  --hs-shadow-m: 0 14px 34px rgba(21, 32, 26, .12), 0 2px 6px rgba(21, 32, 26, .06);
  --hs-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hs-font-ar: "Noto Kufi Arabic", "Archivo", sans-serif;
  --bs-body-font-family: var(--hs-font);
  --bs-body-color: var(--hs-ink);
  --bs-link-color: var(--hs-green);
  --bs-link-color-rgb: 4, 101, 70;
  --bs-link-hover-color: var(--hs-green-deep);
}

body { background: var(--hs-paper); color: var(--hs-ink); font-family: var(--hs-font); font-size: 1rem; line-height: 1.55; }
h1, h2, h3, h4, .display-type { font-family: var(--hs-font); font-stretch: 85%; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
.ar { font-family: var(--hs-font-ar); direction: rtl; }
/* Arabic names under English titles: right-to-left text, but aligned with the (left-aligned) title */
p.ar, div.ar { text-align: left; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--hs-tag-edge); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--hs-ink); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
/* Every clickable thing gets a pointer and an eased hover. :where() keeps specificity at 0,
   so component rules with their own cursor/transition (e.g. .dept-tile, .toast-basket) still win. */
:where(a[href], button:not(:disabled), [role="button"], input:is([type="submit"], [type="button"], [type="reset"], [type="checkbox"], [type="radio"]):not(:disabled), select:not(:disabled), label[for], summary, [data-bs-toggle]:not([data-bs-toggle="tooltip"])) {
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn {border-radius: var(--hs-radius-s); font-weight: 600; }
.btn-hs { background: var(--hs-green); color: #fff; border: 1px solid var(--hs-green); }
.btn-hs:hover, .btn-hs:focus { background: var(--hs-green-deep); color: #fff; border-color: var(--hs-green-deep); }
.btn-hs-outline { background: transparent; color: var(--hs-green); border: 1px solid var(--hs-green); }
.btn-hs-outline:hover { background: var(--hs-green); color: #fff; }
.btn-tag { background: var(--hs-tag); color: var(--hs-ink); border: 1px solid var(--hs-tag-edge); }
.btn-tag:hover { background: var(--hs-tag-edge); color: var(--hs-ink); }
.btn-wa { background: #1f9d55; color: #fff; border: 1px solid #1f9d55; }
.btn-wa:hover { background: #17834a; color: #fff; }

/* ---------- Utility bar + header ---------- */
.utility-bar { background: var(--hs-green-deep); color: #d6e6dd; font-size: .85rem; }
.utility-bar a { color: #fff; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }
.site-header { background: var(--hs-white); border-bottom: 1px solid var(--hs-line); position: sticky; top: 0; z-index: 1030;; view-transition-name: site-header; }
.brand-mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--hs-ink); }
.brand-mark img { width: 44px; height: 44px; border-radius: 10px; }
.brand-mark .name { font-weight: 800; font-stretch: 80%; font-size: 1.3rem; line-height: 1; letter-spacing: -.01em; }
.brand-mark .sub { display: block; font-size: .75rem; color: var(--hs-muted); font-weight: 500; font-stretch: 100%; }
.search-box { position: relative; flex: 1; max-width: 640px; }
.search-mobile { order: 1; flex: 1 1 0; min-width: 0; }
.site-header .brand-mark, .site-header .search-grow { order: 0; }
.site-header nav[aria-label="Account and basket"] { order: 2; }
.search-mobile input { height: 42px; }
@media (min-width: 576px) and (max-width: 767.98px) { .search-mobile { order: 3; flex-basis: 100%; max-width: none; } }
/* Inline on phones the field is narrow: let suggestions span the header (logo 44 px / basket 44 px + 8 px gap) */
@media (max-width: 575.98px) { .search-mobile .search-pop { left: -52px; right: -52px; } }
/* Header search: compact until clicked, then stretches to the nav (Offers / Basket) */
.search-grow { max-width: 380px; transition: max-width .65s cubic-bezier(.22, 1, .36, 1); }
.search-grow:focus-within, .search-grow.is-open { max-width: 100%; }
.search-grow input { padding-right: 6rem; text-overflow: ellipsis; }
.search-box input { height: 46px; border-radius: var(--hs-radius-s); border: 2px solid var(--hs-green); padding-left: 2.6rem; font-size: 1rem; }
.search-box input:focus { box-shadow: 0 0 0 3px rgba(4, 101, 70, .15); border-color: var(--hs-green); }
.search-box > .bi-search { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--hs-green); }
.search-box > button { position: absolute; right: 4px; top: 4px; bottom: 4px; }

/* ---------- Search suggestions panel ---------- */
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-box.is-loading > .bi-search { animation: sp-pulse .8s ease-in-out infinite alternate; }
@keyframes sp-pulse { from { opacity: 1; } to { opacity: .3; } }
.search-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1040;
  max-height: min(72vh, 620px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--hs-white); border: 1px solid var(--hs-line); border-radius: var(--hs-radius-m);
  box-shadow: var(--hs-shadow-m); padding: .35rem 0;
  opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}
.search-pop.show { opacity: 1; transform: none; }
.search-box.is-loading .search-pop { opacity: .7; }
.sp-section + .sp-section, .sp-note + .sp-section, .sp-section + .sp-all { border-top: 1px solid var(--hs-line); margin-top: .35rem; padding-top: .35rem; }
.sp-head { display: flex; justify-content: space-between; align-items: baseline; padding: .45rem 1rem .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hs-muted); }
.sp-aside { letter-spacing: 0; text-transform: none; font-weight: 600; }
.sp-opt { display: flex; align-items: center; gap: .8rem; padding: .5rem 1rem; color: var(--hs-ink); text-decoration: none; }
.sp-opt:hover, .sp-opt.is-active { background: var(--hs-green-wash); color: var(--hs-ink); }
.sp-opt mark { background: none; padding: 0; color: var(--hs-green); font-weight: 800; }
.sp-thumb { flex: none; width: 48px; height: 48px; border-radius: var(--hs-radius-s); display: grid; place-items: center; background: var(--tint, var(--hs-paper)); color: var(--tint-ink, var(--hs-green)); font-size: 1.3rem; overflow: hidden; }
.sp-thumb.sm { width: 36px; height: 36px; font-size: 1rem; }
.sp-thumb.brand { background: var(--hs-paper); border: 1px solid var(--hs-line); }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb.brand img { object-fit: contain; padding: 3px; }
.sp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sp-brand { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--hs-muted); }
.sp-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row .sp-name { flex: 1; min-width: 0; }
.sp-meta { font-size: .8rem; color: var(--hs-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.sp-tag { background: var(--hs-tag); border: 1px solid var(--hs-tag-edge); border-radius: 4px; padding: .05rem .45rem; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.sp-tag.ask { background: var(--hs-paper); border-color: var(--hs-line); font-weight: 600; font-size: .75rem; color: var(--hs-muted); }
.sp-was { font-size: .75rem; color: var(--hs-muted); }
.sp-badge { font-size: .68rem; font-weight: 800; color: #fff; background: var(--hs-red); border-radius: 4px; padding: .05rem .35rem; }
.sp-badge.out { background: var(--hs-muted); }
.sp-count { font-size: .8rem; color: var(--hs-muted); white-space: nowrap; }
.sp-row > .bi-chevron-right { color: var(--hs-muted); font-size: .8rem; transition: transform .15s ease; }
.sp-row:hover > .bi-chevron-right, .sp-row.is-active > .bi-chevron-right { transform: translateX(3px); color: var(--hs-green); }
.sp-note { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; margin: .25rem .6rem .4rem; padding: .65rem .8rem; border-radius: var(--hs-radius-s); background: #fff8dc; border: 1px solid #f3e2a6; font-size: .9rem; }
.sp-note > .bi { color: var(--hs-tag-edge); }
.sp-note p { margin: 0; flex: 1; min-width: 12rem; }
.sp-note strong { color: var(--hs-green); }
.sp-alts { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8rem; color: var(--hs-muted); padding-left: 1.6rem; }
.sp-chip { border: 1px solid var(--hs-line); background: var(--hs-white); border-radius: 999px; padding: .1rem .65rem; font-size: .8rem; color: var(--hs-green); font-weight: 600; }
.sp-chip:hover { border-color: var(--hs-green); background: var(--hs-green-wash); }
.sp-all { gap: .6rem; color: var(--hs-green); font-size: .92rem; }
.sp-all span { flex: 1; }
.sp-all kbd { background: var(--hs-paper); color: var(--hs-muted); border: 1px solid var(--hs-line); font-size: .7rem; padding: .1rem .4rem; }
.sp-empty { padding: 1.4rem 1rem 1rem; text-align: center; }
.sp-empty > .bi { font-size: 1.6rem; color: var(--hs-muted); }
.sp-empty-title { font-weight: 700; margin: .4rem 0 .1rem; }
.sp-empty-sub { color: var(--hs-muted); font-size: .9rem; margin-bottom: .8rem; }
.sp-depts { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.sp-opt.sp-dept { gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: var(--tint, var(--hs-paper)); color: var(--tint-ink, var(--hs-ink)); font-size: .85rem; font-weight: 600; }
.sp-opt.sp-dept:hover, .sp-opt.sp-dept.is-active { box-shadow: inset 0 0 0 2px currentColor; background: var(--tint); color: var(--tint-ink); }
@media (max-width: 575.98px) {
  .sp-thumb { width: 42px; height: 42px; }
  .sp-opt { padding: .5rem .75rem; }
  .sp-all kbd { display: none; }
}
.header-action { display: inline-flex; align-items: center; gap: .4rem; color: var(--hs-ink); text-decoration: none; font-weight: 600; padding: .5rem .7rem; border-radius: var(--hs-radius-s); position: relative; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.header-action:hover { background: var(--hs-green-wash); color: var(--hs-green-deep); }
.header-action .bi { font-size: 1.35rem; }
.cart-count { position: absolute; top: 0; left: 1.6rem; background: var(--hs-tag); color: var(--hs-ink); font-size: .7rem; font-weight: 800; min-width: 1.25rem; height: 1.25rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .3rem; border: 1px solid var(--hs-tag-edge); }

/* Category rail — the "aisles" */
.aisle-nav { background: var(--hs-green); }
.aisle-nav .rail { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.aisle-nav .rail::-webkit-scrollbar { display: none; }
.aisle-nav a { color: #fff; white-space: nowrap; text-decoration: none; padding: .7rem .85rem; font-weight: 600; font-size: .92rem; display: inline-flex; gap: .4rem; align-items: center; border-bottom: 3px solid transparent; }
.aisle-nav a:hover, .aisle-nav a.active { border-bottom-color: var(--hs-tag); background: rgba(255,255,255,.06); }

/* ---------- Hero: banner carousel + two tiles ---------- */
.hero-bento { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: .9rem; }
.hero-main { grid-row: span 2; border-radius: var(--hs-radius-l); overflow: hidden; position: relative; min-height: 440px; background: var(--hs-green); }
.hero { position: relative; height: 100%; min-height: 440px; display: flex; align-items: center; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 85% 15%, #0d8159 0%, var(--hs-green) 42%, var(--hs-green-deep) 100%); }
.hero.theme-yellow { background: radial-gradient(120% 140% at 85% 15%, #ffe680 0%, var(--hs-tag) 50%, #f4c430 100%); color: var(--hs-ink); }
.hero.theme-red { background: radial-gradient(120% 140% at 85% 15%, #e0493e 0%, var(--hs-red) 50%, #8f2219 100%); }
.hero.theme-light { background: #fff; color: var(--hs-ink); }
.hero .hero-copy { position: relative; z-index: 2; padding: clamp(1.75rem, 4vw, 3.5rem); max-width: min(33rem, 62%); display: flex; flex-direction: column; gap: 1rem; }
.hero-copy h1, .hero-copy .h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); font-stretch: 78%; line-height: 1; margin: 0; }
.hero-copy p { font-size: 1.1rem; opacity: .9; max-width: 40ch; margin: 0; }
.hero-kicker { display: inline-flex; gap: .4rem; align-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.hero .hero-media { position: absolute; inset: 0; z-index: 1; }
.hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 59, 41, .94) 0%, rgba(2, 59, 41, .78) 42%, rgba(2, 59, 41, .05) 75%); }
.hero.theme-yellow .hero-media::after { background: linear-gradient(90deg, rgba(255, 216, 77, .97) 0%, rgba(255, 216, 77, .85) 42%, rgba(255, 216, 77, 0) 75%); }
.hero.theme-red .hero-media::after { background: linear-gradient(90deg, rgba(150, 30, 22, .95) 0%, rgba(150, 30, 22, .8) 42%, rgba(150, 30, 22, 0) 75%); }
.hero.theme-light .hero-media::after { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,0) 75%); }
/* Banners without a photo get floating department "bubbles" on the right */
.hero-deco { position: absolute; inset: 0 0 0 60%; z-index: 1; }
.bubble { position: absolute; width: var(--s); aspect-ratio: 1; border-radius: 30%; background: var(--tint); color: var(--tint-ink); display: grid; place-items: center;
  font-size: calc(var(--s) * .44); box-shadow: 0 22px 44px rgba(0, 0, 0, .22); transform: rotate(var(--r)); animation: hs-float 8s ease-in-out infinite; animation-delay: var(--d); }
.bubble.b1 { --s: 124px; --r: -8deg; --d: 0s; top: 12%; left: 6%; }
.bubble.b2 { --s: 92px; --r: 10deg; --d: -2s; top: 7%; right: 8%; }
.bubble.b3 { --s: 112px; --r: 6deg; --d: -4s; top: 46%; right: 5%; }
.bubble.b4 { --s: 88px; --r: -12deg; --d: -1s; bottom: 9%; left: 4%; }
.bubble.b5 { --s: 70px; --r: 14deg; --d: -3s; top: 47%; left: 40%; }
.bubble.b6 { --s: 60px; --r: -6deg; --d: -5s; bottom: 7%; right: 34%; }
@keyframes hs-float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-12px) rotate(var(--r)); } }
.hero-dots { position: absolute; z-index: 3; left: clamp(1.75rem, 4vw, 3.5rem); bottom: 1.4rem; display: flex; gap: .4rem; padding: 6px 8px; border-radius: 999px; background: rgba(21, 32, 26, .38); backdrop-filter: blur(4px); }
.hero-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); transition: width .3s ease, background-color .3s ease; }
.hero-dots button:hover { background: rgba(255, 255, 255, .8); }
.hero-dots button.active { width: 28px; background: #fff; }

.hero-tile { border-radius: var(--hs-radius-l); padding: 1.4rem 1.5rem; text-decoration: none; display: flex; flex-direction: column; gap: .25rem; position: relative; overflow: hidden; min-height: 200px;
  transition: transform .25s ease, box-shadow .25s ease; }
.hero-tile:hover { transform: translateY(-3px); box-shadow: var(--hs-shadow-m); }
.tile-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.tile-big { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; font-stretch: 78%; line-height: 1; letter-spacing: -.01em; max-width: 12ch; }
.tile-sub { font-size: .9rem; opacity: .8; max-width: 30ch; }
.tile-go { margin-top: auto; padding-top: .75rem; font-weight: 800; display: inline-flex; gap: .4rem; align-items: center; position: relative; z-index: 1; }
.tile-go i { transition: transform .25s ease; }
.hero-tile:hover .tile-go i { transform: translateX(4px); }
.tile-mark { position: absolute; right: -14px; bottom: -26px; font-size: 8.5rem; opacity: .14; transform: rotate(-14deg); transition: transform .4s ease; }
.hero-tile:hover .tile-mark { transform: rotate(-6deg) scale(1.05); }
.tile-offer { color: var(--hs-ink); background: var(--hs-tag) repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255, 255, 255, .22) 22px 44px); }
.tile-offer .tile-big { color: var(--hs-red); }
.tile-offer:hover { color: var(--hs-ink); }
.tile-counters { color: #fff; background: radial-gradient(120% 120% at 100% 100%, #33463b 0%, var(--hs-ink) 60%); }
.tile-counters:hover { color: #fff; }
.tile-counters .tile-label { color: var(--hs-tag); opacity: 1; }

.steps { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-l); }
.steps li { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.15rem; font-size: .9rem; line-height: 1.3; }
.steps li + li { border-left: 1px solid var(--hs-line); }
.steps strong { display: block; }
.steps span:not(.step-n) { color: var(--hs-muted); }
.step-n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--hs-green-wash); color: var(--hs-green); font-weight: 800; display: grid; place-items: center; }
@media (max-width: 991.98px) {
  .hero-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-main { grid-column: span 2; grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--hs-line); }
}
@media (max-width: 767.98px) {
  .hero, .hero-main { min-height: 400px; }
  .hero { align-items: flex-end; }
  .hero .hero-copy { padding-bottom: 3.25rem; max-width: none; }
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero-deco { position: relative; inset: auto; display: flex; gap: .55rem; padding: 1.5rem 1.75rem 0; }
  .bubble { position: static; --s: 50px; border-radius: 16px; box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
  .bubble.b6 { display: none; }
  .hero .hero-media::after { background: linear-gradient(0deg, rgba(2, 59, 41, .96) 0%, rgba(2, 59, 41, .7) 55%, rgba(2, 59, 41, .1) 100%); }
  .hero.theme-yellow .hero-media::after { background: linear-gradient(0deg, rgba(255,216,77,.98) 0%, rgba(255,216,77,.8) 55%, rgba(255,216,77,0) 100%); }
  .hero.theme-light .hero-media::after { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.85) 55%, rgba(255,255,255,0) 100%); }
  .hero-tile { min-height: 170px; padding: 1.1rem; }
  .tile-big { font-size: 1.3rem; }
  .tile-mark { font-size: 6rem; }
  .tile-sub { display: none; }
}
@media (max-width: 575.98px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--hs-line); }
}

/* ---------- Section heads ---------- */
.section { padding: 2.75rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--hs-muted); }
.section-head .more { font-weight: 800; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.section-head .more i, .counter-links a .bi-arrow-right { transition: transform .2s ease; }
.section-head .more:hover i, .counter-links a:hover .bi-arrow-right { transform: translateX(4px); }
.eyebrow { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hs-green); margin-bottom: .3rem; }

/* ---------- Rails (x-rail component) ---------- */
.rail { --rail-w: 236px; }
.rail-sm { --rail-w: 170px; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail-w); gap: .9rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; margin: -6px -2px -10px; cursor: grab; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-track:focus-visible { outline-offset: 4px; }
.rail.is-dragging .rail-track { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail.is-dragging .rail-track > * { pointer-events: none; }
.rail-controls { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.rail-progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(21, 32, 26, .1); overflow: hidden; margin-right: .5rem; }
.rail-progress span { display: block; height: 100%; width: 30%; border-radius: 4px; background: var(--hs-green); }
.rail-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hs-line); background: #fff; color: var(--hs-ink); display: grid; place-items: center; font-size: 1.05rem; }
.rail-btn:hover:not(:disabled) { background: var(--hs-green); border-color: var(--hs-green); color: #fff; }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail.no-overflow .rail-controls { display: none; }
@media (hover: none) { .rail-btn { display: none; } .rail-progress { margin-right: 0; } }

/* ---------- Department tiles ---------- */
.dept-tile { display: flex; flex-direction: column; gap: .65rem; padding: 1rem; min-height: 158px; border-radius: var(--hs-radius-l); background: #fff; border: 1px solid var(--hs-line);
  text-decoration: none; color: var(--hs-ink); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.dept-tile:hover { transform: translateY(-3px); box-shadow: var(--hs-shadow-m); border-color: transparent; color: var(--hs-ink); }
.dept-tile .icon { width: 58px; height: 58px; border-radius: 18px; background: var(--tint); color: var(--tint-ink); display: grid; place-items: center; font-size: 1.65rem; overflow: hidden; transition: transform .3s ease; }
.dept-tile:hover .icon { transform: scale(1.07) rotate(-5deg); }
/* With a department photo: full-bleed picture on top, icon badge overlapping its lower edge */
.dept-tile.has-photo { padding: 0 0 1rem; overflow: hidden; }
.dept-tile.has-photo > :not(.photo) { padding: 0 1rem; }
.dept-tile .photo { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: .9rem; background: var(--tint); }
.dept-tile .photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.dept-tile.has-photo:hover .photo img { transform: scale(1.06); }
.dept-tile .photo .icon { position: absolute; left: 1rem; bottom: -18px; width: 40px; height: 40px; border-radius: 12px; font-size: 1.15rem; box-shadow: 0 0 0 3px #fff; }
.dept-tile .name { font-weight: 800; font-stretch: 88%; font-size: 1.05rem; line-height: 1.15; }
.dept-tile .count { margin-top: auto; font-size: .8rem; color: var(--hs-muted); }

/* ---------- Product card + shelf tag ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.p-card { background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-l); display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.p-card:hover { border-color: transparent; box-shadow: var(--hs-shadow-m); transform: translateY(-3px); }
.p-media { position: relative; aspect-ratio: 1 / 1; margin: .5rem .5rem 0; border-radius: 12px; background: var(--tint, #f1f4f2); display: grid; place-items: center; overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-icon { font-size: 3.6rem; color: var(--tint-ink, var(--hs-muted)); opacity: .9; transition: transform .35s ease; }
.p-card:hover .p-icon { transform: scale(1.1) rotate(-4deg); }
.p-body { padding: .75rem .9rem .9rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.p-brand { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--hs-muted); font-weight: 800; }
.p-name { font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--hs-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.p-name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-name:hover { color: var(--hs-green); }
.p-size { font-size: .84rem; color: var(--hs-muted); }
.p-foot { display: flex; align-items: end; justify-content: space-between; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.p-flag { position: absolute; top: .55rem; left: .55rem; z-index: 2; background: var(--hs-red); color: #fff; font-weight: 800; font-size: .8rem; padding: .2rem .5rem; border-radius: 6px; }
.p-flag.stock { background: var(--hs-ink); }

/* Toters-style stepper: green "+" that grows into − qty + once the product is in the basket */
.qty-stepper { position: absolute; right: .55rem; bottom: .55rem; z-index: 3; display: flex; align-items: center; height: 44px; border-radius: 999px;
  background: var(--hs-green); color: #fff; box-shadow: 0 8px 20px rgba(2, 59, 41, .28); overflow: hidden; }
.step-btn { flex: 0 0 44px; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.step-btn:hover { background: rgba(255, 255, 255, .16); }
.step-btn:active { transform: scale(.9); }
.step-minus, .step-qty { flex-basis: 0; width: 0; opacity: 0; overflow: hidden; transition: flex-basis .28s cubic-bezier(.2, .8, .2, 1), width .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.step-minus .bi { font-size: 1.05rem; }
.has-qty .step-minus { flex-basis: 40px; width: 40px; opacity: 1; }
.has-qty .step-qty { flex-basis: 26px; width: 26px; opacity: 1; }
.step-qty { text-align: center; font-weight: 800; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.step-qty [data-qty-label] { display: inline-block; }
.bump { animation: hs-roll-up .24s cubic-bezier(.2, .8, .2, 1); }
.bump.down { animation-name: hs-roll-down; }
@keyframes hs-roll-up { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hs-roll-down { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
.cart-count.bump { animation: hs-pop .35s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes hs-pop { 0% { transform: scale(.5); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* The shelf tag: yellow label, notched left edge like a clip-on price strip */
.shelf-tag { display: inline-flex; flex-direction: column; align-items: flex-start; background: var(--hs-tag); border: 1px solid var(--hs-tag-edge); border-radius: 3px; padding: .2rem .55rem .25rem .7rem; line-height: 1.05; clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%); font-variant-numeric: tabular-nums; }
.shelf-tag .now { font-weight: 800; font-size: 1.2rem; font-stretch: 85%; color: var(--hs-ink); }
.shelf-tag .lbp { font-size: .68rem; color: #5e4b05; font-weight: 600; }
.shelf-tag .was { font-size: .74rem; color: var(--hs-red); text-decoration: line-through; font-weight: 600; }
.shelf-tag.lg { padding: .45rem 1rem .5rem 1.25rem; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.shelf-tag.lg .now { font-size: 2rem; }
.shelf-tag.lg .lbp { font-size: .85rem; }
.shelf-tag.ask { background: #fff; border-color: var(--hs-line); }
.shelf-tag.ask .now { font-size: .82rem; font-weight: 700; color: var(--hs-muted); font-stretch: 100%; }

/* ---------- Offers band ---------- */
.offer-band { border-radius: 24px; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--hs-tag) radial-gradient(90% 120% at 100% 0%, #ffe788 0%, transparent 60%); }
.offer-band h1, .offer-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-stretch: 78%; }
.offer-band .section-head p { color: #5a4a0a; }
.offer-band .badge-big { background: var(--hs-red); color: #fff; font-weight: 800; padding: .3rem .65rem; border-radius: 6px; display: inline-block; }
.offer-band .more { color: var(--hs-ink); }
.offer-band .p-card { border-color: transparent; }
.offer-band .rail-progress { background: rgba(21, 32, 26, .14); }
.offer-band .rail-progress span { background: var(--hs-ink); }
.offer-band .rail-btn { border-color: transparent; }
.ends-pill { display: inline-flex; gap: .35rem; align-items: center; background: var(--hs-ink); color: #fff; border-radius: 999px; padding: .28rem .75rem; font-size: .8rem; font-weight: 700; }

/* ---------- Counters + visit + brands (home) ---------- */
.counters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 1rem; }
.counters-intro { border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.25rem); color: #fff; display: flex; flex-direction: column; gap: .6rem;
  background: radial-gradient(120% 90% at 0% 0%, #0b6f4d 0%, var(--hs-green-deep) 60%); }
.counters-intro .eyebrow { color: var(--hs-tag); }
.counters-intro h2 { color: #fff; margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-stretch: 78%; }
.counters-intro p { opacity: .85; margin: 0 0 .5rem; }
.counter-links { margin-top: auto; }
.counter-links a { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; padding: .7rem 0; border-top: 1px solid rgba(255, 255, 255, .15); font-weight: 700; }
.counter-links a:hover { color: var(--hs-tag); }
.counters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.visit { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: center; border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.75rem); color: #fff;
  background-color: var(--hs-green);
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 34px 34px; }
.visit h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); font-stretch: 78%; }
.visit .eyebrow { color: var(--hs-tag); }
.visit p { opacity: .88; max-width: 52ch; }
.visit-phones { display: flex; flex-direction: column; gap: .5rem; }
.visit-phones a { display: flex; gap: .7rem; align-items: center; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .1); border-radius: 12px; padding: .75rem 1rem; }
.visit-phones a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.brand-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.brand-tile { height: 92px; display: grid; place-items: center; padding: 1rem; background: #fff; border: 1px solid var(--hs-line); border-radius: 14px; transition: box-shadow .25s ease, border-color .25s ease; }
.brand-tile img { max-width: 100%; max-height: 54px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s ease, opacity .25s ease; }
.brand-tile:hover { border-color: transparent; box-shadow: var(--hs-shadow-m); }
.brand-tile:hover img { filter: none; opacity: 1; }
@media (max-width: 991.98px) {
  .counters { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) { .counters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Listing (/shop, /category, /brand) ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--hs-line); padding: 1.5rem 0 1.25rem; }
.shop-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-stretch: 80%; }
.head-icon { width: 60px; height: 60px; flex-shrink: 0; border-radius: 18px; background: var(--tint); color: var(--tint-ink); display: grid; place-items: center; font-size: 1.7rem; }
.head-icon.has-photo { width: 84px; height: 84px; overflow: hidden; }
.head-icon.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: .85rem; margin-bottom: .6rem; }
.shop-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 1.75rem; align-items: stretch; }
.filter-panel { width: 100%; background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-l); padding: 1.1rem; }
.f-group + .f-group { border-top: 1px solid var(--hs-line); margin-top: 1rem; padding-top: 1rem; }
.f-group h3 { font-size: .74rem; font-stretch: 100%; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hs-muted); margin: 0 0 .6rem; }
.dept-list { display: grid; gap: 2px; }
.dept-list a { display: flex; align-items: center; gap: .6rem; padding: .38rem .5rem; border-radius: 9px; color: var(--hs-ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.dept-list a:hover { background: var(--hs-paper); }
.dept-list a.active { background: var(--hs-green-wash); color: var(--hs-green-deep); font-weight: 800; }
.d-ico { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--tint, var(--hs-paper)); color: var(--tint-ink, var(--hs-ink)); display: grid; place-items: center; font-size: .9rem; }
.n { margin-left: auto; padding-left: .5rem; font-size: .78rem; color: var(--hs-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.brand-list { max-height: 240px; overflow-y: auto; display: grid; gap: .25rem; }
.brand-list .form-check-label, .filter-panel .form-switch .form-check-label { display: flex; width: 100%; }
.filter-panel .form-check-input:checked { background-color: var(--hs-green); border-color: var(--hs-green); }
.filter-panel .form-check-input:focus, .filter-panel .form-control:focus, .tb-sort:focus { border-color: var(--hs-green); box-shadow: 0 0 0 3px rgba(4, 101, 70, .15); }
.price-range { display: flex; align-items: center; gap: .4rem; }
.price-range .input-group { flex: 1; flex-wrap: nowrap; }
.price-range .input-group-text { padding: .375rem .55rem; background: var(--hs-paper); }
.drawer-foot { padding: 1rem; border-top: 1px solid var(--hs-line); background: #fff; }
.shop-toolbar { margin-bottom: 1rem; }
.tb-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-l); padding: .55rem .6rem .55rem 1rem; }
.tb-count { color: var(--hs-muted); font-size: .92rem; }
.tb-count strong { color: var(--hs-ink); }
.tb-tools { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.tb-sort { width: auto; border-radius: 9px; font-weight: 600; }
.view-toggle { display: inline-flex; background: var(--hs-paper); border-radius: 10px; padding: 3px; gap: 2px; }
.view-toggle button { width: 36px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--hs-muted); }
.view-toggle button:hover { color: var(--hs-ink); }
.view-toggle button[aria-pressed="true"] { background: #fff; color: var(--hs-green); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tb-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .75rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--hs-line); border-radius: 2rem; padding: .35rem .8rem; font-size: .88rem; font-weight: 600; color: var(--hs-ink); text-decoration: none; }
.chip:hover, .chip.active { border-color: var(--hs-green); color: var(--hs-green); background: var(--hs-green-wash); }
.chip-x .bi { font-size: .68rem; }
.chip-x:hover { border-color: var(--hs-red); color: var(--hs-red); background: #fdeceb; }
.tb-clear { font-weight: 700; font-size: .88rem; margin-left: .25rem; }
.shop-results { transition: opacity .2s ease; }
.shop.is-loading .shop-results { opacity: .45; pointer-events: none; }
.shop.is-loading .tb-row { background-image: linear-gradient(90deg, transparent, rgba(4, 101, 70, .08), transparent); background-size: 200% 100%; animation: hs-shimmer 1s linear infinite; }
@keyframes hs-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* List view: cards become rows, stepper moves to the right edge */
.shop[data-view="list"] .shop-grid { grid-template-columns: 1fr; gap: .6rem; }
.shop[data-view="list"] .p-card { flex-direction: row; align-items: center; }
.shop[data-view="list"] .p-card:hover { transform: none; }
.shop[data-view="list"] .p-media { position: static; flex: 0 0 84px; width: 84px; margin: .45rem; border-radius: 10px; }
.shop[data-view="list"] .p-icon { font-size: 2.1rem; }
.shop[data-view="list"] .p-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand foot" "name foot" "size foot"; align-items: center; column-gap: 1rem; padding: .75rem 7.5rem .75rem .5rem; }
.shop[data-view="list"] .p-brand { grid-area: brand; }
.shop[data-view="list"] .p-name { grid-area: name; min-height: 0; font-size: 1.05rem; }
.shop[data-view="list"] .p-size { grid-area: size; }
.shop[data-view="list"] .p-foot { grid-area: foot; padding-top: 0; }
.shop[data-view="list"] .qty-stepper { right: 1rem; bottom: auto; top: 50%; margin-top: -22px; }
::view-transition-group(*) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
/* Moving cards are drawn in the browser's transition layer; keep the sticky header and phone bar above them */
::view-transition-group(site-header), ::view-transition-group(mobile-bar) { z-index: 100; animation: none; }
/* The page itself swaps instantly (no ghosted sidebar/footer); only cards move. Cards leaving the results
   vanish fast, new ones fade in, so nothing lingers over the footer. */
::view-transition-old(root) { display: none; }
::view-transition-new(root) { animation: none; }
::view-transition-old(*):only-child { animation-duration: .12s; }
::view-transition-new(*):only-child { animation-duration: .3s; }
@media (min-width: 992px) {
  .shop-drawer { position: sticky; top: 140px; }
  .shop-drawer .offcanvas-body { display: block; }
}
@media (max-width: 991.98px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-drawer { --bs-offcanvas-width: min(88vw, 380px); }
  .shop-drawer .offcanvas-body { padding: .75rem; background: var(--hs-paper); }
  .shop-drawer .filter-panel { border: 0; }
  .brand-list { max-height: none; }
}
@media (max-width: 575.98px) {
  .tb-count { order: 3; width: 100%; }
  .shop[data-view="list"] .p-media { flex-basis: 80px; width: 80px; }
  .shop[data-view="list"] .p-body { grid-template-columns: 1fr; grid-template-areas: "brand" "name" "size" "foot"; padding-right: 6.5rem; }
  .shop[data-view="list"] .p-foot { padding-top: .35rem; }
}

/* ---------- Product page ---------- */
.pdp-media { background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-m); aspect-ratio: 1/1; display: grid; place-items: center; padding: 2rem; }
.pdp-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-media.has-photo { padding: 0; overflow: hidden; }
.pdp-media.has-photo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.photo-credit { margin: .5rem .25rem 0; font-size: .75rem; color: var(--hs-muted); }
.photo-credit a { color: inherit; }
.photo-credit a:hover { color: var(--hs-green); }
.qty-input { width: 90px; text-align: center; font-weight: 700; }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0; }
.spec-list dt { color: var(--hs-muted); font-weight: 500; }
.spec-list dd { margin: 0; font-weight: 600; }
.no-img { color: #b8c4bd; font-size: 3rem; }

/* ---------- Panels, branches, footer ---------- */
.panel { background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-m); padding: 1.25rem; }
.branch-card { background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-m); padding: 1.25rem; height: 100%; }
.branch-card h3 { color: var(--hs-green); }
.branch-map { height: 420px; border-radius: var(--hs-radius-m); border: 1px solid var(--hs-line); z-index: 1; }
.hours { white-space: pre-line; }
.unknown { color: var(--hs-muted); font-style: italic; }
.rich-text { max-width: 72ch; }
.rich-text img { max-width: 100%; height: auto; border-radius: var(--hs-radius-s); }
.site-footer { background: var(--hs-green-deep); color: #cfe0d6; margin-top: 3rem; padding: 2.5rem 0 1.25rem; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { color: #fff; font-size: 1rem; font-stretch: 100%; margin-bottom: .75rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .8rem; color: #9fbcad; }

/* Cart & checkout */
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--hs-line); }
.cart-line img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius-s); }
.summary { position: sticky; top: 140px; }
.choice { border: 1px solid var(--hs-line); border-radius: var(--hs-radius-s); padding: .8rem 1rem; display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.choice:has(input:checked) { border-color: var(--hs-green); background: var(--hs-green-wash); }

/* Mobile bottom bar */
.mobile-bar { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: 64px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040; background: #fff; border-top: 1px solid var(--hs-line);; view-transition-name: mobile-bar; }
  .mobile-bar a { text-align: center; padding: .45rem 0 .5rem; font-size: .72rem; color: var(--hs-ink); text-decoration: none; position: relative; font-weight: 600; }
  .mobile-bar a .bi { display: block; font-size: 1.25rem; color: var(--hs-green); }
  .mobile-bar .cart-count { left: 50%; top: .1rem; margin-left: .3rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .rail { --rail-w: 58vw; }
  .rail-sm { --rail-w: 38vw; }
  .p-body { padding: .6rem .65rem .7rem; }
  .p-icon { font-size: 3rem; }
  .shelf-tag .now { font-size: 1.05rem; }
  .summary { position: static; }
}

.toast-basket { position: fixed; right: 1rem; bottom: 1rem; z-index: 1080; background: var(--hs-ink); color: #fff; padding: .8rem 1rem; border-radius: var(--hs-radius-s); display: flex; gap: .75rem; align-items: center; max-width: calc(100% - 2rem); transform: translateY(150%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.toast-basket.show { transform: none; visibility: visible; }
.toast-basket a { color: var(--hs-tag); font-weight: 700; }
@media (max-width: 767.98px) { .toast-basket { bottom: 72px; left: 1rem; right: 1rem; } }
@media (prefers-reduced-motion: reduce) { *, ::view-transition-group(*) { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.offcanvas:focus-visible { outline: none; }
