/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Oswald:wght@400;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f5f0; /* Light beige background */
    color: #4a3b31; /* Dark brown text */
    line-height: 1.6;
    scroll-behavior: smooth; /* For smooth scrolling */
}

h1, h2, h3, h4, h5, h6 { /* Applied to all heading levels */
    font-family: 'Oswald', sans-serif;
    color: #d95f02; /* Orange for headings */
    font-weight: 700; /* Bolder headings */
}

a {
    color: #bf5700; /* Darker orange for links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #8c4400; /* Dark brown header */
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #d95f02; /* Orange accent */
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header .logo img {
    height: 150px;
    vertical-align: middle;
}

header nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    font-weight: bold;
}

header nav ul li a:hover {
    color: #f9a825; /* Lighter orange for hover */
    text-decoration: none;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-btn.track-order-btn {
    background: linear-gradient(135deg, #DD8C28 0%, #bf5700 100%) !important;
    color: white !important;
}

.header-btn.track-order-btn:hover {
    background: linear-gradient(135deg, #bf5700 0%, #a94400 100%) !important;
}

.cart-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.cart-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
    min-width: 20px;
}

.cart-badge.hidden {
    display: none;
}

/* Main Content */
main {
    padding: 20px 0;
}

/* Hero Section */
#hero {
    background: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}

#hero h2, #hero p, #hero .btn {
    position: relative;
    z-index: 1;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #d95f02; /* Orange button */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #bf5700; /* Darker orange on hover */
    text-decoration: none;
}

.add-to-cart-btn {
    background: #d95f02; /* Orange button */
    color: #fff;
    padding: 12px 22px;
    border-radius: 25px; /* Pill shape */
    font-size: 0.9rem; /* Adjusted for potentially longer text */
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block; /* Ensure it behaves like a block for margin/padding but flows inline */
    margin-top: 10px; /* Add some space above the button */
}

.add-to-cart-btn:hover {
    background: #d35400; /* Slightly different darker orange on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.add-to-cart-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Sections (Home, Menu, Contact) & Order Confirmation */
#home-section, #menu-section, #contact-section, #order-confirmation-page { /* Added #home-section etc. */
    padding: 40px 20px; /* Standardized padding for sections */
    /* text-align: center; */ /* Removed default center alignment, apply per sub-section if needed */
}

/* Ensure .container is applied within sections if needed, or style sections directly */
#about-us, #featured-pizzas, #contact-info, #menu-items, #build-your-own, #drinks-section, #order-summary-page, #order-confirmation {
    /* padding: 40px 0; */ /* Padding is now on parent sections like #home-section */
    text-align: center;
}

#about-us h3, #featured-pizzas h3, #contact-info h3, #menu-items h3, #build-your-own h3, #drinks-section h3, #order-summary-page h3, #order-confirmation h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #8c4400; /* Dark brown for section titles */
    text-align: center; /* Center align section titles */
}

.pizza-grid, .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

.pizza-item, .menu-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pizza-item:hover, .menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1); /* Enhanced shadow on hover */
}

.pizza-item img, .menu-item img {
    width: 100%;
    height: 220px; /* Slightly taller images */
    object-fit: cover;
    border-radius: 6px; /* Slightly more rounded corners for images */
    margin-bottom: 15px; /* More space below image */
}

.pizza-item h4, .menu-item h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #d95f02;
}

.pizza-item p, .menu-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    color: #8c4400;
    font-size: 1.1rem;
}

/* Build Your Own Pizza Section Styling Enhancements */
#build-your-own {
    background-color: #fff8f0; /* Very light orange, almost cream */
    padding-top: 40px;
    padding-bottom: 40px;
    border-radius: 12px;
    margin-top: 40px; /* Increased space above this section */
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border-top: 4px solid #e67e22; /* Distinct top border */
}

#build-your-own h3 {
    color: #8c4400; /* Dark brown for this specific heading */
    margin-bottom: 30px; /* More space below heading */
}

#pizza-customizer-form { /* Renamed from #build-your-own form for clarity */
    max-width: 700px; /* Slightly wider form */
    margin: 0 auto; /* Center the form */
    padding: 30px; /* More padding inside the form */
    background: #ffffff; /* White background for the form itself */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
}

#pizza-customizer-form > div { /* Add margin to direct children divs for spacing */
    margin-bottom: 25px;
}

