/* ============================================== */
/* TAQUERIA TEPEQUE - COMPLETE CONSOLIDATED STYLES */
/* ============================================== */

:root {
    --primary: #C8102E;
    --secondary: #006341;
    --accent: #F6BE00;
    --light: #F5F5F5;
    --dark: #333333;
    --text: #222222;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: rgb(32 57 27);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================== */
/* HEADER & NAVIGATION - UPDATED */
/* ============================================== */

header {
    background: linear-gradient(rgb(43 42 31 / 83%), rgb(21 54 10)), 
                url(../images/header.jpg),
                linear-gradient(135deg, var(--secondary) 0%, #004d2e 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    min-height: 70px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
    margin-right: 40px;
}

.logo h1 {
    font-size: 2.2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap; /* Prevent line break */
}

.logo span {
    color: var(--accent);
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

/* Make logo link clickable for home behavior */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}

.logo-link:hover h1 {
    color: var(--accent);
    transition: color 0.3s ease;
}

.logo-link:hover span {
    color: white;
}

/* Mobile Menu Button */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1001;
}

.header__burger i {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header__burger.active i:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.header__burger.active i:nth-child(2) {
    opacity: 0;
}

.header__burger.active i:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.header__burger:hover i {
    background-color: var(--accent);
}

/* Navigation - UPDATED FOR CONSISTENT ALIGNMENT */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px; /* Reduced gap for better alignment */
    justify-content: flex-end;
    align-items: center; /* Vertically center all items */
    margin: 0;
    padding: 0;
}

/* Standard navigation links (Menu, Contact) */
nav ul li:not(:last-child) a:not(.doordash-nav-btn) {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px; /* Fixed height for alignment */
    line-height: 1;
}

nav ul li:not(:last-child) a:not(.doordash-nav-btn):hover {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.1);
}

/* DoorDash button in navigation - UPDATED FOR ALIGNMENT */
.doordash-nav-btn {
    background-color: white; /* Force white text */
    color: #FF3008 !important; /* DoorDash red */
    padding: 10px 18px !important; /* Adjusted padding for alignment */
    border-radius: 20px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Center content */
    gap: 8px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-size: 1.1rem !important; /* Match other nav items */
    /* height: 44px !important; Match height of other nav items */
    line-height: 1 !important;
    border: none !important;
    cursor: pointer !important;
    min-width: 120px; /* Ensure consistent width */
    text-align: center;
}

.doordash-nav-btn:hover {
    background-color: #E02A07 !important; /* Darker DoorDash red */
    color: white !important; /* DoorDash red */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 48, 8, 0.3) !important;
}

.doordash-nav-btn i {
    font-size: 1rem !important;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px; /* Match nav item height */
    width: 44px; /* Fixed width for consistent spacing */
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ============================================== */
/* HERO SECTION */
/* ============================================== */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), 
                url('../images/header3.jpg'),
                linear-gradient(135deg, var(--secondary) 0%, #004d2e 100%);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--accent);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 3px solid var(--accent);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================== */
/* MENU SECTION */
/* ============================================== */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent);
}

