* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* ===== IMAGE PROTECTION ===== */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== ULTRA-FAST SCROLLING ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: 70px;
    position: relative;
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Enable GPU acceleration for all scrollable containers */
.products-container, .shops-container, main, .cart-modal, .size-modal {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
}

/* Fast page transitions */
.page-transition {
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

/* Optimize repaints during scroll */
.products-grid, .shops-grid, .categories-grid {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
    contain: layout style;
}

/* Smooth fade-in animation for sections */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categories-grid, .products-grid, .shops-grid {
    animation: fadeIn 0.3s ease-out;
}

.category-card, .product-card, .shop-card {
    animation: fadeIn 0.2s ease-out;
    animation-fill-mode: both;
}

/* Stagger animation for cards */
.category-card:nth-child(1) { animation-delay: 0.02s; }
.category-card:nth-child(2) { animation-delay: 0.04s; }
.category-card:nth-child(3) { animation-delay: 0.06s; }
.category-card:nth-child(4) { animation-delay: 0.08s; }
.category-card:nth-child(5) { animation-delay: 0.1s; }
.category-card:nth-child(6) { animation-delay: 0.12s; }

.product-card:nth-child(1) { animation-delay: 0.02s; }
.product-card:nth-child(2) { animation-delay: 0.04s; }
.product-card:nth-child(3) { animation-delay: 0.06s; }
.product-card:nth-child(4) { animation-delay: 0.08s; }
.product-card:nth-child(5) { animation-delay: 0.1s; }
.product-card:nth-child(6) { animation-delay: 0.12s; }

.shop-card:nth-child(1) { animation-delay: 0.02s; }
.shop-card:nth-child(2) { animation-delay: 0.04s; }
.shop-card:nth-child(3) { animation-delay: 0.06s; }
.shop-card:nth-child(4) { animation-delay: 0.08s; }
.shop-card:nth-child(5) { animation-delay: 0.1s; }
.shop-card:nth-child(6) { animation-delay: 0.12s; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations for low-end devices */
.product-card, .shop-card, .category-card, .cart-btn, .modal, .product-image-container {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
}

/* Content visibility for off-screen content */
.products-grid, .shops-grid, .categories-grid {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimize for low-end devices */
@media (max-width: 768px) {
    .product-card, .shop-card {
        contain: strict;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

/* Light Header - Logo Friendly Style */
header {
    background: #ffffff;
    padding: calc(10px + env(safe-area-inset-top)) 16px 12px;
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-left: calc(16px + env(safe-area-inset-left));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.16);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.location-dropdown {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.location-dropdown .arrow {
    margin-right: 5px;
    font-size: 12px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: none;
    border-radius: 25px;
    background: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

header h1 {
    display: none;
}

header h1 span {
    display: inline-block;
    opacity: 0;
    animation: dropDownLetter 0.6s ease-out forwards;
}

@keyframes dropDownLetter {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restaurant-subtitle {
    color: #ff6b00;
    font-size: 0.9rem;
    margin-top: 5px;
}

.back-btn {
    position: absolute;
    right: calc(20px + env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
    color: #ff6b00;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    transition: transform 0.1s ease, opacity 0.1s ease;
    z-index: 100;
    padding: 10px;
}

.back-btn:hover {
    color: #ccc;
}

/* Cart Modal */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
}

.cart-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 0;
    border: none;
    z-index: 1002;
    display: none;
    flex-direction: column;
}

.cart-modal.open {
    display: flex;
}

.cart-modal-header {
    padding: 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h3 {
    color: #fff;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    max-height: none;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid #444;
}

.cart-total-modal {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

#cart-total-modal {
    color: #fff;
    font-weight: bold;
}

.whatsapp-btn-modal {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b00 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1.1rem;
    cursor: pointer;
}

.whatsapp-btn-modal:hover {
    background: linear-gradient(135deg, #ffcf33 0%, #f77c00 100%);
}

/* White cart modal for non-internal pages (light theme) */
body:not(.internal-page) .cart-modal {
    background: rgba(255, 255, 255, 0.98);
    border: none;
}

body:not(.internal-page) .cart-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

body:not(.internal-page) .cart-modal-header {
    border-bottom: 1px solid #eee;
}

body:not(.internal-page) .cart-modal-header h3 {
    color: #333;
}

body:not(.internal-page) .close-modal {
    color: #333;
}

body:not(.internal-page) .cart-modal-footer {
    border-top: 1px solid #eee;
}

body:not(.internal-page) .cart-total-modal {
    color: #333;
}

body:not(.internal-page) #cart-total-modal {
    color: #333;
}

body:not(.internal-page) .cart-subtotal,
body:not(.internal-page) .cart-delivery {
    color: #555;
}

body:not(.internal-page) .whatsapp-btn-modal {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
}

body:not(.internal-page) .whatsapp-btn-modal:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
}

body:not(.internal-page) .empty-cart {
    color: #999;
}

body:not(.internal-page) .cart-item {
    background: #f9f9f9;
    color: #333;
    border: 1px solid #eee;
}

body:not(.internal-page) .cart-item h4 {
    color: #333;
}

body:not(.internal-page) .cart-item p {
    color: #555;
}

body:not(.internal-page) .cart-item-name {
    color: #333;
}

body:not(.internal-page) .cart-item-price {
    color: #FFD700;
}

body:not(.internal-page) .cart-shop-group .cart-shop-header {
    background: #f0f0f0;
    color: #333;
}

body:not(.internal-page) .cart-shop-group .shop-name {
    color: #333;
}

body:not(.internal-page) .cart-shop-group .shop-total {
    color: #FFD700;
}

body:not(.internal-page) .quantity-controls .quantity-btn {
    background: #eee;
    color: #333;
    border: 1px solid #ddd;
}

body:not(.internal-page) .remove-btn {
    color: #e53935;
}

body:not(.internal-page) .cart-extras {
    color: #777;
}

body:not(.internal-page) .customer-info-section h4 {
    color: #333;
}

body:not(.internal-page) .form-group label {
    color: #555;
}

body:not(.internal-page) .form-group input,
body:not(.internal-page) .form-group textarea,
body:not(.internal-page) .form-group select {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

body:not(.internal-page) .loyalty-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

/* Image View Modal */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
}

.image-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.image-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 90%;
    max-height: 90%;
    z-index: 1006;
    opacity: 0;
    visibility: hidden;
}

.image-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.image-modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-image-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: #000;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-image-modal:hover {
    background: #fff;
}

/* Pasta Extras Modal */
.pasta-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
}

.pasta-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.pasta-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    border: 2px solid #666;
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
}

.pasta-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.pasta-extras-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.pasta-extra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border: 2px solid #444;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.pasta-extra-item:hover {
    border-color: #666;
}

.pasta-extra-item.selected {
    border-color: #fff;
    background: linear-gradient(135deg, #1a3a3a 0%, #2d4d4d 100%);
}

.pasta-extra-name {
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pasta-extra-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.pasta-extra-item.selected .pasta-extra-checkbox {
    background: #000;
    border-color: #fff;
    color: #fff;
}

.pasta-extra-price {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}

.pasta-add-btn {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background: linear-gradient(135deg, #666 0%, #444 100%);
    border: none;
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.pasta-add-btn:hover {
    background: linear-gradient(135deg, #444 0%, #666 100%);
}

/* Size Selection Modal */
.size-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
}

.size-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.size-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
}

.size-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.size-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-modal-header h3 {
    color: #fff;
    margin: 0;
}

.size-modal-body {
    padding: 15px 20px;
}

.size-product-name {
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.size-product-desc {
    text-align: center;
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.size-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.size-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.size-option:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.size-label {
    color: #fff;
    font-size: 1rem;
}

.size-price {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

/* Pizza Toppings Section */
.toppings-section {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #444;
}

.toppings-title,
.sauce-title {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: right;
}

.toppings-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.topping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.topping-item:hover {
    border-color: #fff;
    background: linear-gradient(135deg, #3d3d3d 0%, #4d4d4d 100%);
}

.topping-item.selected {
    border-color: #fff;
    background: linear-gradient(135deg, #1a3a3a 0%, #2d4d4d 100%);
}

.topping-name {
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topping-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}

.topping-item.selected .topping-checkbox {
    background: #000;
    border-color: #fff;
    color: #fff;
}

.topping-price {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}

.sauce-section {
    margin-top: 10px;
}

.sauce-select {
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border: 2px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.sauce-select:hover,
.sauce-select:focus {
    border-color: #fff;
    background: linear-gradient(135deg, #3d3d3d 0%, #4d4d4d 100%);
}

/* Categories Page */
.categories-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.8rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.category-card {
    background: #fff;
    border-radius: 15px;
    padding: 35px 25px;
    text-decoration: none;
    color: #333;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 250px;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.category-card .category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.category-card p {
    color: #666;
    font-size: 0.85rem;
    text-align: center;
}

/* Category Shops Page */
.shops-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.shops-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.8rem;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.shop-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.shop-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.shop-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Image-focused shop card style (like product cards) */
.shop-card.image-focused {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    aspect-ratio: 1 / 1;
}

.shop-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Coming Soon styles */
.shop-card.coming-soon {
    opacity: 0.85;
    cursor: pointer;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 15px;
}

.coming-soon-overlay span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255, 215, 0, 0.9);
    padding: 8px 20px;
    border-radius: 25px;
    text-align: center;
}

.coming-soon-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 215, 0, 0.95);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    z-index: 6;
}

/* Coming Soon Modal */
.coming-soon-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

.coming-soon-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a2e;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    z-index: 1001;
    border: 1px solid #333;
    display: none;
}

.shop-card.image-focused img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.shop-card.image-focused:hover img {
    transform: scale(1.05);
}

.shop-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
    color: #fff;
}

.shop-overlay h3,
.shop-overlay p,
.shop-overlay .delivery-time,
.shop-card.image-focused .shop-overlay h3,
.shop-card.image-focused .shop-overlay p,
.shop-card.image-focused .shop-overlay .delivery-time {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
}

.shop-overlay h3 {
    font-size: 1rem;
    margin: 0 0 2px;
}

.shop-overlay p {
    font-size: 0.8rem;
    margin: 0 0 4px;
}

.shop-overlay .delivery-time {
    font-size: 0.85rem;
}

.shop-info {
    padding: 20px;
}

.shop-info h3,
.shop-info p {
    color: #ffffff !important;
}

.shop-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.shop-info p {
    margin-bottom: 10px;
}

/* Old Restaurants Page (kept for compatibility) */
.restaurants-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.restaurants-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.8rem;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.restaurant-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid #333;
}

.restaurant-card:hover {
    border-color: #fff;
}

.restaurant-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.restaurant-info {
    padding: 20px;
}

.restaurant-info h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.restaurant-info p {
    color: #fff;
    margin-bottom: 10px;
}

.delivery-time {
    color: #fff;
    font-size: 0.9rem;
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

.search-box input::placeholder {
    color: #fff;
}

.search-box input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.no-results {
    text-align: center;
    color: #fff;
    padding: 40px;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Category Filter Buttons */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
    padding: 0 20px;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: none;
}

.filter-btn.active {
    background: linear-gradient(135deg, #000 0%, #fff 100%);
    border-color: #fff;
    color: #fff;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: none;
}

.filter-btn.active:hover {
    color: #fff;
}

/* Main Search */
.main-search {
    margin-bottom: 40px;
}

/* Search Results */
.search-results {
    margin-top: 30px;
}

.search-results h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Products Page */
.products-container {
    padding: 40px 20px 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.8rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-price {
    color: #FFD700;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: #FFD700;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: #D4AF37;
    transform: translateY(-2px);
}

/* Image-Focused Product Cards */
.product-card.image-focused {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.product-card.image-focused:hover img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px 18px 12px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-overlay h3 {
    font-size: 0.85rem;
    margin: 0 0 4px 0;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    background: none;
    padding: 0;
    border-radius: 0;
    display: block;
    border: none;
    position: relative;
    z-index: 2;
}

.product-overlay .product-price {
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    background: none;
    padding: 0;
    border-radius: 0;
    display: block;
    border: none;
    position: relative;
    z-index: 2;
}

.empty-cart {
    text-align: center;
    color: #fff;
    padding: 20px;
}

/* Customer Info Section in Cart */
.customer-info-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #444;
}

.customer-info-section h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.customer-info-section .form-group {
    margin-bottom: 12px;
}

.customer-info-section .form-group label {
    display: block;
    color: #fff;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.customer-info-section .form-group input,
.customer-info-section .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.customer-info-section .form-group input:focus,
.customer-info-section .form-group textarea:focus {
    border-color: #fff;
}

.customer-info-section .form-group input::placeholder,
.customer-info-section .form-group textarea::placeholder {
    color: #fff;
}

.customer-info-section .form-group textarea {
    resize: none;
}

.location-btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: linear-gradient(135deg, #4285F4 0%, #1a73e8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.location-btn:hover {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
}
.location-btn:active {
    transform: scale(0.97);
}
.location-btn.location-set {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
}

/* Koshary Restaurant Filter Buttons - Ufi Style */
.koshary-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 15px;
    align-items: center;
}

.koshary-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.koshary-filters .filter-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
}

.koshary-filters .filter-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.koshary-filters .filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    opacity: 1;
    font-weight: 500;
}

/* Dandoosh Restaurant Filter Buttons */
.dandoosh-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 15px;
    align-items: center;
}

.dandoosh-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.dandoosh-filters .filter-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
    white-space: nowrap;
}

.dandoosh-filters .filter-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.dandoosh-filters .filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    opacity: 1;
    font-weight: 500;
}

/* UMB Restaurant Filter Styles */
.umb-filters {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
}

.umb-filters[style*="flex"] {
    display: flex !important;
}

.umb-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.umb-filters .filter-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.umb-filters .filter-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.umb-filters .filter-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Meat Filter Styles */
.meat-filters {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
}

.meat-filters[style*="flex"] {
    display: flex !important;
}

.meat-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.meat-filters .filter-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meat-filters .filter-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.meat-filters .filter-btn.active {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

/* Bakery Filter Styles */
.bakery-filters {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
}

.bakery-filters[style*="flex"] {
    display: flex !important;
}

.bakery-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.bakery-filters .filter-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bakery-filters .filter-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.bakery-filters .filter-btn.active {
    background: #f4a460;
    color: #fff;
    border-color: #f4a460;
}

/* Saidi Desserts Filter Styles */
.saidi-filters {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
}

.saidi-filters[style*="flex"] {
    display: flex !important;
}

.saidi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    justify-items: center;
}

.saidi-filters .filter-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.saidi-filters .filter-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.saidi-filters .filter-btn.active {
    border-color: #FF9800 !important;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.5);
}

.saidi-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.saidi-nav-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #FF9800;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.3);
    transform: translateY(-3px);
}

.saidi-img-card {
    display: block;
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.saidi-img-card:hover {
    border-color: #FF9800;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.3);
    transform: translateY(-3px);
}

.saidi-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.saidi-img-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

.saidi-nav-logo {
    width: 100%;
    height: calc(100% - 36px);
    object-fit: cover;
    border-radius: 13px 13px 0 0;
}

.saidi-nav-name {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    padding: 10px 6px;
    width: 100%;
    background: rgba(0,0,0,0.5);
    color: #fff;
}

/* Eastern Sweets Filter Styles */
.eastern-filters {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
}

.eastern-filters[style*="flex"] {
    display: flex !important;
}

.eastern-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    justify-items: center;
}

/* Grocery Filter Styles */

/* Western Sweets Filter Styles */
.western-filters {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
}

.western-filters[style*="flex"] {
    display: flex !important;
}

.western-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    justify-items: center;
}

/* Grocery Filter Styles */
.grocery-filters {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
}

.grocery-filters[style*="flex"] {
    display: flex !important;
}

.grocery-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

/* Home Category Cards */
.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.home-cat-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 140px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.home-cat-card .cat-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.home-cat-card:hover .cat-card-bg {
    transform: scale(1.05);
}

.home-cat-card span {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.grocery-cat-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 120px;
    text-decoration: none;
}

.grocery-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.grocery-cat-card .cat-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.grocery-cat-card:hover .cat-card-bg {
    transform: scale(1.05);
}

.grocery-cat-card .cat-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.grocery-cat-card .cat-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.grocery-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.grocery-filters .filter-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.grocery-filters .filter-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.grocery-filters .filter-btn.active {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

/* Pharmacy Filter Styles */
.pharmacy-filters {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
}

.pharmacy-filters[style*="flex"] {
    display: flex !important;
}

.pharmacy-filters .filter-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pharmacy-filters .filter-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.pharmacy-filters .filter-btn.active {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

/* Prescription Upload Styles */
.prescription-container {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.prescription-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.prescription-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.prescription-box h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.prescription-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.prescription-upload-area {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.prescription-upload-area:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 3rem;
}

.upload-text {
    font-size: 1.2rem;
    color: #333;
}

.prescription-note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.prescription-note p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: rgba(255, 193, 7, 0.9);
}

.add-prescription-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.add-prescription-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

/* Frisby Restaurant Filter Buttons */
.frisby-filters,
.plato-filters,
.farawja-filters,
.shamsfood-filters,
.azima-filters,
.noorelsham-filters,
.rukndimashqi-filters,
.hekaya-filters,
.wahatmanufi-filters,
.cakeshop-filters,
.momento-filters,
.mashahyat-filters,
.shahin-filters,
.pizzaben-filters {
    display: none;
    flex-direction: row;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.5) rgba(0, 0, 0, 0.3);
}

.frisby-filters[style*="flex"],
.plato-filters[style*="flex"],
.farawja-filters[style*="flex"],
.shamsfood-filters[style*="flex"],
.azima-filters[style*="flex"],
.noorelsham-filters[style*="flex"],
.rukndimashqi-filters[style*="flex"],
.hekaya-filters[style*="flex"],
.wahatmanufi-filters[style*="flex"],
.cakeshop-filters[style*="flex"],
.momento-filters[style*="flex"],
.mashahyat-filters[style*="flex"],
.shahin-filters[style*="flex"],
.pizzaben-filters[style*="flex"] {
    display: flex !important;
}

.frisby-filters::-webkit-scrollbar,
.plato-filters::-webkit-scrollbar,
.farawja-filters::-webkit-scrollbar,
.shamsfood-filters::-webkit-scrollbar,
.azima-filters::-webkit-scrollbar,
.noorelsham-filters::-webkit-scrollbar,
.rukndimashqi-filters::-webkit-scrollbar,
.hekaya-filters::-webkit-scrollbar,
.wahatmanufi-filters::-webkit-scrollbar,
.cakeshop-filters::-webkit-scrollbar,
.momento-filters::-webkit-scrollbar,
.mashahyat-filters::-webkit-scrollbar,
.shahin-filters::-webkit-scrollbar,
.pizzaben-filters::-webkit-scrollbar {
    height: 6px;
}

.frisby-filters::-webkit-scrollbar-track,
.plato-filters::-webkit-scrollbar-track,
.farawja-filters::-webkit-scrollbar-track,
.shamsfood-filters::-webkit-scrollbar-track,
.azima-filters::-webkit-scrollbar-track,
.noorelsham-filters::-webkit-scrollbar-track,
.rukndimashqi-filters::-webkit-scrollbar-track,
.hekaya-filters::-webkit-scrollbar-track,
.wahatmanufi-filters::-webkit-scrollbar-track,
.cakeshop-filters::-webkit-scrollbar-track,
.momento-filters::-webkit-scrollbar-track,
.mashahyat-filters::-webkit-scrollbar-track,
.shahin-filters::-webkit-scrollbar-track,
.pizzaben-filters::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.frisby-filters::-webkit-scrollbar-thumb,
.plato-filters::-webkit-scrollbar-thumb,
.farawja-filters::-webkit-scrollbar-thumb,
.shamsfood-filters::-webkit-scrollbar-thumb,
.azima-filters::-webkit-scrollbar-thumb,
.noorelsham-filters::-webkit-scrollbar-thumb,
.rukndimashqi-filters::-webkit-scrollbar-thumb,
.hekaya-filters::-webkit-scrollbar-thumb,
.wahatmanufi-filters::-webkit-scrollbar-thumb,
.cakeshop-filters::-webkit-scrollbar-thumb,
.momento-filters::-webkit-scrollbar-thumb,
.mashahyat-filters::-webkit-scrollbar-thumb,
.shahin-filters::-webkit-scrollbar-thumb,
.pizzaben-filters::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

.frisby-row,
.plato-row,
.farawja-row,
.shamsfood-row,
.azima-row,
.noorelsham-row,
.rukndimashqi-row,
.hekaya-row,
.wahatmanufi-row,
.cakeshop-row,
.momento-row,
.mashahyat-row,
.shahin-row,
.pizzaben-row {
    display: none;
}

.frisby-filters .filter-btn,
.plato-filters .filter-btn,
.farawja-filters .filter-btn,
.shamsfood-filters .filter-btn,
.azima-filters .filter-btn,
.noorelsham-filters .filter-btn,
.rukndimashqi-filters .filter-btn,
.hekaya-filters .filter-btn,
.wahatmanufi-filters .filter-btn,
.cakeshop-filters .filter-btn,
.momento-filters .filter-btn,
.mashahyat-filters .filter-btn,
.shahin-filters .filter-btn,
.pizzaben-filters .filter-btn {
    background: transparent;
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.frisby-filters .filter-btn:hover,
.plato-filters .filter-btn:hover,
.farawja-filters .filter-btn:hover,
.shamsfood-filters .filter-btn:hover,
.azima-filters .filter-btn:hover,
.noorelsham-filters .filter-btn:hover,
.rukndimashqi-filters .filter-btn:hover,
.hekaya-filters .filter-btn:hover,
.wahatmanufi-filters .filter-btn:hover,
.cakeshop-filters .filter-btn:hover,
.momento-filters .filter-btn:hover,
.mashahyat-filters .filter-btn:hover,
.shahin-filters .filter-btn:hover,
.pizzaben-filters .filter-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    transform: translateY(-2px);
}

.frisby-filters .filter-btn.active,
.plato-filters .filter-btn.active,
.farawja-filters .filter-btn.active,
.shamsfood-filters .filter-btn.active,
.azima-filters .filter-btn.active,
.noorelsham-filters .filter-btn.active,
.rukndimashqi-filters .filter-btn.active,
.hekaya-filters .filter-btn.active,
.wahatmanufi-filters .filter-btn.active,
.cakeshop-filters .filter-btn.active,
.momento-filters .filter-btn.active,
.mashahyat-filters .filter-btn.active,
.shahin-filters .filter-btn.active,
.pizzaben-filters .filter-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Address input with location button */
.address-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.address-input-wrapper textarea {
    flex: 1;
    min-height: 60px;
}

.location-hint {
    display: block;
    color: #ccc;
    font-size: 0.75rem;
    margin-top: 5px;
}

/* Cart Totals Breakdown */
.cart-totals-breakdown {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.cart-subtotal,
.cart-delivery {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cart-total-modal {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #555;
}

.delivery-select {
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}

.delivery-select:focus {
    border-color: #fff;
}

.delivery-select option {
    background: #2d2d2d;
    color: #fff;
}

/* Cart Shop Groups */
.cart-shop-group {
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
}

.cart-shop-header {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-shop-header .shop-name {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.cart-shop-header .shop-total {
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
}

.cart-shop-items {
    padding: 10px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-bottom: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-shop-items .cart-item:last-child {
    margin-bottom: 0;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    color: #fff;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.cart-item-info p {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.quantity-btn {
    background: #000;
    border: none;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn {
    background: #ff4444;
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
}

/* Koshary Extras Modal */
#koshary-extras-modal {
    display: none;
}

#koshary-extras-modal.open {
    display: block;
}

#koshary-modal-overlay {
    display: none;
}

#koshary-modal-overlay.open {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
    }

    .restaurant-subtitle {
        font-size: 0.8rem;
    }

    /* Cart modal mobile */
    .cart-modal-body {
        max-height: calc(100vh - 180px);
    }

    /* Image-focused shop card mobile */
    .shop-card.image-focused {
        aspect-ratio: 1 / 1;
    }

    .shop-overlay {
        padding: 12px;
    }

    .shop-overlay h3 {
        font-size: 0.9rem;
    }

    .shop-overlay p {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .shop-overlay .delivery-time {
        font-size: 0.75rem;
    }

    /* Customer info section mobile */
    .customer-info-section {
        margin-top: 15px;
        padding-top: 15px;
    }

    .customer-info-section h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .customer-info-section .form-group {
        margin-bottom: 10px;
    }

    .customer-info-section .form-group label {
        font-size: 0.85rem;
    }

    .customer-info-section .form-group input,
    .customer-info-section .form-group textarea {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    /* Category filter buttons mobile */
    .category-filters {
        gap: 8px;
        margin-bottom: 20px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    /* Pasta modal mobile */
    .pasta-modal {
        width: 95%;
    }

    .pasta-extras-list {
        max-height: 250px;
    }

    .pasta-extra-item {
        padding: 10px 12px;
    }

    .pasta-extra-name {
        font-size: 0.9rem;
    }

    .pasta-add-btn {
        padding: 12px;
        font-size: 1rem;
    }

    /* Size modal mobile */
    .size-modal {
        width: 95%;
        max-height: 80vh;
    }

    .size-modal-body {
        padding: 12px 15px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .size-product-name {
        font-size: 1.1rem;
    }

    .size-option {
        padding: 12px 15px;
    }

    .size-label {
        font-size: 1rem;
    }

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

    /* Cart shop groups mobile */
    .cart-shop-header {
        padding: 10px 12px;
    }

    .cart-shop-header .shop-name {
        font-size: 0.9rem;
    }

    .cart-shop-header .shop-total {
        font-size: 0.85rem;
    }

    .cart-shop-items {
        padding: 8px;
    }

    /* Search box mobile */
    .search-box {
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .main-search {
        margin-bottom: 25px;
    }

    .search-box input {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    /* Search results mobile */
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .search-results h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    /* Categories mobile */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card {
        padding: 25px 20px;
    }

    .category-icon {
        font-size: 3rem;
    }

    .category-card h3 {
        font-size: 1.2rem;
    }

    /* Shops mobile */
    .shops-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shop-card img {
        height: 100px;
    }

    .shop-info {
        padding: 10px;
    }

    .shop-info h3 {
        font-size: 0.9rem;
    }

    .shop-info p {
        font-size: 0.7rem;
    }

    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .restaurant-card img {
        height: 100px;
    }

    .restaurant-info {
        padding: 10px;
    }

    .restaurant-info h3 {
        font-size: 0.9rem;
    }

    .restaurant-info p {
        font-size: 0.7rem;
    }

    .delivery-time {
        font-size: 0.7rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card img {
        height: 100px;
    }

    .product-card.image-focused {
        aspect-ratio: 1 / 1;
    }

    .product-overlay h3 {
        font-size: 0.8rem;
    }

    .product-overlay .product-price {
        font-size: 0.85rem;
    }

    .product-info {
        padding: 10px;
    }

    .product-info h3 {
        font-size: 0.85rem;
    }

    .product-info p {
        font-size: 0.7rem;
    }

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

    .add-to-cart {
        padding: 8px;
        font-size: 0.8rem;
    }

    .bottom-cart {
        padding: 10px 15px;
    }

    .cart-summary {
        font-size: 0.9rem;
    }

    .whatsapp-btn-bottom {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .cart-details {
        left: 10px;
        right: 10px;
    }
}

/* ===== MOBILE PERFORMANCE OPTIMIZATIONS ===== */

/* Fast scrolling on mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Touch optimization */
* {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Min touch target 44px for all interactive elements */
button, a, input, select, .filter-btn, .size-option, .add-btn, .qty-btn {
    min-height: 44px;
    min-width: 44px;
}

/* GPU acceleration for animations */
.category-card, .shop-card, .product-card, .cart-item {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Content visibility for off-screen elements */
.products-grid, .shops-grid, .categories-grid {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Reduced motion for performance on mobile */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile optimizations - reduce expensive effects */
@media (pointer: coarse) and (max-width: 768px) {
    /* Reduce blur intensity on mobile for performance */
    header, .product-card, .shop-card, .category-card, .cart-shop-header, .cart-modal, .size-modal, .cart-item {
        backdrop-filter: blur(8px);
    }

    /* Optimize scrolling containers */
    .products-container, .shops-container, main {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    /* Reduce shadows for performance */
    .category-card, .shop-card, .product-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    /* Touch-friendly spacing */
    .product-card, .shop-card, .category-card {
        margin-bottom: 12px;
    }

    /* Larger touch targets for mobile */
    .filter-btn, .size-option {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .qty-btn {
        width: 40px;
        height: 40px;
    }

    /* Fast modal transitions */
    .cart-modal, .size-modal {
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    }

    /* Optimize images for mobile - use HTML loading="lazy" instead */
    .product-card img, .shop-card img {
        will-change: transform;
    }
}

/* Payment Options Styling */
.payment-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Bottom black overlay for readability without layout changes */
.product-card.image-focused {
    position: relative;
}
.product-card.image-focused::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44%;
    /* darker gradient to improve contrast while keeping smooth fade */
    background: transparent;
    pointer-events: none;
    z-index: 1;
}
.product-card.image-focused .product-info,
.product-card.image-focused .product-name,
.product-card.image-focused .product-price {
    position: relative;
    z-index: 2;
    color: #333333;
    text-shadow: 0 1px 3px rgba(255,255,255,0.85);
}
.product-card.image-focused .product-overlay {
    z-index: 2;
}
.product-card.image-focused .product-overlay h3,
.product-card.image-focused .product-overlay .product-price {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
}

.payment-option {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: #fff;
}

.payment-option input[type="radio"]:checked ~ .payment-label {
    color: #fff;
}

.payment-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    border-width: 3px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), 0 0 0 4px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    width: 100%;
    justify-content: center;
}

/* Category Icons Section - Talabat Style */
.category-icons-section {
    padding: 20px 16px;
    background: #fff;
    margin-bottom: 10px;
}

.category-icons-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.category-icons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    min-width: 60px;
}

.category-icon-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-icon-name {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #333;
}

/* Welcome Popup */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.welcome-popup.hidden {
    display: none;
}
.welcome-popup-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: popIn 0.4s ease;
}
@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.welcome-popup-emoji {
    font-size: 50px;
    margin-bottom: 10px;
}
.welcome-popup-content h2 {
    color: #FF6B00;
    font-size: 22px;
    margin-bottom: 12px;
}
.welcome-popup-content p {
    color: #444;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.6;
}
.welcome-popup-btn {
    background: #FF6B00;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s, transform 0.2s;
}
.welcome-popup-btn:hover {
    background: #e55d00;
    transform: scale(1.05);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 11px;
    padding: 5px 15px;
    transition: color 0.2s;
}

.bottom-nav-item.active {
    color: #FF6B00;
}

.bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 3px;
}

.bottom-nav-item span {
    font-weight: 500;
}

.cart-nav-item {
    position: relative;
}

.cart-nav-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(14px);
    background: #FF6B00;
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 4px;
}

/* Promo Banner Section */
.promo-section {
    padding: 0 16px 20px;
}

.promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-banner.pro-orange {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 100%);
}

.promo-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-text p {
    font-size: 14px;
    opacity: 0.9;
}

.promo-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

/* Update body padding for bottom nav */
body {
    padding-top: 120px;
    padding-bottom: 70px;
}

/* High-performance mode - minimal effects */
@media (max-width: 480px) {
    .product-card, .shop-card, .category-card, header, .cart-shop-header {
        backdrop-filter: blur(4px);
    }

    /* Disable complex gradients on small screens */
    .filter-btn, .size-option {
        background: rgba(255, 255, 255, 0.03);
    }
}

/* Persistent install CTA */
.install-app-btn {
    position: fixed;
    top: 82px;
    left: 16px;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFD700 0%, #FF6B00 100%);
    color: #000;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
    cursor: pointer;
}

@media (max-width: 768px) {
    .install-app-btn {
        display: flex;
    }
}

.install-app-btn:hover {
    transform: translateY(-1px);
}