#pizza-customizer-form label {
    display: block;
    margin-bottom: 10px; /* More space below label */
    font-weight: bold;
    color: #5f4c40; /* Slightly softer brown for labels */
    font-size: 1.1rem;
}

#pizza-customizer-form select,
#pizza-customizer-form input[type="number"],
.drink-item input[type="number"].drink-quantity { /* Added .drink-item input for consistency */
    width: 100%;
    padding: 12px 15px; /* Increased padding */
    margin-bottom: 5px; /* Reduced margin as label has more */
    border: 1px solid #ddd; /* Lighter border */
    border-radius: 6px; /* More rounded */
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#pizza-customizer-form select { /* Specific styling for select dropdown arrow */
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23D95F02%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px; /* Make space for custom arrow */
}


#pizza-customizer-form select:focus,
#pizza-customizer-form input[type="number"]:focus,
.drink-item input[type="number"].drink-quantity:focus { /* Added .drink-item input for consistency */
    border-color: #d95f02; /* Orange border on focus */
    box-shadow: 0 0 0 3px rgba(217, 95, 2, 0.2); /* Subtle glow on focus */
    outline: none;
}

#pizza-customizer-form .toppings-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive columns */
    gap: 15px; /* Increased gap */
    margin-bottom: 20px;
}

#pizza-customizer-form .toppings-list label {
    font-weight: normal;
    display: flex;
    align-items: center;
    background-color: #fdfaf6; /* Light background for topping items */
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.95rem;
}

#pizza-customizer-form .toppings-list label:hover {
    background-color: #fbeedf; /* Lighter orange on hover */
    border-color: #f9a825;
}

#pizza-customizer-form .toppings-list input[type="checkbox"] {
    margin-right: 12px; /* More space next to checkbox */
    width: auto;
    transform: scale(1.2); /* Slightly larger checkboxes */
    accent-color: #d95f02; /* Orange checkbox color */
}

#pizza-customizer-form .toppings-list input[type="checkbox"]:checked + span {
    font-weight: bold; /* Make text bold when checked */
}

#pizza-customizer-form .toppings-list label input[type="checkbox"]:checked ~ span {
    /* Styles for the span when checkbox is checked, if needed beyond just bold */
    color: #d95f02; /* Example: change text color of topping when selected */
}

#pizza-customizer-form .toppings-list label:has(input[type="checkbox"]:checked) {
    background-color: #fce5d0; /* Light orange background for selected topping label */
    border-color: #d95f02; /* Orange border for selected topping label */
    box-shadow: 0 2px 4px rgba(217, 95, 2, 0.2); /* Subtle shadow for selected topping */
}


#total-price {
    font-size: 1.8rem; /* Larger total price */
    font-weight: bold;
    color: #d95f02;
    margin-top: 25px; /* More space above total */
    padding: 15px;
    background-color: #fffaf0;
    border-radius: 6px;
    text-align: center; /* Center the total price display */
    border: 1px dashed #f9a825;
    transition: background-color 0.3s ease; /* For potential JS animation */
}

/* Style for the custom pizza add to cart button specifically if needed, or rely on .add-to-cart-btn */
#pizza-customizer-form .add-to-cart-btn {
    display: block; /* Make it full width within the form */
    width: 100%;
    margin-top: 20px; /* More space above this button */
    padding: 15px 20px; /* Larger padding */
    font-size: 1.1rem;
}

/* Drinks Section Removed */

/* Cart & Order Summary */
#cart, #order-summary {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #d95f02;
    position: sticky;
    top: 20px;
}

/* Customer Details Form */
#customer-details {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#customer-form div {
    margin-bottom: 20px;
}

#customer-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #5f4c40;
    font-size: 1rem;
}

#customer-form input[type="text"],
#customer-form input[type="tel"],
#customer-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#customer-form textarea {
    resize: vertical;
    min-height: 80px;
}

#customer-form input:focus,
#customer-form textarea:focus {
    border-color: #d95f02;
    box-shadow: 0 0 0 3px rgba(217, 95, 2, 0.2);
    outline: none;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 25px;
}

.form-buttons .btn {
    flex: 1;
    padding: 12px 20px;
}

#back-to-cart-btn {
    background: #6c757d;
}

#back-to-cart-btn:hover {
    background: #5a6268;
}

#cart h3, #order-summary h3 {
    text-align: center;
    color: #8c4400;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #d95f02;
    padding-bottom: 10px;
}