/* Menu Categories */
.menu-category {
    margin-bottom: 3rem;
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.category-header {
    background-color: var(--secondary);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-header:not(.active):hover {
    background-color: #004d2e;
}

.category-header.active {
    background-color: var(--accent);
}

.category-header.active:hover {
    background-color: #cea501;
}

.category-header h3 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 1.5rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.category-header.active .toggle-icon {
    transform: rotate(180deg);
}

.category-description {
    padding: 15px 20px;
    background-color: rgba(0, 99, 65, 0.1);
    font-style: italic;
    color: #555;
    border-bottom: 1px solid #eee;
}

.menu-items {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.menu-items.collapsed {
    display: none;
}

/* Menu Items */
.menu-item {
    border: 1px solid #eee;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.item-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.item-details {
    padding: 20px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.item-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
}

.item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.add-to-cart {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart:hover {
    background-color: #a50d26;
}

.add-to-cart.added {
    background-color: var(--secondary);
}

/* ============================================== */
/* ABOUT SECTION - UPDATED */
/* ============================================== */

.about-section {
    background-color: lightblue;
    padding: 4rem 0;
}

.about-content {
    background: lightblue;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: black;
}

/* ============================================== */
/* SHOPPING CART */
/* ============================================== */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background-color: var(--secondary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-cart:hover {
    transform: scale(1.2);
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #ddd;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    background-color: #ffebee;
    color: #d32f2f;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.remove-item:hover {
    background-color: #ffcdd2;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #eee;
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-btn, .uber-eats-btn {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.checkout-btn {
    background-color: var(--primary);
    color: white;
}

.checkout-btn:hover {
    background-color: #a50d26;
    transform: translateY(-2px);
}

.uber-eats-btn {
    background-color: var(--dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.uber-eats-btn:hover {
    background-color: #444;
    transform: translateY(-2px);
}

/* ============================================== */
/* FOOTER */
/* ============================================== */

footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-section p, .footer-section a {
    color: #ccc;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-section i {
    margin-right: 10px;
    color: var(--accent);
    width: 20px;
}

/* DoorDash link in footer */
footer .footer-section a[href*="doordash"] {
    color: #FF3008;
    font-weight: 600;
}

footer .footer-section a[href*="doordash"]:hover {
    color: #E02A07;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* ============================================== */
/* OVERLAY */
/* ============================================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

.empty-cart {
    text-align: center;
    color: #777;
    padding: 40px 20px;
    font-size: 1.1rem;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ddd;
}

/* ============================================== */
/* IMAGE UPLOAD MODAL */
/* ============================================== */

.edit-image-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    display: none;
}

.edit-image-btn:hover {
    background-color: #004d2e;
}

body.admin-mode .edit-image-btn {
    display: flex;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-upload-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: var(--secondary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
}

/* ============================================== */
/* CHECKOUT MODAL */
/* ============================================== */

.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.checkout-modal.open {
    opacity: 1;
    visibility: visible;
}

.checkout-modal .modal-content {
    background: white;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================== */
/* IMAGE UPLOAD MODAL - DETAILED STYLES */
/* ============================================== */

.image-upload-modal .modal-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
}

.upload-preview {
    margin-bottom: 25px;
    text-align: center;
    flex-shrink: 0;
}

#image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    border: 2px dashed #ddd;
    padding: 10px;
    object-fit: contain;
    background-color: #f9f9f9;
}

.upload-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="file"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 99, 65, 0.1);
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Price input styling */
.price-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 1rem;
    z-index: 1;
}

#item-price-edit {
    width: 100%;
    padding: 12px 12px 12px 35px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
}

#item-price-edit:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 99, 65, 0.1);
}

/* File input styling */
.form-group input[type="file"] {
    padding: 10px;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: var(--secondary);
    background-color: rgba(0, 99, 65, 0.05);
}

.file-info,
.price-info {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.file-info {
    color: #777;
}

.price-info {
    color: var(--secondary);
}

/* Upload Actions */
.upload-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.save-btn, .cancel-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    min-height: 48px;
}

.save-btn {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 99, 65, 0.2);
}

.save-btn:hover:not(:disabled) {
    background-color: #004d2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 99, 65, 0.3);
}

.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.cancel-btn {
    background-color: #f0f0f0;
    color: var(--dark);
    border: 2px solid #ddd;
}

.cancel-btn:hover {
    background-color: #ddd;
    border-color: #bbb;
}

/* Upload Status Messages */
.upload-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.upload-status .success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.upload-status .error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f44336;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.upload-status .info {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.upload-status i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.upload-status .success i {
    color: #4caf50;
}

.upload-status .error i {
    color: #f44336;
}

.upload-status .info i {
    color: #2196f3;
}

.upload-status small {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================== */
/* SMOOTH SCROLLING */
/* ============================================== */

html {
    scroll-behavior: smooth;
}

/* Ensure proper spacing when scrolling to sections */
section {
    scroll-margin-top: 80px;
}

/* ============================================== */
/* RESPONSIVE DESIGN - MOBILE */
/* ============================================== */

@media (max-width: 992px) {
    .menu-items {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    /* Header layout for mobile */
    .header-container {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        flex-wrap: nowrap;
    }
    
    /* Logo adjustments for mobile */
    .logo {
        flex: 0 0 auto;
        margin-right: 0;
    }
    
    .logo h1 {
        font-size: 1.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
    
    /* Show burger menu */
    .header__burger {
        display: flex !important;
        order: 2;
        margin-left: auto;
        margin-right: 20px;
    }
    
    /* Cart icon positioning */
    .cart-icon {
        order: 3;
        margin-left: 0;
        width: auto;
    }
    
    /* Logo stays on left */
    .logo {
        order: 1;
        margin-right: 0;
    }
    
    /* Mobile Navigation */
    #main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-top: 2px solid var(--accent);
    }
    
    #main-nav.active {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        height: auto !important; /* Reset height for mobile */
        line-height: 1.5 !important;
    }
    
    /* Specific styling for DoorDash button on mobile */
    .doordash-nav-btn {
        background: transparent;
        padding: 15px 20px !important;
        justify-content: flex-start !important;
        /*border-radius: 0 !important;*/
        height: auto !important;
        margin: 0 !important;
        min-width: auto !important;
        display: block !important;
    }
    
    nav a:last-child {
        border-bottom: none;
    }
    
    /* Hero section */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
        padding: 0 15px;
    }
    
    /* Cart sidebar for mobile */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        height: calc(100vh - 20px);
        height: calc(100vh - env(safe-area-inset-bottom));
    }
    
    .cart-footer {
        padding-bottom: 20px !important;
        padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }
    
    .cart-items {
        max-height: calc(100vh - 200px);
    }
    
    /* Menu items */
    .menu-items {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-header h3 {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Overlay */
    .overlay.active {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(3px);
        z-index: 998;
    }
    
    /* Body scroll prevention */
    body.menu-open, body.cart-open {
        overflow: hidden;
    }
    
    /* Image upload modal responsive fixes */
    .image-upload-modal .modal-body {
        flex-direction: column;
        padding: 15px;
    }
    
    .upload-preview {
        margin-bottom: 20px;
    }
    
    #image-preview {
        max-height: 250px;
    }
    
    .upload-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .save-btn, .cancel-btn {
        width: 100%;
        padding: 16px 20px;
    }
    
    /* Checkout modal responsive */
    .checkout-modal .modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .checkout-steps::before {
        left: 5%;
        right: 5%;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .btn-prev, .btn-next, .btn-submit {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .item-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .item-price {
        align-self: flex-start;
    }
    
    .cart-header h3 {
        font-size: 1.3rem;
    }
    
    .cart-footer {
        padding-bottom: 25px !important;
        padding-bottom: max(25px, env(safe-area-inset-bottom)) !important;
    }
    
    .cart-actions {
        gap: 12px;
    }
    
    .checkout-btn, .uber-eats-btn {
        padding: 16px !important;
        font-size: 1rem !important;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        max-width: 180px;
    }
    
    .logo-icon {
        font-size: 1.8rem;
    }
    
    #main-nav {
        top: 60px;
    }
    
    .header__burger {
        width: 25px;
        height: 20px;
    }
    
    .header-container {
        padding: 8px 10px;
    }
    
    .doordash-nav-btn {
        font-size: 0.9rem;
        background: transparent;
        padding: 12px 20px !important;
        display: block !important;
        justify-content: flex-start !important;
        /*border-radius: 0 !important;*/
        height: auto !important;
        margin: 0 !important;
        min-width: auto !important;
        display: block !important;
    }
    
    /* Extra small checkout adjustments */
    .checkout-modal .modal-body {
        padding: 15px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .checkout-step h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
        max-width: 180px;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
}

/* Extra small image upload modal */
@media (max-width: 480px) {
    .image-upload-modal .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    #image-preview {
        max-height: 200px;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="file"],
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    #item-price-edit {
        padding: 10px 10px 10px 30px;
    }
}

/* Extra safety for mobile bottom buttons */
@media (max-height: 700px) {
    .cart-sidebar {
        height: calc(100vh - 40px);
    }
    
    .cart-items {
        max-height: calc(100vh - 250px);
    }
    
    .cart-footer {
        padding-top: 15px;
        padding-bottom: 30px !important;
    }
}

/* Landscape mode fixes */
@media (max-width: 768px) and (orientation: landscape) {
    #main-nav.active {
        max-height: 300px;
    }
    
    .cart-sidebar {
        height: 100vh;
    }
    
    .cart-items {
        max-height: 60vh;
    }
}

/* ============================================== */
/* ANIMATIONS */
/* ============================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form validation styling */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ffcdd2;
}

.form-group input:invalid:focus,
.form-group textarea:invalid:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Make file input look better */
.form-group input[type="file"]::-webkit-file-upload-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #004d2e;
}

.form-group input[type="file"]::file-selector-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: #004d2e;
}

/* ============================================== */
/* PRINT STYLES */
/* ============================================== */

@media print {
    header, .cart-sidebar, .overlay, .cta-button, .add-to-cart, 
    .cart-icon, footer, .uber-eats-btn, .header__burger {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
        padding: 1rem 0 !important;
    }
    
    .hero h2, .hero p {
        color: black !important;
        text-shadow: none !important;
    }
    
    .menu-category {
        break-inside: avoid;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ============================================== */
/* COLLAPSE ALL BUTTON - MINIMAL ADDITIONS */
/* ============================================== */

.menu-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    position: relative;
}

.menu-title-container .section-title {
    margin-bottom: 0;
}

.collapse-all-btn {
    background: var(--secondary);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.collapse-all-btn:hover {
    background: #ffd700;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/*.collapse-all-btn:active {*/
/*    transform: translateY(0) scale(0.98);*/
/*}*/

.collapse-all-btn i {
    transition: transform 0.3s ease;
    transform: rotate(180deg); /* Start facing UP (↑) - ready to collapse */
}

/* When button has expand-mode class, rotate icon to face DOWN */
.collapse-all-btn.expand-mode i {
    transform: rotate(0deg); /* Face DOWN (↓) - ready to expand */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-title-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .collapse-all-btn {
        order: 2;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .menu-title-container .section-title {
        order: 1;
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .collapse-all-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}


/* Add to the existing upload form styles */

/* Name info text */
.name-info {
    display: block;
    margin-top: 6px;
    color: var(--secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Validation styling */
.form-group input:invalid {
    border-color: #ffcdd2;
    background-color: #fff8f8;
}

.form-group input:valid {
    border-color: #c8e6c9;
    background-color: #f8fff8;
}

.form-group input:focus:invalid {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-group input:focus:valid {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 99, 65, 0.1);
}

/* Required field indicator */
.form-group label[for*="edit"]:after {
    content: " *";
    color: var(--primary);
}