/* CSS Variables */
:root {
    --primary: #8B4513;
    --secondary: #D2691E;
    --accent: #FFA500;
    --light: #F5F5DC;
    --dark: #2C1810;
    --text: #333333;
    --white: #FFFFFF;
    --success: #4CAF50;
    --info: #2196F3;
    --warning: #FF9800;
    --danger: #F44336;
    --coffee-brown: #6F4E37;
    --cream: #FFF8E7;
    --salad-green: #8FBC8F;
    --pizza-red: #FF6B6B;
    --icecream-blue: #87CEEB;
    --cake-pink: #FFB6C1;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--cream);
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: var(--accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-accent {
    background-color: var(--accent);
}

.btn-accent:hover {
    background-color: #ff8c00;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: var(--dark);
    color: var(--white);
}

.header-scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.desktop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--accent);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.timing-bar {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Mobile Header */
.mobile-header {
    display: none;
    padding: 15px 0;
}

.mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.breadcrumb-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.breadcrumb-menu.active {
    max-height: 400px;
    padding: 20px 0;
}

.breadcrumb-menu ul {
    padding: 0 20px;
}

.breadcrumb-menu li {
    margin-bottom: 15px;
}

.breadcrumb-menu a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
}


/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Homepage Sections */
.home-section {
    padding: 80px 0;
}

.color-block {
    padding: 60px 0;
    border-radius: 10px;
    margin: 30px 0;
}

.block-1 {
    background-color: var(--coffee-brown);
    color: var(--white);
}

.block-2 {
    background-color: var(--salad-green);
    color: var(--dark);
}

.block-3 {
    background-color: var(--pizza-red);
    color: var(--white);
}

.block-4 {
    background-color: var(--icecream-blue);
    color: var(--dark);
}

.block-5 {
    background-color: var(--cake-pink);
    color: var(--dark);
}

.block-6 {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--white);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.food-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.food-item:hover {
    transform: translateY(-10px);
}

.food-img {
    height: 200px;
    overflow: hidden;
}

.food-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.food-item:hover .food-img img {
    transform: scale(1.1);
}

.food-info {
    padding: 20px;
    background-color: var(--white);
}

.platforms {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.platform-btn {
    background-color: var(--white);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-rating {
    color: var(--accent);
    margin-bottom: 15px;
}

/* About Page */
.about-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.icon-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.icon-item:hover {
    transform: translateY(-10px);
}

.icon-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.story-section {
    padding: 80px 0;
    background-color: var(--light);
}

/* Menu Page */
.menu-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.menu-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.menu-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.menu-slide {
    min-width: 100%;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slide-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px;
    border-radius: 10px 10px 0 0;
    margin: -30px -30px 20px -30px;
    text-align: center;
}

.menu-items {
    column-count: 2;
    column-gap: 30px;
}

.menu-item {
    break-inside: avoid;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.item-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0;
}

.item-price {
    font-weight: 700;
    color: var(--secondary);
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: var(--primary);
}

/* Contact Page */
.contact-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-detail i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 15px;
    width: 30px;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Space & Events Page */
.space-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1492&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.space-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.space-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.space-image img {
    width: 100%;
    height: auto;
    display: block;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.amenity {
    background-color: var(--light);
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
}

.footer-section p {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .menu-items {
        column-count: 1;
    }
    
    .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .order-now-btn {
        width: 60px;
        height: 60px;
        right: 20px;
        bottom: 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .platforms {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Menu Slider Improvements */
.menu-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 50px; /* Added margin for arrows */
}

.menu-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.menu-slide {
    min-width: 100%;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.slide-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px;
    border-radius: 10px 10px 0 0;
    margin: -30px -30px 20px -30px;
    text-align: center;
}

.menu-items {
    column-count: 2;
    column-gap: 30px;
}

.menu-item {
    break-inside: avoid;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.item-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0;
}

.item-price {
    font-weight: 700;
    color: var(--secondary);
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: var(--primary);
}

/* Menu Breadcrumb Navigation */
.menu-breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.menu-category-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-category-btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.menu-category-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Slider Arrows */
.slider-arrows {
    position: absolute;
    top: 50%;
    width: calc(100% - 100px); /* Account for container padding */
    left: 50px; /* Match container padding */
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-arrow {
    background-color: rgba(139, 69, 19, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(210, 105, 30, 0.9);
    transform: scale(1.1);
}

/* ADDONS */
.addons {
    margin-top: 30px;
    padding: 15px;
    background-color: #FFF8E7 !important;
    border-radius: 8px;
    border-left: 4px solid var(--accent) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
}

.addons p {
    margin: 0;
    font-size: 1rem;
    color: #222222 !important;
    font-weight: 600;
    line-height: 1.5;
}

/* This is the KEY FIX - override parent white color */
.addons,
.addons * {
    color: #222222 !important;
}

/* But keep labels brown */
.addons strong {
    color: #8B4513 !important;
    font-size: 1.1rem;
}

/* Menu hero text visibility */
.menu-hero h1, .menu-hero p {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.block-6 h2, .block-6 p {
    color: #fff !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.block-6 h2 {
    color: #FFD700 !important;
    font-weight: 700;
}


/* FIX: Force addons text to be DARK and readable */
.block-6 .addons p,
.block-6 .addons p *:not(strong) {
    color: #222222 !important;
    font-weight: 600;
}

.block-6 .addons p strong {
    color: #8B4513 !important;
}

.block-6 .addons {
    background-color: #FFF8E7 !important;
    border: 2px solid #D2691E !important;
    border-left: 4px solid #FFA500 !important;
}


/* ===== CART SYSTEM STYLES ===== */

/* Cart Button */
.cart-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: var(--accent);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.cart-button:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.cart-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-header {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
}

.close-cart:hover {
    transform: scale(1.2);
}

.cart-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.cart-summary {
    width: 300px;
    background-color: var(--light);
    padding: 20px;
    border-left: 2px solid #eee;
    display: flex;
    flex-direction: column;
}

/* Cart Items */
.cart-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item-header h4 {
    margin: 0;
    color: var(--primary);
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
}

.remove-item:hover {
    transform: scale(1.2);
}

.cart-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-change {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--light);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-change:hover {
    background-color: var(--primary);
    color: white;
}

.cart-item-price {
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.1rem;
}

.cart-item-addons {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.cart-addon-item {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-cart h4 {
    color: #666;
    margin-bottom: 10px;
}

/* Order Type Selector */
.order-type-selector {
    margin-bottom: 20px;
}

.order-type-selector h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.order-type-options {
    display: flex;
    gap: 10px;
}

.order-type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.order-type-btn:hover {
    border-color: var(--primary);
}

.order-type-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Summary */
.summary-details {
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.summary-row:last-child {
    border-bottom: none;
}

.total-row {
    font-size: 1.2rem;
    padding-top: 10px;
    border-top: 2px solid #ddd;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    flex: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-primary:hover {
    background-color: var(--secondary);
}

/* Addon Modal */
.addon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1002;
    display: none;
    animation: fadeIn 0.3s ease;
}

.addon-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.addon-header {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-header h3 {
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-addon-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.addon-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.item-details {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light);
}

.addon-options {
    margin-bottom: 20px;
}

.addon-option {
    margin-bottom: 10px;
}

.addon-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.addon-checkbox:hover {
    background-color: var(--light);
}

.addon-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s;
}

.addon-checkbox input:checked + .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.addon-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
}

.addon-text {
    font-weight: 500;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light);
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

#itemQuantity {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
}

.addon-summary {
    background-color: var(--light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-preview {
    margin-top: 10px;
}

.addon-footer {
    padding: 20px;
    background-color: #f8f9fa;
    display: flex;
    gap: 10px;
}

/* Notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1003;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Menu Item Add Button */
.add-to-cart-btn {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    margin-top: 8px !important;
    transition: all 0.3s !important;
    display: inline-block !important;
}

.add-to-cart-btn:hover {
    background: var(--secondary) !important;
    transform: translateY(-2px) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive styles for cart */
@media (max-width: 768px) {
    .cart-body {
        flex-direction: column;
    }
    
    .cart-summary {
        width: 100%;
        border-left: none;
        border-top: 2px solid #eee;
    }
    
    .cart-button {
        bottom: 30px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .addon-modal-content {
        width: 95%;
        max-height: 95vh;
    }
}

/* ===== MOBILE RESPONSIVE CART FIXES ===== */

@media (max-width: 768px) {
    .cart-modal-content {
        width: 95%;
        height: 85vh;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .cart-body {
        flex-direction: column;
    }
    
    .cart-summary {
        width: 100%;
        border-left: none;
        border-top: 2px solid #eee;
        padding: 15px;
    }
    
    .cart-items {
        max-height: 50vh;
        padding: 15px;
    }
    
    .cart-button {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    
    /* Fix addon modal for mobile */
    .addon-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .addon-body {
        max-height: 50vh;
        padding: 15px;
    }
    
    .addon-footer {
        padding: 15px;
    }
    
    /* Make cart items more compact on mobile */
    .cart-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .cart-item-header h4 {
        font-size: 1rem;
    }
    
    .cart-item-price {
        font-size: 1rem;
    }
    
    /* Adjust order type buttons for mobile */
    .order-type-options {
        flex-direction: column;
    }
    
    .order-type-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Fix cart actions on mobile */
    .cart-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cart-actions .btn {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .cart-modal-content {
        width: 98%;
        height: 90vh;
    }
    
    .cart-header {
        padding: 15px;
    }
    
    .cart-header h3 {
        font-size: 1.2rem;
    }
    
    .cart-button {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
    }
    
    /* Addon modal fixes for small screens */
    .addon-modal-content {
        width: 98%;
        max-height: 90vh;
    }
    
    .addon-header {
        padding: 15px;
    }
    
    .addon-header h3 {
        font-size: 1.2rem;
    }
    
    /* Menu item add buttons on mobile */
    .add-to-cart-btn {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
        width: 100%;
        text-align: center;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .cart-modal-content {
        border-radius: 10px;
    }
    
    .cart-button {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
    }
}

/* Fix iOS scrolling */
@supports (-webkit-touch-callout: none) {
    .cart-modal-content {
        height: -webkit-fill-available;
    }
}

/* Smooth scrolling for mobile */
.cart-items {
    -webkit-overflow-scrolling: touch;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Touch-friendly buttons */
.cart-button, 
.order-type-btn, 
.quantity-change, 
.quantity-btn {
    touch-action: manipulation;
}

/* Improve tap targets for mobile */
@media (max-width: 768px) {
    .remove-item,
    .quantity-change,
    .close-cart,
    .close-addon-modal {
        min-width: 44px;
        min-height: 44px;
    }
    
    .addon-checkbox {
        min-height: 44px;
    }
}