#cart {
    background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
    border-left: 5px solid #d95f02;
}

#cart:empty::before {
    content: "🛒 Your cart is ready!";
    display: block;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

#cart-items li, #summary-items li {
    list-style: none;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    margin: 5px 0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

#cart-items li:hover, #summary-items li:hover {
    background: #e9ecef;
}

.item-info {
    flex: 1;
}

.item-info strong {
    color: #231f20;
    font-size: 1rem;
}

.item-info small {
    color: #666;
    font-size: 0.85rem;
}

.item-price {
    font-weight: bold;
    color: #d95f02;
    font-size: 1.1rem;
}

#cart-items li:last-child, #summary-items li:last-child {
    border-bottom: none;
}

#cart-total, #summary-total {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 20px;
    color: #d95f02;
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #d95f02;
    box-shadow: 0 2px 8px rgba(217, 95, 2, 0.2);
}

/* Contact Page */
#contact-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#contact-section #contact-info p { /* Specificity for contact info within its section */
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center; /* Center align contact info text */
}

#main-contact-form { /* Updated ID from HTML */
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: left;
}

#main-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#main-contact-form input[type="text"],
#main-contact-form input[type="email"],
#main-contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#main-contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* #contact-section #map-container has been removed as the map was removed from HTML */

/* Order Confirmation Page */
#order-confirmation {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    margin: 30px auto;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#order-confirmation h2 {
    color: #4CAF50; /* Green for success */
    font-size: 2.5rem;
    margin-bottom: 15px;
}

#order-confirmation p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#order-confirmation .order-details {
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed #d95f02;
    border-radius: 5px;
    background-color: #fffaf0; /* Light orange background for details */
    text-align: left;
}

#order-confirmation .order-details strong {
    color: #8c4400;
}

/* Footer */
footer {
    background: #4a3b31; /* Darkest brown for footer */
    color: #f0e9e0; /* Light beige text */
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
    background-color: #f9a825;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }

    #hero h2 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.3rem;
    }

    .pizza-grid, .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    header nav {
        position: relative;
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-buttons {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        gap: 10px;
    }

    .header-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: -6px;
        right: -6px;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #8c4400;
        margin-top: 10px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        padding: 20px 0;
    }

    header nav ul.show {
        display: flex;
    }

    header nav ul li {
        display: block;
        margin: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    header nav ul li:last-child {
        border-bottom: none;
    }

    header nav ul li a {
        display: block;
        padding: 15px 20px;
        color: #fff;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    header nav ul li a:hover {
        background-color: rgba(249, 168, 37, 0.1);
        color: #f9a825;
    }

    /* Logo adjustment for mobile */
    header .logo img {
        height: 100px;
    }

    /* Hero section mobile adjustments */
    #hero {
        padding: 60px 20px;
    }

    #hero h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    #hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    /* Grid layouts for mobile */
    .pizza-grid, .menu-grid, .drinks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Form adjustments */
    #pizza-customizer-form {
        padding: 20px 15px;
        margin: 0 10px;
    }

    #pizza-customizer-form .toppings-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #build-your-own {
        padding-left: 10px;
        padding-right: 10px;
        margin-top: 20px;
    }

    /* Button adjustments for touch */
    .btn, .add-to-cart-btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-height: 44px; /* Minimum touch target size */
    }

    /* Order confirmation mobile */
    #order-confirmation {
        margin: 20px 10px;
        padding: 20px 15px;
        max-width: none;
    }

    #order-confirmation h2 {
        font-size: 2rem;
    }

    /* Checkout Button Enhancement */
    #checkout-btn {
        background: linear-gradient(135deg, #d95f02 0%, #bf5700 100%);
        color: white;
        border: none;
        padding: 15px 30px;
        font-size: 1.1rem;
        font-weight: bold;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(217, 95, 2, 0.3);
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    #checkout-btn:hover {
        background: linear-gradient(135deg, #bf5700 0%, #a94400 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(217, 95, 2, 0.4);
    }
    
    #checkout-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(217, 95, 2, 0.3);
    }
    
    /* Cart and forms mobile */
    #cart, #order-summary, #main-contact-form {
        margin: 20px 10px;
        padding: 15px;
    }

    /* Section spacing */
    #home-section, #menu-section, #contact-section, #order-confirmation-page {
        padding: 20px 10px;
    }

    /* Footer mobile */
    footer {
        padding: 15px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .container {
        width: 100%;
        padding: 0 10px;
    }

    header .logo img {
        height: 80px;
    }

    #hero h2 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 1rem;
    }

    #hero {
        padding: 40px 15px;
    }

    /* Even smaller form padding */
    #pizza-customizer-form {
        padding: 15px 10px;
    }

    /* Smaller headings */
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.5rem;
    }

    #order-confirmation h2 {
        font-size: 1.8rem;
    }

    /* Touch-friendly inputs */
    #pizza-customizer-form select,
    #pizza-customizer-form input[type="number"],
    #main-contact-form input[type="text"],
    #main-contact-form input[type="email"],
    #main-contact-form textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Better spacing for small screens */
    #pizza-customizer-form > div {
        margin-bottom: 20px;
    }

    /* Stack toppings in single column */
    #pizza-customizer-form .toppings-list {
        grid-template-columns: 1fr;
    }
}

