/* Public shell: top bar, header, navigation, drawer, bottom bar, footer, consent, pop-up. Colours come only from tokens (see theme-default.css). */

.ico { width: 1.25rem; height: 1.25rem; flex: none; vertical-align: middle; }
.ico--fill { fill: currentColor; }
.ico--dim { color: var(--border-strong); fill: currentColor; }
.nowrap { white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* a wider page than Bootstrap's 960/1140/1320 steps, so laptops keep little empty margin at the sides; must stay above the
   .container--* sizes below (same weight, the later rule wins) */
.container { max-width: 1440px; }
@media (min-width: 992px) { .container { padding-inline: 2rem; } }       /* laptops and low-resolution monitors: a clear margin at both sides */
@media (min-width: 1200px) { .container { padding-inline: 2.75rem; } }
.container--narrow { max-width: 52rem; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--brand-accent); color: var(--on-accent); font-size: .7rem; font-weight: 700; line-height: 1; }
.count[hidden] { display: none; }
.count--inline { margin-inline-start: .35rem; }

/* ---- top bar ---- */
.topbar { background: var(--brand-primary); color: var(--on-primary); font-size: .85rem; }
.topbar a { color: var(--on-primary); text-decoration: none; }
.topbar a:hover { color: var(--on-primary); text-decoration: underline; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2rem; }
.topbar__msg { display: none; margin: 0; align-items: center; gap: .4rem; }
.topbar__links { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; flex-wrap: wrap; justify-content: flex-end; }
.topbar__links a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem 0; }
.topbar__links .ico { width: 1rem; height: 1rem; }
.topbar__lang { font-weight: 600; padding: .1rem .7rem !important; border: 1px solid color-mix(in srgb, var(--on-primary) 55%, transparent); border-radius: 999px; }
@media (min-width: 768px) { .topbar__msg { display: inline-flex; } }
/* a phone is too narrow for four links: one line with the phone number and the language switch (WhatsApp and order tracking are in the menu) */
@media (max-width: 575.98px) {
  .topbar__links { width: 100%; justify-content: space-between; }
  .topbar__links .topbar__opt { display: none; }
}

