/* Pooja Traders - quick-commerce ("Blinkit style") layer. Loaded after site.css, so it overrides it. */
:root {
    --brand: #c8102e;            /* logo red */
    --brand-dark: #9d0c24;
    --brand-light: #fdecef;
    --yellow: #f8cb46;           /* header */
    --yellow-soft: #fff6d6;
    --green: #0c831f;            /* ADD buttons, cart bar */
    --green-dark: #0a6d19;
    --green-soft: #e9f7ec;
    --ink: #1c1c1c;
    --muted: #6b7280;
    --line: #e8e8e8;
    --surface: #f4f5f7;
    --radius: 14px;
}

body { background: var(--surface); color: var(--ink); font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }

/* ------------------------------------------------------------------ header */
.site-header { background: var(--yellow); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.header-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; flex-wrap: wrap; }
.header-brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.header-brand .brand-logo { height: 44px; }
.header-brand small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(0, 0, 0, .6); margin-top: -2px; }

.loc-chip {
    display: flex; align-items: center; gap: .5rem; border: 0; background: rgba(255, 255, 255, .55);
    border-radius: 12px; padding: .35rem .75rem; text-align: left; line-height: 1.15; max-width: 260px; cursor: pointer;
}
.loc-chip:hover { background: rgba(255, 255, 255, .85); }
.loc-chip i { font-size: 1.25rem; color: var(--brand); }
.loc-chip .loc-title { font-weight: 800; font-size: .82rem; }
.loc-chip .loc-sub { font-size: .72rem; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }

