/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile-first viewport handling */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-blue: #4285f4;
    --primary-red: #ea4335;
    --primary-yellow: #fbbc04;
    --primary-green: #34a853;
    --dark-navy: #1a1d29;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-gray);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Add these CSS custom properties to your existing :root section in styles.css */
:root {
    --primary-blue: #4285f4;
    --primary-red: #ea4335;
    --primary-yellow: #fbbc04;
    --primary-green: #34a853;
    --dark-navy: #1a1d29;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* ADD THESE NEW CUSTOM PROPERTIES */
    --restaurant-primary: #ff6b35; /* Default fallback */
    --restaurant-secondary: #2563eb; /* Default fallback */
}

/* Optional: You can also add these classes to make future color updates easier */
.dynamic-primary-bg {
    background-color: var(--restaurant-primary) !important;
}

.dynamic-secondary-bg {
    background-color: var(--restaurant-secondary) !important;
}

.dynamic-primary-color {
    color: var(--restaurant-primary) !important;
}

.dynamic-secondary-color {
    color: var(--restaurant-secondary) !important;
}

/* Override the default category active state to use dynamic colors */
.category-item.active {
    background: var(--restaurant-primary) !important;
}

/* Override filter button to use secondary color */
.filter-btn {
    background: var(--restaurant-secondary) !important;
}

/* Override modal headers to use secondary color */
.modal-header {
    background: var(--restaurant-secondary) !important;
}

/* Override price colors to use primary color */
.price {
    color: var(--restaurant-primary) !important;
}

/* Override primary buttons */
.btn-primary {
    background: var(--restaurant-primary) !important;
}

#proceedToOrder {
    background-color: var(--restaurant-primary) !important;
}

/* Override add to cart buttons */
.add-btn {
    background: linear-gradient(135deg, var(--restaurant-primary) 0%, var(--restaurant-primary)dd 100%) !important;
}

