/* Quick Crave — brand theme on top of Bootstrap 5 */
:root {
    --qc-brown: #4a2208;
    --qc-brown-2: #6b3410;
    --qc-caramel: #a8642a;
    --qc-cream: #fffbe8;
    --qc-cream-2: #f7efd8;
    --qc-ink: #2b1a0e;
    --bs-body-font-family: 'Poppins', system-ui, sans-serif;
    --bs-body-color: var(--qc-ink);
    --bs-link-color: var(--qc-caramel);
    --bs-link-hover-color: var(--qc-brown);
}

body { background: #fffdf6; }
h1, h2, h3, .h1, .h2, .h3, .brand-text, .display-4 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: var(--qc-brown); }
.brand-color { color: var(--qc-caramel); }

/* buttons */
.btn-brand { background: var(--qc-brown); color: #fff; border: 1px solid var(--qc-brown); }
.btn-brand:hover, .btn-brand:focus, .btn-check:checked + .btn-brand { background: var(--qc-caramel); border-color: var(--qc-caramel); color: #fff; }
.btn-outline-brand { color: var(--qc-brown); border: 1px solid var(--qc-brown); background: transparent; }
.btn-outline-brand:hover, .btn-check:checked + .btn-outline-brand { background: var(--qc-brown); color: #fff; border-color: var(--qc-brown); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--qc-caramel); box-shadow: 0 0 0 .2rem rgba(168, 100, 42, .2); }
.form-check-input:checked { background-color: var(--qc-caramel); border-color: var(--qc-caramel); }

/* top bar + nav */
.topbar { background: var(--qc-brown); color: #f3e3c3; }
.topbar a { color: #f3e3c3; text-decoration: none; }
.qc-nav { background: var(--qc-cream); box-shadow: 0 2px 12px rgba(74, 34, 8, .08); }
.qc-nav .brand-text { font-size: 1.6rem; color: var(--qc-brown); }
.qc-nav .nav-link { font-weight: 500; color: var(--qc-brown); padding: .5rem 1rem !important; }
.qc-nav .nav-link.active, .qc-nav .nav-link:hover { color: var(--qc-caramel); }
.btn-cart { font-size: 1.35rem; color: var(--qc-brown); }
.btn-cart .badge { position: absolute; top: 0; right: -2px; font-size: .65rem; }

/* hero */
.hero { background: radial-gradient(ellipse at top right, #fff3cf 0%, var(--qc-cream) 45%, #fffdf6 100%); padding: 4rem 0 3rem; overflow: hidden; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--qc-caramel); margin-bottom: .5rem; }
.hero-title span { color: var(--qc-caramel); }
.hero-stats strong { display: block; font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: var(--qc-brown); line-height: 1; }
.hero-stats span { font-size: .8rem; color: #7a6250; }
.hero-collage { position: relative; height: 440px; }
.hero-collage img { position: absolute; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 40px rgba(74, 34, 8, .25); border: 6px solid #fff; }
.hero-collage .c1 { width: 62%; height: 78%; left: 0; top: 6%; }
.hero-collage .c2 { width: 46%; height: 52%; right: 0; top: 0; transform: rotate(4deg); }
.hero-collage .c3 { width: 40%; height: 50%; right: 8%; bottom: 0; transform: rotate(-3deg); }
@media (max-width: 575px) { .hero-collage { height: 300px; } }

/* services strip */
.service-box { background: #fff; border: 1px solid var(--qc-cream-2); border-radius: 16px; padding: 1rem .5rem; height: 100%; }
.service-box i { font-size: 1.8rem; color: var(--qc-caramel); display: block; margin-bottom: .25rem; }
.service-box small { color: #7a6250; }

/* category tiles */
.cat-tile { display: block; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; text-decoration: none; box-shadow: 0 6px 18px rgba(74, 34, 8, .12); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile span { position: absolute; inset: auto 0 0 0; padding: .6rem; text-align: center; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(43, 20, 5, .85)); }
.cat-tile:hover img { transform: scale(1.08); }

.bg-soft { background: var(--qc-cream); }
.section-head h2 { margin-bottom: 0; }

/* product card */
.product-card { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(74, 34, 8, .08); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(74, 34, 8, .15); }
.product-img img { object-fit: cover; width: 100%; height: 100%; }
.product-card .card-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem; color: var(--qc-ink); }
.product-card .price { font-weight: 600; font-size: 1.1rem; color: var(--qc-brown); }

.veg-mark { display: inline-block; width: 14px; height: 14px; border: 2px solid; border-radius: 2px; position: relative; flex-shrink: 0; vertical-align: -2px; margin-top: 4px; }
.veg-mark::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; top: 2px; left: 2px; }
.veg-mark.veg { border-color: #138a36; } .veg-mark.veg::after { background: #138a36; }
.veg-mark.nonveg { border-color: #b3261e; } .veg-mark.nonveg::after { background: #b3261e; }

/* page head */
.page-head { background: linear-gradient(120deg, var(--qc-brown), var(--qc-brown-2)); color: #f3e3c3; padding: 2.5rem 0; }
.page-head h1 { color: #fff; margin-bottom: .25rem; }

.cat-pills { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.cat-pills .btn { white-space: nowrap; border-radius: 50px; }
.menu-cat-title { border-bottom: 2px solid var(--qc-cream-2); padding-bottom: .5rem; margin-bottom: 1.25rem; }
.view-cart-float { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1030; border-radius: 50px; }

/* cart */
.cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.summary-card { border: 0; border-radius: 18px; background: var(--qc-cream); }
.summary-card .d-flex { margin-bottom: .35rem; }

/* auth */
.auth-card { max-width: 460px; border: 0; border-radius: 20px; box-shadow: 0 10px 40px rgba(74, 34, 8, .12); }

/* order tracker */
.tracker { display: flex; justify-content: space-between; position: relative; }
.tracker::before { content: ''; position: absolute; top: 18px; left: 10%; right: 10%; height: 3px; background: var(--qc-cream-2); }
.tracker .step { text-align: center; flex: 1; position: relative; }
.tracker .dot { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 3px solid var(--qc-cream-2); font-weight: 600; margin-bottom: .25rem; }
.tracker .step.done .dot { background: var(--qc-caramel); border-color: var(--qc-caramel); color: #fff; }
.tracker small { display: block; }
.success-check { width: 90px; height: 90px; margin: 0 auto; border-radius: 50%; background: #e6f4ea; color: #138a36; font-size: 3rem; display: flex; align-items: center; justify-content: center; }

/* about */
.vm-card { background: #fff; border-radius: 20px; padding: 2rem; box-shadow: 0 6px 20px rgba(74, 34, 8, .08); }
.vm-card i, .value-box i { font-size: 2rem; color: var(--qc-caramel); }
.value-box { padding: 1.5rem 1rem; }

.cta-band { background: linear-gradient(120deg, var(--qc-brown), var(--qc-caramel)); }
.cta-band h2 { color: #fff; }

/* footer */
.qc-footer { background: #2b1405; color: #e9d8b8; }
.qc-footer h6 { color: #fff; letter-spacing: .08em; margin-bottom: 1rem; }
.qc-footer a { color: #e9d8b8; text-decoration: none; }
.qc-footer a:hover { color: #fff; }
.qc-footer li { margin-bottom: .4rem; }
.footer-bottom { background: #1e0d02; color: #b99f7c; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 1029; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.toast-container { z-index: 1090; }

/* ===================== v2: OTP, verification ===================== */
.btn-wa { background: #25d366; color: #fff; border: 1px solid #25d366; }
.btn-wa:hover, .btn-wa:focus { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }
.otp-input { font-size: 2rem; letter-spacing: .6em; text-align: center; font-weight: 600; padding: .6rem .2rem .6rem .8rem; }
.otp-input::placeholder { color: #d9c9ad; }
.login-tabs .nav-link { color: var(--qc-brown); border: 1px solid var(--qc-cream-2); margin: 0 2px; font-weight: 500; font-size: .9rem; }
.login-tabs .nav-link.active { background: var(--qc-brown); border-color: var(--qc-brown); }
.verify-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: var(--qc-cream); color: var(--qc-caramel); }
.contact-row { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--qc-cream-2); }
.contact-row:last-of-type { border-bottom: 0; }
.min-w-0 { min-width: 0; }

/* ===================== v2: responsive (phone & tablet) ===================== */
.menu-sticky { position: sticky; top: 72px; z-index: 1010; background: #fffdf6; padding: .5rem 0; margin-left: -4px; margin-right: -4px; }
.cat-pills { scrollbar-width: none; padding: 0 4px; }
.cat-pills::-webkit-scrollbar { display: none; }
.pill-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pill-scroll::-webkit-scrollbar { display: none; }
.pill-scroll .nav-link { white-space: nowrap; }

/* cart lines */
.cart-line { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.cart-info { flex: 1 1 160px; min-width: 0; }
.cart-controls { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.cart-line-total { min-width: 84px; text-align: right; font-weight: 600; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--qc-caramel); border-radius: 50px; overflow: hidden; }
.qty-stepper .btn { border: 0; color: var(--qc-brown); width: 36px; height: 34px; padding: 0; font-size: 1.1rem; }
.qty-stepper .btn:hover { background: var(--qc-cream); }
.qty-stepper span { min-width: 26px; text-align: center; font-weight: 600; }
.mobile-checkout-bar { display: none; }

.order-card { border: 0; border-radius: 14px; box-shadow: 0 2px 10px rgba(74, 34, 8, .08); }
.order-card.is-pending { border-left: 4px solid #f0ad4e; }

/* bottom navigation (phones + tablets) */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; display: flex; background: #fff; border-top: 1px solid var(--qc-cream-2);
    box-shadow: 0 -4px 16px rgba(74, 34, 8, .08); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { flex: 1; text-align: center; padding: .45rem 0 .35rem; color: #8a7360; text-decoration: none; font-size: .7rem; line-height: 1.1; }
.bottom-nav a i { display: block; font-size: 1.3rem; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--qc-brown); font-weight: 600; }
.bottom-nav .badge { position: absolute; top: 2px; left: 50%; margin-left: 6px; font-size: .6rem; }

@media (max-width: 991.98px) {
    body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
    .wa-float { bottom: 76px; width: 46px; height: 46px; font-size: 1.35rem; }
    .view-cart-float { bottom: 76px; }
    .qc-nav .navbar-collapse { padding-bottom: .75rem; }
    .qc-footer { margin-bottom: 0; }
    .btn-cart { display: none; }
}

/* tablets */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-collage { height: 380px; max-width: 560px; margin: 0 auto; }
    .container { max-width: 100%; padding-left: 24px; padding-right: 24px; }
}

/* phones */
@media (max-width: 575.98px) {
    .hero { padding: 2rem 0 1.5rem; }
    .hero-title { font-size: 2.3rem; }
    .hero .lead { font-size: 1rem; }
    .hero .btn-lg { font-size: 1rem; padding: .6rem 1rem; }
    .hero-stats { gap: 1.25rem !important; }
    .hero-stats strong { font-size: 1.4rem; }
    .page-head { padding: 1.4rem 0; }
    .page-head h1 { font-size: 1.8rem; }
    .section-head h2, h2 { font-size: 1.6rem; }
    .py-5 { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
    .menu-sticky { top: 66px; }

    /* compact horizontal product cards */
    .product-card { flex-direction: row; border-radius: 14px; }
    .product-card:hover { transform: none; }
    .product-card .product-img { flex: 0 0 118px; width: 118px; }
    .product-card .product-img::before { padding-top: 0; }
    .product-card .product-img img { position: absolute; inset: 0; }
    .product-card .card-body { padding: .7rem .8rem; }
    .product-card .card-title { font-size: .95rem; }
    .product-card .card-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; margin-bottom: 0; }
    .product-card .price { font-size: 1rem; }

    .cat-tile span { font-size: .8rem; padding: .45rem; }
    .service-box { padding: .75rem .25rem; }
    .service-box i { font-size: 1.5rem; }

    .cart-thumb { width: 56px; height: 56px; }
    .cart-controls { width: 100%; justify-content: space-between; margin-left: 0; padding-left: calc(56px + .9rem); }
    .mobile-checkout-bar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 1034;
        align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 16px; background: #fff; border-top: 1px solid var(--qc-cream-2); }
    .mobile-checkout-bar .btn { padding: .5rem 1.25rem; }
    body:has(.mobile-checkout-bar) { padding-bottom: 130px; }
    body:has(.mobile-checkout-bar) .wa-float { display: none; }

    .order-type-btn { font-size: .8rem; padding: .6rem .25rem !important; }
    .tracker small { font-size: .62rem; line-height: 1.15; }
    .tracker .dot { width: 30px; height: 30px; font-size: .8rem; }
    .tracker::before { top: 14px; }
    .auth-card .card-body { padding: 1.5rem !important; }
    .otp-input { font-size: 1.7rem; letter-spacing: .45em; }
    .vm-card { padding: 1.4rem; }
    .qc-footer .py-5 { padding-top: 2rem !important; }
}
.login-tabs { flex-wrap: nowrap; }
@media (max-width: 991.98px) {
    .wa-float.wa-desktop-only { display: none; }
    .view-cart-float { left: 12px; right: 12px; transform: none; border-radius: 14px; display: flex; justify-content: center; align-items: center; gap: .4rem; }
    .view-cart-float.d-none { display: none !important; }
    body:has(.view-cart-float:not(.d-none)) { padding-bottom: 130px; }
}
@media (min-width: 576px) and (max-width: 991.98px) { .view-cart-float { left: 50%; right: auto; transform: translateX(-50%); min-width: 320px; } }
@media (max-width: 575.98px) {
    .login-tabs .nav-link { font-size: .8rem; padding: .5rem .25rem; }
}
