/* Menu Page Specifics */
.header-fixed {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 50;
    padding: 12px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    background: var(--background-color);
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    padding: 8px 16px;
    border-radius: 25px;
    background: white;
    border: 1.5px solid #E2E8F0;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.category-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

/* Restaurant Switcher Bar */
.restaurant-switcher-bar {
    background: white;
    padding: 12px 16px;
    margin: 12px 16px 0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.current-resto-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resto-avatar-img {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    overflow: hidden;
    color: white;
    font-weight: 800;
}

.resto-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resto-texts .label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.resto-texts .name {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    display: block;
}

.switcher-select {
    padding: 8px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.switcher-select:focus {
    border-color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 16px;
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.product-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f1f5f9;
}

.product-details {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 8px;
}

.product-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    flex: 1;
}

.product-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.product-desc {
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.add-to-cart-btn {
    align-self: flex-end;
    width: auto;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 10px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* --- Mobile Specific Enhancements for Menu --- */
@media (max-width: 480px) {
    .header-fixed {
        padding: 10px 12px;
    }

    .restaurant-switcher-bar {
        margin: 8px 10px 0;
        padding: 10px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .switcher-select {
        width: 100%;
        text-align: center;
    }

    .category-scroll {
        padding: 8px 10px;
        gap: 6px;
    }

    .category-pill {
        padding: 6px 13px;
        font-size: 0.82rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-details {
        padding: 12px 14px;
    }

    .product-title {
        font-size: 0.98rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .add-to-cart-btn {
        width: 100%;
        text-align: center;
        margin-top: 6px;
    }
}