/* Override action buttons */
.action-btn {
    background: var(--restaurant-secondary) !important;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header - App-like Navigation */
.header {
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 60px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-navy);
    cursor: pointer;
    padding: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.logo .letter-l { color: var(--primary-blue); }
.logo .letter-o1 { color: var(--primary-red); }
.logo .letter-g { color: var(--primary-yellow); }
.logo .letter-o2 { color: var(--primary-blue); }

.profile-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.profile-btn {
    background: var(--dark-navy);
    border: none;
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cart-wishlist-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 99;
}

.action-btn {
    position: relative;
    background: var(--dark-navy);
    border: none;
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Section */
.search-section {
    padding: var(--spacing-lg);
    background: var(--white);
}

.search-filter-container {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.search-wrapper {
    flex: 1;
    position: relative;
    background: var(--light-gray);
    border-radius: 25px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    box-shadow: var(--shadow-medium);
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 3.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: var(--medium-gray);
}

.search-input:focus {
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.search-icon.hidden {
    opacity: 0;
    visibility: hidden;
}
.logo-image {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    border-radius: 8px;
}

.text-logo {
    display: flex;
}

.clear-search {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red);
    border: none;
    color: var(--white);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.clear-search.visible {
    opacity: 1;
    visibility: visible;
}

.filter-btn {
    background: var(--dark-navy);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Promotional Banner Slider */
.promo-slider {
    margin: 0 var(--spacing-lg) var(--spacing-lg);
    height: 250px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Category Icons Grid */
/* Category Icons Grid - Updated Design */
.categories-section {
    padding: 2rem var(--spacing-lg);
    background: transparent;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.categories-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    position: relative;
    z-index: 1;
}

.categories-grid::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    scroll-snap-align: center;
    /*padding: 1rem 0.8rem;*/
    border-radius: 16px;
    background: #1a1a1a; /* Dark background for unselected */
    position: relative;
    
}

/* Active/Selected category item - Green background */
.category-item.active {
    background: #8BC34A; /* Lime green background */
    
 
}

.category-icon {
    width: 100px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.3rem;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff; /* White text for both states */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Hover effects */
.category-item:hover:not(.active) {
    background: #2a2a2a;
    transform: translateY(-2px);
}

 

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .categories-section {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }

    .category-item {
        width: 103px;
        padding: 0.8rem 0.6rem;
    }

    .category-icon {
        width: 45px;
        height: 45px;
    }

    .category-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .categories-section {
        padding: 0;
        padding-left:var(--spacing-sm);

    }

    .category-item {
        min-width: 80px;
        padding: 0.7rem 0.5rem;
        border-radius: 14px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .category-name {
        font-size: 0.65rem;
    }
}

@media (max-width: 360px) {
    .category-item {
        min-width: 75px;
        padding: 0.6rem 0.4rem;
    }

    .category-icon {
        width: 36px;
        height: 36px;
    }
}

/* Menu Items */
.menu-container {
    padding: var(--spacing-lg);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: var(--spacing-lg);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

/* Modern Menu Item Cards */
.menu-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.03), rgba(255, 255, 255, 0.01));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(66, 133, 244, 0.1);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item-image {
    height: 180px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f3ff 100%);
}

.menu-item:hover .product-image {
    transform: scale(1.05);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.wishlist-btn:hover {
    color: var(--primary-red);
    background: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.wishlist-btn.active {
    color: var(--primary-red);
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.2);
}

.menu-item-content {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item h3 {
    color: #1f2937;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.menu-item-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-top: auto;
}

.price-quantity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* When quantity controls wrap to new line due to long price */
@media (max-width: 400px) {
    .menu-item-content {
        min-width: 0; /* Allow content to shrink */
    }
    
    .price-quantity-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .price-quantity-row .price {
        order: 0;
        text-align: left;
        margin-right: 0;
    }
    
    .price-quantity-row .quantity-controls {
        order: 1;
        align-self: flex-end; /* Align to right side */
        margin-top: 4px;
    }
}

/* Additional fallback for very narrow containers */
@media (max-width: 300px) {
    .price-quantity-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }
    
    .price-quantity-row .quantity-controls {
        align-self: center !important; /* Center on very small screens */
    }
}

.price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #059669;
    letter-spacing: -0.02em;
    flex-shrink: 1; /* Allow shrinking */
    margin-bottom: 0;
    white-space: nowrap;
    min-width: fit-content; /* Keep minimum width for readability */
}

.add-to-cart-section {
    width: 100%;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px;
    width: fit-content;
    flex-shrink: 0;
    pointer-events: auto;
    min-width: 80px;
    max-width: 80px;
}

.quantity-btn {
    background: var(--white);
    border: 1px solid #e2e8f0;
    color: #4b5563;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}

.quantity-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.quantity-btn:active:not(:disabled) {
    background: #e2e8f0;
}

.quantity-btn:disabled {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.quantity-display {
    background: transparent;
    border: none;
    padding: 2px 4px;
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.8rem;
}

.add-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: var(--white);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
    letter-spacing: 0.01em;
    width: 100%;
    text-align: center;
    display: block;
}

.add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.add-btn:active {
    transform: translateY(0);
}

/* Enhanced Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
       background: var(--dark-navy);
    color: var(--white);
    padding: var(--spacing-md);
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex
;
    justify-content: space-between;
    align-items: center;
     
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: var(--spacing-lg);
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: var(--spacing-md);
    background: var(--light-gray);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    align-items: center;
}

/* Cart/Wishlist Items */
.cart-item,
.wishlist-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid #f0f0f0;
    border-radius: var(--border-radius-small);
    margin-bottom: var(--spacing-md);
    background: var(--white);
    transition: all 0.3s ease;
}

.cart-item:hover,
.wishlist-item:hover {
    box-shadow: var(--shadow-light);
}

.cart-item-icon,
.wishlist-item-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.cart-item-details,
.wishlist-item-details {
    flex: 1;
}

.cart-item-details h4,
.wishlist-item-details h4 {
    margin-bottom: 0.3rem;
    color: var(--dark-navy);
    font-weight: 600;
}

.cart-item-details p,
.wishlist-item-details p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.remove-btn {
    background: var(--primary-red);
    border: none;
    color: var(--white);
    padding: var(--spacing-xs);
    border-radius: 50%;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    transform: scale(1.1);
}
.a{
    border-radius:14px;
}
.cart-total {
    text-align: center;
    padding: 10px;
    background: var(--light-gray);
    border-radius: var(--border-radius-small);
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-navy);
}

/* Form Styles */
.order-section {
    margin-bottom: var(--spacing-lg);
}

.order-section h3 {
    color: var(--dark-navy);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 600;
}

.delivery-options {
    display: flex;
     
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.radio-option:hover {
    border-color: var(--primary-blue);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-blue);
    background: rgba(66, 133, 244, 0.1);
}

.radio-option:has(input[type="radio"]:checked) span {
    color: var(--primary-blue);
    font-weight: 600;
}

.datetime-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

input[type="date"],
input[type="time"],
input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

textarea {
    resize: vertical;
    font-family: inherit;
}

/* Button Styles */
.btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--medium-gray);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Empty States */
.empty-state,
.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--medium-gray);
}