/* Action Buttons Styling */
.action-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d95f02 0%, #bf5700 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 95, 2, 0.3);
    border: none;
    cursor: pointer;
    min-width: 160px;
    text-align: center;
    margin: 0 8px;
}

.action-btn:hover {
    background: linear-gradient(135deg, #bf5700 0%, #a94400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 95, 2, 0.4);
    text-decoration: none;
    color: white;
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(217, 95, 2, 0.3);
}

/* Error Highlighting for Form Fields */
.error-highlight {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Toggle Switch Styling */
.build-your-own-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-weight: bold;
    color: #5f4c40;
    font-size: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #d95f02 0%, #bf5700 100%);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Disabled state for pizza builder */
#pizza-customizer-form.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(50%);
}

#pizza-customizer-form.disabled * {
    cursor: not-allowed;
}

/* Mobile responsive for toggle */
@media (max-width: 768px) {
    .build-your-own-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .toggle-container {
        width: 100%;
        justify-content: space-between;
    }

    .toggle-label {
        font-size: 0.9rem;
    }
}

/* Confirmation Actions Layout */
.confirmation-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* Order Tracking Section */
.order-tracking-section {
    background: linear-gradient(135deg, #fff 0%, #f9f5f0 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e8e3dd;
}

.order-tracking-section h3 {
    color: #8c4400;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.order-tracking-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d95f02, #f9a825);
    border-radius: 2px;
}

.tracking-input-container {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: center;
}

.tracking-input-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #5f4c40;
    font-size: 1.1rem;
}

#order-reference-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
    margin-bottom: 15px;
}

#order-reference-input:focus {
    border-color: #d95f02;
    box-shadow: 0 0 0 3px rgba(217, 95, 2, 0.2);
    outline: none;
}

#track-order-section-btn {
    background: linear-gradient(135deg, #d95f02 0%, #bf5700 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 95, 2, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#track-order-section-btn:hover {
    background: linear-gradient(135deg, #bf5700 0%, #a94400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 95, 2, 0.4);
}

#track-order-section-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(217, 95, 2, 0.3);
}

/* Order Display Area */
.order-display-area {
    max-width: 700px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e8e3dd;
}

.order-display-area h4 {
    color: #8c4400;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.order-meta p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.order-meta strong {
    color: #d95f02;
    font-weight: 600;
}

