/* =====================================================
   COMMANDES PRO - Design Premium
   Près de Chez Vous - Système de commande en ligne
   ===================================================== */

/* ============ VARIABLES ============ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.4);
    
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-glow: rgba(16, 185, 129, 0.4);
    
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
    
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background animé */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ============ NAVBAR ============ */
.navbar-commandes {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-commandes .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.navbar-commandes .navbar-brand:hover {
    color: var(--primary-light) !important;
    text-shadow: 0 0 20px var(--primary-glow);
}

.navbar-commandes .navbar-brand img {
    height: 40px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.navbar-commandes .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.navbar-commandes .nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--bg-glass);
}

.navbar-commandes .nav-link.active {
    color: var(--primary-light) !important;
    background: rgba(37, 99, 235, 0.1);
}

/* User dropdown */
.navbar-commandes .dropdown-menu {
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.navbar-commandes .dropdown-item {
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    transition: var(--transition);
}

.navbar-commandes .dropdown-item:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.navbar-commandes .dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger) !important;
}

/* ============ HERO SECTION ============ */
.hero-commandes {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
}

.hero-commandes::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

.hero-commandes::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite reverse;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(30px, -30px) scale(1.2); opacity: 0.8; }
}

.hero-commandes .container {
    position: relative;
    z-index: 1;
}

.hero-commandes h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-commandes p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Search box centré dans hero */
.hero-commandes .search-box {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.hero-commandes .search-box .input-group {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-commandes .search-box .form-control {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

.hero-commandes .search-box .form-control::placeholder {
    color: var(--text-muted);
}

.hero-commandes .search-box .form-control:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}

.hero-commandes .search-box .btn-search {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-glass);
    color: var(--primary-light);
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: var(--transition);
}

.hero-commandes .search-box .btn-search:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Stats bar */
.stats-bar {
    display: flex;
    gap: 1.5rem;
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1rem 1.75rem;
    min-width: 120px;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
    text-shadow: 0 0 20px var(--primary-glow);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Stats cards (alternative) */
.stats-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 20px var(--primary-glow);
}

.stat-icon.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.stat-icon.warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============ FILTERS SECTION ============ */
.filters-section {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.25rem 0;
    position: sticky;
    top: 73px;
    z-index: 100;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.filter-pill.active {
    background: var(--bg-glass);
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: 0 0 25px var(--primary-glow), inset 0 0 15px rgba(37, 99, 235, 0.1);
}

.filter-pill[data-filter="favorites"] {
    color: var(--text-secondary);
}

.filter-pill[data-filter="favorites"]:hover {
    color: #f43f5e;
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

.filter-pill[data-filter="favorites"].active {
    background: rgba(244, 63, 94, 0.1);
    border-color: #f43f5e;
    color: #f43f5e;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.4), inset 0 0 15px rgba(244, 63, 94, 0.1);
}

.filter-divider {
    width: 1px;
    height: 32px;
    background: var(--border-glass);
    margin: 0 0.5rem;
}

.filter-select {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
}

.filter-select:hover,
.filter-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* Search box */
.search-box {
    position: relative;
    flex: 1;
    max-width: 350px;
}

.search-box input {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.6rem 1rem 0.6rem 2.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.btn-search {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary-light);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-search:hover {
    color: white;
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-search:hover::before {
    width: 100%;
}

/* ============ SHOPS GRID ============ */
.shops-section {
    padding: 3rem 0;
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* ============ SHOP CARD - PREMIUM ============ */
.shop-card-wrapper {
    animation: cardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.shop-card-wrapper:nth-child(1) { animation-delay: 0.05s; }
.shop-card-wrapper:nth-child(2) { animation-delay: 0.1s; }
.shop-card-wrapper:nth-child(3) { animation-delay: 0.15s; }
.shop-card-wrapper:nth-child(4) { animation-delay: 0.2s; }
.shop-card-wrapper:nth-child(5) { animation-delay: 0.25s; }
.shop-card-wrapper:nth-child(6) { animation-delay: 0.3s; }

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

.shop-card-modern {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shop-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.shop-card-modern:hover::before {
    left: 100%;
}

.shop-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 40px var(--primary-glow);
}

/* Card Image */
.shop-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-card-modern:hover .shop-card-image img {
    transform: scale(1.1);
}

.shop-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    overflow: hidden;
}

.shop-image-placeholder i {
    font-size: 3.5rem;
    color: var(--text-muted);
    opacity: 0.4;
}

/* Card Logo - positionné sur la carte, pas dans l'image */
.shop-logo {
    position: absolute;
    top: 175px;
    left: 1.5rem;
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    border: 3px solid var(--bg-dark);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 20;
    transition: var(--transition);
}

.shop-card-modern:hover .shop-logo {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px var(--primary-glow);
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.shop-logo-placeholder i {
    font-size: 1.5rem;
    color: white;
}

/* Badges */
.shop-card-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 5;
}

.badge-delivery,
.badge-takeout {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.badge-delivery {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #60a5fa;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2), inset 0 0 15px rgba(37, 99, 235, 0.1);
}

.badge-delivery::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
    animation: badgeShine 3s ease-in-out infinite;
}

.badge-takeout {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), inset 0 0 15px rgba(16, 185, 129, 0.1);
}

.badge-takeout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.3), transparent);
    animation: badgeShine 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes badgeShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Pulse effect on hover */
.shop-card-modern:hover .badge-delivery {
    animation: badgePulseBlue 1.5s ease-in-out infinite;
}

.shop-card-modern:hover .badge-takeout {
    animation: badgePulseGreen 1.5s ease-in-out infinite;
}

@keyframes badgePulseBlue {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.2), inset 0 0 15px rgba(37, 99, 235, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.5), inset 0 0 20px rgba(37, 99, 235, 0.2);
    }
}

@keyframes badgePulseGreen {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), inset 0 0 15px rgba(16, 185, 129, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.5), inset 0 0 20px rgba(16, 185, 129, 0.2);
    }
}

