* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fdf4 100%);
}

.menu-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.15) 50%, rgba(5, 150, 105, 0.1) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 76px;
}

.menu-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Logos/nour.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatIcon 8s ease-in-out infinite;
    color: #22c55e;
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-icon:nth-child(3) { top: 60%; left: 8%; animation-delay: 2s; }
.floating-icon:nth-child(4) { bottom: 30%; right: 10%; animation-delay: 3s; }
.floating-icon:nth-child(5) { top: 40%; left: 20%; animation-delay: 4s; }
.floating-icon:nth-child(6) { bottom: 20%; left: 25%; animation-delay: 5s; }

@keyframes floatIcon {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-20px) rotate(5deg); 
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-40px) rotate(-5deg); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-20px) rotate(3deg); 
        opacity: 0.6;
    }
}

.menu-content {
    z-index: 2;
    position: relative;
}

.menu-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.menu-subtitle {
    font-size: 1.3rem;
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 30px;
}

.menu-section {
    padding: 80px 0;
    background: white;
}

.menu-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #166534;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #22c55e, #16a34a);
    border-radius: 2px;
}

.field-title {
    color: #7c3aed !important;
    background: linear-gradient(45deg, #7c3aed, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.field-title::after {
    background: linear-gradient(45deg, #7c3aed, #a855f7) !important;
}

.menu-field {
    margin-bottom: 50px;
}

.menu-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #22c55e;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.02) 0%, rgba(124, 58, 237, 0.02) 100%);
    pointer-events: none;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-left-color: #7c3aed;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.menu-item-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #166534;
    margin: 0;
}

.menu-item-calories {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.menu-item-details {
    position: relative;
    z-index: 1;
}

.detail-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 5px;
}

.category-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
}

.type-badge {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.field-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

.menu-item-photo img {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.menu-item:hover .menu-item-photo img {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background: linear-gradient(45deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* ===== CART STYLING ===== */

/* Floating Cart Button */
.cart-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.cart-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.cart-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.5);
}

.cart-btn:active {
    transform: translateY(-1px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1050;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Header */
.cart-header {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    position: relative;
}

.cart-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1), rgba(255,255,255,0.3));
}

.cart-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.3rem;
}

.cart-close {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

/* Cart Content */
.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.cart-content::-webkit-scrollbar {
    width: 6px;
}

.cart-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.cart-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 3px;
}

.cart-item {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    background: rgba(34, 197, 94, 0.03);
}

.cart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item:hover::before {
    opacity: 1;
}

.cart-item-info h6 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.cart-item-info small {
    color: #6b7280;
    font-size: 0.85rem;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #374151;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    color: white;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn.remove-btn {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fecaca;
    color: #dc2626;
    margin-left: 8px;
}

.quantity-btn.remove-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
    background: rgba(34, 197, 94, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
}

/* Empty Cart */
.empty-cart {
    padding: 60px 30px;
    text-align: center;
    color: #6b7280;
}

.empty-cart p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #374151;
}

.empty-cart small {
    color: #9ca3af;
}
/* Replace the existing .cart-footer section (around line 563) with this: */

/* Cart Footer */
.cart-footer {
    background: white;
    padding: 25px 30px;
    border-top: 2px solid #f1f5f9;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Move WhatsApp button above total items */
.whatsapp-order-btn {
    background: linear-gradient(135deg, #25d366, #20ba5a);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px 25px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px; /* Add margin bottom instead of top */
}

.whatsapp-order-btn:hover {
    background: linear-gradient(135deg, #20ba5a, #1ea653);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-order-btn:disabled {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.whatsapp-order-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.total-items {
    margin-bottom: 0; /* Remove bottom margin */
    margin-top: 0;   /* Remove top margin */
    padding: 15px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 12px;
    text-align: center;
}

.total-items strong {
    font-size: 1.1rem;
    color: #166534;
}

/* Enhanced mobile styles for better spacing */
@media (max-width: 768px) {
    .cart-footer {
        padding: 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom)); /* iOS safe area */
    }
    
    .whatsapp-order-btn {
        padding: 16px 20px;
        font-size: 1rem;
        margin-bottom: 15px;
        min-height: 50px; /* Ensure minimum touch target */
    }
    
    .total-items {
        padding: 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cart-footer {
        padding: 15px;
        padding-bottom: calc(15px + 20px); /* Extra space for small screens */
    }
    
    .whatsapp-order-btn {
        padding: 14px 18px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
}

/* Admin Login Button */
.admin-login-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #166534;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0.7;
    backdrop-filter: blur(10px);
}

.admin-login-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #166534;
    transform: scale(1.05);
    opacity: 1;
    text-decoration: none;
}

/* Other existing styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.btn-primary-custom {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    color: white;
    text-decoration: none;
}

.no-menu-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.no-menu-message h3 {
    color: #6b7280;
    margin-bottom: 15px;
}

.no-menu-message p {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-title {
        font-size: 2.5rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-floating {
        bottom: 20px;
        right: 20px;
    }
    
    .cart-btn {
        padding: 15px 20px;
        font-size: 1rem;
        min-width: 100px;
    }
    
    .admin-login-btn {
        bottom: 20px;
        left: 20px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .cart-item {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .quantity-controls {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .menu-item {
        padding: 20px;
    }
    
    .cart-header {
        padding: 20px;
    }
    
    .cart-footer {
        padding: 20px;
    }
    
    .cart-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Notification Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cart-notification {
    animation: slideInRight 0.3s ease-out;
}