/*
--- JIKONI SAFARI MAIN STYLES ---

/* --- Global & Typography --- */
* {
    box-sizing: border-box;
}

/* =========================================
   1. GLOBAL & TYPOGRAPHY REFINEMENTS
   ========================================= */
:root {
    --primary-color: #FF6B35;
    --primary-dark: #e55a2b;
    --secondary-color: #2D3436;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --header-height: 80px;
    --footer-bg: #111827;
    --footer-text: #D1D5DB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    /* Add padding to prevent content from hiding behind fixed header */
    padding-top: var(--header-height);
}

/* =========================================
   LANGUAGE SWITCHER STYLES
   ========================================= */

.language-switcher {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--bg-light);
}

.language-option.active {
    background: var(--primary-color);
    color: white;
}

.language-option .flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
}

/* Language Loader */
.language-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

.language-loader.active {
    display: flex;
}

.language-loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-language-options {
    display: flex;
    gap: 0.5rem;
}

.mobile-language-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-language-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    color: white;
    font-weight: 600;
}

.toast-error {
    background: #dc3545;
}

.toast-success {
    background: #28a745;
}

.toast-info {
    background: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* RTL Support (if needed in future) */
[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .language-btn {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .language-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .language-dropdown {
        min-width: 120px;
    }
    
    .mobile-language-switcher {
        padding: 0.75rem;
    }
    
    .mobile-language-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* =========================================
   2. TOP BAR (New Professional Addition)
   ========================================= */
.top-bar {
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.8rem;
    padding: 8px 0;
    display: none; /* Hidden on mobile */
}

@media (min-width: 768px) {
    .top-bar { display: block; }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 1.5rem;
    font-size: 0.8rem;
}

.top-links a:hover { color: white; }

/* =========================================
   3. GLASSMORPHISM FIXED HEADER
   ========================================= */
.main-header {
    position: fixed;
    top: 0; /* Adjust if Top Bar is visible, handled via JS usually, or top:0 is fine */
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: var(--bg-white); /* Fallback */
    background: rgba(255, 255, 255, 0.8); /* Translucent start */
    backdrop-filter: blur(12px); /* The Glass Effect */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* State when scrolled down */
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 70px; /* Slight shrink effect */
}

/* Adjust body padding if top bar exists */
@media (min-width: 768px) {
    .main-header { top: 32px; } /* Height of top bar */
    .main-header.scrolled { top: 0; } /* Stick to very top on scroll */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Container */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
    transition: var(--transition);
    height: 60px; /* Fixed height for consistent alignment */
}

/* Logo Image */
.logo-image {
    height: 50px; /* Control the height */
    width: auto; /* Maintain aspect ratio */
    max-width: 200px; /* Prevent logo from getting too wide */
    object-fit: contain; /* Ensure entire logo is visible */
    transition: var(--transition);
}

/* Optional: Different logo for mobile */
.logo-mobile {
    display: none; /* Hide by default */
}

/* Logo Hover Effects */
.logo:hover .logo-image {
    transform: scale(1.05); /* Subtle zoom on hover */
    filter: brightness(1.1); /* Slightly brighter on hover */
}

/* Logo in Header/Navbar */
header .logo {
    margin-right: 2rem;
}

/* Responsive Logo Adjustments */
@media (max-width: 768px) {
    /* Shrink logo on mobile */
    .logo-image {
        height: 40px;
        max-width: 150px;
    }
    
    /* Option: Show different logo variant for mobile */
    .logo-desktop {
        display: none;
    }
    .logo-mobile {
        display: block;
    }
    
    /* If using both desktop and mobile logo versions */
    .logo {
        gap: 0.5rem;
        height: 50px; /* Reduce height on mobile */
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .logo-image {
        height: 35px;
        max-width: 120px;
    }
}

/* Alternative: Logo with text beside it */
.logo-with-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-with-text .logo-image {
    height: 40px;
}

.logo-with-text .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

/* Logo in Footer (can be different size) */
footer .logo-image {
    height: 60px;
    max-width: 180px;
}

footer .logo {
    margin-bottom: 1rem;
    justify-content: center;
}

/* Logo Animation (Optional) */
@keyframes logoPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo-animated:hover .logo-image {
    animation: logoPulse 0.6s ease-in-out;
}

/* Dark Mode Logo Variant */
@media (prefers-color-scheme: dark) {
    .logo-dark {
        display: block;
    }
    .logo-light {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .logo-image {
        filter: contrast(1.2);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .logo-image {
        transition: none;
    }
    .logo:hover .logo-image {
        transform: none;
    }
}

/* Logo in Print Styles */
@media print {
    .logo-image {
        filter: grayscale(100%) contrast(200%);
        height: 40px;
    }
}


/* Main Nav Links */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Nav Actions (Search, Cart, User) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.action-icon {
    color: var(--text-dark);
    font-size: 1.1rem;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon:hover { color: var(--primary-color); }

/* Custom Cart Icon Image */
.cart-icon-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
}

.cart-icon-wrap:hover .cart-icon-image {
    transform: scale(1.05);
    opacity: 0.85;
}

.user-greeting {
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}

/* Dropdown Menu */
.nav-dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 150%;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #f9fafb;
}

.dropdown-header strong { display: block; }
.dropdown-header small { color: var(--text-muted); }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-item:hover { background: #f3f4f6; }
.dropdown-item i { width: 20px; color: var(--text-muted); }

/* =========================================
   4. PROFESSIONAL FOOTER
   ========================================= */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
}

/* Newsletter */
.footer-newsletter {
    background: var(--secondary-color); /* Slightly lighter than footer bg */
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.newsletter-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.newsletter-text h3 { color: white; margin: 0 0 0.5rem; }
.newsletter-text p { margin: 0; color: rgba(255,255,255,0.7); }

.newsletter-form .input-group {
    display: flex;
    width: 100%;
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    padding: 0.75rem 1.5rem;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.footer-logo {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.brand-col p { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.6); }

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links, .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: var(--footer-text);
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-links a:hover { color: var(--primary-color); }

.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

.contact-list i { color: var(--primary-color); margin-top: 3px; }

/* Socials */
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: background 0.3s;
}
.social-links a:hover { background: var(--primary-color); }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-methods { font-size: 2rem; display: flex; gap: 1rem; color: rgba(255,255,255,0.5); }

/* =========================================
   5. RESPONSIVE HEADER & FOOTER
   ========================================= */
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* Mobile Header Actions (Cart + Menu Toggle) */
.mobile-header-actions {
    display: none; /* Hidden on desktop */
    align-items: center;
    gap: 1rem;
}

.mobile-cart-icon {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cart-icon-image {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
}

.mobile-cart-icon:hover .mobile-cart-icon-image {
    transform: scale(1.05);
    opacity: 0.85;
}

.mobile-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}

.mobile-nav { 
    position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; 
    background: white; z-index: 2000; transition: right 0.3s ease; 
    box-shadow: -5px 0 30px rgba(0,0,0,0.15); display: flex; flex-direction: column; 
}
.mobile-nav.active { right: 0; }
.mobile-nav-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); z-index: 1500; opacity: 0; 
    visibility: hidden; transition: all 0.3s; 
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

.mobile-nav-header { 
    padding: 1.5rem; display: flex; justify-content: space-between; 
    align-items: center; border-bottom: 1px solid var(--border-color); 
}
.mobile-nav-content { padding: 1.5rem; overflow-y: auto; }
.mobile-nav-links { list-style: none; padding: 0; margin: 0; }
.mobile-nav-links li { margin-bottom: 1rem; }
.mobile-nav-links a { color: var(--text-dark); font-size: 1.1rem; display: flex; align-items: center; gap: 1rem; font-weight: 500; }
.mobile-divider { height: 1px; background: var(--border-color); margin: 1.5rem 0; }

@media (max-width: 991px) {
    .main-nav { display: none; }
    .mobile-header-actions { 
        display: flex; /* Show mobile actions on mobile */
    }
    .mobile-menu-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-header { top: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .newsletter-content { flex-direction: column; align-items: stretch; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* =========================================
   UPDATED HERO SECTION STYLES (Full-Width, Responsive, Restore Classic Look)
   ========================================= */
.hero {
    position: relative;
    width: 100vw; /* Full viewport width to fit device always */
    margin-left: calc(50% - 50vw); /* Center it by offsetting the container's centering */
    margin-right: calc(50% - 50vw); /* Same for right side */
    background: url('../images/hero-bg.jpg') no-repeat center/cover; /* Restore background image (replace with your actual hero image path if different) */
    padding: 6rem 1.5rem; /* Generous padding for content breathing room */
    text-align: center;
    color: white; /* White text for contrast on dark background */
    overflow: hidden; /* Prevent overflow issues */
    min-height: 400px; /* Minimum height to ensure visibility on small devices */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3); /* Subtle inner shadow for depth */
    transition: var(--transition);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for better text readability */
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
}

.hero h1 {
    color: #FFFFFF !important; /* Your requested color */
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    position: relative;
    letter-spacing: -0.5px;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #FF6B35;
    border-radius: 2px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7); /* Enhanced shadow */
    font-weight: 500; /* Slightly bolder */
}

.search-bar {
    display: flex;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-bar input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    background: white;
    color: var(--text-dark);
}

.search-bar button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--secondary-color);
}

/* Responsive adjustments for hero (fits all devices) */
@media (max-width: 767px) {
    .hero {
        padding: 4rem 1rem;
        min-height: 300px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input,
    .search-bar button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark); 
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   ENHANCED MODERN CATEGORY SECTION FOR INDEX.PHP
   ========================================= */

/* Main category container */
.category-section {
    padding: 3rem 0;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.category-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.05;
    z-index: 0;
}

.category-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.03;
    z-index: 0;
}

/* Section title */
.category-section h2.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.category-section h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff9f68);
    border-radius: 2px;
}

/* Category grid layout - 4 above, 4 below on desktop */
.category-grid-index {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Category card styling */
.category-card-index {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 220px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card image container */
.category-image-index {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
    z-index: 1;
}

/* Gradient overlay for better text readability */
.category-card-index::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Category title styling */
.category-title-index {
    position: relative;
    z-index: 3;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    width: 100%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px; /* Ensure consistent height for all titles */
    background: linear-gradient(
        to bottom,
        rgba(255, 107, 53, 0.15) 0%,
        rgba(255, 107, 53, 0.25) 50%,
        rgba(255, 107, 53, 0.35) 100%
    );
    backdrop-filter: blur(4px);
    margin: 0;
    transition: all 0.3s ease;
}

/* Hover effects */
.category-card-index:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.25);
    border-color: var(--primary-color);
}

.category-card-index:hover .category-image-index {
    transform: scale(1.05);
}

.category-card-index:hover::before {
    opacity: 0.9;
    background: linear-gradient(
        to bottom,
        rgba(255, 107, 53, 0.4) 0%,
        rgba(255, 107, 53, 0.5) 50%,
        rgba(255, 107, 53, 0.6) 100%
    );
}

.category-card-index:hover .category-title-index {
    background: linear-gradient(
        to bottom,
        rgba(255, 107, 53, 0.4) 0%,
        rgba(255, 107, 53, 0.5) 50%,
        rgba(255, 107, 53, 0.6) 100%
    );
    backdrop-filter: blur(6px);
    transform: scale(1.05);
}

/* Tablet styles (768px to 991px) */
@media (max-width: 991px) {
    .category-grid-index {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 1.25rem;
    }
    
    .category-card-index {
        height: 200px; /* Slightly smaller on tablets */
    }
    
    .category-title-index {
        font-size: 1.3rem;
        min-height: 70px;
    }
    
    .category-section {
        padding: 2.5rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .category-section h2.section-title {
        font-size: 1.9rem;
        margin-bottom: 2rem;
    }
}

/* Mobile styles (up to 767px) */
@media (max-width: 767px) {
    .category-grid-index {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .category-card-index {
        height: 180px; /* Smaller on mobile */
    }
    
    .category-title-index {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 0.75rem;
        min-height: 60px;
    }
    
    .category-section {
        padding: 2rem 1rem;
        margin: 1rem 0;
        border-radius: 16px;
    }
    
    .category-section h2.section-title {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }
    
    .category-section::before,
    .category-section::after {
        display: none; /* Remove decorative elements on mobile for better performance */
    }
}

/* Small mobile devices (up to 480px) - 2 columns, 4 rows */
@media (max-width: 480px) {
    .category-grid-index {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .category-card-index {
        height: 140px;
    }
    
    .category-title-index {
        font-size: 1rem;
        min-height: 50px;
        padding: 0.5rem;
    }
    
    .category-section {
        padding: 1.5rem 0.75rem;
    }
    
    .category-section h2.section-title {
        font-size: 1.5rem;
    }
}

/* Extra small devices (up to 375px) - keep 2 columns, 4 rows */
@media (max-width: 375px) {
    .category-grid-index {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .category-card-index {
        height: 120px;
    }
    
    .category-title-index {
        font-size: 0.9rem;
        min-height: 45px;
        padding: 0.4rem;
    }
}

/* Animation for cards on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card-index {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Stagger the animations */
.category-card-index:nth-child(1) { animation-delay: 0.1s; }
.category-card-index:nth-child(2) { animation-delay: 0.2s; }
.category-card-index:nth-child(3) { animation-delay: 0.3s; }
.category-card-index:nth-child(4) { animation-delay: 0.4s; }
.category-card-index:nth-child(5) { animation-delay: 0.5s; }
.category-card-index:nth-child(6) { animation-delay: 0.6s; }
.category-card-index:nth-child(7) { animation-delay: 0.7s; }
.category-card-index:nth-child(8) { animation-delay: 0.8s; }

/* Accessibility: Focus styles */
.category-card-index:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .category-card-index {
        animation: none;
        transition: none;
    }
    
    .category-card-index:hover {
        transform: none;
    }
    
    .category-card-index:hover .category-image-index {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .category-card-index {
        border: 2px solid var(--text-dark);
    }
    
    .category-title-index {
        background: rgba(0, 0, 0, 0.9);
        text-shadow: 0 0 5px #000;
    }
}

/*
=========================================
PROMOTION CAROUSEL STYLES
=========================================
*/

.promotion-section {
    /* Full-width like the hero, but respects container width */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--bg-white);
    margin-bottom: 2rem;
}

.promotion-carousel {
    position: relative;
    overflow: hidden;
    max-width: 1200px; /* Match container width */
    margin: 0 auto;
    background: #111; /* Dark bg like example */
    border-radius: var(--border-radius); /* Use existing style */
    box-shadow: var(--shadow);
}

.promotion-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.promotion-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: 55% 45%; /* 55% media, 45% text */
    align-items: center;
    min-height: 400px;
}

.promotion-media {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.promotion-media img,
.promotion-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.placeholder-media {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.promotion-content {
    padding: 3rem 4rem;
    color: var(--bg-light); /* Light text on dark bg */
}

.promotion-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.promotion-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.promo-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

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

.promo-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.promo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.promo-dot.active,
.promo-dot:hover {
    background: white;
}

/* Responsive */
@media (max-width: 991px) {
    .promotion-slide {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .promotion-media {
        height: 250px;
        min-height: 250px;
    }

    .promotion-content {
        padding: 2rem;
        text-align: center;
    }
    
    .promotion-content h2 {
        font-size: 2rem;
    }

    /* Move dots for mobile */
    .promo-dots {
        bottom: auto;
        top: 230px; /* Position over the image */
    }
}

@media (max-width: 480px) {
    .promotion-content {
        padding: 1.5rem;
    }
    .promotion-content h2 {
        font-size: 1.5rem;
    }
    .promotion-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .promo-nav {
        width: 36px;
        height: 36px;
    }
    .promo-nav.prev { left: 10px; }
    .promo-nav.next { right: 10px; }
}

/*
=========================================
ENHANCED CUSTOMER DASHBOARD LAYOUT STYLES
=========================================
*/

.dashboard-wrapper {
  display: flex;
  position: relative;
  min-height: 100vh;
  background: var(--bg-light);
}

/* Sidebar - Fixed on Desktop */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}
.sidebar-header .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bg-white);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.sidebar-header .logo i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.dashboard-user {
    text-align: center;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}
.dashboard-user .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}
.dashboard-user h4 {
    margin: 0;
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 600;
}
.dashboard-user p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0 0 0;
    word-break: break-all;
}

.dashboard-nav {
  flex-grow: 1;
  padding: 1rem 0;
}
.dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dashboard-nav li {
    margin: 0.25rem 0;
}
.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}
.dashboard-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}
.dashboard-nav a:hover::before {
    left: 100%;
}
.dashboard-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}
.dashboard-nav a.active {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.2), transparent);
    color: white;
    border-left-color: var(--primary-color);
    box-shadow: inset 0 0 20px rgba(255, 107, 53, 0.1);
}
.dashboard-nav a i {
    width: 20px;
    font-size: 1.2rem;
    text-align: center;
    transition: transform 0.3s ease;
}
.dashboard-nav a:hover i {
    transform: scale(1.1);
}