/* Favorite Button */
.btn-favorite {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-favorite:hover {
    transform: scale(1.15);
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.15);
}

.btn-favorite.active {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.2);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

.btn-favorite.active i {
    animation: heartPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Card Body */
.shop-card-body {
    padding: 2.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.shop-card-modern:hover .shop-card-title {
    color: var(--primary-light);
}

.shop-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--primary-light);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.shop-card-location {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.shop-card-location i {
    color: var(--danger);
    margin-top: 0.2rem;
}

.shop-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Meta */
.shop-card-meta {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--text-secondary);
}

.meta-item.time i {
    color: var(--warning);
}

/* Card Footer */
.shop-card-footer {
    padding: 0 1.5rem 1.5rem;
}

.btn-commander {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-commander::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-commander:hover {
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.btn-commander:hover::before {
    width: 100%;
}

.btn-commander i {
    transition: transform 0.3s ease;
}

.btn-commander:hover i {
    transform: translateX(5px);
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 2.5rem;
    color: var(--primary-light);
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ============ FOOTER ============ */
.footer-commandes {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-commandes h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-commandes p {
    color: var(--text-muted);
}

.footer-commandes a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-commandes hr {
    border-color: var(--border-glass);
    opacity: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .hero-commandes h1 {
        font-size: 2.25rem;
    }
    
    .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .stats-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-commandes {
        padding: 2.5rem 0;
    }
    
    .hero-commandes h1 {
        font-size: 1.75rem;
    }
    
    .hero-commandes p {
        font-size: 1rem;
    }
    
    .stats-bar {
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem 1.25rem;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .filters-section {
        position: relative;
        top: auto;
    }
    
    .filter-pills {
        justify-content: center;
    }
    
    .filter-select {
        width: 100%;
        margin-top: 0.75rem;
    }
    
    .search-box {
        max-width: 100%;
        margin-top: 0.75rem;
    }
    
    .shops-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar-commandes .navbar-brand {
        font-size: 1.1rem;
    }
    
    .hero-commandes h1 {
        font-size: 1.5rem;
    }
    
    .shop-card-image {
        height: 180px;
    }
    
    .filter-pill {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============ UTILITIES ============ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-primary {
    box-shadow: 0 0 40px var(--primary-glow);
}

.glow-accent {
    box-shadow: 0 0 40px var(--accent-glow);
}