/* ---- header ---- */
.site-header { background: var(--surface-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.hdr { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu brand actions" "search search search"; align-items: center; gap: .35rem .5rem; padding-block: .5rem; }
.hdr__menu { grid-area: menu; }
.hdr__brand { grid-area: brand; justify-self: start; min-width: 0; }
.hdr__links { display: none; }   /* Home / Offers / Recipes / Blog beside the brand on laptops and up; the drawer has them on phones */
@media (min-width: 992px) { .hdr__links { display: flex; grid-area: links; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; white-space: nowrap; } }
@media (min-width: 1200px) { .hdr { grid-template-columns: auto auto minmax(14rem, 1fr) auto; column-gap: 1.25rem; } }
.hdr__search { grid-area: search; transition: max-height .2s ease, opacity .2s ease, margin .2s ease; max-height: 3.5rem; }
.hdr__actions { grid-area: actions; display: flex; align-items: center; gap: .15rem; }
.site-header.is-scrolled .hdr__search { max-height: 0; opacity: 0; overflow: hidden; pointer-events: none; margin-block: -.2rem; }
@media (min-width: 992px) {
  /* two rows as on falaqfood.com: brand / search / buttons, then the category bar. The header sticks 3.85rem ABOVE the
     screen (padding .6 + row 2.75 + gap .5), so on scroll the first row slides away and only the category bar stays at the top.
     product.js reads this negative top for --sticky-top. */
  .site-header { top: -3.85rem; }
  .hdr { grid-template-columns: auto auto minmax(12rem, 1fr) auto; grid-template-rows: 2.75rem auto; grid-template-areas: "brand links search actions" "nav nav nav nav"; gap: .5rem 1rem; padding-block: .6rem 0; }
  .hdr .hdr__menu { display: none; }   /* two classes: plain .hdr__menu would lose to .icon-btn further down and stay on screen as a stray row */
  .site-header.is-scrolled .hdr__search { max-height: 3.5rem; opacity: 1; pointer-events: auto; margin: 0; overflow: visible; }
}

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--brand-primary); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.brand:hover { color: var(--brand-primary-hover); }
.brand__mark { width: 2rem; height: 2rem; flex: none; }
.brand__logo { display: block; height: 2.5rem; width: auto; }
.brand__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hdr__brand { overflow: hidden; }

.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: transparent; color: var(--brand-ink); text-decoration: none; cursor: pointer; transition: background-color .15s; }
.icon-btn:hover { background: var(--surface-alt); color: var(--brand-ink); }
.icon-btn .count { position: absolute; top: .1rem; inset-inline-end: .05rem; }
.hdr__account { display: none; }
@media (min-width: 576px) { .hdr__account { display: inline-flex; } }

.cartlink { position: relative; display: inline-flex; align-items: center; gap: .45rem; height: 2.6rem; padding: 0 .75rem; border-radius: 999px; background: var(--brand-primary); color: var(--on-primary); text-decoration: none; font-weight: 600; }
.cartlink:hover { background: var(--brand-primary-hover); color: var(--on-primary); }
.cartlink__txt { display: none; white-space: nowrap; }
.cartlink .count { position: absolute; top: -.3rem; inset-inline-end: -.2rem; }
@media (min-width: 992px) { .cartlink__txt { display: inline; } }
@media (max-width: 991.98px) { .cartlink { width: 2.6rem; padding: 0; justify-content: center; } }

/* ---- search (falaqfood.com style) ---- */
/* slim white pill with a 1px brand border, a small round grey button inside it, a clear "x" once something is typed,
   and a typing hint ("খুঁজুন মধু|") over the empty box; the hint needs .is-typing from site.js, the "x" needs .is-ready */
.search { position: relative; display: flex; align-items: center; }
.search__input { flex: 1; min-width: 0; height: 2.5rem; padding: 0 4rem 0 1rem; border: 1px solid var(--brand-primary); border-radius: 999px; background: var(--surface-card); color: var(--brand-ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.375rem; transition: box-shadow .15s ease; -webkit-appearance: none; appearance: none; }
.search__input::placeholder { color: var(--brand-ink-500); opacity: 1; }
.search__input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent); }
.search__input::-webkit-search-cancel-button, .search__input::-webkit-search-decoration { display: none; -webkit-appearance: none; appearance: none; }
.search__type { display: none; position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); max-width: calc(100% - 4.75rem); align-items: center; overflow: hidden; white-space: nowrap; color: var(--brand-ink-500); font-size: 1rem; line-height: 1.375rem; pointer-events: none; }
.search.is-typing .search__input:placeholder-shown:not(:focus) ~ .search__type { display: inline-flex; }
.search.is-typing .search__input:not(:focus)::placeholder { color: transparent; }
.search__caret { flex: none; width: 1px; height: 1.125rem; margin-inline-start: 1px; background: var(--brand-primary); animation: search-caret .85s step-end infinite; }
@keyframes search-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.search__clear { display: none; position: absolute; top: 50%; inset-inline-end: 2.4rem; transform: translateY(-50%); align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--brand-ink-500); cursor: pointer; }
.search__clear:hover { color: var(--brand-primary); }
.search__clear .ico { width: 1rem; height: 1rem; }
.search.is-ready .search__input:not(:placeholder-shown) ~ .search__clear { display: inline-flex; }
.search__btn { position: absolute; top: 50%; inset-inline-end: .25rem; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--brand-ink-500) 8%, var(--surface-card)); color: var(--brand-ink-500); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.search__btn:hover { background: var(--brand-primary); color: var(--on-primary); }
.search.is-loading .search__btn .ico { display: none; }
.search.is-loading .search__btn::after { content: ""; width: 1.125rem; height: 1.125rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: search-spin .7s linear infinite; }
@keyframes search-spin { to { transform: rotate(360deg); } }
@media (min-width: 992px) { .hdr__search { width: 100%; max-width: 26rem; justify-self: end; } }
/* 14px like the reference on a desktop; phones and tablets keep 16px, smaller text makes iOS zoom into the box */
@media (min-width: 992px) and (pointer: fine) { .search__input, .search__type { font-size: .875rem; } }