.dashboard-nav a .nav-text {
    transition: opacity 0.3s ease;
}

.sidebar-footer {
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-outline-light {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}
.btn-outline-light:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Main Content Area */
.dashboard-main-content {
    flex: 1;
    /* Pushes content to the right of the fixed sidebar */
    margin-left: var(--sidebar-width); 
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Main Header inside Dashboard */
.dashboard-main-header {
    background: var(--bg-white);
    padding: 1rem 2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 500;
}

.dashboard-main-body {
    padding: 2rem;
    flex-grow: 1;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.dashboard-main-header h1 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-actions .nav-cart {
    font-size: 1.3rem;
    color: var(--text-dark);
    position: relative;
}
.header-actions .nav-home-mobile {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.sidebar-toggle {
    display: none; /* Hide by default on desktop */
    font-size: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    z-index: 1001; /* Ensure it's above other elements */
}

@media (max-width: 991px) {
    .sidebar-toggle {
        display: flex !important; /* Force show on mobile */
        align-items: center;
        justify-content: center;
    }
}

.sidebar-toggle:hover {
    background: var(--bg-light);
    transform: scale(1.1);
}

.dashboard-main-body {
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

/* --- Enhanced Dashboard Widgets --- */
.dashboard-widget {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.dashboard-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.dashboard-widget:hover::before {
    opacity: 1;
}
.dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.widget-title {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.widget-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* MOBILE RESPONSIVENESS 
   (Sidebar hides, content goes full width)
*/
@media (max-width: 991px) {
    .dashboard-sidebar {
        transform: translateX(-100%); /* Hidden by default on mobile */
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    
    /* When sidebar is open on mobile */
    body.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    /* Content takes full width on mobile */
    .dashboard-main-content {
        margin-left: 0;
        width: 100%;
    }

    /* Overlay when sidebar is open */
    #sidebar-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 900;
        display: none;
        backdrop-filter: blur(2px);
    }

    body.sidebar-open #sidebar-overlay {
        display: block;
    }
}

/* --- Enhanced Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--bg-white), #fafafa);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(245, 69, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.stat-card:hover::before {
    opacity: 1;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}
.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light), white);
    padding: 1.5rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    z-index: 1;
}
.stat-info {
    flex-grow: 1;
    z-index: 1;
}
.stat-info span {
    color: var(--text-light);
    font-size: 0.95rem;
    display: block;
    font-weight: 500;
}
.stat-info strong {
    font-size: 1.8rem;
    color: var(--secondary-color);
    display: block;
    margin-top: 0.25rem;
}
.stat-link {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
    z-index: 1;
}
.stat-link:hover {
    background: var(--secondary-color);
    transform: translateX(3px);
}

/* --- Enhanced Recent Activity --- */
.recent-activity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}
.recent-activity p {
    margin: 0;
    flex-grow: 1;
    font-size: 1rem;
}

/* --- Enhanced Status Badges --- */
.status-badge-pending { 
    background: linear-gradient(135deg, #fff3cd, #ffeaa7); 
    color: #856404; 
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(133, 100, 4, 0.1);
}
.status-badge-confirmed, 
.status-badge-preparing, 
.status-badge-ready_for_pickup, 
.status-badge-on_delivery { 
    background: linear-gradient(135deg, #d1ecf1, #b8e2eb); 
    color: #0c5460; 
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(12, 84, 96, 0.1);
}
.status-badge-completed { 
    background: linear-gradient(135deg, var(--success-light), #c3e6cb); 
    color: var(--success-dark); 
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(21, 87, 36, 0.1);
}
.status-badge-cancelled { 
    background: linear-gradient(135deg, var(--error-light), #f1b0b7); 
    color: var(--error-dark); 
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(114, 28, 36, 0.1);
}

/* --- Enhanced Table Styles --- */
.table-responsive-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.order-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}
.order-table th, .order-table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.order-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}
.order-table tr:hover {
    background: rgba(255, 107, 53, 0.02);
}
.order-table .status {
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: capitalize;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

/* --- Enhanced Wallet Styles --- */
.wallet-overview { 
    display: grid; 
    grid-template-columns: 1fr auto; 
    gap: 2rem; 
    align-items: center; 
}
.wallet-balance-card { 
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); 
    color: white; 
    padding: 2.5rem; 
    border-radius: var(--border-radius); 
    position: relative;
    overflow: hidden;
}
.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}
.balance-label { 
    display: block; 
    font-size: 1rem; 
    opacity: 0.9; 
    margin-bottom: 0.5rem;
}
.balance-amount { 
    display: block; 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.wallet-actions { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: wrap;
}
.wallet-actions .btn {
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wallet-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* --- Enhanced Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border-radius: var(--border-radius);
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Enhanced Form Styles --- */
.auth-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.form-control {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-white);
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

/* --- Enhanced Buttons --- */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before {
    left: 100%;
}
.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}
.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* --- Enhanced Alerts --- */
.alert {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
}
.alert-success {
    color: var(--success-dark);
    background-color: var(--success-light);
    border-color: #c3e6cb;
}
.alert-success::before {
    background: var(--success-color);
}
.alert-error, .alert-danger {
    color: var(--error-dark);
    background-color: var(--error-light);
    border-color: #f5c6cb;
}
.alert-error::before, .alert-danger::before {
    background: var(--danger-color);
}
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
.alert-info::before {
    background: var(--info-color);
}

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

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Tablet and Small Desktop */
@media (max-width: 1199px) {
    .dashboard-sidebar {
        width: 250px;
    }
    .dashboard-main-content {
        margin-left: 250px;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Tablet */
@media (max-width: 991px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        z-index: 1100;
        width: 300px;
    }

    .dashboard-main-content {
        margin-left: 0;
        width: 100%;
    }

    .dashboard-main-header,
    .sidebar-toggle {
        display: flex;
    }

    #sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 1050; 
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    /* State when sidebar is open on mobile */
    body.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open #sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .dashboard-main-body {
        padding: 1.5rem;
    }

    .wallet-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .wallet-actions {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .dashboard-main-body {
        padding: 1rem;
    }

    .dashboard-widget {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stat-card i {
        width: 70px;
        height: 70px;
        padding: 1rem;
    }

    .recent-activity {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .widget-title {
        font-size: 1.3rem;
    }

    .order-table {
        font-size: 0.85rem;
    }

    .order-table th, 
    .order-table td {
        padding: 0.75rem 0.5rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .wallet-balance-card {
        padding: 2rem 1.5rem;
    }

    .balance-amount {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .dashboard-sidebar {
        width: 280px;
    }

    .dashboard-user .avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .dashboard-user h4 {
        font-size: 1rem;
    }

    .wallet-actions {
        flex-direction: column;
        width: 100%;
    }

    .wallet-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .stat-info strong {
        font-size: 1.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .dashboard-widget {
        padding: 1.25rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .widget-title {
        font-size: 1.2rem;
    }

    .balance-amount {
        font-size: 1.75rem;
    }
}

/*
=========================================
ACCESSIBILITY & INTERACTION ENHANCEMENTS
=========================================
*/

/* Focus styles for better accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .dashboard-widget {
        border: 2px solid var(--border-color);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dashboard-main-content {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .dashboard-widget {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #404040;
    }
    
    .widget-title {
        color: #ffffff;
    }
}

/* Print styles */
@media print {
    .dashboard-sidebar,
    .dashboard-main-header,
    .btn {
        display: none !important;
    }
    
    .dashboard-main-content {
        margin-left: 0 !important;
    }
    
    .dashboard-widget {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Selection styles */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: var(--text-dark);
}

::-moz-selection {
    background: rgba(255, 107, 53, 0.3);
    color: var(--text-dark);
}

/* Add these styles to your existing style.css file */

/* =========================================
   ENHANCED CARD STYLES FOR PROFESSIONAL LOOK
   ========================================= */

/* --- Restaurant & Food Card Container --- */
.restaurant-grid,
.food-grid,
.category-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

/* Desktop: 3 columns */
.restaurant-grid,
.food-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* --- Enhanced Card Base Styles --- */
.restaurant-card,
.food-card,
.category-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.restaurant-card:hover,
.food-card:hover,
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* --- Enhanced Card Image Container --- */
.card-image,
.food-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

.restaurant-card:hover .card-image img,
.food-card:hover .food-card-image img,
.category-card:hover img {
    transform: scale(1.05);
}

/* Verified Badge (for featured restaurants) */
.verified-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verified-badge i {
    font-size: 0.85rem;
}

.verified-badge:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Inline Verified Icon (next to restaurant name) */
.verified-icon-inline {
    display: inline-block;
    color: #667eea;
    margin-left: 0.5rem;
    font-size: 1rem;
    vertical-align: middle;
    cursor: help;
}

.verified-icon-inline:hover {
    color: #764ba2;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Image loading states */
.card-image img[data-src],
.food-card-image img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image img.loaded,
.food-card-image img.loaded {
    opacity: 1;
}

/* --- Enhanced Card Content --- */
.card-content,
.food-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3,
.food-card-content h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.card-content .description,
.food-card-content .description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* --- Enhanced Card Info & Footer --- */
.card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.food-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.card-info span,
.food-card-footer .price {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-info .rating,
.food-card-footer .price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

/* --- Special Badge --- */
.special-badge {
    background: linear-gradient(135deg, var(--warning-color), #ffb347);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Status Indicators --- */
.status-open {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.status-open.open {
    background: var(--success-light);
    color: var(--success-dark);
    border: 1px solid var(--success-color);
}

.status-open.closed {
    background: var(--error-light);
    color: var(--error-dark);
    border: 1px solid var(--danger-color);
}

/* --- Category Card Specific Styles --- */
.category-card {
    text-align: center;
    height: 150px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix Category Text Visibility */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 107, 53, 0.95); /* Solid orange background */
    color: white;
    padding: 1rem;
    backdrop-filter: blur(2px); /* Subtle blur effect */
}

.card-overlay h3 {
    margin: 0;
    font-size: 1.2rem; /* Slightly larger */
    font-weight: 700; /* Bolder */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8); /* Strong shadow */
    text-align: center;
    letter-spacing: 0.5px; /* Better spacing */
}

/* Optional: Add background color to category names */
.category-card .card-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(255, 107, 53, 0.1); /* Subtle orange tint */
    z-index: -1;
}

/* =========================================
   PAGINATION STYLES
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0 2rem 0;
    flex-wrap: wrap;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.pagination .page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination .page-link .fas {
    font-size: 0.9rem;
}

/* =========================================
   LOADING AND EMPTY STATES
   ========================================= */
.loading-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.loading-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 380px;
    position: relative;
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading-image {
    height: 220px;
    width: 100%;
}

.loading-content {
    padding: 1.5rem;
}

.loading-line {
    height: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.loading-line.short {
    width: 60%;
}

.loading-line.medium {
    width: 80%;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.empty-state .fas {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

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

/* Tablet */
@media (max-width: 991px) {
    .restaurant-grid,
    .food-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1rem;
    }
    
    .card-image,
    .food-card-image {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .restaurant-grid,
    .food-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .card-content,
    .food-card-content {
        padding: 1.25rem;
    }
    
    .food-card-footer {
        padding: 1rem 1.25rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .restaurant-grid,
    .food-grid {
        gap: 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card {
        height: 120px;
    }
    
    .card-overlay h3 {
        font-size: 1rem;
    }
    
    .card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .food-card-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .food-card-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================= */
.restaurant-card:focus-within,
.food-card:focus-within,
.category-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .restaurant-card,
    .food-card,
    .category-card {
        border: 2px solid var(--text-dark);
    }
    
    .card-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .restaurant-card,
    .food-card,
    .category-card {
        transition: none;
    }
    
    .restaurant-card:hover .card-image img,
    .food-card:hover .food-card-image img,
    .category-card:hover img {
        transform: none;
    }
    
    .loading-shimmer {
        animation: none;
        background: #f0f0f0;
    }
}

/* Search Bar Styles */
.search-bar {
    display: flex;
    max-width: 600px;
    margin: 2rem auto;
    background: var(--bg-white);
    border-radius: 50px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
}

.search-bar button {
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--secondary-color);
}

/* Live Search Results */
.live-search-results {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-results-header h2 {
    color: var(--text-dark);
    margin: 0;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--secondary-color);
}

.live-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.live-result-card {
    display: block;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.live-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.live-result-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.live-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.live-result-card:hover .live-result-image img {
    transform: scale(1.05);
}

.result-type-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.restaurant-icon {
    background: var(--primary-color);
}

.food-icon {
    background: var(--success-color);
}

.live-result-content {
    padding: 1rem;
}

.live-result-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.live-result-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-result-price {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 0 0 0;
}

.view-all-results {
    text-align: center;
    margin-top: 2rem;
}

.no-results-mini {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Full Search Results Page */
.search-results-section {
    padding: 2rem 0;
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-query {
    font-size: 1.2rem;
    color: var(--text-light);
}

.results-stats {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.search-result-card {
    display: block;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
    border: 1px solid var(--border-color);
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.result-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.restaurant-badge {
    background: var(--primary-color);
}

.food-badge {
    background: var(--success-color);
}

.result-image {
    height: 200px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.search-result-card:hover .result-image img {
    transform: scale(1.1);
}

.result-content {
    padding: 1.5rem;
}

.result-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.result-location,
.result-restaurant {
    color: var(--text-light);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.match-indicator {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.match-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.match-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.match-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Search Categories */
.search-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

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

.category-item span {
    flex: 1;
    font-weight: 500;
}

.category-item small {
    color: var(--primary-color);
    font-weight: 600;
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.suggestions {
    margin-top: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.suggestions ul {
    list-style: none;
    padding: 0;
}

.suggestions li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.suggestions li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        border-radius: var(--border-radius);
    }
    
    .search-bar input {
        padding: 1rem;
    }
    
    .search-bar button {
        padding: 0.8rem;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .live-results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-categories {
        grid-template-columns: 1fr;
    }
    
    .search-results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .live-search-results {
        padding: 1rem;
        margin: 2rem 0;
    }
    
    .result-content {
        padding: 1rem;
    }
    
    .category-item {
        padding: 0.8rem;
    }
}

/*
=========================================
MODERN MOBILE HEADER FIX (CUSTOMER DASHBOARD)
=========================================
*/

/* --- Mobile Header Overflow Fix --- */
@media (max-width: 991px) {
    .dashboard-main-header {
        /* Ensure it's a flex container */
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        /* Prevent any weird padding from pushing content */
        padding: 1rem 1rem; /* Reduced padding slightly */
        gap: 0.5rem; /* Add small gap */
    }

    .dashboard-main-header .sidebar-toggle {
        /* Make sure toggle button doesn't shrink */
        flex-shrink: 0;
        font-size: 1.3rem; /* Slightly smaller icon */
        padding: 0.25rem; /* Tighter padding */
    }

    .dashboard-main-header h1 {
        /* This is the key fix */
        flex: 1; /* Allow title to grow and shrink */
        min-width: 0; /* Allow title to shrink below its content size */
        font-size: 1.15rem; /* Reduce font size */
        font-weight: 600;
        text-align: center;
        white-space: nowrap; /* Do not wrap to new line */
        overflow: hidden; /* Hide overflow */
        text-overflow: ellipsis; /* Add '...' */
        margin: 0; /* Remove default margins */
    }

    .dashboard-main-header .header-actions {
        /* Make sure action icons don't shrink */
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem; /* Slightly reduced gap */
    }

    .dashboard-main-header .header-actions .nav-cart,
    .dashboard-main-header .header-actions .nav-home-mobile {
        font-size: 1.2rem; /* Slightly smaller icons */
    }
}

@media (max-width: 375px) {
     .dashboard-main-header h1 {
        font-size: 1rem; /* Even smaller font on very small devices */
     }
     .dashboard-main-header {
        padding: 1rem 0.5rem; /* Tighter padding */
        gap: 0.25rem;
     }
}

/* --- NYT Style Headers & Typography --- */
.section-title-serif {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.section-title-large {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- Special of the Week Section --- */
.special-week-section {
    background-color: #fdfbf7; /* Warm paper color */
    padding: 4rem 0;
    margin: 3rem 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.special-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.special-content {
    padding: 1rem;
}

.special-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.special-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

.cta-box {
    background: #fff;
    padding: 2rem;
    border: 1px solid #000;
    margin-top: 2rem;
    display: inline-block;
    text-align: center;
}

.cta-box h4 {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Filter Navigation (Pill Style) --- */
.filter-nav {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
}
.filter-nav::-webkit-scrollbar { display: none; }

.filter-pill {
    padding: 0.6rem 1.2rem;
    background: #f3f3f3;
    color: #000;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.filter-pill.active, .filter-pill:hover {
    background: #ffeaa7; /* Light yellow like NYT highlights */
    border-color: #eec55d;
}

/* --- Collection Rows (Horizontal Scroll) --- */
.collection-row {
    margin-bottom: 4rem;
}

.collection-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5rem;
}

.collection-header-row h2 {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    margin: 0;
}

.view-more-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.horizontal-scroll-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    /* Alternatively for true horizontal scroll:
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    */
}

/* --- Minimal Food Card (NYT Style) --- */
.food-card-minimal {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.food-card-minimal:hover {
    opacity: 0.8;
}

.minimal-image {
    position: relative;
    height: 260px; /* Taller images */
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #eee;
}

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

.mini-rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.minimal-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.author-name {
    color: #666;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .special-grid {
        grid-template-columns: 1fr;
    }
    .special-image {
        height: 300px;
        order: -1; /* Image on top for mobile */
    }
    .section-title-serif {
        font-size: 2rem;
    }
}

/* =========================================
   POLICY & HELP CENTER STYLES
   ========================================= */

.policy-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.policy-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.policy-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Policy Content Layout (Sidebar + Text) */
.policy-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.policy-nav {
    position: sticky;
    top: 100px; /* Below fixed header */
    align-self: start;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.policy-nav h4 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 1rem;
}

.policy-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-nav li {
    margin-bottom: 0.8rem;
}

.policy-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: block;
}

.policy-nav a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.policy-content {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.policy-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 120px; /* For sticky header anchor offset */
}

.policy-section h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.policy-section p, .policy-section ul {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-section ul {
    padding-left: 1.5rem;
}

/* Help Center Specifics */
.help-search-container {
    background: linear-gradient(135deg, var(--text-dark), #34495e);
    padding: 4rem 1.5rem;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
}

.help-search-container h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Accordion Styles */
details.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

details.faq-item[open] {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

summary.faq-question {
    padding: 1.2rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s ease;
}

details[open] summary.faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.2rem 1.2rem 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

details[open] .faq-answer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.support-box {
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.support-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.support-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.support-item i {
    font-size: 2rem;
    color: var(--primary-color);
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 991px) {
    .policy-layout {
        grid-template-columns: 1fr;
    }
    .policy-nav {
        display: none; /* Hide sticky nav on mobile */
    }
}