/* QuickBasket — design tokens per measured spec */
:root {
  --canvas: #FFFFFF;
  --chip-bg: #F0F0F5;
  --surface-2: #EFEFEF;
  --border: #E2E2E7;
  --ink: rgb(2, 6, 12);
  --ink-92: rgba(2, 6, 12, 0.92);
  --ink-75: rgba(2, 6, 12, 0.75);
  --ink-60: rgba(2, 6, 12, 0.6);
  --ink-45: rgba(2, 6, 12, 0.45);
  --ink-30: rgba(2, 6, 12, 0.3);
  --accent: rgb(0, 80, 255);
  --accent-dark: rgb(0, 62, 198);
  --green: rgb(0, 161, 108);
  --pink: rgb(158, 30, 98);
  --pink-tint: rgb(249, 213, 232);
  --blue-tint: rgb(238, 246, 255);
  --navy: rgb(40, 44, 63);
  --r-card: 12px;
  --r-ctl: 8px;
  --r-chip-left: 6px;
  --r-modal: 16px;
  --r-banner: 20px;
  --r-icon: 50%;
  --header-h: 68px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink-92);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; font-size: 14px; color: inherit; }
input { font-family: var(--font); }
input, select { font-size: 16px; } /* mobile zoom guard */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
}
.hdr__logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hdr__logo-word { font-weight: 700; font-size: 20px; color: var(--ink-92); letter-spacing: -0.3px; }
.hdr__logo-word em { color: var(--accent); font-style: normal; }
.hdr__loc { display: flex; flex-direction: column; flex-shrink: 0; cursor: pointer; max-width: 220px; }
.hdr__loc-top { font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.hdr__loc-addr { font-size: 12px; font-weight: 400; color: var(--ink-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.hdr__search {
  flex: 1; min-width: 120px;
  height: 44px;
  background: var(--chip-bg);
  border-radius: var(--r-card);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--ink-45);
  font-size: 14px;
}
.hdr__search-ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.btn-signin {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--ink-92);
  height: 44px; padding: 0 8px;
}
.btn-cart {
  display: flex; align-items: center; gap: 8px;
  background: var(--chip-bg);
  border-radius: var(--r-ctl);
  height: 44px; padding: 0 14px;
  font-weight: 600; font-size: 14px; color: var(--ink-92);
  position: relative;
}
.btn-cart__badge {
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600;
  border-radius: var(--r-icon);
  min-width: 18px; height: 18px;
  display: none; align-items: center; justify-content: center;
  padding: 0 5px;
}
.btn-cart__badge.on { display: inline-flex; }
.btn-cart__badge.bump { animation: bump 300ms ease; }
@keyframes bump { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- hero carousel ---------- */
.hero { padding: 16px 24px 4px; }
.hero__viewport {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: var(--r-banner);
  scrollbar-width: none;
}
.hero__viewport::-webkit-scrollbar { display: none; }
.hero__slide {
  flex: 0 0 100%; scroll-snap-align: start;
  min-height: 210px;
  border-radius: var(--r-banner);
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 40px;
  color: #fff;
  position: relative;
  cursor: pointer;
}
.hero__slide-h { font-size: 34px; font-weight: 700; line-height: 1.15; margin-bottom: 6px; }
.hero__slide-s { font-size: 14px; font-weight: 400; opacity: 0.9; margin-bottom: 18px; }
.hero__slide-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--ink-92);
  font-weight: 600; font-size: 13px;
  border-radius: var(--r-ctl);
  padding: 10px 18px;
  width: fit-content;
}
.hero__slide-emoji { position: absolute; right: 40px; bottom: 24px; font-size: 72px; opacity: 0.9; }
.hero__dots { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0 0; }
.hero__dot { width: 8px; height: 8px; border-radius: var(--r-icon); background: var(--border); border: none; padding: 0; transition: background 200ms ease, width 200ms ease; }
.hero__dot.on { background: var(--accent); width: 20px; }
.hero__count { font-size: 12px; font-weight: 400; color: var(--ink-60); margin-left: 6px; }

