/* ==========================================================
   Bakery Co. — main stylesheet
   ========================================================== */

:root {
    --brand: #613721;
    --brand-light: #8a5a3c;
    --cream: #fdf6ef;
    --text: #2b1d14;
    --muted: #7a6a5e;
    --border: #ecdfd2;
    --radius: 12px;
    --shadow: 0 4px 16px rgba(97, 55, 33, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.logo { display: flex; align-items: center; gap: 8px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-weight: 700; font-size: 1.2rem; color: var(--brand); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
    font-weight: 500;
    color: var(--text);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s;
    font-size: .88rem !important;
}
.main-nav a.active,
.main-nav a:hover { border-color: var(--brand); color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.btn-outline {
    border: 1px solid var(--brand);
    color: var(--brand);
    background: transparent;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: .9rem;
}
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-primary {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary:hover { background: var(--brand-light); }
.btn-block { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    cursor: pointer;
    flex: 0 0 auto;
}
.nav-toggle span { width: 16px; height: 2px; background: var(--text); }

/* Circular icon button (account) used on mobile */
.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    color: var(--brand);
}
.icon-btn svg { width: 18px; height: 18px; }

.logo-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo-tagline {
    font-size: .6rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 1px;
}

/* ---------- Banner carousel ---------- */
.banner-wrap {
    max-width: none !important;
    margin: 24px auto 0;
    padding: 0 20px;
}
.banner-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    background: var(--border);
    border-radius: 20px;
}
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    background: var(--border);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.85);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--brand);
}
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.carousel-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    cursor: pointer;
}
.carousel-dots span.active { background: #fff; }

/* ---------- Tagline / section heading (dashed line style) ---------- */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}
.section-heading h2,
.section-heading h4 {
    color: var(--brand);
    font-size: 1.4rem;
    white-space: nowrap;
}
.section-heading.small h4 { font-size: 1.1rem; }
.section-heading .heading-line {
    flex: 1;
    max-width: 60px;
    border-top: 1px dashed var(--brand-light);
}
.section-subtext {
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
    margin-top: 6px;
    margin-bottom: 24px;
}

/* ---------- Section titles ---------- */
.section-title,
.section-title-alt {
    font-size: 1.3rem;
    margin: 36px 0 18px;
    color: var(--brand);
}
.section-title-alt { text-align: center; }

/* ---------- Category grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .15s;
}
.category-card:hover { transform: translateY(-3px); }
.category-card.is-extra { display: none; }
.category-card.is-extra.show { display: block; }
.category-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--border);
}
.category-card-img img { width: 100%; height: 100%; object-fit: cover; }
.category-card span {
    display: block;
    padding: 10px 8px;
    font-size: .85rem;
    font-weight: 500;
}

.btn-view-all {
    display: block;
    margin: 24px auto 0;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.btn-view-all:hover { background: var(--brand-light); }

/* ---------- Features strip ---------- */
.features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 36px auto;
}
.feature-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
}
.feature-icon { font-size: 1.6rem; margin-bottom: 8px; }
.feature-item h5 { font-size: .9rem; margin-bottom: 4px; color: var(--brand); }
.feature-item p { font-size: .78rem; color: var(--muted); }