.header-search { flex: 1 1 320px; min-width: 200px; }
.site-search-box { position: relative; display: flex; align-items: center; background: #fff; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .08); }
.site-search-icon { position: absolute; left: 14px; color: #777; }
.site-search-input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: .72rem .9rem .72rem 2.5rem; font-size: .92rem; }
.site-search-button { display: none; }
.site-search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1200; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); list-style: none; margin: 0; padding: .35rem; max-height: 60vh; overflow: auto; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.hdr-link { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 10px; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); background: transparent; border: 0; }
.hdr-link:hover { background: rgba(255, 255, 255, .6); }
.cart-btn { background: var(--green); color: #fff !important; padding: .55rem 1rem; border-radius: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-size: .92rem; }
.cart-btn:hover { background: var(--green-dark); }
.cart-btn .cart-count { background: #fff; color: var(--green); border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; padding: 0 6px; }

.category-strip { background: #fff; border-bottom: 1px solid var(--line); }
.category-strip-list { display: flex; gap: .4rem; list-style: none; margin: 0; padding: .5rem 0; overflow-x: auto; scrollbar-width: none; }
.category-strip-list::-webkit-scrollbar { display: none; }
.category-pill { display: inline-block; white-space: nowrap; padding: .35rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600; background: #f3f3f3; text-decoration: none; color: #333; }
.category-pill:hover, .category-pill.active { background: var(--green-soft); color: var(--green); }

/* ------------------------------------------------------------------ buttons */
.btn-brand { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); border-radius: 10px; font-weight: 700; }
.btn-green { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--green-dark); --bs-btn-hover-border-color: var(--green-dark); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--green-dark); border-radius: 10px; font-weight: 700; }
.btn-accent { --bs-btn-bg: var(--yellow); --bs-btn-border-color: var(--yellow); --bs-btn-color: #1c1c1c; --bs-btn-hover-bg: #efbd2b; --bs-btn-hover-border-color: #efbd2b; border-radius: 10px; font-weight: 700; }
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }

/* ------------------------------------------------------------------ home */
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.promo { position: relative; overflow: hidden; border-radius: 18px; padding: 1.25rem 1.35rem; min-height: 150px; color: #fff; display: flex; flex-direction: column; justify-content: center; text-decoration: none; }
.promo h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 .25rem; line-height: 1.15; }
.promo p { margin: 0 0 .7rem; opacity: .92; font-size: .88rem; max-width: 22ch; }
.promo .promo-btn { align-self: flex-start; background: #fff; color: #111; font-weight: 800; font-size: .8rem; padding: .35rem .85rem; border-radius: 9px; }
.promo img { position: absolute; right: -6px; bottom: -6px; height: 100%; width: 46%; object-fit: cover; border-top-left-radius: 90px; opacity: .95; }
.promo-red { background: linear-gradient(135deg, #c8102e, #7a0a1c); }
.promo-green { background: linear-gradient(135deg, #0c831f, #064d12); }
.promo-dark { background: linear-gradient(135deg, #2b2f3a, #12141a); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .75rem; }
.section-head h2 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.section-head a { color: var(--green); font-weight: 700; font-size: .88rem; text-decoration: none; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .8rem .6rem; }
.category-tile { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; gap: .4rem; }
.category-tile-image { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; background: var(--yellow-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.category-tile-image img { width: 100%; height: 100%; object-fit: cover; }
.category-tile-name { font-size: .78rem; font-weight: 700; line-height: 1.2; color: #222; }
.category-tile:hover .category-tile-image { box-shadow: 0 6px 16px rgba(0, 0, 0, .12); transform: translateY(-2px); transition: .15s; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.service-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; }
.service-card img { width: 100%; height: 150px; object-fit: cover; }
.service-card .service-body { padding: .85rem 1rem 1rem; }
.service-card h3 { font-size: 1rem; font-weight: 800; margin: 0 0 .2rem; }
.service-card p { color: var(--muted); font-size: .84rem; margin: 0 0 .6rem; }
.service-card .btn { font-size: .82rem; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 176px); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.trust { background: #fff; border-radius: 14px; padding: .9rem 1rem; display: flex; gap: .75rem; align-items: center; border: 1px solid var(--line); }
.trust i { font-size: 1.5rem; color: var(--green); background: var(--green-soft); border-radius: 12px; padding: .45rem .6rem; }
.trust b { display: block; font-size: .9rem; }
.trust span { font-size: .78rem; color: var(--muted); }

/* ------------------------------------------------------------------ product card */
.row.g-3 > .col > .p-card { height: 100%; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem; display: flex; flex-direction: column; height: 100%; position: relative; transition: box-shadow .15s; }
.p-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }
.p-card-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; background: #fafafa; overflow: hidden; }
.p-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.p-card-img .p-badge { position: absolute; left: 0; top: 8px; background: var(--green); color: #fff; font-size: .66rem; font-weight: 800; padding: .12rem .5rem .12rem .4rem; border-radius: 0 6px 6px 0; }
.p-card-placeholder { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 2.2rem; color: #bbb; }
.p-card-body { display: flex; flex-direction: column; flex: 1; padding-top: .5rem; }
.p-card-time { display: inline-flex; align-items: center; gap: .25rem; font-size: .66rem; font-weight: 700; background: #f2f2f2; border-radius: 6px; padding: .1rem .4rem; width: fit-content; color: #444; }
.p-card-title { font-size: .84rem; font-weight: 700; line-height: 1.3; margin: .35rem 0 .15rem; min-height: 2.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-title a { text-decoration: none; color: var(--ink); }
.p-card-unit { font-size: .74rem; color: var(--muted); }
.p-card-foot { margin-top: auto; padding-top: .55rem; display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 44px; }
.p-price { font-weight: 800; font-size: .92rem; line-height: 1.1; }
.p-price small { display: block; font-weight: 600; color: var(--green); font-size: .66rem; }
.p-ask { font-weight: 800; font-size: .78rem; color: var(--brand); line-height: 1.15; }

.cart-ctrl { flex-shrink: 0; }
.add-btn { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); border-radius: 9px; font-weight: 800; font-size: .8rem; padding: .32rem 1.05rem; text-transform: uppercase; min-width: 70px; }
.add-btn:hover { background: var(--green); color: #fff; }
.stepper { display: inline-flex; align-items: center; background: var(--green); color: #fff; border-radius: 9px; overflow: hidden; }
.stepper button { background: transparent; color: #fff; border: 0; width: 30px; height: 32px; font-size: 1.1rem; font-weight: 800; line-height: 1; }
.stepper button:hover { background: var(--green-dark); }
.stepper .qty { min-width: 26px; text-align: center; font-weight: 800; font-size: .85rem; }
.stepper.is-busy { opacity: .6; pointer-events: none; }
.btn-ask { font-size: .76rem; font-weight: 800; border: 1px solid var(--brand); color: var(--brand); background: #fff; border-radius: 9px; padding: .3rem .7rem; text-decoration: none; }
.btn-ask:hover { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------------ floating cart bar */
.cart-bar { position: fixed; left: 50%; bottom: 14px; transform: translate(-50%, 140%); transition: transform .25s ease; z-index: 1040; width: min(560px, calc(100vw - 24px)); background: var(--green); color: #fff; border-radius: 16px; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; text-decoration: none; box-shadow: 0 10px 30px rgba(12, 131, 31, .45); }
.cart-bar.show { transform: translate(-50%, 0); }
.cart-bar b { font-size: .95rem; }
.cart-bar small { display: block; opacity: .9; font-size: .74rem; }
.cart-bar .go { font-weight: 800; display: inline-flex; align-items: center; gap: .3rem; }
.whatsapp-float { bottom: 84px !important; right: 14px; width: 48px; height: 48px; font-size: 1.5rem; }

.toast-lite { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); background: #222; color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 2000; font-size: .88rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }

/* ------------------------------------------------------------------ cart / checkout / orders */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; }
.panel-title { font-weight: 800; font-size: 1rem; margin-bottom: .6rem; }
.cart-line { display: flex; gap: .8rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fafafa; }
.cart-line .cl-name { font-weight: 700; font-size: .92rem; line-height: 1.25; }
.cart-line .cl-meta { color: var(--muted); font-size: .78rem; }
.cart-line .cl-total { font-weight: 800; min-width: 74px; text-align: right; }
.bill-row { display: flex; justify-content: space-between; padding: .25rem 0; font-size: .92rem; }
.bill-row.total { border-top: 1px dashed #ccc; margin-top: .4rem; padding-top: .6rem; font-weight: 800; font-size: 1.05rem; }
.free-tag { color: var(--green); font-weight: 800; }
.deliver-box { background: var(--green-soft); border: 1px solid #bfe3c6; border-radius: 12px; padding: .7rem .85rem; font-size: .85rem; }
.deliver-box.warn { background: #fff3cd; border-color: #ffe08a; }
.deliver-box.bad { background: #fde8e8; border-color: #f5b5b5; }
.qr-box { text-align: center; }
.qr-box img { width: 230px; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; }
.steps { display: flex; gap: .25rem; margin: .5rem 0 1rem; }
.step { flex: 1; text-align: center; font-size: .72rem; font-weight: 700; color: #999; }
.step .dot { width: 26px; height: 26px; border-radius: 50%; background: #ddd; color: #fff; margin: 0 auto .25rem; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.step.done { color: var(--green); }
.step.done .dot { background: var(--green); }
.step.now .dot { background: var(--yellow); color: #111; box-shadow: 0 0 0 4px var(--yellow-soft); }

/* ------------------------------------------------------------------ product page */
.price-large { font-size: 1.7rem; font-weight: 800; }
.price-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.product-gallery-main { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pdp-cart { background: var(--green-soft); border: 1px solid #bfe3c6; border-radius: 14px; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: #1c1c1c; color: rgba(255, 255, 255, .72); margin-top: 3rem !important; padding-bottom: 5rem; }

@media (max-width: 767.98px) {
    .promo-row { grid-template-columns: 1fr; }
    .promo { min-height: 120px; }
    .loc-chip { max-width: 100%; order: 3; flex: 1 1 100%; }
    .header-search { order: 4; flex: 1 1 100%; }
    .header-brand span.brand-text { font-size: 1rem; }
    .hdr-link .lbl { display: none; }
}

/* ================================================================== v2: offers, order send box, gallery, filters, mobile polish */
.min-w-0 { min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
.btn, .form-control, .form-select { min-height: 40px; }
input, select, textarea { font-size: 16px; } /* stops iOS zooming into fields */

/* ---- offers */
.offer-row { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; scrollbar-width: none; }
.offer-row::-webkit-scrollbar { display: none; }
.offer-card { flex: 0 0 min(320px, 86%); scroll-snap-align: start; display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 14px; text-decoration: none; background: linear-gradient(120deg, #fff6d6, #ffe58a); border: 1px dashed #d9a400; }
.offer-badge { background: var(--brand); color: #fff; font-weight: 800; font-size: .8rem; padding: .45rem .6rem; border-radius: 10px; white-space: nowrap; }
.offer-body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.offer-body b { font-size: .92rem; }
.offer-body small { color: #5b4a00; font-size: .74rem; }

/* ---- order page: send on WhatsApp */
.send-box { background: #fff; border: 2px solid #25d366; border-radius: 16px; padding: 1rem; box-shadow: 0 6px 20px rgba(37, 211, 102, .15); }
.send-ok { font-size: 1.6rem; color: #1a9d4a; line-height: 1; }
.login-alt > summary { cursor: pointer; list-style: none; }
.login-alt > summary::-webkit-details-marker { display: none; }

/* ---- product gallery */
.pg-stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; }
.pg-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; outline: none; }
.pg-track::-webkit-scrollbar { display: none; }
.pg-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pg-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.pg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); display: none; align-items: center; justify-content: center; }
.pg-prev { left: 10px; } .pg-next { right: 10px; }
.pg-count { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .74rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.pg-zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.pg-dots { display: flex; justify-content: center; gap: 6px; margin-top: .6rem; }
.pg-dots span { width: 7px; height: 7px; border-radius: 50%; background: #cfcfcf; transition: all .2s; }
.pg-dots span.active { width: 20px; border-radius: 4px; background: var(--green); }
.pg-thumbs { gap: .55rem; margin-top: .75rem; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
.pg .gallery-thumb { width: 72px; height: 72px; border: 2px solid var(--line); border-radius: 12px; padding: 3px; background: #fff; transition: border-color .15s, transform .15s; }
.pg .gallery-thumb:hover { transform: translateY(-2px); }
.pg .gallery-thumb.active { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
@media (hover: hover) and (min-width: 992px) {
    .pg-multi .pg-nav { display: flex; opacity: 0; transition: opacity .15s; }
    .pg-multi .pg-stage:hover .pg-nav { opacity: 1; }
}
@media (max-width: 991.98px) {
    .pdp-gallery-bleed, .pg { margin-left: -12px; margin-right: -12px; }
    .pg-stage { border-radius: 0; border-left: 0; border-right: 0; }
    .pg-dots { margin-bottom: .25rem; }
}

/* ---- full-screen image viewer */
.lightbox { position: fixed; inset: 0; z-index: 2100; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox #lb-image { max-width: 100vw; max-height: 88vh; object-fit: contain; }
.lb-close, .lb-nav { position: absolute; border: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #fff; font-size: .85rem; }
body.lb-open { overflow: hidden; }

/* ---- product page buy bar (mobile) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); padding: .6rem 14px calc(.6rem + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.buybar-price b { font-size: 1.25rem; display: block; line-height: 1.1; }
.buybar-price small { color: var(--muted); }
.buybar .add-btn { padding: .55rem 2.2rem; font-size: .95rem; }
.buybar .stepper button { padding: .55rem 1rem; }
body.has-buybar { padding-bottom: 76px; }
body.has-buybar .cart-bar { bottom: 82px; }
body.has-buybar .whatsapp-float { bottom: 150px !important; }
@media (min-width: 992px) { body.has-buybar { padding-bottom: 0; } }
.pdp-cart { display: none; }
@media (min-width: 992px) { .pdp-cart { display: flex; } }

/* ---- filters */
.sort-select { width: auto; border-radius: 10px; font-weight: 600; }
.filter-bar { position: sticky; top: 0; z-index: 1020; display: flex; gap: .5rem; margin: 0 -12px; padding: .5rem 12px; background: var(--surface); }
.filter-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: .9rem; padding: .55rem; }
.filter-count { background: var(--green); color: #fff; font-size: .7rem; border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.sort-wrap { position: relative; flex: 1; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding-left: .8rem; }
.sort-select-mobile { border: 0; background: transparent; font-weight: 700; font-size: .9rem; padding: .55rem .5rem; width: 100%; appearance: none; -webkit-appearance: none; outline: none; }
.chip-scroll { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; align-items: center; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: .4rem; }
.active-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; background: var(--green-soft); color: var(--green-dark); border: 1px solid #bfe3c6; border-radius: 999px; padding: .28rem .7rem; font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.active-chip i { font-size: .65rem; }
.clear-all { flex: 0 0 auto; font-size: .8rem; font-weight: 700; color: var(--brand); text-decoration: none; padding: 0 .4rem; }
.pick-chip { padding: .32rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.pick-chip:hover { border-color: var(--green); }
.pick-chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.filter-group { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; margin-bottom: .6rem; }
.cat-list { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.cat-item { padding: .4rem .6rem; border-radius: 8px; font-size: .88rem; text-decoration: none; color: var(--ink); }
.cat-item:hover { background: var(--surface); }
.cat-item.active { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.cat-item.sub { margin-left: 1rem; font-size: .83rem; color: #444; }
.price-inputs { display: flex; align-items: center; gap: .5rem; }
.filter-switch { display: flex; align-items: flex-start; gap: .75rem; padding-left: 0; }
.filter-switch .form-check-input { float: none; margin: .2rem 0 0; flex: 0 0 2.4rem; height: 1.3rem; width: 2.4rem; }
.filter-switch .form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.filter-switch .form-check-label { font-weight: 600; font-size: .9rem; }
.filter-actions { display: flex; gap: .6rem; }
@media (min-width: 992px) {
    .filter-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .25rem 1rem 1rem; position: sticky; top: 96px; }
    .filter-actions { margin-top: .5rem; }
}
@media (max-width: 991.98px) {
    .filter-sheet.offcanvas-bottom { height: 82vh; max-height: 82vh; border-radius: 20px 20px 0 0; }
    .filter-sheet .offcanvas-body { overflow: hidden; display: flex !important; flex-direction: column; }
    .filter-sheet .filter-panel { display: flex; flex-direction: column; height: 100%; }
    .filter-body { flex: 1; overflow-y: auto; padding: 0 1rem; }
    .filter-actions { padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
}

/* ---- general mobile polish */
@media (max-width: 575.98px) {
    .container { padding-left: 12px; padding-right: 12px; }
    h1.h3 { font-size: 1.3rem; }
    .price-large { font-size: 1.5rem; }
    .panel { padding: .85rem; border-radius: 14px; }
    .cart-line { gap: .6rem; }
    .cart-line img { width: 54px; height: 54px; }
    .cart-line .cl-total { min-width: 64px; font-size: .92rem; }
    .promo-row { gap: .6rem; }
    .section-head h2 { font-size: 1.05rem; }
    .pagination .page-link { padding: .45rem .7rem; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 991.98px) {
    .cart-bar { bottom: calc(10px + env(safe-area-inset-bottom)); }
}
/* ---- stock */
.out-of-stock { font-size: .76rem; font-weight: 800; color: #b42318; background: #fde8e8; border-radius: 8px; padding: .3rem .6rem; }

/* ---- checkout payment options */
.pay-opt { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: .65rem .8rem; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.pay-opt input { margin-top: .25rem; }
/* ---- store map */
.store-map { height: 300px; border-radius: 12px; overflow: hidden; }
@media (min-width: 992px) { .store-map { height: 100%; min-height: 320px; } }
/* ================================================================== v3: chat, tracking, site index */
.chat-fab { position: fixed; left: 14px; bottom: 84px; z-index: 1045; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); text-decoration: none; }
.chat-fab:hover { color: #fff; background: var(--green-dark); }
.chat-fab-badge { position: absolute; top: -4px; right: -4px; background: #e11d48; color: #fff; font-size: .68rem; font-weight: 800; border-radius: 999px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
body.has-buybar .chat-fab { bottom: 150px; }
/* The chat window itself is styled in chat-wa.css (WhatsApp look). */

/* delivery tracking */
.track-map { height: 320px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #e8e8e8); }
.track-pin { display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 1rem; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pin-store { background: #1f2937; } .pin-home { background: #c8102e; } .pin-driver { background: #0c831f; }
.eta-box { background: var(--green-soft); border: 1px solid #bfe3c6; border-radius: 12px; padding: .7rem .9rem; font-weight: 700; }

/* site index page */
.site-index-list { columns: 2 260px; column-gap: 2rem; padding-left: 1.1rem; margin-bottom: 0; }
.site-index-list li { break-inside: avoid; margin-bottom: .25rem; }
.price-own { color: var(--green); font-weight: 800; }
.price-list-strike { text-decoration: line-through; color: var(--muted); font-size: .8em; font-weight: 600; margin-left: .35rem; }
.own-tag { display: inline-block; background: var(--green-soft); color: var(--green-dark); border-radius: 6px; font-size: .62rem; font-weight: 800; padding: .05rem .4rem; text-transform: uppercase; }
/* ---- v4 phone header: brand and cart share the first row; delivery and search follow, tightly */
@media (max-width: 767.98px) {
    .header-row { gap: .35rem .5rem; padding: .4rem 0; flex-wrap: wrap; }
    .header-brand { flex: 1 1 0; min-width: 0; gap: .4rem; order: 1; }
    .header-brand .brand-logo { height: 36px; }
    .header-brand .brand-text { font-size: .95rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .header-brand small { display: none; }
    .header-actions { order: 2; flex: 0 0 auto; margin-left: 0; gap: .15rem; }
    .hdr-link { padding: .4rem .5rem; font-size: 1.05rem; }
    .cart-btn { padding: .45rem .7rem; }
    .loc-chip { order: 3; flex: 1 1 100%; max-width: 100%; padding: .25rem .6rem; gap: .4rem; border-radius: 10px; }
    .loc-chip i { font-size: 1.05rem; }
    .loc-chip > span { display: block; overflow: hidden; }
    .loc-chip .loc-title, .loc-chip .loc-sub { display: inline !important; font-size: .76rem; max-width: none; }
    .loc-chip .loc-title::after { content: " \00b7  "; }
    .header-search { order: 4; flex: 1 1 100%; min-width: 0; }
    .site-search-input { padding-top: .55rem; padding-bottom: .55rem; font-size: .9rem; }
}
/* ---- "Offers for you" window (shown once, see offer-popup.js) */
.offer-pop { position: fixed; inset: 0; z-index: 2100; background: rgba(15, 23, 42, .6); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.offer-pop[hidden] { display: none; }
body.offer-pop-open { overflow: hidden; }
.offer-pop-card { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto; background: #fff; border-radius: 18px; padding: 1.4rem 1.1rem 1.1rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); animation: offer-pop-in .28s ease-out; }
@keyframes offer-pop-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.offer-pop-x { position: absolute; top: 8px; right: 10px; border: 0; background: #f1f3f5; width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: #495057; }
.offer-pop-head { text-align: center; margin-bottom: .9rem; }
.offer-pop-emoji { font-size: 2.4rem; display: block; }
.offer-pop-head h2 { font-size: 1.3rem; font-weight: 800; margin: .2rem 0; }
.offer-pop-head p { color: #6b7280; font-size: .85rem; margin: 0; }
.offer-pop-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.offer-pop-item { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 14px; background: linear-gradient(120deg, #fff6d6, #ffe58a); border: 1px dashed #d9a400; }
.offer-pop-item .offer-body b { display: block; }
.offer-pop-item .offer-body small { color: #5b4a00; }

/* ---- phone: the page header scrolls away on the product list, so the Filters / Sort bar can stick to the top without covering it
   (both used to stick at top:0 with the same layer, and the bar painted over the header's search box). */
@media (max-width: 991.98px) {
    body:has(.filter-bar) .site-header.sticky-top { position: static; }
    .filter-bar { top: 0; z-index: 1030; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
}