.tracked-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tracked-order-item:last-child {
    border-bottom: none;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-name {
    font-weight: 500;
    color: #231f20;
    font-size: 1rem;
}

.item-quantity {
    color: #666;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
}

.item-price {
    font-weight: bold;
    color: #d95f02;
    font-size: 1rem;
}

.order-total {
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #d95f02;
    font-size: 1.2rem;
    color: #8c4400;
}

/* Status Timeline */
.status-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-circle.completed {
    background: #28a745;
}

.step-circle.current {
    background: #d95f02;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 95, 2, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(217, 95, 2, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 95, 2, 0); }
}

.step-label {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.timeline-step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

.timeline-step.current .step-label {
    color: #d95f02;
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-preparing { background: #cce5ff; color: #004085; }
.status-ready { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-error { background: #f8d7da; color: #721c24; }

/* Responsive adjustments for tracking section */
@media (max-width: 768px) {
    .order-tracking-section {
        padding: 20px;
        margin: 20px 10px;
    }

    .order-tracking-section h3 {
        font-size: 1.8rem;
    }

    .tracking-input-container {
        max-width: 100%;
    }

    #order-reference-input {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    #track-order-section-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .order-display-area {
        padding: 20px;
    }

    .tracked-order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .item-details {
        width: 100%;
        justify-content: space-between;
    }

    .status-timeline {
        flex-direction: column;
        gap: 20px;
    }

    .status-timeline::before {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        right: auto;
    }

    .timeline-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .step-circle {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .step-label {
        text-align: left;
        font-size: 0.9rem;
    }
}

/* Scroll Animation Classes */
.hidden-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Optimize for animations */
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Order Tracking Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h2 {
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
    color: #d95f02;
    font-size: 1.8rem;
    text-align: center;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.close:hover {
    color: #d95f02;
}

.tracking-form {
    padding: 20px;
    text-align: center;
}

.tracking-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #5f4c40;
    font-size: 1rem;
}

#tracking-order-id {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#tracking-order-id:focus {
    border-color: #d95f02;
    box-shadow: 0 0 0 3px rgba(217, 95, 2, 0.2);
    outline: none;
}

#submit-tracking {
    background: linear-gradient(135deg, #d95f02 0%, #bf5700 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 95, 2, 0.3);
}

#submit-tracking:hover {
    background: linear-gradient(135deg, #bf5700 0%, #a94400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 95, 2, 0.4);
}

#tracking-result {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: left;
}

#tracking-result h3 {
    color: #8c4400;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
}

.tracking-info p {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tracking-info p:last-child {
    border-bottom: none;
}

.tracking-info strong {
    color: #d95f02;
    font-weight: 600;
}

/* Status badges in tracking */
.status-pending, .status-preparing, .status-ready, .status-delivered {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-preparing { background: #cce5ff; color: #004085; }
.status-ready { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }

/* Responsive adjustments for tracking modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        padding: 15px;
    }

    .tracking-form {
        padding: 15px;
    }

    #tracking-order-id {
        padding: 10px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    #submit-tracking {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    #tracking-result {
        padding: 15px;
    }
}

/* Order Tracking Section */
#order-tracking {
    background: linear-gradient(135deg, #fff 0%, #f9f5f0 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e8e3dd;
}

#order-tracking h3 {
    color: #8c4400;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

#order-tracking h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d95f02, #f9a825);
    border-radius: 2px;
}

.tracking-form {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: center;
}

.tracking-form div {
    margin-bottom: 20px;
}

.tracking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #5f4c40;
    font-size: 1.1rem;
}

#order-id-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

#order-id-input:focus {
    border-color: #d95f02;
    box-shadow: 0 0 0 3px rgba(217, 95, 2, 0.2);
    outline: none;
}

#track-order-btn {
    background: linear-gradient(135deg, #d95f02 0%, #bf5700 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 95, 2, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#track-order-btn:hover {
    background: linear-gradient(135deg, #bf5700 0%, #a94400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 95, 2, 0.4);
}

#track-order-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(217, 95, 2, 0.3);
}

#order-status-display {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e8e3dd;
}

#order-status-display h4 {
    color: #8c4400;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

#status-info {
    line-height: 1.6;
}

#status-info p {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

#status-info p:last-child {
    border-bottom: none;
}

#status-info strong {
    color: #d95f02;
    font-weight: 600;
}

/* Status badges in tracking */
.status-pending, .status-preparing, .status-ready, .status-delivered {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-preparing { background: #cce5ff; color: #004085; }
.status-ready { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }

/* Responsive adjustments for tracking */
@media (max-width: 768px) {
    #order-tracking {
        padding: 20px;
        margin: 20px 10px;
    }

    #order-tracking h3 {
        font-size: 1.8rem;
    }

    .tracking-form {
        max-width: 100%;
    }

    #order-id-input {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    #track-order-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    #order-status-display {
        padding: 20px;
    }

    #order-status-display h4 {
        font-size: 1.3rem;
    }
}

/* Track Order Button Container */
.track-order-button-container {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #fff 0%, #f9f5f0 100%);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.track-order-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    font-size: 1.2rem;
    padding: 15px 30px;
    min-width: 200px;
}

.track-order-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
}

/* Cart Button Container */
#cart-button-container {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 999;
}

.cart-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 50px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.cart-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid white;
    min-width: 24px;
}

