/* ================================================
   ORDER LINE - COMPLETE CSS FILE
   Replace your entire CSS file with this content
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   PRODUCTS CONTAINER & STORE CARDS - UNIFIED
   ================================================ */

/* Products Container - Single Unified Definition */
.stores-grid,
#products-container,
#products-container.stores-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 20px 0 !important;
    width: 100% !important;
    min-height: 200px !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
}

/* Store Cards - Single Unified Definition */
.store-card {
    background: white !important;
    border-radius: 15px !important;
    padding: 1.5rem !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 200px !important;
    width: auto !important;
    margin: 0 !important;
    
    /* Remove conflicting animations */
    transform: none !important;
    animation: none !important;
}

/* Store Card Hover Effects */
.store-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Store Card Top Border Effect */
.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a5f, #ffd700);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.store-card:hover::before {
    transform: scaleX(1);
}

/* Store Header */
.store-header {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

/* Store Logo */
.store-logo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    display: block !important;
    background: linear-gradient(135deg, #1e3a5f, #2c5282) !important;
}

.store-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Store Info */
.store-info {
    flex: 1 !important;
}

.store-info h3 {
    color: #1e3a5f !important;
    font-size: 1.2rem !important;
    margin-bottom: 0.2rem !important;
    font-weight: 600 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Store Rating */
.store-rating {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    color: #ffd700 !important;
    font-size: 0.9rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Store Description */
.store-description {
    color: #666 !important;
    margin-bottom: 1rem !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Store Tags */
.store-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
}

.store-tag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #1e3a5f !important;
    padding: 0.3rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Store Footer */
.store-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #eee !important;
}

/* Delivery Time */
.delivery-time {
    color: #28a745 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Store Button */
.store-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #1e3a5f !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.store-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4) !important;
}

/* ================================================
   LOADING & EMPTY STATES
   ================================================ */

.loading, .empty-state {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 40px !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    text-align: center !important;
    min-height: 200px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e3a5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state h3 {
    color: #1e3a5f !important;
    margin-bottom: 1rem !important;
    font-size: 1.5rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.empty-state p {
    color: #666 !important;
    font-size: 1.1rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ================================================
   HEADER SECTION
   ================================================ */

.header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(10px) translateY(10px); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: logoFloat 3s ease-in-out infinite;
    border: 4px solid #ffd700;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-text .o-letter {
    color: white;
}

.logo-text .l-letter {
    color: #ffd700;
}

.tagline {
    color: white;
    font-size: 1.1rem;
    margin-top: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

/* City Filter */

.filter-container {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between dropdown and language links */
    flex-wrap: wrap; /* allow wrapping on small screens */
}


.language-switcher .language-link {
    margin-left: 5px;
    padding: 6px 10px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.language-switcher .language-link:hover {
    background-color: #e0e0e0;
}

.city-filter {
    position: relative;
    z-index: 2;
}

.city-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    backdrop-filter: blur(10px);
}

.city-select:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.city-select option {
    background: #1e3a5f;
    color: white;
    padding: 0.5rem;
}

/* ================================================
   SLIDER SECTION
   ================================================ */

.slider-section {
    margin-bottom: 3rem;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: white;
}

.slider-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 95, 0.3), rgba(44, 82, 130, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide:hover .slide-overlay {
    opacity: 1;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1e3a5f;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

.slider-nav:hover {
    background: #ffd700;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator.active,
.indicator:hover {
    background: #ffd700;
    border-color: #ffd700;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ================================================
   CATEGORIES NAVIGATION
   ================================================ */

.categories-nav {
    background: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.category-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    color: #1e3a5f;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
    transition: left 0.5s ease;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    color: white;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.3);
}

.category-btn.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1e3a5f;
}

/* ================================================
   MAIN CONTENT
   ================================================ */

.main-content {
    padding: 2rem 0;
}

.category-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 4rem !important;
    transform: translateY(0) !important;
    transition: all 0.5s ease;
}

.category-section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.3);
    overflow: hidden;
}

.section-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.section-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ================================================
   FOOTER SECTION
   ================================================ */

.footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,215,0,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrid)"/></svg>');
    animation: footerGridMove 30s linear infinite;
}

@keyframes footerGridMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(20px) translateY(20px); }
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z" fill="rgba(255,215,0,0.1)"></path></svg>') repeat-x;
    background-size: 1200px 120px;
    animation: waveMove 15s ease-in-out infinite;
}

@keyframes waveMove {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-100px); }
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0 2rem;
    color: white;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #ffd700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: bold;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, transparent);
    border-radius: 2px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-radius: 5px;
    position: relative;
    font-weight: 500;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 215, 0, 0.1);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-section a:hover {
    color: #ffd700;
    transform: translateX(5px);
    padding-left: 0.5rem;
}

/* Contact Icons */
.contact-link {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.contact-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* Social Icons */
.social-link {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.facebook-icon {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.instagram-icon {
    background: linear-gradient(135deg, #e1306c, #fd5949, #ffdc80);
}

.social-link:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .slider-wrapper {
        height: 250px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .categories-list {
        gap: 0.5rem;
    }

    .category-btn {
        min-width: 120px;
        padding: 0.8rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stores-grid,
    #products-container,
    #products-container.stores-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    .store-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0 2rem;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ================================================
   LOADING ANIMATIONS
   ================================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-out 1.5s forwards;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 215, 0, 0.3);
    border-top: 5px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ================================================
   RIPPLE EFFECTS & ANIMATIONS
   ================================================ */

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Enhanced store logo styling */
.store-logo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 15px !important;
    overflow: hidden;
    flex-shrink: 0;
}

.store-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 15px !important;
}

/* Smooth transitions for content updates */
#products-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.store-card {
    animation: storeSlideIn 0.6s ease-out;
    animation-play-state: paused;
    animation-fill-mode: both;
}

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

/* ================================================
   UTILITY CLASSES
   ================================================ */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #333;
}

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

/* GPU acceleration for smooth animations */
.store-card,
.category-btn,
.slider-nav,
.logo {
    will-change: transform;
}

/* Optimize text rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* ================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================ */

/* Focus states for keyboard navigation */
.category-btn:focus,
.store-btn:focus,
.city-select:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .store-card {
        border: 2px solid #000;
    }
    
    .category-btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
    .header,
    .categories-nav,
    .footer,
    .slider-section {
        display: none;
    }
    
    .store-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ================================================
   END OF CSS FILE
   ================================================ */