:root {
    --mc-yellow: #FFBC0D;
    --mc-red: #DB0007;
    --mc-dark: #292929;
    --bg-light: #F4F4F4;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --green: #28a745;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    background-color: var(--bg-light); 
    color: var(--mc-dark); 
    overflow-x: hidden; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}

/* --- NAVIGATION --- */
header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 6%; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
}

.logo-img { 
    height: 45px; 
    width: auto; 
    transition: transform 0.3s; 
}

.brand:hover .logo-img { 
    transform: scale(1.1); 
}

.brand-name { 
    font-weight: 900; 
    font-size: 22px; 
    letter-spacing: -1px; 
    color: var(--mc-dark); 
}

.nav-links { 
    display: flex; 
    gap: 30px; 
}

.nav-link { 
    text-decoration: none; 
    color: var(--mc-dark); 
    font-weight: 700; 
    font-size: 15px; 
    cursor: pointer; 
    position: relative; 
    transition: 0.3s;
    padding: 5px 0;
}

.nav-link:hover, 
.nav-link.active { 
    color: var(--mc-red); 
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--mc-red);
}

.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.cart-icon { 
    position: relative; 
    cursor: pointer; 
    font-size: 22px; 
    color: var(--mc-dark); 
    transition: 0.2s; 
}

.cart-icon:hover { 
    transform: scale(1.1); 
    color: var(--mc-red); 
}

.cart-badge { 
    position: absolute; 
    top: -8px; 
    right: -8px; 
    background: var(--mc-red); 
    color: white; 
    border-radius: 50%; 
    width: 18px; 
    height: 18px; 
    font-size: 11px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
}

/* --- LOADING SPINNER --- */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--mc-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- HERO SLIDER BANNER --- */
.hero-container { 
    position: relative; 
    height: 500px; 
    overflow: hidden; 
    background: #000; 
    border-radius: 0 0 20px 20px;
}

.slide {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    opacity: 0; 
    transition: opacity 1s ease-in-out;
    background-size: cover; 
    background-position: center;
}

.slide.active { 
    opacity: 1; 
    z-index: 1; 
}

.slide-content {
    position: absolute; 
    top: 50%; 
    left: 6%; 
    transform: translateY(-50%);
    z-index: 2; 
    color: white; 
    max-width: 500px;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.slide-content h1 { 
    font-size: 60px; 
    line-height: 1; 
    font-weight: 900; 
    margin-bottom: 20px; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}

.slide-content p { 
    font-size: 18px; 
    margin-bottom: 30px; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); 
}

.slide::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
}

/* --- SECTIONS --- */
.section-header { 
    font-size: 28px; 
    font-weight: 900; 
    margin: 50px 6% 30px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    text-transform: uppercase; 
}

.section-header::after { 
    content: ''; 
    flex: 1; 
    height: 2px; 
    background: #ddd; 
}

.arrival-banner {
    margin: 20px 6%; 
    background: #fff0f0; 
    border-radius: 20px; 
    overflow: hidden;
    display: flex; 
    align-items: center; 
    box-shadow: var(--shadow); 
    border: 1px solid #ffd6d6;
}

.arrival-text { 
    flex: 1; 
    padding: 40px; 
}

.arrival-img { 
    flex: 1; 
    height: 350px; 
}

.arrival-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    padding: 0 6%; 
}

.info-card { 
    background: white; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
    transition: 0.3s; 
    border: 1px solid #eee;
}

.info-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--mc-yellow);
}

.info-img { 
    height: 200px; 
    width: 100%; 
    object-fit: cover; 
}

.info-content { 
    padding: 25px; 
}

.info-content h3 { 
    font-size: 20px; 
    margin-bottom: 10px; 
    color: var(--mc-dark); 
}

.info-content p { 
    color: #666; 
    font-size: 14px; 
    line-height: 1.6; 
}

.offer-row {
    display: flex; 
    gap: 20px; 
    padding: 0 6%; 
    overflow-x: auto; 
    padding-bottom: 20px; 
    scrollbar-width: none;
}

.offer-row::-webkit-scrollbar {
    display: none;
}

.offer-card {
    min-width: 280px; 
    background: white; 
    padding: 20px; 
    border-radius: 15px;
    box-shadow: var(--shadow); 
    border: 2px dashed var(--mc-yellow);
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    transition: 0.3s;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-code { 
    background: #eee; 
    padding: 5px 10px; 
    border-radius: 5px; 
    font-weight: bold; 
    font-family: monospace; 
    letter-spacing: 1px; 
    width: fit-content; 
    margin-bottom: 10px; 
}

/* --- MENU CONTROLS --- */
.menu-controls {
    position: sticky; 
    top: 76px; 
    z-index: 900;
    background: var(--bg-light); 
    padding: 15px 6%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    gap: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.02);
}