.cart-badge.hidden {
    display: none;
}

/* Modal Enhancements */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.modal-content h2 {
    padding: 25px;
    margin: 0;
    border-bottom: 2px solid #f0f0f0;
    color: #d95f02;
    font-size: 1.8rem;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #f9f5f0 100%);
    border-radius: 15px 15px 0 0;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    z-index: 1001;
}

.close:hover {
    color: #d95f02;
}

/* Track Order Modal Specific */
#track-order-modal .tracking-form {
    padding: 30px;
    text-align: center;
}

#track-order-modal .tracking-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #5f4c40;
    font-size: 1.1rem;
}

#tracking-order-id {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#tracking-order-id:focus {
    border-color: #d95f02;
    box-shadow: 0 0 0 3px rgba(217, 95, 2, 0.2);
    outline: none;
}

#submit-tracking {
    background: linear-gradient(135deg, #d95f02 0%, #bf5700 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 95, 2, 0.3);
}

#submit-tracking:hover {
    background: linear-gradient(135deg, #bf5700 0%, #a94400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 95, 2, 0.4);
}

#tracking-result {
    padding: 30px;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
}

#tracking-result h3 {
    color: #8c4400;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.tracking-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tracking-info p {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-info p:last-child {
    border-bottom: none;
}

.tracking-info strong {
    color: #d95f02;
    font-weight: 600;
}

/* Cart Modal Specific */
#cart-modal-content {
    padding: 30px;
}

#cart-modal-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.cart-modal-item:hover {
    background: #f0f0f0;
}

.cart-modal-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    color: #231f20;
    margin-bottom: 5px;
}

.cart-item-details {
    font-size: 0.9rem;
    color: #666;
}

.cart-item-price {
    font-weight: bold;
    color: #d95f02;
    font-size: 1.1rem;
}

#cart-modal-total {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #d95f02;
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #d95f02;
    margin-bottom: 20px;
}

.cart-modal-actions {
    text-align: center;
}

#cart-modal-checkout {
    background: linear-gradient(135deg, #d95f02 0%, #bf5700 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 95, 2, 0.3);
    min-width: 200px;
}

#cart-modal-checkout:hover {
    background: linear-gradient(135deg, #bf5700 0%, #a94400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 95, 2, 0.4);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-preparing {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #74b9ff;
}

.status-ready {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #00cec9;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
    border: 1px solid #00b894;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #e17055;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    #cart-button-container {
        right: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    
    .cart-btn {
        padding: 10px 16px;
        font-size: 1rem;
    }
    
    .track-order-btn {
        font-size: 1.1rem;
        padding: 12px 25px;
        min-width: 180px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
        padding: 20px;
    }
    
    #track-order-modal .tracking-form,
    #cart-modal-content {
        padding: 20px;
    }
    
    #tracking-order-id {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    #submit-tracking,
    #cart-modal-checkout {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .cart-modal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-price {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .track-order-button-container {
        padding: 20px 10px;
        margin: 15px 0;
    }
    
    .track-order-btn {
        font-size: 1rem;
        padding: 10px 20px;
        min-width: 160px;
    }
    
    .cart-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
        padding: 15px;
    }
    
    #cart-modal-total {
        font-size: 1.3rem;
        padding: 12px;
    }
}

/* Cart Item Actions */
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.remove-item-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.remove-item-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.remove-item-btn:active {
    transform: translateY(0);
}

/* Mobile responsive for cart items */
@media (max-width: 768px) {
    .cart-modal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .remove-item-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* Floating Action Buttons */
#floating-action-buttons {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(217, 95, 2, 0.3);
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(217, 95, 2, 0.4);
}

.floating-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 15px rgba(217, 95, 2, 0.3);
}

.floating-btn.track-order-btn {
    background: linear-gradient(135deg, #d95f02 0%, #bf5700 100%);
    color: white;
}

.floating-btn.track-order-btn:hover {
    background: linear-gradient(135deg, #bf5700 0%, #a94400 100%);
}

.floating-btn.cart-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.floating-btn.cart-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Floating Action Buttons - Mobile Responsive */
@media (max-width: 768px) {
    #floating-action-buttons {
        right: 15px;
        gap: 12px;
    }

    .floating-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    #floating-action-buttons {
        right: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        flex-direction: row;
        gap: 10px;
    }

    .floating-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
        min-width: 140px;
    }
}