/* =====================================================
   MENU COMMANDES PRO - Design Premium
   Près de Chez Vous - Page menu commerce
   ===================================================== */

/* ============ VARIABLES ============ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.4);
    
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-glow: rgba(16, 185, 129, 0.4);
    
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
    
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --cart-width: 380px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.menu-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.menu-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
}

/* ============ LAYOUT ============ */
.menu-layout {
    display: flex;
    min-height: 100vh;
}

.menu-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: var(--cart-width);
    transition: var(--transition);
}

/* ============ SHOP HEADER ============ */
.shop-header-menu {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.btn-back {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-back:hover {
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-back:hover::before {
    width: 100%;
}

.shop-info-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.shop-address {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-address i {
    color: var(--danger);
}

/* ============ KITCHEN ALERT ============ */
.kitchen-closed-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.1);
}

.kitchen-closed-alert i {
    color: var(--danger);
    font-size: 1.1rem;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============ ORDER TYPE SECTION ============ */
.order-type-section {
    padding: 1rem 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid var(--border-glass);
}

.order-type-buttons {
    display: flex;
    gap: 0.75rem;
}

.order-type-btn {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.order-type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: width 0.4s ease;
    z-index: -1;
}

.order-type-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.order-type-btn.active {
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 20px rgba(37, 99, 235, 0.2);
}

.order-type-btn.active::before {
    width: 100%;
}

.order-type-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.order-type-btn:hover i {
    transform: scale(1.2);
}

/* ============ CATEGORIES NAV ============ */
.categories-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 77px;
    z-index: 90;
}

.categories-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.category-tab {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.category-tab:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.category-tab.active {
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
}

.category-tab.active::before {
    width: 100%;
}

/* ============ PRODUCTS SECTION ============ */
.products-section {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.category-block {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.category-block.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-glass), transparent);
}

.category-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ============ PRODUCTS GRID ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* ============ PRODUCT CARD ============ */
.product-card-menu {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.product-card-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card-menu:hover::before {
    left: 100%;
}

.product-card-menu:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--primary-glow);
}

.product-card-menu.unavailable {
    opacity: 0.5;
    pointer-events: none;
}

.product-card-image {
    height: 140px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-menu:hover .product-card-image img {
    transform: scale(1.1);
}

.product-card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image .no-image i {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.3;
}

/* Stock badges */
.product-stock-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.product-stock-badge.limited {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    animation: badgePulseWarning 2s ease-in-out infinite;
}

.product-stock-badge.unavailable {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

@keyframes badgePulseWarning {
    0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.5); }
}

.product-card-content {
    padding: 1rem;
}

.product-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    transition: var(--transition);
}

.product-card-menu:hover .product-card-name {
    color: var(--primary-light);
}

.product-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-glass);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.btn-add-product {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-light);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-add-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 50%;
}

.btn-add-product:hover:not(:disabled) {
    color: white;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-add-product:hover:not(:disabled)::before {
    width: 100%;
}

.btn-add-product:disabled {
    border-color: var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Products empty */
.products-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.products-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ============ CART SIDEBAR ============ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--cart-width);
    height: 100vh;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 25, 0.99) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    z-index: 200;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

.cart-header-menu {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(30, 41, 59, 0.5);
}

.cart-header-menu h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-header-menu h2 i {
    color: var(--primary-light);
    text-shadow: 0 0 15px var(--primary-glow);
}

.cart-body-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Cart empty */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.cart-empty-icon i {
    font-size: 2rem;
    color: var(--text-muted);
}

.cart-empty h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cart-empty p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Cart items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: var(--transition);
}

.cart-item-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.cart-item-top {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-glass);
}

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

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.btn-remove-item {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-remove-item:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-item-options {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--primary);
    line-height: 1.5;
}

.cart-item-notes {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-style: italic;
}

.cart-item-notes i {
    color: var(--primary-light);
    margin-right: 0.25rem;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-glass);
}

