/* Bam Sweets customer UI — compact mobile presentation overrides.
   Loaded after the existing bundle; business logic and shared components stay unchanged. */
:root {
  --appbar-h: 44px;
  --bottomnav-h: 60px;
}

.appbar { padding: 4px 12px calc(4px + env(safe-area-inset-top)); min-height: var(--appbar-h); }
.appbar-address { min-height: 38px; }
.appbar-value { font-size: 14px; margin-top: 2px; }
.appbar-label { font-size: 9.5px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn svg { width: 20px; height: 20px; }

/* Delivering-from strip: single compact row, "Delivering from" label hidden.
   Dropdown arrow shown only for local branch selection; hidden for All India Shipping. */
.delivering-from { top: var(--appbar-h); min-height: 34px; padding: 5px 12px; gap: 8px; }
.df-label { display: none; }
.df-left { justify-content: center; }
.df-branch { font-size: 13px; margin-top: 0; }
.df-right { font-size: 10.5px; padding: 4px 9px; }
.delivering-from.df-shipping .df-branch .chev { display: none; }

/* Homepage category bar: no longer sticky — scrolls normally with the page.
   Neutralizes the stuck-state shadow as well; rail and horizontal scroll kept. */
.hp-cats-sticky { position: static; }
.hp-cats-sticky.is-stuck { box-shadow: none; border-bottom-color: transparent; }

.view { padding: 8px 12px 18px; }
.section-title { margin: 10px 2px 6px; }
.section-title h2 { font-size: 18px; }
.section-header { margin: 10px 2px 6px; }
.hp-section-head { padding: 10px 12px 4px; }
.hp-section-sub { padding: 0 12px 4px; }

.search-bar.premium.hp-search, .hp-search {
  min-height: 50px; margin: 8px 12px 2px !important; padding: 7px 14px !important;
}
.hp-top { padding: 8px 12px 2px; }
.hp-greet { margin-bottom: 8px; }

/* Category chips sized for ~6 visible across a typical mobile width */
.hp-cats-rail { gap: 7px !important; padding: 3px 10px 5px !important; }
.hp-cat-chip { width: 52px !important; gap: 3px !important; }
.hp-cat-chip .ct-thumb { width: 44px !important; height: 44px !important; }
.hp-cat-chip .ct-thumb .ct-letter { font-size: 18px; }
.hp-cat-chip .ct-name { font-size: 10px; max-width: 52px; }

.hero-banner { margin: 6px 2px 4px; min-height: 108px; padding: 14px 16px; }
.hero-banner h3 { font-size: 19px; }
.hero-banner p { font-size: 12px; }
.hero-banner .hb-cta { margin-top: 6px; padding: 7px 12px; font-size: 11px; }
.hs-root { margin: 6px 12px 2px; }
.hs-viewport { height: 188px; }
.hs-body { padding: 14px 16px 12px; }

.hp-quick-chips { gap: 7px; padding: 7px 12px 2px; }
.hp-qchip { width: 64px; min-height: 68px; padding: 6px 4px !important; font-size: 10px !important; }
.hp-qchip .qi { width: 28px; height: 28px; font-size: 17px; }
.hp-offer-strip { gap: 8px; padding: 8px 12px 4px; }
.hp-offer-card { min-width: 170px; padding: 9px 11px !important; }

.hp-all-wrap { margin-top: 12px; padding: 10px 12px 6px; border-top-width: 4px; }
.hp-all-grid { gap: 9px; }
.hp-card.v { flex-basis: 150px; width: 150px; }
.hp-body { padding: 7px 8px 8px; gap: 3px; }
.hp-name { font-size: 12.5px; min-height: 28px; }
.hp-price { font-size: 13px !important; }
.hp-add { width: 28px; height: 28px; }

/* Product cards tightened; small bottom padding keeps the last card's
   Add button clear of the floating cart bar */
.prod-list { gap: 7px; padding-bottom: 6px; }
.prod-card.premium, .prod-card { grid-template-columns: 80px 1fr; gap: 8px; padding: 8px; min-height: 96px; border-radius: 13px; }
.prod-card.premium > .thumb, .prod-card .thumb { width: 80px; height: 80px; border-radius: 10px; }
.prod-card.premium h3 { font-size: 13.5px; }
.prod-card.premium .desc { font-size: 11px; }
.prod-card.premium .price { font-size: 14px; }
.prod-card.premium .add-btn.premium { right: 8px; bottom: 8px; padding: 5px 12px; font-size: 10.5px; }

/* Neutral placeholder until real product images are uploaded — the existing
   <img> system is untouched and displays real images normally when present */
.hp-thumb-ph { font-size: 20px; font-weight: 600; opacity: .38; }
.prod-card .thumb .placeholder { font-size: 18px; font-weight: 600; opacity: .38; }

/* Menu page — Home-style compact category chips with in-page filtering */
.menu-cat-chip { background: none; border: 0; padding: 0; cursor: pointer; --ct-color: #8B1E3F; }
.menu-cat-chip.active .ct-thumb { outline: 2px solid var(--maroon); outline-offset: 2px; }
.menu-cat-chip.active .ct-name { color: var(--maroon); font-weight: 700; }

/* Menu page compactness — scoped to the Menu view only; Home page and
   category chip sizing/layout are intentionally untouched. */
#view:has(#menu-cats) h1 { margin: 2px 4px 4px !important; }
#view:has(#menu-cats) h1 + div { margin-bottom: 8px !important; }
#view:has(#menu-cats) .search-bar { min-height: 50px; margin-bottom: 10px !important; padding-top: 7px !important; padding-bottom: 7px !important; }
#view:has(#menu-cats) .section-title { margin: 8px 2px 5px; }
#menu-products.hp-all-grid { gap: 8px; }
#menu-products .hp-thumb { aspect-ratio: 1 / .82; }
#menu-products .hp-body { padding: 6px 7px 7px; gap: 2px; }
#menu-products { padding-bottom: 6px; }

/* Voice search hint: the `hidden` attribute loses to `.voice-hint{display:flex}`
   in pages.css, so "Listening…" was always visible. Restore the attribute. */
.voice-hint[hidden] { display: none; }

/* Product details sheet: product image as a responsive 1:1 square (800×800
   standard; object-fit: cover from the base styles prevents distortion),
   subtle placeholder when no image exists. Clearance above the sticky
   qty/Add bar comes from the existing 100px spacer rendered BEFORE the bar —
   padding-bottom on the scrollable body would sit after the sticky bar and
   push it upward, so it is intentionally not set here. */
.pd-hero img, .pd-hero .placeholder,
.pd-sheet-body .pd-hero img, .pd-sheet-body .pd-hero .placeholder {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
}
.pd-hero .placeholder { font-size: 28px; opacity: .45; }

/* Product share button (title row) */
.pd-title-row { display: flex; align-items: flex-start; gap: 10px; }
.pd-title-row h1 { flex: 1; }
.pd-share { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--maroon); border: 1px solid var(--line); cursor: pointer; }
.pd-share:active { transform: scale(.94); }

.card-p, .summary { padding: 11px; }
.pd-title { margin-top: 11px; }
.pd-group { margin-top: 14px; padding: 11px; }
.ci { grid-template-columns: 52px 1fr auto; gap: 9px; padding: 9px; margin-bottom: 8px; }
.ci .thumb { width: 52px; height: 52px; }
.ck-card { padding: 13px; margin-top: 11px; }
.ck-sticky { padding: 8px 11px; gap: 9px; }
.ck-place { padding: 12px 15px; font-size: 14px; }

.floating-cart { margin: 0 8px 4px; padding-left: 13px; padding-right: 10px; }
.floating-cart.visible { max-height: 62px; padding-top: 8px; padding-bottom: 8px; margin-bottom: 4px; }
.fc-branch { font-size: 11px; margin-bottom: 1px; }
.fc-info { font-size: 12px; }
.fc-total { font-size: 15px; }
.fc-cta { padding: 8px 12px; font-size: 11px; }

.bottomnav { height: var(--bottomnav-h); padding-top: 2px; }
.bn-item { gap: 1px; font-size: 10px; }
.bn-item svg { width: 20px; height: 20px; padding: 3px 12px; }
.cart-badge { top: 1px; }

@media (max-width: 380px) {
  .hs-viewport { height: 172px; }
  .prod-card.premium, .prod-card { grid-template-columns: 76px 1fr; }
  .prod-card.premium > .thumb, .prod-card .thumb { width: 76px; height: 76px; }
  .hp-card.v { flex-basis: 142px; width: 142px; }
}

/* Compact two-line delivery header:
   Line 1 = "DELIVER TO, <Label> ▼"  |  Line 2 = selected address/locality.
   Presentational only — all existing IDs/classes and JS behaviour untouched. */
.appbar-address { display: block; padding: 3px 4px; }
.appbar-label { display: inline; }
.appbar-label::after { content: ","; margin-right: 4px; }
.appbar-value { display: inline-flex; margin-top: 0; vertical-align: baseline; max-width: 100%; }
.appbar-value #addr-title { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar-pin { display: none; }