.empty-state i,
.no-results i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: #e0e0e0;
}

.search-results-info {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-md);
    color: var(--medium-gray);
    background: var(--light-gray);
    border-radius: var(--border-radius-small);
    margin-bottom: var(--spacing-md);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--dark-navy);
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-heavy);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* Filter Modal */
.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.filter-modal.active {
    display: flex;
}

.filter-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: var(--spacing-lg);
}

.filter-section h3 {
 
    color: var(--dark-navy);
    font-weight: 600;
    margin-top:20px;
}

.price-range {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}
#proceedToOrder{
    background-color:#8BC34A;
}
#sendWhatsApp{
    white-space: nowrap;
}
.price-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-small);
    width:50%;
}

/* Mobile Responsive */
/* Tablet styles */
@media (max-width: 1024px) {
    .container {
        margin: 0;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .header {
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 56px;
    }
    
    .logo {
        font-size: 1.6rem;
    }

    .search-section {
        padding: var(--spacing-sm) var(--spacing-md);
    }

   
    
    .search-input {
        padding: 0.875rem 3rem 0.875rem 3rem;
        font-size: 0.95rem;
    }
    
    .filter-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .promo-slider {
        margin: 0 var(--spacing-md) var(--spacing-md);
        height: 200px;
    }

    .categories-section {
        padding: 0 var(--spacing-md) var(--spacing-md);
        overflow: hidden;
        position: relative;
    }

    .categories-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding-bottom: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: none;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        flex-shrink: 0;
        min-width: 70px;
        scroll-snap-align: center;
    }

    .category-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
        border-radius: 2px;
    }

    .category-name {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .menu-container {
        padding: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-md);
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .menu-item-image {
        height: 130px;
        font-size: 3rem;
    }

    .menu-item-content {
        padding: 14px 16px;
    }

    .menu-item h3 {
        font-size: 1rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .menu-item-footer {
        gap: 10px;
    }

  .price-quantity-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

    .price {
        font-size: 0.8rem;
    }

    .add-to-cart-section {
        width: 100%;
    }

    .add-btn {
        width: 100%;
        padding: 11px;
        font-size: 0.85rem;
        text-align: center;
    }

    .quantity-controls {
        flex-shrink: 0;
    }

    .wishlist-btn {
        width: 34px;
        height: 34px;
        top: 10px;
        right: 10px;
        border-radius: 10px;
        font-size: 0.85rem;
    }

    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        width: 100%;
        margin: 0;
    }

    .modal-body {
        padding: var(--spacing-md);
        max-height: 70vh;
    }

      .modal-footer {
        flex-direction: row;
        gap: var(--spacing-sm);
        justify-content: flex-end;
    }
    
    .modal-footer .btn {
        width: auto;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
        flex: 1;
    }
    

    .datetime-inputs {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

      .cart-item,
    .wishlist-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }

    .cart-item-actions {
        justify-content: flex-end;
        width: auto;
    }

    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
        top: 10px;
    }

    .notification.show {
        transform: translateY(0);
    }

    .cart-wishlist-buttons {
        bottom: 20px;
        right: 15px;
    }

    .action-btn {
        box-shadow: var(--shadow-heavy);
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .filter-modal {
        padding: var(--spacing-sm);
    }
    
    .filter-content {
        max-width: none;
        width: 100%;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .action-btn,
    
    .add-btn,
    .btn,
    .category-icon,
    .menu-toggle,
    .profile-btn,
    .filter-btn,
    .close-btn,
  
    .wishlist-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve touch targets for radio buttons */
    .radio-option {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Better touch feedback */
    .menu-item {
        touch-action: manipulation;
    }
    
    .menu-item:active {
        transform: scale(0.98);
    }
    
    /* Smooth scrolling for categories */
    .categories-grid {
        scroll-behavior: smooth;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header {
        padding: var(--spacing-sm);
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .search-section {
        padding: var(--spacing-sm);
    }
    
    .search-input {
        padding: 0.75rem 2.8rem 0.75rem 2.8rem;
        font-size: 0.9rem;
    }
    
    .promo-slider {
        margin: 0 var(--spacing-sm) var(--spacing-sm);
        height: 180px;
        margin-top: 15px;
    }
    
    .categories-section {
        padding:0;
        padding-left:  var(--spacing-sm);
    }
    
    .menu-container {
        padding: var(--spacing-sm);
    }
    
    .section-title {
        font-size: 1.2rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .menu-item {
        border-radius: 12px;
    }
    
    .menu-item-image {
        height: 185px;
        font-size: 2.5rem;
    }
    
    .menu-item-content {
        padding: 10px 12px;
    }
    
    .menu-item h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
        line-height: 1.25;
    }
    
 .price-quantity-row {
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    justify-content: space-between;
}
    
    .price {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .add-btn {
        padding: 9px 8px;
        font-size: 0.8rem;
        margin-top: 4px;
    }
    
.quantity-controls {
    padding: 2px;
    gap: 3px;
    min-width: 80px;
    max-width: 80px;
}
    
.quantity-btn {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
}
  .quantity-display {
    padding: 2px 3px;
    font-size: 0.8rem;
    min-width: 20px;
}

    .category-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    .action-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
    
    .cart-wishlist-buttons {
        bottom: 15px;
        right: 10px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: var(--spacing-sm);
    }
    
       .modal-footer {
        padding: var(--spacing-sm);
        flex-direction: row;
        gap: var(--spacing-xs);
        justify-content: space-between;
    }
    
    .modal-footer .btn {
        flex: 1;
        padding: var(--spacing-sm);
        font-size: 1rem;
        min-height: 44px;
    }
    
    .order-section h3 {
        font-size: 1rem;
    }
    
    .radio-option {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    input[type="date"],
    input[type="time"],
    input[type="text"],
    input[type="tel"],
    textarea {
        margin-top:2px;
        padding: var(--spacing-sm);
        font-size: 0.95rem;
    }
    
 .cart-item,
    .wishlist-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }
    
    .cart-item-icon,
    .wishlist-item-icon {
        font-size: 1.8rem;
        min-width: 45px;
    }

    .cart-item-details h4,
    .wishlist-item-details h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .cart-item-details p,
    .wishlist-item-details p {
        font-size: 0.8rem;
    }

    .cart-item-actions {
        justify-content: flex-end;
        gap: var(--spacing-xs);
    }

    .quantity-controls {
        min-width: 90px;
        max-width: 70px;
    }

    .remove-btn {
        width: 30px;
        height: 30px;
    }
}
.cart-item-details,
.wishlist-item-details {
    flex: 1;
    min-width: 0; /* Prevents text overflow */
}

.cart-item-details h4,
.wishlist-item-details h4 {
    margin-bottom: 0.3rem;
    color: var(--dark-navy);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-details p,
.wishlist-item-details p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Extra extra small screens (very small phones) */
@media (max-width: 360px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .menu-item-image {
        height: 100px;
        font-size: 2rem;
    }
    
    .menu-item-content {
        padding: 8px 10px;
    }
    
    .menu-item h3 {
        font-size: 0.85rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .price {
        font-size: 0.8rem;
    }
    
    .add-btn {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .quantity-controls {
        padding: 2px;
        gap: 3px;
        min-width: 80px;
    }
    
    .quantity-btn {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
    
    .quantity-display {
        padding: 2px;
        min-width: 22px;
        font-size: 0.8rem;
    }
    
    .categories-grid {
        gap: var(--spacing-sm);
    }
    
    .category-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    
   
    
    .filter-btn {
      
        height: 44px;
         flex-shrink: 0;
    }
}

/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: var(--spacing-xs) var(--spacing-md);
        min-height: 48px;
    }
    
    .promo-slider {
        height: 160px;
        margin-bottom: var(--spacing-sm);
    }
    
    .categories-section {
        padding: 0 var(--spacing-md) var(--spacing-sm);
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-content {
        max-height: 98vh;
    }
    
    .modal-body {
        max-height: 60vh;
    }
}
/* Button Click Fix - Add this to the end of your CSS file */
.modal-footer .btn,
.close-btn {
    pointer-events: auto !important;
    position: relative;
    z-index: 1001;
    cursor: pointer !important;
}

.modal-footer {
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    z-index: 999;
    pointer-events: auto;
}

.modal-body {
    pointer-events: auto;
}
/* Order Modal Footer Button Widths */
#backToCart {
    width: 30% !important;
    flex: 0 0 30%;
}

#sendWhatsApp {
    width: 70% !important;
    flex: 0 0 70%;
}
.phone-input-container{
    position: relative;
    display:flex;
    gap:15px;
    margin-top:15px;
    overflow: visible;
}
.country-selector
 {
    margin-top:2px;
    padding: 0px 20px;
    display: flex;
    align-items: center;
   
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    gap:10px;
}
.country-selector img{
    width: 25px;
    height: 25px;
     
}
/* Language Selector Styles */
.language-section {
    display: flex;
    align-items: center;
}

.language-selector {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 120px;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.language-selector:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-selector {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}


 #clearFilters{
    justify-content: center;
 }
 #applyFilters{
      justify-content: center;
 }
 
 
 /* Header Selectors Container */
.header-selectors {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Currency Selector Styles */
.currency-section {
    display: flex;
    align-items: center;
}

.currency-selector {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 100px;
}

.currency-selector:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.currency-selector:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-selectors {
        gap: 0.5rem;
    }
    
    .currency-selector {
        min-width: 80px;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .language-selector {
        min-width: 90px;
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .header-selectors {
        gap: 0.3rem;
    }
    
    .currency-selector {
        min-width: 70px;
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .language-selector {
        min-width: 80px;
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}
/* Skeleton Loading Styles - Add this to your existing CSS */

/* Main skeleton container */
.skeleton-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f8f9fa;
    z-index: 9999;
    overflow: hidden;
}

.skeleton-container.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

/* Skeleton animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Skeleton Header */
.skeleton-header {
    height: 60px;
    background: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skeleton-logo {
    width: 120px;
    height: 32px;
    border-radius: 8px;
}

.skeleton-language {
    width: 100px;
    height: 36px;
    border-radius: 8px;
}

/* Skeleton Banner */
.skeleton-banner {
    margin: 1.5rem;
    height: 250px;
    border-radius: 20px;
    margin-bottom: 2rem;
}

/* Skeleton Search */
.skeleton-search-section {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.skeleton-search {
    flex: 1;
    height: 50px;
    border-radius: 25px;
}

.skeleton-filter {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

/* Skeleton Categories */
.skeleton-categories {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.skeleton-categories-grid {
    display: flex;
    gap: 1rem;
    overflow: hidden;
}

.skeleton-category {
    min-width: 100px;
    height: 120px;
    border-radius: 16px;
    flex-shrink: 0;
}

/* Skeleton Menu Items */
.skeleton-menu {
    padding: 1.5rem;
}

.skeleton-menu-title {
    width: 200px;
    height: 28px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.skeleton-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.skeleton-menu-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.skeleton-menu-image {
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-menu-content {
    padding: 16px 20px;
}

.skeleton-menu-name {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-menu-price {
    width: 80px;
    height: 24px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-menu-button {
    width: 100%;
    height: 40px;
    border-radius: 10px;
}

/* Mobile Responsive Skeleton */
@media (max-width: 768px) {
    .skeleton-banner {
        height: 200px;
        margin: 1rem;
    }
    
    .skeleton-search-section {
        padding: 1rem;
    }
    
    .skeleton-categories {
        padding: 0 1rem;
    }
    
    .skeleton-category {
        min-width: 80px;
        height: 100px;
    }
    
    .skeleton-menu {
        padding: 1rem;
    }
    
    .skeleton-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .skeleton-menu-image {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .skeleton-header {
        padding: 0.5rem 1rem;
        height: 56px;
    }
    
    .skeleton-logo {
        width: 100px;
        height: 28px;
    }
    
    .skeleton-language {
        width: 80px;
        height: 32px;
    }
    
    .skeleton-banner {
        height: 180px;
        margin: 0.5rem;
    }
    
    .skeleton-search-section {
        padding: 0.5rem;
    }
    
    .skeleton-categories {
        padding: 0 0.5rem;
    }
    
    .skeleton-menu {
        padding: 0.5rem;
    }
    
    .skeleton-menu-grid {
        gap: 10px;
    }
    
    .skeleton-menu-image {
        height: 100px;
    }
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .app-footer {
        padding: 2rem 0;
        margin-top: 2.5rem;
    }
    
    .footer-content {
        padding: 0 1.5rem;
    }
    
    .designed-by {
        font-size: 0.9rem;
        gap: 0.6rem;
        padding: 0.8rem 1.5rem;
    }
    
    .footer-icon {
        font-size: 1.2rem;
    }
    
    .designed-text {
        font-size: 0.8rem;
    }
    
    .designer-name {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .app-footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .designed-by {
        padding: 0.7rem 1.2rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .designed-text {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .designer-name {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        min-width: fit-content;
    }
    
    .footer-icon {
        font-size: 1.1rem;
    }
}