/* suggestions: "Found 8 results for "honey"", then grey cards with a framed photo, the name with the typed part in colour, price and old price */
.suggest { position: absolute; z-index: 120; inset-inline: 0; top: calc(100% + .625rem); overflow: hidden; border-radius: .75rem; background: var(--surface-card); box-shadow: 0 0 2px color-mix(in srgb, var(--brand-ink-500) 24%, transparent), -20px 20px 40px -4px color-mix(in srgb, var(--brand-ink-500) 24%, transparent); }
.suggest[hidden] { display: none; }
.suggest__head { margin: 0; padding: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--brand-ink-500) 24%, transparent); color: var(--brand-ink-500); font-size: .75rem; line-height: 1.125rem; }
.suggest__head b { font-weight: 600; color: var(--brand-primary); }
.suggest__list { max-height: 24.5rem; overflow-y: auto; overscroll-behavior: contain; padding: .5rem; }
.suggest__list:empty { display: none; }
.suggest__item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: 1rem; margin-bottom: .25rem; padding: .75rem; border-radius: .5rem; background: color-mix(in srgb, var(--brand-ink-500) 8%, transparent); color: var(--brand-ink); text-decoration: none; transition: background-color .15s ease; }
.suggest__item:last-child { margin-bottom: 0; }
.suggest__item:hover, .suggest__item.is-on { background: color-mix(in srgb, var(--brand-ink-500) 18%, transparent); color: var(--brand-ink); }
.suggest__item.is-on { box-shadow: inset 0 0 0 1px var(--brand-primary); }
.suggest__thumb { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; overflow: hidden; border: 1px solid var(--border); border-radius: .25rem; background: var(--surface-card); color: var(--brand-primary); font-weight: 700; }
.suggest__thumb img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.suggest__thumb .ico { width: 1.4rem; height: 1.4rem; }
.suggest__txt { min-width: 0; }
.suggest__name { display: block; font-size: .875rem; font-weight: 600; line-height: 1.375rem; overflow-wrap: anywhere; }
.suggest__name mark { padding: 0; background: none; color: var(--brand-primary); }
.suggest__meta { display: block; margin-top: .125rem; }
.suggest__price { margin-inline-end: .25rem; color: var(--brand-primary); font-size: .75rem; font-weight: 700; line-height: 1.5rem; }
.suggest__old { color: var(--brand-ink-500); font-size: .6875rem; }
.suggest__sub { color: var(--brand-ink-500); font-size: .75rem; line-height: 1.5rem; }
.suggest__empty { margin: 0; padding: 1.5rem 1rem; text-align: center; color: var(--brand-ink-500); font-size: .875rem; }
@media (max-width: 991.98px) { .suggest__list { max-height: 55vh; } }

