/* Menu Page Specific Styles */

.menu-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.menu-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.menu-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Category Filter */
.category-filter {
    background: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 72px;
    z-index: 100;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
}

.category-tabs::-webkit-scrollbar {
    height: 6px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 500;
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Menu Section Layout */
.menu-section {
    padding: 2rem 0 4rem 0;
    background: var(--bg-light);
}

.menu-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Products Container */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Product Row - Horizontal Layout */
.product-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.product-row:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Product Image Column */
.product-image-col {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.product-img-placeholder i {
    font-size: 4rem;
    color: #bbb;
}

/* Product Info Column */
.product-info-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Product Controls */
.product-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.product-options-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.options-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.options-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.option-radio-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

.option-radio-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.option-radio-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Price and Quantity Row */
.price-quantity-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.product-price-display {
    flex-shrink: 0;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-value {
    font-size: 1.1rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Add to Cart Button */
.add-cart-btn {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

.add-cart-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.add-cart-btn:active {
    transform: translateY(0);
}

/* Cart Sidebar */
.cart-sidebar {
    position: relative;
}

.cart-sticky {
    position: sticky;
    top: 150px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cart-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-count {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* Cart Items List */
.cart-items-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.cart-items-list::-webkit-scrollbar {
    width: 6px;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.cart-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.cart-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty-state p {
    font-size: 0.95rem;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-img-placeholder i {
    font-size: 1.5rem;
    color: #999;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cart-item-option {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cart-item-qty-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.cart-item-qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.cart-item-qty-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.cart-item-qty-value {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: var(--text-dark);
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #c0392b;
    transform: scale(1.1);
}

/* Cart Footer */
.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.total-amount {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.checkout-btn:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Empty Products State */
.empty-products {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
}

.empty-products i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-products h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-products p {
    color: var(--text-light);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #1e8449;
}

.toast-notification.show {
    right: 30px;
}

.toast-notification .toast-icon {
    font-size: 1.8rem;
    animation: scaleIn 0.5s ease;
}

.toast-notification .toast-content {
    flex: 1;
}

.toast-notification .toast-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.toast-notification .toast-message {
    font-size: 0.95rem;
    opacity: 0.95;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.toast-notification .toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .menu-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 992px) {
    .menu-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        order: -1;
    }
    
    .cart-sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .toast-notification {
        right: -100%;
        left: auto;
        min-width: auto;
        max-width: calc(100% - 40px);
    }
    
    .toast-notification.show {
        right: 20px;
    }
    
    .menu-page {
        padding: 2rem 0;
    }
    
    .category-filter {
        top: 60px;
    }
    
    .product-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .product-image-col {
        width: 100%;
        height: 200px;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .price-quantity-row {
        flex-wrap: wrap;
    }
    
    .add-cart-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .options-buttons {
        gap: 0.5rem;
    }
    
    .option-radio-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
}