.category-scroll { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    scrollbar-width: none; 
    padding-bottom: 5px;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn { 
    background: white; 
    border: 1px solid #ddd; 
    padding: 10px 25px; 
    border-radius: 30px; 
    white-space: nowrap; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 14px; 
    transition: all 0.2s; 
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-btn.active, 
.cat-btn:hover { 
    background: var(--mc-dark); 
    color: var(--mc-yellow); 
    border-color: var(--mc-dark); 
}

.veg-toggle-container {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    background: white; 
    padding: 5px 15px; 
    border-radius: 30px; 
    border: 1px solid #ddd;
    white-space: nowrap;
}

.switch { 
    position: relative; 
    display: inline-block; 
    width: 40px; 
    height: 20px; 
}

.switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
}

.slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: #ccc; 
    transition: .4s; 
    border-radius: 34px; 
}

.slider:before { 
    position: absolute; 
    content: ""; 
    height: 16px; 
    width: 16px; 
    left: 2px; 
    bottom: 2px; 
    background-color: white; 
    transition: .4s; 
    border-radius: 50%; 
}

input:checked + .slider { 
    background-color: var(--green); 
}

input:checked + .slider:before { 
    transform: translateX(20px); 
}

/* --- GRID & CARDS --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 25px; 
    padding: 0 6% 40px; 
}

.card { 
    background: var(--white); 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: 0.3s; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    position: relative;
    border: 1px solid #eee;
}

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-color: var(--mc-yellow);
}

.veg-icon { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    width: 20px; 
    height: 20px; 
    border: 2px solid var(--green); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background: white; 
    border-radius: 4px; 
    z-index: 2;
}

.veg-dot { 
    width: 10px; 
    height: 10px; 
    background: var(--green); 
    border-radius: 50%; 
}

.nonveg-icon { 
    border-color: var(--mc-red); 
}

.nonveg-dot { 
    background: var(--mc-red); 
}

.card-img-box { 
    height: 180px; 
    overflow: hidden; 
    background: #f8f8f8; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
}

.card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.1);
}

.card-content { 
    padding: 15px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.price { 
    font-weight: 900; 
    color: var(--mc-dark); 
    font-size: 18px; 
}

.btn-add { 
    background: white; 
    border: 2px solid var(--mc-yellow); 
    color: #b38600; 
    padding: 8px 20px; 
    border-radius: 20px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 12px; 
    transition: 0.2s;
    border: none;
    background: var(--mc-yellow);
    color: black;
}

.btn-add:hover { 
    background: #e6a900; 
    transform: scale(1.05);
}

/* --- CART --- */
.cart-layout { 
    display: flex; 
    gap: 30px; 
    padding: 40px 6%; 
    flex-wrap: wrap; 
}

.cart-main { 
    flex: 2; 
    min-width: 300px; 
    background: white; 
    border-radius: 20px; 
    padding: 25px; 
    box-shadow: var(--shadow); 
    border: 1px solid #eee;
}

.cart-side { 
    flex: 1; 
    min-width: 300px; 
}

.tray-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 15px 0; 
    border-bottom: 1px solid #f0f0f0; 
    gap: 15px; 
}

.tray-item:last-child {
    border-bottom: none;
}

.cart-item-img { 
    width: 60px; 
    height: 60px; 
    border-radius: 10px; 
    object-fit: cover; 
    background: #f8f8f8;
}

.cart-qty-pill {
    display: flex; 
    align-items: center; 
    background: #f8f8f8; 
    border-radius: 30px; 
    padding: 5px; 
    border: 1px solid #eee;
}

.qty-btn { 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    border: none; 
    cursor: pointer; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.2s; 
}

.qty-btn.minus { 
    background: white; 
    color: #555; 
}

.qty-btn.plus { 
    background: var(--mc-yellow); 
    color: black; 
}

.qty-btn:hover { 
    transform: scale(1.1); 
}

.qty-val { 
    width: 30px; 
    text-align: center; 
    font-weight: bold; 
    font-size: 14px; 
}

.addon-grid { 
    display: flex; 
    gap: 10px; 
    margin-top: 15px; 
    flex-wrap: wrap; 
}