/* ---- category navigation (desktop) ---- */
.nav { display: none; grid-area: nav; min-width: 0; }
@media (min-width: 992px) { .nav { display: block; border-top: 1px solid var(--border); } }
.nav__inner { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; }
.nav__all { position: relative; margin-inline-start: auto; }   /* the categories button sits at the right end of the bar */
.nav__brand { display: none; font-size: 1.1rem; margin-inline-end: .25rem; }   /* shown while scrolled: the first header row is off screen, so the bar carries the logo */
.nav__brand .brand__logo { height: 2rem; }
.site-header.is-scrolled .nav__brand { display: inline-flex; }
.nav__allbtn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 999px; background: var(--brand-primary-100); color: var(--brand-primary-active); font-weight: 600; cursor: pointer; }
.nav__allbtn:hover { background: var(--brand-primary-200); }
.nav__chev { width: 1rem; height: 1rem; transition: transform .2s; }
.nav__allbtn[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.mega { position: absolute; z-index: 110; top: calc(100% + .5rem); inset-inline-start: auto; inset-inline-end: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem 1.5rem; width: min(46rem, 90vw); padding: 1.25rem; background: var(--surface-card); border: 1px solid var(--border); border-radius: 1.25rem; box-shadow: var(--shadow-lg); }
.mega[hidden] { display: none; }
.mega__col { display: grid; align-content: start; gap: .15rem; }
.mega__top { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--brand-primary); text-decoration: none; padding: .25rem 0; }
.mega__top .ico { width: 1.15rem; height: 1.15rem; }
.mega__sub { color: var(--brand-ink-700); text-decoration: none; padding: .2rem 0 .2rem 1.65rem; }
.mega__sub:hover, .mega__top:hover { color: var(--brand-primary-hover); text-decoration: underline; }
.nav__list { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.nav__link { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: 999px; color: var(--brand-ink); text-decoration: none; font-weight: 600; }
.nav__link:hover { background: var(--surface-alt); color: var(--brand-primary); }
.nav__link[aria-current] { background: var(--brand-primary); color: var(--on-primary); }   /* the page being shown (set in _Header) */
.nav__badge { display: inline-block; padding: .05rem .4rem; border-radius: .4rem; background: var(--danger); color: var(--surface-card); font-size: .65rem; font-weight: 800; letter-spacing: .04em; line-height: 1.4; }

/* ---- mobile drawer ---- */
.drawer { position: fixed; inset: 0; z-index: 2000; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgb(var(--brand-ink-rgb) / .5); }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(21rem, 88vw); display: flex; flex-direction: column; background: var(--surface-card); box-shadow: var(--shadow-lg); animation: drawer-in .22s ease; touch-action: pan-y; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
/* swipe to close (site.js moves the panel with the finger, then lets it glide back or out) */
.drawer__panel.is-snap { transition: transform .2s ease; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--brand-primary); }
.drawer__nav { flex: 1; overflow-y: auto; padding: .5rem; display: grid; align-content: start; gap: .1rem; }
.drawer__link { display: flex; align-items: center; gap: .75rem; padding: .75rem .85rem; border-radius: .85rem; color: var(--brand-ink); text-decoration: none; font-weight: 600; cursor: pointer; list-style: none; }
.drawer__link::-webkit-details-marker { display: none; }
.drawer__link:hover { background: var(--surface-alt); color: var(--brand-ink); }
.drawer__link .ico { color: var(--brand-primary); }
.drawer__link[aria-current], .drawer__sub[aria-current] { background: var(--brand-primary-50); color: var(--brand-primary); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand-primary); }
.drawer__chev { margin-inline-start: auto; transition: transform .2s; }
.drawer__group[open] > summary .drawer__chev { transform: rotate(180deg); }
.drawer__sub { display: block; padding: .55rem .85rem .55rem 3.1rem; color: var(--brand-ink-700); text-decoration: none; border-radius: .75rem; }
.drawer__sub:hover { background: var(--surface-alt); color: var(--brand-primary); }
.drawer__foot { display: flex; flex-wrap: wrap; gap: .5rem; padding: .85rem 1rem; border-top: 1px solid var(--border); }
body.has-drawer { overflow: hidden; }

/* ---- mobile bottom bar ---- */
.bottom-nav { position: fixed; z-index: 90; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface-card); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgb(var(--brand-ink-rgb) / .08); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 3.4rem; border: 0; background: transparent; color: var(--brand-ink-500); text-decoration: none; font-size: .72rem; font-weight: 600; cursor: pointer; }
.bottom-nav__item:hover, .bottom-nav__item.is-on { color: var(--brand-primary); }
.bottom-nav__item .count { position: absolute; top: .3rem; left: calc(50% + .45rem); }
@media (min-width: 992px) { .bottom-nav { display: none; } }
@media (max-width: 991.98px) { body { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px)); } }