/* ---------- Promo box ---------- */
.promo-section { margin-bottom: 36px; }
.promo-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.promo-discount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.promo-code {
    display: inline-flex;
    align-items: center;
    font-size: .82rem;
    border: 1px dashed var(--brand-light);
    border-radius: 20px;
    padding: 6px 16px;
    color: var(--brand);
    background: var(--cream);
}
.promo-badge {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ---------- Product carousel (horizontal, auto-scrolling cards) ---------- */
.product-carousel { position: relative; }
.product-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar { display: none; }
.product-card-v2 {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
}
.product-img-v2 {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--border);
    margin-bottom: 10px;
}
.product-img-v2 img { width: 100%; height: 100%; object-fit: cover; }
.stock-dot {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3cb043;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.qty-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #3cb043;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.product-title-v2 {
    font-size: .88rem;
    font-weight: 600;
    min-height: 2.3em;
    margin-bottom: 8px;
}
.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.price-v2 { font-weight: 700; color: var(--brand); font-size: .9rem; }
.price-v2 .old-price { font-weight: 400; margin-right: 4px; }
.btn-view {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-view:hover { background: var(--brand-light); }

.product-dots {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 8px;
}
.product-dots span {
    background: var(--border);
}
.product-dots span.active {
    background: var(--brand);
}

/* ---------- Products ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--border);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: .95rem; font-weight: 600; min-height: 2.4em; }
.product-price { display: flex; align-items: baseline; gap: 8px; }
.old-price { text-decoration: line-through; color: var(--muted); font-size: .85rem; }
.new-price { font-weight: 700; color: var(--brand); }
.btn-add {
    margin-top: auto;
    background: var(--cream);
    border: 1px solid var(--brand);
    color: var(--brand);
    font-weight: 600;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-add:hover { background: var(--brand); color: #fff; }

.empty-note { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: #2b1d14;
    color: #e9ded3;
    margin-top: 60px;
    padding-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}
.footer-col h6 { margin-bottom: 14px; color: #fff; font-size: .95rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { opacity: .8; font-size: .88rem; }
.footer-col a:hover { opacity: 1; }
.footer-col p { opacity: .8; font-size: .88rem; margin-bottom: 6px; }
.payment-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.payment-icons img { height: 22px; filter: brightness(0) invert(1); opacity: .85; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 20px;
    font-size: .8rem;
    opacity: .7;
    text-align: center;
}

/* ---------- Login modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    width: 90%;
    max-width: 380px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--muted);
}
.modal-box h3 { margin-bottom: 18px; color: var(--brand); }
.modal-box label { display: block; font-size: .85rem; font-weight: 500; margin: 14px 0 6px; }
.phone-input {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.phone-input .prefix { padding: 12px; background: var(--cream); font-weight: 600; }
.phone-input input {
    border: none;
    padding: 12px;
    flex: 1;
    font-family: inherit;
    font-size: 1rem;
}
.phone-input input:focus { outline: none; }
.agree-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .8rem;
    color: var(--muted);
    font-weight: 400 !important;
}
.agree-check a { color: var(--brand); text-decoration: underline; }
.agree-check input { margin-top: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .header-inner {
        display: grid;
        grid-template-columns: 38px 1fr 38px;
        align-items: center;
        column-gap: 10px;
    }
    .nav-toggle { display: flex; }
    .icon-btn { display: flex; }
    .header-actions { justify-content: flex-end; }
    .btn-outline.account-text { display: none; }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        order: 4;
    }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        margin: 10px -20px 0;
        padding: 6px 20px;
    }
    .main-nav.open a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        border-bottom-width: 1px;
    }
    .main-nav.open a.active,
    .main-nav.open a:hover { border-color: var(--border); }

    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .features-strip { grid-template-columns: repeat(2, 1fr); }
    .promo-box { flex-direction: row; text-align: left; }
}

/* Phones: 3-column category grid, tighter spacing, to match the compact
   mobile layout (see reference design). */
@media (max-width: 560px) {
    .container { padding: 0 14px; }

    .site-header { background: var(--cream); }
    .header-inner { padding: 10px 14px; }
    .logo img { height: 30px; }
    .logo-text { font-size: 1rem; }

    .banner-wrap { padding: 0 14px; margin-top: 14px; }
    .banner-carousel { aspect-ratio: 16 / 9; border-radius: 16px; }

    .section-heading { margin-top: 24px; }
    .section-heading h2 { font-size: 1.15rem; white-space: normal; text-align: center; }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .category-card span { font-size: .72rem; padding: 8px 6px; }

    .features-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .promo-box { padding: 18px; border-radius: 16px; }
    .promo-discount { font-size: 1.2rem; }

    .product-card-v2 { flex: 0 0 150px; padding: 10px; }
    .product-title-v2 { font-size: .8rem; }
    .price-v2 { font-size: .82rem; }
    .btn-view { padding: 5px 12px; font-size: .74rem; }
}

/* ==========================================================
   Products page — category menu, search/filter bar,
   delivery slot banner, and product rows
   ========================================================== */

.products-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding-top: 28px;
    align-items: start;
}

/* ---------- Sidebar / drawer menu ---------- */
.menu-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}
.menu-sidebar-head {
    display: none; /* only shown in the mobile drawer */
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.menu-sidebar-head h3 { font-size: 1.1rem; color: var(--text); }
.menu-sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.menu-list { display: flex; flex-direction: column; }

.menu-item-top {
    padding: 12px 18px;
    font-weight: 600;
    color: var(--text);
    border-left: 3px solid transparent;
}
.menu-item-top.active { color: var(--brand); border-color: var(--brand); background: var(--cream); }

.menu-group { border-left: 3px solid transparent; }
.menu-group.open > .menu-item { border-color: transparent; }
.menu-group.open > .menu-item .menu-item-link { color: var(--brand); font-weight: 600; }
.menu-group.open { border-left-color: var(--brand); background: var(--cream); }

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
}
.menu-item-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    font-size: .92rem;
    color: var(--text);
}
.menu-item-link.active { color: var(--brand); font-weight: 600; }
.menu-count { color: var(--muted); font-size: .82rem; font-style: normal; }

