/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Homepage Styles */
.homepage {
    padding: 2rem 0;
    min-height: 100vh;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 1rem;
}

.category-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Menu Header */
.menu-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.back-button:hover {
    background: #c0392b;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: #007bff;
    color: white;
}

.view-btn:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

.language-selector {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.language-text {
    font-weight: 700;
}

.btn-cart {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cart:hover {
    background: #2980b9;
}

.btn-waiter-header {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-waiter-header:hover {
    background: #229954;
}


/* Category Scroll */
.category-scroll {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-scroll-container {
    display: flex;
    gap: 12px;
    padding: 0 1rem;
    min-width: max-content;
}

.category-scroll-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-scroll-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.category-scroll-item.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.category-scroll-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.category-scroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-scroll-item span {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}



/* Category Title Section */
.category-title-section {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-align: center;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-grid.list-view {
    grid-template-columns: 1fr;
    gap: 0;
}

.menu-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
}

/* List View Styles */
.menu-item.list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0.5rem;
}

.menu-item.list-item:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.menu-item.list-item .item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.menu-item.list-item .item-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-item.list-item .item-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.menu-item.list-item .item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.25rem;
    text-align: right;
}

.menu-item.list-item .item-description {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0;
    line-height: 1.3;
}

.menu-item.list-item .item-actions {
    margin-left: 1rem;
    flex-shrink: 0;
}

.menu-item.list-item .btn-add {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 100px;
}

.item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.item-content {
    padding: 1.5rem;
}

.item-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.item-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 1rem;
    text-align: right;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-add {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-add:hover {
    background: #229954;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #000;
}

#modalImage {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Table Modal */
.table-modal-content {
    text-align: center;
}

.table-modal-content h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.table-modal-content p {
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.table-modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.table-modal-content input:focus {
    outline: none;
    border-color: #007bff;
}

.table-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-confirm {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-confirm:hover {
    background: #0056b3;
}

/* Cart Modal */
.cart-modal-content {
    max-width: 500px;
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.cart-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Notification animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

.cart-header h3 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.cart-header h3::before {
    content: "🛒";
    font-size: 1.2rem;
}

.cart-header .close {
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    font-weight: bold;
}

.cart-header .close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
    color: white;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    gap: 15px;
    position: relative;
}

.cart-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item:hover::before {
    opacity: 1;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: left;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.quantity {
    font-weight: 700;
    color: #2c3e50;
    min-width: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.cart-footer {
    border-top: 2px solid #e2e8f0;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #e9ecef);
    border-radius: 0 0 20px 20px;
    position: relative;
}

.cart-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.cart-total {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 700;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    position: relative;
}

.cart-total::before {
    content: '💰';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-confirm-cart {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-confirm-cart:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-confirm-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-confirm-cart:hover::before {
    left: 100%;
}

.btn-confirm-cart:active {
    transform: translateY(0);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-cart i {
    font-size: 3rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .category-overlay h3 {
        font-size: 0.9rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .menu-item {
        display: flex;
        flex-direction: column;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
        height: 100%;
    }
    
    .menu-item .item-image {
        position: relative;
        width: 100%;
        height: 120px;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .menu-item .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .menu-item .item-content {
        padding: 0.75rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .menu-item .item-content h3 {
        font-size: 0.9rem;
        font-weight: 600;
        color: #2c3e50;
        margin: 0 0 0.4rem 0;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .menu-item .item-description {
        font-size: 0.75rem;
        color: #7f8c8d;
        margin: 0 0 0.5rem 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1;
    }
    
    .menu-item .item-price {
        font-size: 1rem;
        font-weight: 700;
        color: #e74c3c;
        margin: 0 0 0.5rem 0;
        text-align: right;
    }
    
    .menu-item .item-actions {
        margin-top: auto;
    }
    
    .menu-item .btn-add {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.8rem;
        font-weight: 600;
        border-radius: 8px;
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .menu-item .btn-add:hover {
        background: linear-gradient(135deg, #2980b9, #1f618d);
        transform: translateY(-1px);
    }
    
    .menu-item .zoom-icon {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .menu-item .item-image:hover .zoom-icon {
        opacity: 1;
    }
    
    .menu-grid.list-view {
        grid-template-columns: 1fr;
    }
    
    .menu-item.list-item {
        padding: 1.2rem;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
        margin-bottom: 1rem;
        min-height: 120px;
        width: 100%;
    }
    
    .menu-item.list-item .item-image {
        width: 100px;
        height: 100px;
        margin-right: 1.2rem;
        margin-bottom: 0;
        flex-shrink: 0;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }
    
    .menu-item.list-item .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .menu-item.list-item .item-content {
        flex: 1;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100px;
    }
    
    .menu-item.list-item .item-content h3 {
        font-size: 1.2rem;
        font-weight: 600;
        color: #2c3e50;
        margin: 0 0 0.4rem 0;
        line-height: 1.3;
    }
    
    .menu-item.list-item .item-price {
        font-size: 1.3rem;
        font-weight: 700;
        color: #e74c3c;
        margin: 0 0 0.4rem 0;
        text-align: left;
    }
    
    .menu-item.list-item .item-description {
        font-size: 0.95rem;
        color: #7f8c8d;
        margin: 0 0 0.6rem 0;
        line-height: 1.4;
        flex: 1;
    }
    
    .menu-item.list-item .item-actions {
        margin-left: auto;
        margin-top: auto;
        flex-shrink: 0;
        align-self: flex-end;
    }
    
    .menu-item.list-item .btn-add {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 10px;
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-width: 120px;
        white-space: nowrap;
    }
    
    .menu-item.list-item .btn-add:hover {
        background: linear-gradient(135deg, #2980b9, #1f618d);
        transform: translateY(-1px);
    }
    
    .menu-item.list-item .zoom-icon {
        position: absolute;
        top: 0.6rem;
        right: 0.6rem;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .menu-item.list-item .item-image:hover .zoom-icon {
        opacity: 1;
    }
    
    .menu-header {
        padding: 0.75rem 0;
    }
    
    .menu-header-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .back-button {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .header-actions {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .view-toggle {
        order: -1;
        margin-right: auto;
    }
    
    .btn-cart, .btn-waiter-header {
        padding: 8px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .language-selector {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .category-scroll-container {
        gap: 8px;
        padding: 0 0.5rem;
    }
    
    .category-scroll-item {
        min-width: 70px;
        padding: 8px 12px;
    }
    
    .category-scroll-item span {
        font-size: 0.65rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .category-overlay h3 {
        font-size: 0.8rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 0.25rem;
    }
    
    .menu-item {
        min-height: 200px;
    }
    
    .menu-item .item-image {
        height: 100px;
    }
    
    .menu-item .item-content {
        padding: 0.5rem;
    }
    
    .menu-item .item-content h3 {
        font-size: 0.8rem;
        margin: 0 0 0.3rem 0;
    }
    
    .menu-item .item-description {
        font-size: 0.7rem;
        margin: 0 0 0.4rem 0;
    }
    
    .menu-item .item-price {
        font-size: 0.9rem;
        margin: 0 0 0.4rem 0;
    }
    
    .menu-item .btn-add {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
    
    .menu-grid.list-view {
        grid-template-columns: 1fr;
    }
    
    .menu-item.list-item {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
        margin-bottom: 0.8rem;
        min-height: 100px;
        width: 100%;
    }
    
    .menu-item.list-item .item-image {
        width: 80px;
        height: 80px;
        margin-right: 1rem;
        margin-bottom: 0;
        flex-shrink: 0;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
    }
    
    .menu-item.list-item .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .menu-item.list-item .item-content {
        flex: 1;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 80px;
    }
    
    .menu-item.list-item .item-content h3 {
        font-size: 1rem;
        font-weight: 600;
        color: #2c3e50;
        margin: 0 0 0.3rem 0;
        line-height: 1.3;
    }
    
    .menu-item.list-item .item-price {
        font-size: 1.1rem;
        font-weight: 700;
        color: #e74c3c;
        margin: 0 0 0.3rem 0;
        text-align: left;
    }
    
    .menu-item.list-item .item-description {
        font-size: 0.85rem;
        color: #7f8c8d;
        margin: 0 0 0.5rem 0;
        line-height: 1.4;
        flex: 1;
    }
    
    .menu-item.list-item .item-actions {
        margin-left: auto;
        margin-top: auto;
        flex-shrink: 0;
        align-self: flex-end;
    }
    
    .menu-item.list-item .btn-add {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        font-weight: 600;
        border-radius: 8px;
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        min-width: 90px;
        white-space: nowrap;
    }
    
    .menu-item.list-item .btn-add:hover {
        background: linear-gradient(135deg, #2980b9, #1f618d);
        transform: translateY(-1px);
    }
    
    .menu-item.list-item .zoom-icon {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .menu-item.list-item .item-image:hover .zoom-icon {
        opacity: 1;
    }
    
    .menu-item.list-item .btn-add {
        width: auto;
        padding: 8px 12px;
        font-size: 0.75rem;
        min-width: 70px;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .menu-header {
        padding: 0.5rem 0;
    }
    
    .menu-header-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .back-button {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .header-actions {
        display: flex;
        gap: 4px;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .view-toggle {
        order: -1;
        margin-right: 4px;
    }
    
    .view-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .btn-cart, .btn-waiter-header {
        padding: 6px 8px;
        font-size: 0.7rem;
        white-space: nowrap;
        min-width: auto;
    }
    
    .btn-cart span, .btn-waiter-header span {
        display: none;
    }
    
    .category-scroll-item {
        min-width: 60px;
        padding: 6px 8px;
    }
    
    .category-scroll-item span {
        font-size: 0.6rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}