/* ---- error / not found / coming soon ---- */
.notice { padding: clamp(3rem, 9vw, 6rem) 0; }
.notice__inner { max-width: 36rem; text-align: center; }
.notice__code { font-family: var(--font-display); font-weight: 700; font-size: 4.5rem; line-height: 1; margin: 0 0 .5rem; color: var(--brand-accent); }
.notice__ref { margin: 1.2rem 0 0; color: var(--brand-ink-500); font-size: .85rem; word-break: break-all; }

/* ---- footer ---- */
.site-footer { margin-top: 3rem; background: var(--brand-ink); color: var(--surface-card); border-top: 6px solid var(--brand-primary); }
.site-footer a { color: var(--surface-card); text-decoration: none; text-decoration-color: var(--brand-accent); text-underline-offset: 3px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--brand-accent-100); text-decoration: underline; }
.site-footer__news { background: var(--brand-primary); color: var(--on-primary); }
.news { display: grid; gap: 1rem; padding-block: 1.5rem; align-items: center; }
.news__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.news__sub { margin: .15rem 0 0; opacity: .9; }
.news__form { display: flex; gap: .5rem; flex-wrap: wrap; }
.news__form .form-control { flex: 1 1 14rem; border-radius: 999px; }
@media (min-width: 768px) { .news { grid-template-columns: 1fr minmax(20rem, 28rem); } }
/* padding-block only: a "padding" shorthand here wiped the container's side padding and put the text against a phone's edge;
   the larger top keeps a clear gap under the green newsletter band */
.site-footer__grid { display: grid; gap: 2rem; padding-block: 3.5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-footer__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 0 0 .25rem; }
.site-footer__tag { margin: 0 0 .75rem; opacity: .85; }
.site-footer__title { font-weight: 700; margin: 0 0 .6rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer__list a, .site-footer__addr { display: inline-flex; align-items: flex-start; gap: .5rem; padding: .15rem 0; }
.site-footer__list .ico { width: 1.05rem; height: 1.05rem; margin-top: .25rem; color: var(--brand-accent); }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social__link { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--surface-card) 35%, transparent); }
.social__link:hover { background: var(--brand-primary); border-color: var(--brand-primary); }
.site-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1rem 1.25rem; border-top: 1px solid color-mix(in srgb, var(--surface-card) 18%, transparent); font-size: .9rem; opacity: .9; }
@media (min-width: 992px) { .site-footer__bar { padding-inline-end: 4.5rem; } }   /* room for the back-to-top button in the corner */
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer__link { background: none; border: 0; padding: 0; font: inherit; color: var(--surface-card); cursor: pointer; text-decoration: none; text-decoration-color: var(--brand-accent); text-underline-offset: 3px; }
.site-footer__link:hover, .site-footer__link:focus-visible { color: var(--brand-accent-100); text-decoration: underline; }

/* ---- floating buttons ---- */
.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: var(--brand-ink); color: var(--surface-card); box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 90; }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-primary); }
.to-top__ico { transform: rotate(180deg); }
.wa-float { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--brand-primary); color: var(--on-primary); box-shadow: var(--shadow-md); text-decoration: none; transition: transform .2s, background-color .2s; }
.wa-float:hover { background: var(--brand-primary-hover); color: var(--on-primary); transform: scale(1.06); }
.wa-float .ico { width: 1.6rem; height: 1.6rem; }
/* phones: both buttons float just above the bottom menu bar (3.4rem plus the iPhone home-bar area). This must come AFTER the
   rules above: placed earlier (as it was), the same-weight "bottom: 1rem" won and the buttons sat on top of the bar. */
@media (max-width: 991.98px) {
  .to-top, .wa-float { bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }
  .to-top { right: .85rem; width: 2.6rem; height: 2.6rem; }
  .wa-float { left: .85rem; width: 2.9rem; height: 2.9rem; }
  .wa-float .ico { width: 1.45rem; height: 1.45rem; }
}