.menu-expand-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--brand);
    font-size: .95rem;
    flex: 0 0 auto;
}
.menu-group.open .menu-expand-btn { background: var(--brand); color: #fff; }

.menu-subs {
    display: none;
    flex-direction: column;
    padding-bottom: 4px;
}
.menu-group.open .menu-subs { display: flex; }
.menu-subitem {
    padding: 9px 18px 9px 30px;
    font-size: .86rem;
    color: var(--muted);
}
.menu-subitem.active { color: var(--brand); font-weight: 600; }
.menu-subitem:hover { color: var(--brand); }

.menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 900;
}
.menu-backdrop.open { display: block; }

/* ---------- Search + filter chips ---------- */
.products-topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

.search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 16px;
    flex: 0 0 260px;
    color: var(--muted);
}
.search-pill svg { width: 18px; height: 18px; flex: 0 0 auto; }
.search-pill input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: .88rem;
    flex: 1;
    background: none;
    color: var(--text);
    min-width: 0;
}
.mic-btn { background: none; border: none; cursor: pointer; color: var(--muted); display: flex; }

.chip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 9px 16px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    flex: 0 0 auto;
}
.chip svg { width: 15px; height: 15px; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Delivery slot row ---------- */
.delivery-slot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.products-heading {
    font-size: 1.15rem;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.item-count { font-size: .8rem; font-weight: 400; color: var(--muted); }

.delivery-slot-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fbe3b0;
    border: none;
    border-radius: 30px;
    padding: 10px 16px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
}
.delivery-slot-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---------- Product rows ---------- */
.product-list { display: flex; flex-direction: column; gap: 18px; padding-bottom: 40px; }

.prc {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.prc-body { flex: 1; min-width: 0; }
.prc-badge {
    display: inline-block;
    background: var(--cream);
    color: var(--brand);
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.prc-title { font-size: 1.02rem; color: var(--text); margin-bottom: 6px; }
.prc-unit { font-weight: 400; color: var(--muted); font-size: .88rem; }
.prc-price { display: block; font-weight: 700; color: var(--text); font-size: .95rem; margin-bottom: 8px; }
.prc-price .old-price { font-weight: 400; text-decoration: line-through; color: var(--muted); margin-right: 6px; font-size: .82rem; }
.prc-desc {
    font-size: .84rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prc-desc.expanded { -webkit-line-clamp: unset; overflow: visible; }
.read-more { color: var(--brand); font-weight: 600; margin-left: 4px; white-space: nowrap; }

.prc-media {
    position: relative;
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--border);
}
.prc-media img { width: 100%; height: 100%; object-fit: cover; }
.prc-cta {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    background: #fdf1f1;
    color: #d9534f;
    border: 1px solid #f3c9c7;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.prc-cta.is-out { color: var(--muted); border-color: var(--border); background: #f4f0ec; cursor: not-allowed; }
.prc-cta.is-add {
    color: #fff;
    background: var(--text);
    border-color: var(--text);
    left: auto;
    right: 10px;
    transform: translateY(50%);
}

/* ---------- Mobile bottom search/menu bar ---------- */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 800;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
    align-items: center;
}
.mobile-bottom-bar .search-pill { flex: 1; }
.mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 18px;
    font-weight: 600;
    font-size: .86rem;
    cursor: pointer;
    font-family: inherit;
    flex: 0 0 auto;
}
.mobile-menu-btn svg { width: 15px; height: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .products-page { grid-template-columns: 1fr; }

    .menu-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 82%;
        max-width: 320px;
        max-height: none;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 950;
        padding-top: 0;
    }
    .menu-sidebar.open { transform: translateX(0); }
    .menu-sidebar-head { display: flex; padding: 18px; }

    .products-topbar { flex-direction: column; align-items: stretch; }
    .search-pill { display: none; } /* the desktop search pill; mobile uses the bottom bar */
    .products-topbar .chip-row { order: 1; }

    .products-main { padding-bottom: 90px; } /* clear the fixed bottom bar */
    .mobile-bottom-bar { display: flex; }
}

@media (max-width: 560px) {
    .products-page { padding-top: 14px; }

    .delivery-slot-row { flex-direction: column; align-items: flex-start; }
    .delivery-slot-btn { font-size: .78rem; padding: 8px 12px; }

    .prc { padding: 12px; gap: 12px; }
    .prc-media { flex-basis: 110px; width: 110px; height: 110px; }
    .prc-title { font-size: .92rem; }
    .prc-cta { font-size: .68rem; padding: 6px 10px; }
}