/* Veeru Fast Food - storefront styles */
:root {
    --vff-red: #a93426;
    --vff-red-dark: #65251f;
    --vff-orange: #e97836;
    --vff-yellow: #f5c26b;
    --vff-cream: #f6f4f0;
    --vff-ink: #242321;
    --vff-green: #237a4a;
    --vff-radius: 18px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #f6f4f0;
    color: var(--vff-ink);
    line-height: 1.55;
}
body.has-floating-cart { padding-bottom: 76px; }
@media (min-width: 992px) { body.has-floating-cart { padding-bottom: 0; } }

/* ---------------------------------------------------------------- navbar */
.vff-nav { background: var(--vff-red-dark); box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.vff-nav .navbar-brand { color: #fff; font-size: 1.25rem; letter-spacing: .2px; }
.brand-mark { display: inline-block; margin-right: 2px; }
.cart-count-badge { position: absolute; top: -6px; right: -6px; }

/* ------------------------------------------------------------------ hero */
.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(252,191,73,.35), transparent 45%),
        linear-gradient(135deg, var(--vff-red) 0%, #9d1111 100%);
    color: #fff;
    padding: 44px 0 56px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    overflow: hidden;
}
.hero-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
    padding: 6px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 14px;
}
.hero-title { font-weight: 800; font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.15; margin-bottom: 12px; }
.hero-sub { font-size: 1.05rem; opacity: .92; max-width: 34rem; margin-bottom: 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips span {
    background: rgba(255,255,255,.14); padding: 7px 14px; border-radius: 999px; font-size: .85rem;
}
.hero-chips b { color: var(--vff-yellow); }
.hero-photo img {
    width: 100%; max-height: 380px; object-fit: cover; border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0,0,0,.35); border: 5px solid rgba(255,255,255,.85);
}
.hero-plate {
    position: relative; width: min(360px, 80vw); aspect-ratio: 1; margin: 0 auto;
    border-radius: 50%; background: radial-gradient(circle, #fff 0 56%, #ffe8c2 57% 100%);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.hp { position: absolute; font-size: clamp(2.6rem, 9vw, 4.2rem); filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); animation: bob 4s ease-in-out infinite; }
.hp1 { top: 12%; left: 18%; } .hp2 { top: 8%; right: 16%; animation-delay: .5s; }
.hp3 { top: 42%; left: 4%; animation-delay: 1s; } .hp4 { top: 42%; right: 4%; animation-delay: 1.5s; }
.hp5 { bottom: 10%; left: 22%; animation-delay: 2s; } .hp6 { bottom: 12%; right: 20%; animation-delay: 2.5s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .hp { animation: none; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------- menu toolbar */
.menu-toolbar {
    position: sticky; top: 56px; z-index: 50;
    background: var(--vff-cream); padding: 12px 0 10px; margin-bottom: 8px;
    display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 768px) { .menu-toolbar { flex-direction: row; align-items: center; } }
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; position: relative; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
    white-space: nowrap; text-decoration: none; color: var(--vff-ink);
    background: #fff; border: 1.5px solid #f0dcc2; padding: 7px 16px; border-radius: 999px;
    font-weight: 500; font-size: .92rem; transition: all .15s;
}
.cat-pill:hover { border-color: var(--vff-orange); color: var(--vff-red); }
.cat-pill.active { background: var(--vff-red); border-color: var(--vff-red); color: #fff; }
.menu-search { position: relative; min-width: 230px; }
.menu-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9a8a78; }
.menu-search input { padding-left: 38px; border-radius: 999px; border: 1.5px solid #f0dcc2; }
.menu-search input:focus { border-color: var(--vff-orange); box-shadow: 0 0 0 .2rem rgba(247,127,0,.2); }

/* ------------------------------------------------------------ sections */
.menu-section { scroll-margin-top: 150px; margin-bottom: 30px; }
.section-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-title span { font-size: 1.5rem; }

/* ----------------------------------------------------------- food card */
.food-card {
    display: flex; gap: 14px; background: #fff; border-radius: var(--vff-radius);
    padding: 12px; height: 100%; border: 1px solid #f3e6d2;
    box-shadow: 0 3px 12px rgba(120,70,10,.06); transition: transform .15s, box-shadow .15s;
}
.food-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(120,70,10,.12); }
.food-media {
    flex: 0 0 92px; width: 92px; height: 92px; border-radius: 14px; overflow: hidden;
    background: linear-gradient(135deg, #ffe3b3, #ffc27a); display: flex; align-items: center; justify-content: center;
}
.food-media img { width: 100%; height: 100%; object-fit: cover; }
.food-emoji { font-size: 2.6rem; }
.food-body { flex: 1; min-width: 0; }
.food-name { font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.3; }
.food-desc { font-size: .78rem; color: #7b6c5c; margin: 3px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.veg-dot { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 4px; border: 2px solid; border-radius: 3px; position: relative; }
.veg-dot::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.veg-dot.veg { color: var(--vff-green); } .veg-dot.nonveg { color: #b3261e; }

.portions { display: flex; flex-direction: column; gap: 6px; }
.portion-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: #fff8ef; border: 1px solid #f3e1c6; border-radius: 12px; padding: 5px 6px 5px 12px;
}
.portion-row.in-cart { border-color: var(--vff-green); background: #f1fbf4; }
.portion-info { display: flex; flex-direction: column; line-height: 1.15; }
.portion-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; color: #8a7a68; font-weight: 600; }
.portion-price { font-weight: 700; font-size: .98rem; }
.btn-add {
    background: #fff; color: var(--vff-green); border: 1.5px solid var(--vff-green); font-weight: 700;
    font-size: .8rem; padding: 4px 20px; border-radius: 10px; letter-spacing: .5px;
}
.btn-add:hover, .btn-add:focus { background: var(--vff-green); color: #fff; }

.stepper { display: inline-flex; align-items: center; background: var(--vff-green); color: #fff; border-radius: 10px; overflow: hidden; }
.stepper button { background: transparent; color: #fff; border: 0; width: 32px; height: 30px; font-size: 1.1rem; font-weight: 700; line-height: 1; }
.stepper button:hover { background: rgba(0,0,0,.15); }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; font-size: .9rem; }
.stepper-sm button { width: 28px; height: 26px; }

.empty-state { text-align: center; padding: 50px 10px; color: #8a7a68; }

/* ---------------------------------------------------------------- cart */
.cart-panel { --bs-offcanvas-width: min(400px, 100vw); }
@media (min-width: 992px) {
    /* Bootstrap forces .offcanvas-lg to be transparent on desktop, so the card look lives on the body */
    .cart-panel {
        position: sticky; top: 130px;
        max-height: calc(100vh - 150px); display: flex; flex-direction: column;
    }
    .cart-panel .offcanvas-body {
        background: #fff; border: 1px solid #f3e6d2; border-radius: var(--vff-radius);
        box-shadow: 0 6px 22px rgba(120,70,10,.1); overflow-y: auto; padding: 18px; flex-grow: 1;
    }
}
.cart-heading { font-weight: 700; margin-bottom: 12px; }
.cart-empty { text-align: center; color: #8a7a68; padding: 28px 10px; }
.cart-items { display: flex; flex-direction: column; }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #ecdcc4; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.cart-line-meta { font-size: .75rem; color: #8a7a68; }
.cart-line-total { min-width: 56px; text-align: right; font-weight: 700; font-size: .92rem; }

.cart-footer { margin-top: 14px; }
.delivery-choice { display: grid; gap: 8px; margin-bottom: 14px; }
.delivery-option { display: block; cursor: pointer; margin: 0; }
.delivery-option input { position: absolute; opacity: 0; pointer-events: none; }
.delivery-option span {
    display: flex; align-items: center; gap: 8px; border: 1.5px solid #ecdcc4; border-radius: 12px;
    padding: 9px 12px; font-weight: 500; font-size: .92rem; transition: all .15s;
}
.delivery-option em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--vff-green); }
.delivery-option.selected span { border-color: var(--vff-red); background: #fff1ef; }
.delivery-option input:focus-visible + span { outline: 3px solid rgba(247,127,0,.5); }

.totals > div { display: flex; justify-content: space-between; padding: 3px 0; font-size: .92rem; }
.totals .grand { border-top: 2px solid var(--vff-ink); margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }

.floating-cart {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1030;
    background: var(--vff-green); color: #fff; border: 0; border-radius: 16px; padding: 14px 18px;
    display: flex; justify-content: space-between; align-items: center; font-weight: 500;
    box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
@media (min-width: 992px) { .floating-cart { display: none !important; } }

/* ------------------------------------------------------------ checkout */
.checkout-summary { background: #fff8ef; border: 1px solid #f3e1c6; border-radius: 12px; padding: 10px 14px; }
.order-code { display: inline-block; font-weight: 800; font-size: 1.5rem; letter-spacing: 1px; background: #fff8ef; border: 2px dashed var(--vff-orange); padding: 6px 18px; border-radius: 12px; }
.success-check {
    width: 76px; height: 76px; border-radius: 50%; background: var(--vff-green); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 2.6rem; animation: pop .35s ease-out;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* -------------------------------------------------------------- footer */
.vff-footer { background: #1f1710; color: #fff; padding: 34px 0; margin-top: 30px; }
.vff-footer a { text-decoration: none; }

@media (max-width: 575.98px) {
    .food-media { flex-basis: 78px; width: 78px; height: 78px; }
    .hero { padding: 30px 0 44px; }
}

/* -------------------------------------------------------------------------
   Refined storefront layout
   ---------------------------------------------------------------------- */
.vff-nav {
    min-height: 68px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #ece8e2;
    box-shadow: 0 4px 18px rgba(36,35,33,.06);
    backdrop-filter: blur(14px);
}
.vff-nav .container { min-height: 68px; }
.vff-nav .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--vff-ink);
    font-size: 1.08rem;
    letter-spacing: -.02em;
}
.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    margin: 0;
    border-radius: 13px;
    background: #fff0e5;
    font-size: 1.35rem;
}
.vff-nav .btn-outline-light {
    border-color: #e8e2da;
    color: #514941;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
}
.vff-nav .btn-outline-light:hover { background: #f7f4ef; color: var(--vff-red-dark); }

.hero {
    position: relative;
    padding: clamp(52px, 7vw, 88px) 0 clamp(58px, 7vw, 86px);
    background:
        radial-gradient(ellipse at 78% 14%, rgba(235,143,77,.3), transparent 34%),
        linear-gradient(122deg, #67231f 0%, #81271f 56%, #9b3425 100%);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}
.hero .container { position: relative; z-index: 1; }
.hero-title {
    max-width: 13ch;
    font-size: clamp(2.45rem, 5.4vw, 4.15rem);
    letter-spacing: -.055em;
    line-height: 1.05;
}
.hero-sub { max-width: 36rem; line-height: 1.7; color: rgba(255,255,255,.82); }
.hero-pill {
    padding: 7px 13px;
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.18);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .015em;
}
.btn-hero-primary {
    color: #33271d;
    background: #f5c26b;
    border: 1px solid #f5c26b;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(31,16,10,.16);
}
.btn-hero-primary:hover, .btn-hero-primary:focus {
    color: #33271d;
    background: #ffd184;
    border-color: #ffd184;
    transform: translateY(-1px);
}
.hero .btn-outline-light {
    border-color: rgba(255,255,255,.42);
    border-radius: 12px;
}
.hero-chips { gap: 8px; }
.hero-chips span {
    padding: 7px 11px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    font-size: .78rem;
}
.hero-chips b { color: #ffd184; }
.hero-photo img {
    max-height: 410px;
    border: 8px solid rgba(255,255,255,.88);
    border-radius: 28px;
    box-shadow: 0 26px 64px rgba(34,13,10,.3);
}
.hero-plate {
    width: min(390px, 78vw);
    border: 12px solid rgba(255,255,255,.8);
    background: radial-gradient(circle, #fffdf9 0 55%, #f5e8d9 56% 100%);
    box-shadow: 0 26px 64px rgba(34,13,10,.28), inset 0 0 0 1px #e6d4c2;
}
.hero-plate::before {
    content: '';
    position: absolute;
    inset: 9%;
    border: 1px solid rgba(166,117,75,.17);
    border-radius: 50%;
}
.hp {
    font-size: clamp(2.5rem, 7vw, 3.7rem);
    filter: drop-shadow(0 5px 5px rgba(72,48,28,.14));
    animation: none;
}

#menu { padding-top: 44px !important; }
.menu-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}
.menu-kicker {
    color: var(--vff-red);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
}
.menu-heading h2 {
    margin: 4px 0 3px;
    font-size: clamp(1.8rem, 3.2vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -.055em;
}
.menu-heading p { margin: 0; color: #77716a; }
.menu-promise {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e8e3dc;
    border-radius: 12px;
    background: rgba(255,255,255,.75);
    color: #5b6158;
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
}
.menu-promise i { color: var(--vff-green); }

.menu-toolbar {
    top: 68px;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid #e9e5df;
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 28px rgba(36,35,33,.07);
    backdrop-filter: blur(14px);
}
.cat-scroll { gap: 6px; }
.cat-pill {
    padding: 9px 13px;
    border: 1px solid transparent;
    background: transparent;
    color: #625d56;
    font-size: .84rem;
    font-weight: 600;
    transition: color .18s, background .18s, border-color .18s;
}
.cat-pill:hover { border-color: #f0ded2; background: #fff7f1; color: var(--vff-red); }
.cat-pill.active { background: var(--vff-red-dark); border-color: var(--vff-red-dark); color: #fff; }
.menu-search { min-width: 250px; }
.menu-search i { left: 15px; color: #8a847c; }
.menu-search input {
    min-height: 44px;
    padding-left: 42px;
    border: 1px solid #ebe7e1;
    border-radius: 11px;
    background: #f8f7f5;
    font-size: .88rem;
}
.menu-search input:focus { background: #fff; border-color: #d99b70; box-shadow: 0 0 0 .2rem rgba(233,120,54,.12); }

.menu-section { scroll-margin-top: 150px; margin-bottom: 38px; }
.section-title {
    gap: 11px;
    margin-bottom: 16px;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -.03em;
}
.section-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #eee8e0;
    border-radius: 13px;
    background: #fff;
    font-size: 1.3rem;
}
.section-title small {
    margin-left: auto;
    color: #928b83;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 0;
}

.food-card {
    gap: 13px;
    padding: 13px;
    border: 1px solid #eae6e0;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(36,35,33,.035);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.food-card:hover {
    transform: translateY(-2px);
    border-color: #e5c4ad;
    box-shadow: 0 12px 26px rgba(36,35,33,.08);
}
.food-media {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
    border-radius: 13px;
    background: linear-gradient(145deg, #fff0df, #f1d3b5);
}
.food-emoji { font-size: 2.45rem; }
.food-name { font-size: .98rem; font-weight: 700; letter-spacing: -.02em; }
.food-desc { color: #817b73; font-size: .76rem; line-height: 1.45; }
.veg-dot { flex-basis: 13px; width: 13px; height: 13px; }
.portions { gap: 5px; margin-top: 9px; }
.portion-row {
    min-height: 44px;
    padding: 5px 6px 5px 10px;
    border-color: #eeeae4;
    border-radius: 10px;
    background: #fbfaf8;
}
.portion-row.in-cart { border-color: #a8d2b5; background: #f2faf4; }
.portion-label { color: #837d75; font-size: .66rem; letter-spacing: .08em; }
.portion-price { font-size: .93rem; }
.btn-add {
    min-width: 68px;
    padding: 5px 13px;
    border: 1px solid #9cc8aa;
    border-radius: 8px;
    background: #fff;
    color: #237a4a;
    font-size: .72rem;
    letter-spacing: .04em;
}
.btn-add:hover, .btn-add:focus { border-color: var(--vff-green); background: var(--vff-green); color: #fff; }

@media (min-width: 992px) {
    .cart-panel { top: 142px; max-height: calc(100vh - 164px); }
    .cart-panel .offcanvas-body {
        border-color: #e9e5df;
        border-radius: 16px;
        box-shadow: 0 8px 28px rgba(36,35,33,.07);
    }
}
.cart-heading { font-size: 1.04rem; letter-spacing: -.02em; }
.cart-empty { color: #817b73; }
.cart-line { border-bottom-color: #eeeae4; }
.cart-footer .btn-danger {
    border-color: var(--vff-red-dark);
    border-radius: 11px;
    background: var(--vff-red-dark);
}
.cart-footer .btn-danger:hover { border-color: #511b17; background: #511b17; }
.delivery-option span { border-color: #e9e5df; border-radius: 10px; }
.delivery-option.selected span { border-color: #dca98b; background: #fff7f1; }
.totals .grand { border-top-color: #e9e5df; }
.floating-cart {
    border-radius: 13px;
    background: #276c46;
    box-shadow: 0 8px 24px rgba(24,52,34,.24);
}
.modal-content { overflow: hidden; border: 1px solid #e9e5df; border-radius: 18px; box-shadow: 0 24px 70px rgba(36,35,33,.2); }
.modal-header, .modal-footer { border-color: #eeeae4; }
.modal-title { font-weight: 800; letter-spacing: -.025em; }
.form-control, .form-select, .input-group-text { border-color: #e3ded7; }
.form-control, .form-select { border-radius: 10px; }
.input-group-text { border-radius: 10px 0 0 10px; }
.input-group > .form-control:not(:first-child) { border-radius: 0 10px 10px 0; }
.form-control:focus, .form-select:focus { border-color: #d99b70; box-shadow: 0 0 0 .2rem rgba(233,120,54,.12); }
.vff-footer { background: #211b18; }

@media (max-width: 767.98px) {
    .hero { padding: 46px 0 54px; border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }
    .hero-title { max-width: 15ch; }
    .hero-plate { width: min(300px, 72vw); }
    .menu-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .menu-promise { padding: 8px 11px; font-size: .78rem; }
    .menu-toolbar { top: 68px; padding: 10px; }
    .menu-search { min-width: 0; width: 100%; }
    .section-title { font-size: 1.16rem; }
    .food-media { flex-basis: 82px; width: 82px; height: 82px; }
}

@media (max-width: 575.98px) {
    #menu { padding-top: 32px !important; }
    .hero { padding-top: 38px; }
    .hero-chips span { font-size: .72rem; }
    .menu-promise { white-space: normal; }
    .menu-toolbar { top: 68px; }
    .food-card { gap: 11px; padding: 11px; }
    .food-media { flex-basis: 74px; width: 74px; height: 74px; }
    .food-name { font-size: .92rem; }
    .portion-price { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