/* ---- cookie notice ---- */
.cc { position: fixed; z-index: 1500; inset-inline: .75rem; bottom: .75rem; display: grid; gap: .75rem; padding: 1rem 1.15rem; background: var(--surface-card); border: 1px solid var(--border); border-radius: 1.25rem; box-shadow: var(--shadow-lg); max-width: 46rem; margin-inline: auto; }
.cc[hidden] { display: none; }
.cc__text { margin: 0; font-size: .92rem; }
.cc__btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
@media (max-width: 991.98px) { .cc { bottom: 4.4rem; } }

/* ---- newsletter pop-up ---- */
.pop { border: 0; border-radius: 1.5rem; padding: 2rem 1.5rem 1.25rem; width: min(26rem, 92vw); background: var(--surface-card); color: var(--brand-ink); box-shadow: var(--shadow-lg); text-align: center; }
.pop::backdrop { background: rgb(var(--brand-ink-rgb) / .55); }
.pop__x { position: absolute; top: .5rem; inset-inline-end: .5rem; }
.pop__ico { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--brand-accent-100); color: var(--brand-accent-hover); }
.pop__ico .ico { width: 1.75rem; height: 1.75rem; }
.pop__title { font-size: 1.35rem; margin: .75rem 0 .35rem; }
.pop__text { margin: 0 0 1rem; color: var(--brand-ink-700); }
.pop__form { display: grid; gap: .6rem; }
.pop__form .form-control { text-align: center; border-radius: 999px; }
.pop__skip { margin-top: .6rem; border: 0; background: transparent; color: var(--brand-ink-500); text-decoration: underline; cursor: pointer; }

/* floating cart: slides in at the right middle once the header has scrolled away (with a little overshoot), breathes a soft ring,
   and "bumps" whenever the cart changes (cart.js adds .is-bump); all of it is off for people who prefer reduced motion */
.cart-float { position: fixed; z-index: 90; top: 50%; inset-inline-end: 0; display: inline-flex; align-items: center; gap: .55rem; height: 3.1rem; padding: 0 1.1rem 0 .9rem; border-radius: 999px 0 0 999px; background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover)); color: var(--on-primary); font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand-primary) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--on-primary) 18%, transparent) inset; translate: 115% -50%; visibility: hidden; transition: translate .45s cubic-bezier(.34, 1.56, .64, 1), visibility .45s, filter .2s; }
.cart-float::before { content: ""; position: absolute; inset: -.35rem; border-radius: inherit; border: 2px solid color-mix(in srgb, var(--brand-primary) 55%, transparent); opacity: 0; pointer-events: none; }
.cart-float:hover { color: var(--on-primary); filter: brightness(1.08); }
.cart-float .ico { width: 1.4rem; height: 1.4rem; transition: transform .25s; }
.cart-float:hover .ico { transform: rotate(-10deg) scale(1.1); }
.cart-float__txt { letter-spacing: .01em; }
.cart-float .count { position: absolute; top: -.4rem; inset-inline-start: .6rem; box-shadow: 0 0 0 2px var(--surface-card); }
body:has(.site-header.is-scrolled) .cart-float { translate: 0 -50%; visibility: visible; }
body:has(.site-header.is-scrolled) .cart-float::before { animation: cart-ring 3.6s ease-out infinite; }
.cart-float.is-bump, .cartlink.is-bump { animation: cart-bump .55s cubic-bezier(.34, 1.56, .64, 1); }
.cart-float.is-bump .count, .cartlink.is-bump .count { animation: count-pop .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cart-ring { 0% { opacity: .55; transform: scale(1); } 60% { opacity: 0; transform: scale(1.28); } 100% { opacity: 0; transform: scale(1.28); } }
@keyframes cart-bump { 0% { scale: 1; } 35% { scale: 1.12; } 100% { scale: 1; } }
@keyframes count-pop { 0% { scale: 1; } 40% { scale: 1.45; } 100% { scale: 1; } }
@media (max-width: 575.98px) { .cart-float { height: 2.8rem; padding: 0 .85rem 0 .75rem; } .cart-float__txt { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cart-float { transition: none; }
  .cart-float::before, .cart-float.is-bump, .cartlink.is-bump, .cart-float.is-bump .count, .cartlink.is-bump .count { animation: none; }
}