/* ---------- tile rail ---------- */
.tiles { padding: 16px 24px 8px; }
.tiles__track { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.tiles__track::-webkit-scrollbar { display: none; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; width: 84px; }
.tile__icon {
  width: 60px; height: 60px; border-radius: var(--r-icon);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  transition: transform 200ms ease;
}
.tile:hover .tile__icon { transform: translateY(-2px); }
.tile__label { font-size: 12px; font-weight: 400; color: var(--ink-75); text-align: center; }

/* ---------- section headers / rails ---------- */
.sec { padding: 20px 24px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sec__title { font-size: 20px; font-weight: 600; color: var(--ink-92); }
.sec__seeall { font-size: 13px; font-weight: 600; }
.rail { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; padding-bottom: 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex-shrink: 0; }
.rail.stagger > * { animation: railin 250ms ease both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes railin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- product card ---------- */
.pcard { width: 152px; display: flex; flex-direction: column; }
.pcard__imgwrap { position: relative; width: 152px; height: 152px; background: var(--surface-2); border-radius: var(--r-card); display: flex; align-items: center; justify-content: center; }
.pcard__glyph { font-size: 64px; }
.pcard__del {
  position: absolute; top: 8px; left: 8px;
  background: #fff; border-radius: 6px;
  font-size: 11px; font-weight: 600; color: var(--ink-92);
  padding: 2px 7px;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 1px 3px rgba(2,6,12,0.08);
}
.pcard__del i { width: 6px; height: 6px; border-radius: var(--r-icon); background: var(--green); display: inline-block; }
.pcard__ad {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 600; color: var(--ink-60);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 5px; background: #fff;
}
.pcard__add {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  border-radius: var(--r-ctl);
  height: 30px; padding: 0 22px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  transition: transform 200ms ease;
  box-shadow: 0 2px 6px rgba(0,80,255,0.25);
}
.pcard__add:active { transform: translateX(-50%) scale(0.95); }
.stepper {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  border-radius: var(--r-ctl);
  height: 30px; min-width: 100px;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden;
  transition: transform 200ms ease;
}
.stepper button { color: #fff; font-size: 16px; font-weight: 600; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.stepper__qty { font-size: 13px; font-weight: 600; min-width: 24px; text-align: center; animation: qtyin 200ms ease; }
@keyframes qtyin { from { transform: scale(0.5); } to { transform: scale(1); } }
.morph-in { animation: morph 200ms ease; }
@keyframes morph { from { transform: translateX(-50%) scale(0.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.pcard__name { font-size: 14px; font-weight: 600; color: var(--ink-92); margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.pcard__desc { font-size: 11px; font-weight: 400; color: var(--ink-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__qty { font-size: 12px; font-weight: 400; color: var(--ink-60); margin-top: 2px; }
.pcard__off { font-size: 12px; font-weight: 600; color: var(--green); margin-top: 3px; }
.pcard__price { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; }
.pcard__price-now { font-size: 14px; font-weight: 600; color: var(--ink-92); }
.pcard__price-mrp { font-size: 12px; font-weight: 400; color: var(--ink-45); text-decoration: line-through; }

/* ---------- layout with sidebar ---------- */
.layout { display: flex; align-items: flex-start; }
.sidebar {
  width: 210px; flex-shrink: 0;
  position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  padding: 16px 0 16px 24px;
}
.sidebar__row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 0 6px 6px 0;
  font-size: 13px; font-weight: 400; color: var(--ink-75);
}
.sidebar__row:hover { background: var(--chip-bg); color: var(--ink-92); font-weight: 500; }
.sidebar__thumb { width: 36px; height: 36px; border-radius: var(--r-ctl); background: var(--chip-bg); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.sidebar__more { font-size: 13px; font-weight: 600; color: var(--accent); padding: 10px; display: block; background: none; text-align: left; }
.main { flex: 1; min-width: 0; }

/* ---------- HUD strip ---------- */
.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--blue-tint);
  padding: 10px 24px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-92);
}

/* ---------- cart bar ---------- */
.cartbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 56px; z-index: 95;
  background: var(--accent); color: #fff;
  border-radius: var(--r-card);
  padding: 12px 20px;
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,80,255,0.35);
  animation: rise 250ms ease;
}
@keyframes rise { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
.cartbar__cta { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 4px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  border-radius: var(--r-ctl);
  padding: 10px 18px;
  font-size: 13px; font-weight: 500;
  z-index: 300;
  animation: toastin 200ms ease;
}
@keyframes toastin { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.toast.toast--out { animation: toastout 180ms ease forwards; }
@keyframes toastout { to { opacity: 0; transform: translateX(-50%) translateY(-8px); } }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2,6,12,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--canvas);
  border-radius: var(--r-modal);
  width: 100%; max-width: 480px;
  padding: 24px;
  position: relative;
  animation: modalin 200ms ease;
  max-height: 85vh; overflow-y: auto;
}
@keyframes modalin { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.modal__x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: var(--r-icon); background: var(--chip-bg); display: flex; align-items: center; justify-content: center; color: var(--ink-60); font-size: 16px; }
.modal__h { font-size: 18px; font-weight: 600; margin-bottom: 6px; padding-right: 40px; }
.modal__s { font-size: 13px; font-weight: 400; color: var(--ink-60); margin-bottom: 18px; }
.modal-overlay.closing .modal { animation: modalout 180ms ease forwards; }
@keyframes modalout { to { opacity: 0; transform: scale(0.96); } }

/* location modal */
.btn-primary {
  width: 100%; height: 48px;
  background: var(--accent); color: #fff;
  border-radius: var(--r-ctl);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-secondary {
  width: 100%; height: 48px;
  background: var(--canvas); color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-ctl);
  font-size: 15px; font-weight: 600;
  margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.modal__input {
  width: 100%; height: 48px;
  background: var(--chip-bg);
  border: 1px solid transparent; border-radius: var(--r-ctl);
  padding: 0 14px;
  font-size: 16px; font-weight: 400;
  color: var(--ink-92);
  margin-top: 16px;
}
.modal__input:focus { outline: none; border-color: var(--accent); background: var(--blue-tint); }
.modal__login { text-align: center; font-size: 12px; color: var(--ink-45); margin-top: 16px; }
.modal__login a { font-weight: 600; }

/* screen-reader-only text */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- search page search bar ---------- */
.searchbar {
  position: relative; display: flex; align-items: center; gap: 10px;
  max-width: 720px; margin: 0 0 14px;
  background: var(--chip-bg); border: 1px solid transparent; border-radius: var(--r-card);
  padding: 0 14px; height: 52px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.searchbar:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 4px 16px rgba(0,80,255,.10); }
.searchbar__icon { flex-shrink: 0; color: var(--ink-45); }
.searchbar:focus-within .searchbar__icon { color: var(--accent); }
.searchbar__input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: none; outline: none;
  font-size: 16px; color: var(--ink-92);
}
.searchbar__input::placeholder { color: var(--ink-45); }
.searchbar__input::-webkit-search-cancel-button { display: none; }
.searchbar__clear {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-60); font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.searchbar__clear:hover { background: var(--border); color: var(--ink-92); }

/* search overlay */
.searchoverlay { position: fixed; inset: 0; z-index: 250; background: var(--canvas); overflow-y: auto; padding: 24px; animation: soIn 250ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes soIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.searchoverlay__sheet { animation: soSheetIn 250ms cubic-bezier(0.16, 1, 0.3, 1) 40ms both; }
@keyframes soSheetIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.searchoverlay.closing { animation: soOut 200ms ease forwards; }
@keyframes soOut { to { opacity: 0; transform: translateY(16px); } }
.searchoverlay__bar { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 0 auto 24px; }
.searchoverlay__input {
  flex: 1; height: 48px;
  background: var(--chip-bg); border: none; border-radius: var(--r-card);
  padding: 0 16px; font-size: 16px; color: var(--ink-92);
}
.searchoverlay__input:focus { outline: 2px solid var(--accent); }
.searchoverlay__h { font-size: 16px; font-weight: 600; margin: 20px 0 12px; max-width: 720px; margin-left: auto; margin-right: auto; }
.trendgrid { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; margin: 0 auto; }
.trendchip { background: var(--chip-bg); border-radius: var(--r-ctl); padding: 10px 16px; font-size: 13px; font-weight: 400; color: var(--ink-75); }
.trendchip:hover { background: var(--blue-tint); color: var(--accent); font-weight: 500; }
.searchres { max-width: 720px; margin: 0 auto; }
.searchres .pcard { flex-direction: row; width: 100%; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); padding: 10px 0; }
.searchres .pcard__imgwrap { width: 64px; height: 64px; flex-shrink: 0; }
.searchres .pcard__glyph { font-size: 30px; }
.searchres .pcard__name { min-height: 0; margin-top: 0; -webkit-line-clamp: 1; flex: 1; }
.searchres .pcard__info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.searchres .pcard__add { position: static; transform: none; }

/* ---------- PLP ---------- */
.plp-head { padding: 20px 24px 8px; }
.plp-head__crumb { font-size: 12px; color: var(--ink-45); margin-bottom: 6px; }
.plp-head__t { font-size: 24px; font-weight: 600; color: var(--ink-92); }
.plp-head__c { font-size: 13px; color: var(--ink-60); margin-top: 2px; }
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 14px 24px; position: sticky; top: var(--header-h); background: var(--canvas); z-index: 50; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  padding: 8px 14px;
  font-size: 13px; font-weight: 400; color: var(--ink-75);
  background: var(--canvas);
  white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.chip.on { background: var(--blue-tint); border-color: var(--accent); color: var(--accent); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 18px; padding: 8px 24px 120px; }
.pgrid-card { width: auto; }
.plp-side-h { font-size: 15px; font-weight: 600; margin: 10px 0 4px; }
.plp-sub { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-ctl); font-size: 13px; color: var(--ink-75); }
.plp-sub:hover { background: var(--chip-bg); color: var(--ink-92); }
.plp-sub.on { background: var(--blue-tint); color: var(--accent); font-weight: 600; }
.plp-sub.is-empty { opacity: .5; cursor: not-allowed; }
.plp-sub.is-empty:hover { background: none; color: var(--ink-75); }
.plp-sub:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.plp-sub__thumb { width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--chip-bg); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.plp-sub__count { font-size: 11px; color: var(--ink-45); }

/* ---------- PDP ---------- */
.pdp-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; position: sticky; top: 0; background: var(--canvas); z-index: 60; }
.pdp-top__t { font-size: 16px; font-weight: 600; color: var(--ink-92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 40px; height: 40px; border-radius: var(--r-icon); display: flex; align-items: center; justify-content: center; background: var(--chip-bg); color: var(--ink-75); font-size: 17px; }
.pdp { display: flex; gap: 40px; padding: 12px 24px 40px; max-width: 1080px; margin: 0 auto; }
.pdp__img { width: 400px; max-width: 100%; aspect-ratio: 1; background: var(--surface-2); border-radius: var(--r-card); position: relative; display: flex; align-items: center; justify-content: center; font-size: 150px; flex-shrink: 0; }
.pdp__offbadge { position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff; font-size: 12px; font-weight: 600; border-radius: var(--r-ctl); padding: 4px 10px; }
.pdp__info { flex: 1; min-width: 0; padding-top: 4px; }
.pdp__name { font-size: 24px; font-weight: 600; color: var(--ink-92); line-height: 1.25; margin-bottom: 4px; }
.pdp__desc { font-size: 13px; color: var(--ink-60); margin-bottom: 8px; }
.pdp__qty { font-size: 13px; font-weight: 500; color: var(--ink-75); margin-bottom: 12px; }
.pdp__price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 18px; }
.pdp__price-now { font-size: 20px; font-weight: 600; color: var(--ink-92); }
.pdp__price-mrp { font-size: 14px; color: var(--ink-45); text-decoration: line-through; }
.pdp__add { background: var(--accent); color: #fff; border-radius: var(--r-ctl); height: 44px; min-width: 140px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.pdp__stepper { display: inline-flex; align-items: center; background: var(--accent); color: #fff; border-radius: var(--r-ctl); height: 44px; min-width: 140px; justify-content: space-between; }
.pdp__stepper button { color: #fff; font-size: 18px; font-weight: 600; width: 44px; height: 44px; }
.pdp__stepper span { font-size: 15px; font-weight: 600; }
.vegmark { width: 16px; height: 16px; border: 1.5px solid var(--green); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; vertical-align: -3px; }
.vegmark i { width: 8px; height: 8px; border-radius: var(--r-icon); background: var(--green); }
.pdp-sec { max-width: 1080px; margin: 0 auto; padding: 0 24px 16px; }
.pdp-sec__card { border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 14px; }
.pdp-sec__h { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--ink-92); }
.pdp-sec__b { font-size: 13px; font-weight: 300; color: var(--ink-75); line-height: 1.6; }
.pdp-sec__more { color: var(--accent); font-weight: 600; font-size: 13px; margin-top: 8px; display: inline-block; }
.ntable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ntable th, .ntable td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--border); font-weight: 400; color: var(--ink-75); }
.ntable th { font-weight: 600; color: var(--ink-92); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; background: var(--canvas); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(2,6,12,0.12); min-width: 160px; z-index: 60; padding: 6px; }
.dd-menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.dd-menu button:hover { background: var(--chip-bg); }
.qb-skel { position: relative; overflow: hidden; background: var(--chip-bg); border-radius: 12px; }
.qb-skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent); animation: qb-shimmer 1.2s infinite; }
@keyframes qb-shimmer { to { transform: translateX(100%); } }
.sheet-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(2,6,12,0.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--canvas); border-radius: 16px 16px 0 0; width: 100%; max-width: 560px; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); animation: sheetup 250ms ease; max-height: 80vh; overflow-y: auto; }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
.sheet-overlay.closing .sheet { animation: sheetout 250ms ease forwards; }
@keyframes sheetout { to { transform: translateY(100%); opacity: 0; } }
.modal-overlay.closing .sheet { animation: modalout 180ms ease forwards; }
.vegmark.nonveg { border-color: #6e2b19; }
.vegmark.nonveg i { background: #6e2b19; }

@media (prefers-reduced-motion: reduce) { .qb-skel::after { animation: none; } }

/* ---------- cart page ---------- */
.cartwrap { max-width: 720px; margin: 0 auto; padding: 24px; }
.cartempty { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.cartempty__h { font-size: 22px; font-weight: 600; color: var(--ink-92); margin-top: 8px; }
.cartempty__s { font-size: 14px; color: var(--ink-60); }
.cartempty .btn-primary { width: auto; padding: 0 36px; margin-top: 12px; }
.addr-block { background: var(--chip-bg); border-radius: var(--r-card); padding: 14px 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.addr-block strong { font-weight: 600; }
.crow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.crow__thumb { width: 72px; height: 72px; background: var(--surface-2); border-radius: var(--r-card); display: flex; align-items: center; justify-content: center; font-size: 34px; flex-shrink: 0; }
.crow__info { flex: 1; min-width: 0; }
.crow__name { font-size: 14px; font-weight: 600; }
.crow__qty { font-size: 12px; color: var(--ink-60); }
.crow__step { display: inline-flex; align-items: center; background: var(--accent); color: #fff; border-radius: var(--r-ctl); height: 32px; min-width: 96px; justify-content: space-between; margin-top: 8px; }
.crow__step button { color: #fff; font-size: 15px; font-weight: 600; width: 32px; height: 32px; }
.crow__step span { font-size: 13px; font-weight: 600; }
.crow__price { text-align: right; flex-shrink: 0; }
.crow__line { font-size: 14px; font-weight: 600; }
.delbar { background: var(--blue-tint); border-radius: var(--r-card); padding: 14px 16px; margin: 18px 0; }
.delbar__t { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-92); }
.delbar__t b { color: var(--green); }
.delbar__track { height: 6px; background: #fff; border-radius: 3px; overflow: hidden; }
.delbar__fill { height: 100%; background: var(--green); border-radius: 3px; transition: width 250ms ease; }
.delbar__s { font-size: 11px; color: var(--ink-60); margin-top: 6px; }
.bill { border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px 20px; margin: 18px 0; }
.bill__h { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.bill__row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 400; color: var(--ink-75); padding: 6px 0; }
.bill__row.total { border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink-92); }
.bill__row .free { color: var(--green); font-weight: 600; }
.couponrow { display: flex; align-items: center; justify-content: space-between; background: var(--pink-tint); border-radius: var(--r-card); padding: 12px 16px; margin-bottom: 18px; cursor: pointer; }
.couponrow__t { font-size: 13px; font-weight: 600; color: var(--pink); display: flex; align-items: center; gap: 8px; }
.couponrow__applied { font-size: 12px; color: var(--ink-60); }
.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; background: var(--canvas); border-top: 1px solid var(--border); padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.paybar__amt { font-size: 16px; font-weight: 600; }
.paybar__cta { background: var(--accent); color: #fff; border-radius: var(--r-ctl); height: 44px; padding: 0 32px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; }
.paybar.paybar--enter { animation: paybarin 250ms ease; }
@keyframes paybarin { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.coupon { border: 1.5px dashed var(--border); border-radius: var(--r-ctl); padding: 12px 14px; margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.coupon__code { font-weight: 600; font-size: 13px; color: var(--pink); }
.coupon__d { font-size: 12px; color: var(--ink-60); }
.coupon__apply { color: var(--accent); font-weight: 600; font-size: 13px; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: rgba(255,255,255,0.75); padding: 0 0 32px; margin-top: 48px; }
.ftr__app { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.12); flex-wrap: wrap; }
.ftr__app-t { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.85); }
.ftr__badges { display: flex; gap: 12px; }
.ftr__badge { border: 1px solid rgba(255,255,255,0.3); border-radius: var(--r-ctl); padding: 8px 16px; font-size: 12px; font-weight: 500; color: #fff; }
.ftr__cols { display: flex; flex-wrap: wrap; gap: 40px; padding: 28px 24px; }
.ftr__col { min-width: 150px; flex: 1; }
.ftr__col-h { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.ftr__col a, .ftr__col button { display: block; font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.65); padding: 4px 0; text-align: left; }
.ftr__col a:hover, .ftr__col button:hover { color: #fff; }
.ftr__social { display: flex; gap: 14px; padding: 0 24px 20px; }
.ftr__social a { width: 36px; height: 36px; border-radius: var(--r-icon); border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.75); }
.ftr__legal { padding: 0 24px; font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.45); }

/* ---------- motion gate ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) {
  .sidebar { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hdr { padding: 0 14px; gap: 10px; }
  .hdr__loc { max-width: 130px; }
  .hdr__loc-addr { max-width: 130px; }
  .btn-signin__t { display: none; }
  .hero, .tiles, .sec, .plp-head, .chips, .cartwrap, .pdp-top, .pdp-sec { padding-left: 14px; padding-right: 14px; }
  .hero__slide { padding: 24px; min-height: 170px; }
  .hero__slide-h { font-size: 26px; }
  .hero__slide-emoji { font-size: 54px; right: 20px; bottom: 16px; }
  .pdp { flex-direction: column; gap: 20px; }
  .pdp__img { width: 100%; font-size: 110px; }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .hdr { gap: 8px; padding: 0 10px; }
  .hdr__logo-word { display: none; }
  .hdr__loc { max-width: 104px; }
  .hdr__loc-addr { max-width: 104px; }
  .hdr__loc-top { font-size: 11px; }
  .hdr__search { min-width: 0; height: 38px; padding: 0 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .grid .pcard, .grid .pcard__imgwrap { width: 100%; }
  .pcard__imgwrap { height: auto; aspect-ratio: 1; }
  .tiles__track, .rail { gap: 14px; }
  .tile { width: 64px; }
  .tile__icon { width: 52px; height: 52px; font-size: 24px; }
  .hdr { gap: 8px; }
  .btn-cart__t { display: none; }
  .sec__title { font-size: 17px; }
  .hud { font-size: 12px; padding-left: 14px; padding-right: 14px; }
  .cartbar { left: 12px; right: 12px; transform: none; width: auto; justify-content: space-between; bottom: 52px; animation: riseM 250ms ease; }
  @keyframes riseM { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
  .modal { padding: 20px; }
}

/* whole-card click-through */
.pcard[data-href] { cursor: pointer; }
.pcard[data-href]:hover .pcard__imgwrap { box-shadow: 0 0 0 2px var(--accent); }

/* ================= native-app feel polish ================= */
button, .chip, .pcard, .tile, .btn-cart, .btn-signin, .iconbtn { transition: transform 120ms ease; }
button:active, .chip:active, .tile:active { transform: scale(0.98); }
.pcard:active .pcard__imgwrap { filter: brightness(0.97); }
.rail, .tiles__track, .pdpmodal__rel { -webkit-overflow-scrolling: touch; }

/* ADD→stepper springier morph */
.morph-in { animation: morphSpring 150ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes morphSpring {
  from { transform: translateX(-50%) scale(0.55); opacity: 0; }
  70% { transform: translateX(-50%) scale(1.06); opacity: 1; }
  to { transform: translateX(-50%) scale(1); opacity: 1; }
}
.pdp__stepper.morph-in, .pdpmodal__stepper.morph-in { animation-name: morphSpringFull; }
@keyframes morphSpringFull {
  from { transform: scale(0.55); opacity: 0; }
  70% { transform: scale(1.06); opacity: 1; }
  to { transform: scale(1); opacity: 1; }
}

/* staggered fade-up reveal (JS-gated behind no-preference) */
.qb-reveal { opacity: 0; transform: translateY(14px); transition: opacity 250ms ease, transform 250ms ease; }
.qb-reveal-in { opacity: 1; transform: none; }

/* ================= PDP modal ================= */
.pdpmodal-overlay { position: fixed; inset: 0; z-index: 260; display: none; }
.pdpmodal-overlay.open { display: block; }
.pdpmodal-overlay.closing .pdpmodal-overlay-fade,
.pdpmodal-overlay.closing .pdpmodal__sheet { transition: opacity 200ms ease, transform 200ms ease; }
.pdpmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2,6,12,0.5);
  opacity: 0; transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pdpmodal-overlay.open .pdpmodal__backdrop { opacity: 1; }
.pdpmodal__sheet {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(0.94);
  opacity: 0;
  width: 100%; max-width: 480px;
  max-height: 85vh;
  background: var(--canvas);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(2,6,12,0.28);
  transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pdpmodal-overlay.open .pdpmodal__sheet { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* closing: faster, ease-in — feels responsive */
.pdpmodal-overlay.closing .pdpmodal__backdrop { opacity: 0; transition: opacity 180ms cubic-bezier(0.4, 0, 1, 1); }
.pdpmodal-overlay.closing .pdpmodal__sheet { opacity: 0; transform: translate(-50%, -47%) scale(0.96); transition: opacity 180ms cubic-bezier(0.4, 0, 1, 1), transform 180ms cubic-bezier(0.4, 0, 1, 1); }
.pdpmodal__scroll { max-height: 85vh; overflow-y: auto; padding: 20px 20px 24px; }
.pdpmodal__x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--chip-bg); color: var(--ink-75);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; box-shadow: 0 1px 4px rgba(2,6,12,0.1);
}
.pdpmodal__handlebar { display: none; }

.pdpmodal__imgwrap {
  position: relative; width: 100%; aspect-ratio: 1;
  background: var(--surface-2); border-radius: var(--r-card);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pdpmodal__glyph { font-size: 130px; }
.pdpmodal__off {
  position: absolute; top: 10px; left: 10px;
  background: var(--green); color: #fff;
  font-size: 12px; font-weight: 600;
  border-radius: var(--r-ctl); padding: 3px 9px;
}
.pdpmodal__del {
  position: absolute; top: 10px; left: 10px; margin-top: 32px;
  background: #fff; border-radius: 6px;
  font-size: 11px; font-weight: 600; color: var(--ink-92);
  padding: 2px 7px;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 1px 3px rgba(2,6,12,0.08);
}
.pdpmodal__del i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }
.pdpmodal__name { font-size: 20px; font-weight: 600; color: var(--ink-92); line-height: 1.3; padding-right: 36px; }
.pdpmodal__desc { font-size: 13px; color: var(--ink-60); margin-top: 4px; }
.pdpmodal__qty { font-size: 12px; color: var(--ink-60); margin-top: 2px; }
.pdpmodal__price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 14px; }
.pdpmodal__price-now { font-size: 18px; font-weight: 600; color: var(--ink-92); }
.pdpmodal__price-mrp { font-size: 13px; color: var(--ink-45); text-decoration: line-through; }
.pdpmodal__buy { margin-bottom: 6px; }
.pdpmodal__buy .pdp__add { width: 100%; }
.pdpmodal__buy .pdp__stepper { width: 100%; }

.pdpmodal__sec { border-top: 1px solid var(--border); margin-top: 8px; }
.pdpmodal__sec-h {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 2px; font-size: 14px; font-weight: 600; color: var(--ink-92);
  background: none; text-align: left;
}
.pdpmodal__chev { color: var(--ink-45); font-size: 12px; }
.pdpmodal__sec-b { padding: 0 2px 14px; }
.pdpmodal__txt { font-size: 13px; font-weight: 300; color: var(--ink-75); line-height: 1.6; }
.pdpmodal__txt-more { margin-top: 10px; }
.pdpmodal__note { font-size: 11px; color: var(--ink-60); margin-bottom: 6px; }
.pdpmodal__more { color: var(--accent); font-weight: 600; font-size: 13px; margin-top: 10px; }

.pdpmodal__rel-h { font-size: 15px; font-weight: 600; color: var(--ink-92); margin: 14px 0 10px; }
.pdpmodal__rel { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 4px; }
.pdpmodal__rel::-webkit-scrollbar { display: none; }
.pdpmodal__relcard { width: 124px; flex-shrink: 0; scroll-snap-align: start; }
.pdpmodal__relcard .pcard__imgwrap { width: 124px; height: 124px; }
.pdpmodal__relcard .pcard__glyph { font-size: 50px; }
.pdpmodal__relcard .pcard__name { font-size: 12px; min-height: 32px; }

/* ---------- mobile bottom sheet ---------- */
@media (max-width: 767px) {
  .pdpmodal__sheet {
    left: 0; right: 0; top: auto; bottom: 0;
    transform: translateY(100%);
    width: 100%; max-width: none;
    border-radius: 20px 20px 0 0;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
    max-height: 92vh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .pdpmodal-overlay.open .pdpmodal__sheet { transform: translateY(0); }
  .pdpmodal-overlay.closing .pdpmodal__sheet {
    transform: translateY(100%);
    transition: transform 240ms cubic-bezier(0.4, 0, 1, 1), opacity 200ms ease;
  }
  .pdpmodal__scroll { max-height: 92vh; padding: 10px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .pdpmodal__handlebar {
    display: block;
    width: 100%; height: 34px;
    touch-action: none;
    position: relative;
  }
  .pdpmodal__handlebar::before {
    content: '';
    position: absolute; left: 50%; top: 8px;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    border-radius: 2px;
    background: var(--border);
  }
  /* compact headline row keeps ADD above the fold */
  .pdpmodal__imgwrap { display: none; }
  .pdpmodal__headline--row {
    display: flex; gap: 12px; align-items: flex-start;
  }
  .pdpmodal__imgwrap--sm {
    display: flex; width: 96px; height: 96px; flex-shrink: 0;
    aspect-ratio: auto; margin-bottom: 0;
  }
  .pdpmodal__imgwrap--sm .pdpmodal__glyph { font-size: 46px; }
  .pdpmodal__headtxt { flex: 1; min-width: 0; }
  .pdpmodal__name { font-size: 16px; padding-right: 40px; }
  .pdpmodal__price-now { font-size: 16px; }
}

/* touch-device press darken */
@media (hover: none) {
  .pcard[data-href]:active { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .pdpmodal__backdrop, .pdpmodal__sheet { transition: none; }
  .qb-reveal { opacity: 1; transform: none; transition: none; }
}

/* cross-document view transitions for data-nav navigations */
@view-transition { navigation: auto; }
/* sheet-level VT pairing for opens without a source card */
::view-transition-old(vt-sheet) { animation: none; }
::view-transition-new(vt-sheet) {
  animation: vtSheetIn 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vtSheetIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================= floating cart pill ================= */
.cartpill {
  position: fixed; right: 16px; bottom: 16px; z-index: 97;
  background: var(--accent); color: #fff;
  border-radius: 999px;
  height: 54px; padding: 0 18px 0 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px rgba(0,80,255,0.4);
  transition: transform 180ms ease;
}
.cartpill.rise { animation: pillrise 320ms ease-out; }
@keyframes pillrise { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cartpill.bump { animation: pillbump 180ms ease; }
@keyframes pillbump { 0% { transform: scale(1); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } }
.cartpill.cartpill--out { animation: pillout 200ms ease forwards; }
@keyframes pillout { to { opacity: 0; transform: scale(0.9); } }
.cartpill__left { display: flex; flex-direction: column; line-height: 1.15; }
.cartpill__cart { font-size: 14px; font-weight: 700; letter-spacing: 0.4px; color: #fff; }
.cartpill__count { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.85); }
.cartpill__thumbs { display: flex; align-items: center; }
.cartpill__thumb {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 1.5px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.cartpill__thumb + .cartpill__thumb { margin-left: -8px; }
.cartpill__arrow { display: flex; align-items: center; color: #fff; }

/* ================= bottom navigation (mobile) ================= */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 12px rgba(2,6,12,0.06);
}
.bottomnav__item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0; min-width: 0;
  color: var(--ink-60);
  border-radius: 8px;
}
.bottomnav__item .bottomnav__label { font-size: 11px; font-weight: 500; white-space: nowrap; }
.bottomnav__item.on { color: var(--accent); }
.bottomnav__item.on .bottomnav__label { font-weight: 700; }
.bottomnav__iconwrap { position: relative; display: flex; }
.bottomnav__live {
  position: absolute; top: -7px; right: -14px;
  background: #e5484d; color: #fff;
  font-size: 8px; font-weight: 700; letter-spacing: 0.3px;
  border-radius: 4px; padding: 1px 4px;
  line-height: 1.3;
}
@media (max-width: 767px) {
  .bottomnav { display: flex; }
  /* pill sits above the HUD strip (HUD is 41px tall at bottom:74px); body reserves room for both */
  body { padding-bottom: calc(74px + 44px + env(safe-area-inset-bottom, 0px)); }
  .cartpill { right: 12px; bottom: calc(74px + 44px + env(safe-area-inset-bottom, 0px)); }
  .hud { bottom: 74px; }
}
/* HUD is fixed on all widths: reserve space on desktop too, and lift the pill above it */
@media (min-width: 768px) {
  body { padding-bottom: calc(41px + 54px + env(safe-area-inset-bottom, 0px)); }
  .cartpill { bottom: calc(41px + 8px + env(safe-area-inset-bottom, 0px)); }
}
/* paybar sits above the HUD; lift the bottomnav so it stays clickable.
   Paybar height: 12px pad + 44px CTA + 12px pad + 1px border = 69px, + safe-area. */
:root { --paybar-h: 72px; }
body.has-paybar { padding-bottom: calc(74px + var(--paybar-h) + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 767px) {
  body.has-paybar .bottomnav { bottom: calc(var(--paybar-h) + env(safe-area-inset-bottom, 0px)); }
  body.has-paybar .hud { bottom: calc(var(--paybar-h) + 74px + env(safe-area-inset-bottom, 0px)); }
  body.has-paybar .cartpill { bottom: calc(var(--paybar-h) + 74px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 768px) {
  body.has-paybar { padding-bottom: calc(41px + var(--paybar-h) + env(safe-area-inset-bottom, 0px)); }
  body.has-paybar .hud { bottom: var(--paybar-h); }
}
/* on cart.html the floating pill collides with the paybar: suppress it */
body.no-cartpill .cartpill { display: none !important; }

/* ================= product card enhancements ================= */
.pcard__perunit { font-size: 11px; font-weight: 400; color: var(--ink-45); margin-top: 2px; }
.pcard__tag {
  display: inline-block; margin-top: 4px;
  font-size: 10px; font-weight: 600; color: var(--green);
  background: #E8F5EE; border-radius: 4px;
  padding: 2px 7px; width: fit-content;
}
.pcard__veg {
  position: absolute; bottom: 8px; left: 8px;
  width: 14px; height: 14px;
  border: 1.5px solid var(--green); border-radius: 3px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.pcard__veg i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.pcard__veg--non { border-color: #6e2b19; }
.pcard__veg--non i { background: #6e2b19; }
.pcard__bookmark {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-60);
  box-shadow: 0 1px 3px rgba(2,6,12,0.12);
  z-index: 1;
}
.pcard__bookmark.on { color: var(--accent); }
.pcard__bookmark:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bottomnav__item:focus-visible, .cartpill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* search bar list icon */
.hdr__search-list { margin-left: auto; color: var(--ink-60); flex-shrink: 0; }

/* ================= PDP modal upgrades ================= */
.pdpmodal__expl {
  display: inline-block;
  font-size: 12px; font-weight: 600; color: var(--accent);
  margin-bottom: 10px;
}
.pdpmodal__dots { display: flex; justify-content: center; gap: 6px; margin: -6px 0 12px; }
.pdpmodal__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.pdpmodal__dots i.on { background: var(--accent); }
.pdpmodal__perunit { font-size: 11px; font-weight: 400; color: var(--ink-45); margin-top: 4px; }
.pdpmodal__services {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 2px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.pdpmodal__services span {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; color: var(--ink-60);
}
.pdpmodal__services svg { color: var(--ink-60); flex-shrink: 0; }
.pdpmodal__tabs {
  display: flex; gap: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 10px;
  padding: 0 2px;
}
.pdpmodal__tab {
  padding: 11px 0 9px;
  font-size: 13px; font-weight: 500; color: var(--ink-45);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 150ms ease, border-color 150ms ease;
}
.pdpmodal__tab.on { color: var(--ink-92); border-bottom-color: var(--accent); font-weight: 600; }
.pdpmodal__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pdpmodal__tabpanel { padding: 12px 2px; }
.pdpmodal__tabpanel.fade-in { animation: tabfade 150ms ease; }
@keyframes tabfade { from { opacity: 0; } to { opacity: 1; } }
.pdpmodal__specs { list-style: none; }
.pdpmodal__specs li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.pdpmodal__specs li:last-child { border-bottom: none; }
.pdpmodal__specs li span { color: var(--ink-60); }
.pdpmodal__specs li b { font-weight: 600; color: var(--ink-92); text-align: right; }
@media (prefers-reduced-motion: reduce) {
  .cartpill.rise, .cartpill.bump, .pdpmodal__tabpanel.fade-in { animation: none; }
}

/* ================= home grouped category sections ================= */
.homegroup { padding: 14px 24px 4px; }
.homegroup__h { font-size: 18px; font-weight: 700; color: var(--ink-92); margin-bottom: 12px; }
.homegroup__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.homegroup__tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--canvas);
}
.homegroup__tile:hover { box-shadow: 0 0 0 2px var(--blue-tint); }
.homegroup__tile-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--chip-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.homegroup__tile-label { font-size: 12px; font-weight: 500; color: var(--ink-75); text-align: center; }
@media (max-width: 560px) { .homegroup { padding: 14px 14px 4px; } }

/* skeleton swap fade */
.qb-fade-in { animation: mainfade 200ms ease; }
@keyframes mainfade { from { opacity: 0.4; } to { opacity: 1; } }
