/* ===== MENU PAGE SPECIFIC STYLES ===== */
:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ===== MENU LAYOUT ===== */
.menu-items-container {
    padding: 2rem 0;
}

.menu-categories-filter {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.menu-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== MENU ITEMS GRID - LARGER CARDS ===== */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.menu-category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ===== MENU ITEM CARDS - IMPROVED LAYOUT ===== */
.menu-item-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: 220px;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.menu-item-card.added-to-cart {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

/* ===== ITEM CONTENT - LEFT SIDE (70% width) ===== */
.menu-item-card .item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.menu-item-card .item-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.menu-item-card .item-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.menu-item-card .item-ingredients {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.menu-item-card .item-ingredients strong {
    color: var(--secondary-color);
}

/* ===== ITEM FOOTER ===== */
.menu-item-card .item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.menu-item-card .item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.menu-item-card .add-to-cart-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-item-card .add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== ITEM IMAGE - RIGHT SIDE (30% width) ===== */
.menu-item-card .item-image {
    position: relative;
    width: 150px;
    height: 100%;
    min-width: 150px;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
    order: 2;
}

.menu-item-card .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .item-image img {
    transform: scale(1.08);
}

.menu-item-card .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ===== ITEM BADGES ===== */
.menu-item-card .item-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.menu-item-card .badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
}

.menu-item-card .spicy-badge {
    background: var(--primary-color);
}

.menu-item-card .veg-badge {
    background: var(--success-color);
}

/* ===== QUICK ADD BUTTON - HIDDEN ===== */
.menu-item-card .quick-add-btn {
    display: none !important;
}

/* ===== SPECIAL OFFERS ===== */
.special-offers {
    margin-top: 3rem;
}

.offer-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e67e22 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.offer-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.offer-content p {
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.offer-content small {
    opacity: 0.8;
}

/* ===== EMPTY STATES ===== */
.no-items-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.no-items-message i {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-items-message h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.no-items-message p {
    color: var(--text-light);
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: var(--success-color);
    color: white;
}

.notification.error {
    background: var(--primary-color);
    color: white;
}

.notification button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .menu-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-categories-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .menu-stats {
        justify-content: center;
    }
    
    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .menu-item-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .menu-item-card .item-image {
        width: 100%;
        height: 200px;
        order: -1;
        min-width: unset;
    }
    
    .menu-item-card .item-content {
        padding: 1.25rem;
    }
    
    .offer-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-item-card .item-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .menu-item-card .add-to-cart-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        justify-content: center;
    }
    
    .menu-item-card .item-image {
        height: 180px;
    }
    
    .menu-item-card .item-content {
        padding: 1rem;
    }
    
    .menu-item-card .item-name {
        font-size: 1.1rem;
    }
}

/* ===== LOADING STATES ===== */
.menu-item-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.menu-item-card.loading .add-to-cart-btn {
    background: var(--text-light);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .menu-item-card,
    .filter-btn {
        transition: none;
    }
    
    .menu-item-card:hover {
        transform: none;
    }
}

/* ===== FOCUS STATES ===== */
.filter-btn:focus,
.add-to-cart-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}