.addon-chip { 
    border: 1px solid #ddd; 
    background: white; 
    padding: 8px 15px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: bold; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    transition: 0.2s;
    border: none;
}

.addon-chip:hover { 
    border-color: var(--mc-yellow); 
    background: #fffcf0; 
    transform: translateY(-2px);
}

/* --- TRACK PAGE --- */
.track-box { 
    max-width: 800px; 
    margin: 40px auto; 
    background: white; 
    padding: 30px; 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    border: 1px solid #eee;
}

.map-box { 
    height: 400px; 
    background: #ddd; 
    border-radius: 20px; 
    overflow: hidden; 
    position: relative; 
    border: 4px solid white; 
    box-shadow: var(--shadow); 
    margin-top: 20px; 
}

.driver-float { 
    position: absolute; 
    bottom: 20px; 
    left: 20px; 
    background: white; 
    padding: 15px; 
    border-radius: 15px; 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); 
    animation: slideUp 0.5s ease-out;
    border: 1px solid #eee;
}

@keyframes slideUp { 
    from { 
        transform: translateY(20px); 
        opacity: 0; 
    } 
    to { 
        transform: translateY(0); 
        opacity: 1; 
    } 
}

/* --- VIEWS --- */
.view { 
    display: none; 
    animation: fade 0.4s; 
}

.view.active { 
    display: block; 
}

@keyframes fade { 
    from {
        opacity: 0; 
        transform: translateY(10px);
    } 
    to {
        opacity: 1; 
        transform: translateY(0);
    }
}

/* --- BUTTONS --- */
.btn-red { 
    background: var(--mc-red); 
    color: white; 
    border: none; 
    padding: 15px; 
    width: 100%; 
    border-radius: 30px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 16px; 
    margin-top: 15px; 
    transition: 0.2s; 
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-red:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(219,0,7,0.3); 
    background: #c00006;
}

/* --- FOOTER --- */
footer { 
    background: #1a1a1a; 
    color: white; 
    padding: 60px 6% 20px; 
    margin-top: auto; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 40px; 
    margin-bottom: 40px; 
}

.footer-col h4 { 
    color: var(--mc-yellow); 
    font-size: 18px; 
    font-weight: 800; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col a { 
    display: block; 
    color: #999; 
    text-decoration: none; 
    margin-bottom: 10px; 
    transition: 0.2s; 
    cursor: pointer; 
    padding: 5px 0;
}

.footer-col a:hover { 
    color: white; 
    transform: translateX(5px); 
}

.footer-bottom { 
    border-top: 1px solid #333; 
    padding-top: 20px; 
    text-align: center; 
    color: #aaa; 
    font-size: 14px; 
}

/* --- NOTIFICATION --- */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--green);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
    max-width: 350px;
}

.notification.error {
    background: var(--mc-red);
}

.notification.info {
    background: var(--mc-dark);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* --- RESPONSIVE --- */
@media(max-width: 1024px) {
    .hero-container { 
        height: 450px; 
    }
    .slide-content h1 { 
        font-size: 50px; 
    }
}

@media(max-width: 768px) {
    .arrival-banner { 
        flex-direction: column; 
    }
    .arrival-img { 
        height: 250px; 
        width: 100%; 
    }
    .arrival-text {
        padding: 30px;
    }
    .hero-container { 
        height: 400px; 
    }
    .slide-content {
        padding: 20px;
        left: 5%;
        right: 5%;
        width: 90%;
    }
    .slide-content h1 { 
        font-size: 36px; 
    }
    .slide-content p {
        font-size: 16px;
    }
    .menu-controls { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px;
    }
    .info-grid { 
        grid-template-columns: 1fr; 
    }
    .cart-layout {
        flex-direction: column;
    }
    .nav-links {
        gap: 15px;
        font-size: 14px;
    }
    .brand-name {
        font-size: 18px;
    }
    .card-img-box {
        height: 160px;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    .section-header {
        font-size: 24px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media(max-width: 480px) {
    header {
        padding: 15px 4%;
    }
    .hero-container {
        height: 350px;
    }
    .slide-content h1 {
        font-size: 28px;
    }
    .grid {
        grid-template-columns: 1fr;
        padding: 0 4% 40px;
    }
    .menu-controls, .offer-row, .info-grid, .arrival-banner, .cart-layout {
        margin-left: 4%;
        margin-right: 4%;
        padding-left: 0;
        padding-right: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .brand-name {
        font-size: 16px;
    }
}