/* Quantity selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-total {
    font-weight: 700;
    color: var(--accent);
    margin-left: auto;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ============ CART FOOTER ============ */
.cart-footer-menu {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(30, 41, 59, 0.5);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-summary-row.total {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-glass);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-summary-row.total span:last-child {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Min order warning */
.min-order-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 0.875rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 15px rgba(245, 158, 11, 0.1);
}

.min-order-warning p {
    font-size: 0.8rem;
    color: #fbbf24;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.min-order-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.min-order-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), #f59e0b);
    border-radius: 10px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Checkout button */
.btn-checkout {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.btn-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-checkout:hover:not(:disabled) {
    color: white;
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 20px rgba(16, 185, 129, 0.1);
}

.btn-checkout:hover:not(:disabled)::before {
    width: 100%;
}

.btn-checkout:hover:not(:disabled) i {
    transform: scale(1.2);
}

.btn-checkout i {
    transition: transform 0.3s ease;
}

.btn-checkout:disabled {
    border-color: var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============ MOBILE CART TOGGLE ============ */
.mobile-cart-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 300;
    gap: 0.75rem;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px var(--primary-glow);
    transition: var(--transition);
}

.mobile-cart-toggle:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 15px 50px var(--primary-glow);
}

.mobile-cart-toggle .cart-count {
    background: white;
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ============ PRODUCT MODAL ============ */
.modal-product .modal-content {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 50px var(--primary-glow);
}

.modal-product .modal-header {
    border-bottom: 1px solid var(--border-glass);
    padding: 1.25rem 1.5rem;
}

.modal-product .modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-product .btn-close {
    filter: invert(1);
    opacity: 0.6;
    transition: var(--transition);
}

.modal-product .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-product .modal-body {
    padding: 1.5rem;
}

.modal-product-content {
    text-align: center;
}

.modal-product-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-glass);
}

.modal-product-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.modal-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
    display: block;
    margin-bottom: 1.5rem;
}

/* Modal options */
.modal-options-section {
    text-align: left;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.modal-options-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.modal-options-list label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition);
}

.modal-options-list label:hover {
    background: rgba(37, 99, 235, 0.1);
    margin: 0 -0.5rem;
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-sm);
}

.modal-options-list label:last-child {
    border-bottom: none;
}

.modal-option-price {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modal notes */
.modal-notes-section {
    margin-bottom: 1.5rem;
}

.modal-notes-section label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-align: left;
}

.modal-notes-section textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: none;
    transition: var(--transition);
}

.modal-notes-section textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow), 0 0 20px var(--primary-glow);
}

/* Modal quantity */
.modal-quantity-section {
    margin-bottom: 1.5rem;
}

.modal-quantity-section label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.modal-quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.modal-qty-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-qty-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.modal-qty-value {
    min-width: 40px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Modal footer */
.modal-product-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel-modal {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel-modal:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.btn-add-to-cart-modal {
    flex: 2;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-add-to-cart-modal:hover {
    color: white;
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-add-to-cart-modal:hover::before {
    width: 100%;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .menu-main {
        margin-right: 0;
    }
    
    .cart-sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 70vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        border-left: none;
        border-top: 1px solid var(--border-glass);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .cart-sidebar.open {
        transform: translateY(0);
    }
    
    .mobile-cart-toggle {
        display: flex;
    }
    
    .cart-body-menu {
        max-height: 40vh;
    }
}

@media (max-width: 768px) {
    .shop-header-menu {
        padding: 1rem;
    }
    
    .shop-info-header h1 {
        font-size: 1.2rem;
    }
    
    .order-type-buttons {
        flex-direction: column;
    }
    
    .products-section {
        padding: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-nav {
        top: 70px;
    }
}

@media (max-width: 576px) {
    .btn-back {
        width: 40px;
        height: 40px;
    }
    
    .shop-info-header h1 {
        font-size: 1.1rem;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .product-card-image {
        height: 120px;
    }
    
    .modal-product .modal-dialog {
        margin: 0.5rem;
    }
}