/* ============================================================
   RUNVEAPPS - CORPORATE STYLESHEET (MOOVITYA, C.A.)
   COLOR SCHEME: VIBRANT ORANGE & MODERN COLORFUL ACCENTS
   ============================================================ */

:root {
    --primary-color: #ff6b00;
    --primary-hover: #e65c00;
    --primary-light: #fff3eb;
    --primary-gradient: linear-gradient(135deg, #ff6b00 0%, #ff8e26 100%);
    --secondary-color: #2ed573;
    --dark-color: #1a1d20;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 16px 35px rgba(255, 107, 0, 0.18);
    --border-radius: 18px;

    /* Paleta de Colores Vivos para Íconos */
    --color-orange: #ff6b00;
    --color-red: #ff4757;
    --color-green: #2ed573;
    --color-blue: #1e90ff;
    --color-purple: #9b59b6;
    --color-pink: #ff6b81;
    --color-yellow: #ffa502;
    --color-cyan: #00d2d3;
}

html {
    overflow-y: scroll; /* Prevenir salto de barra de scroll al abrir modales */
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    color: #2b303a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.modal-open {
    padding-right: 0 !important; /* Elimina el desplazamiento brusco horizontal */
}

.modal {
    padding-right: 0 !important;
}

main {
    flex: 1 0 auto;
}

/* Navbar */
.navbar-custom {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f2f4;
}
.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.brand-logo-img:hover {
    transform: scale(1.02);
}
.nav-link {
    font-weight: 600;
    color: #57606f !important;
    transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Enlaces Verticales del Navbar (Ícono Arriba, Texto Abajo) */
.nav-link-vertical {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #4b5563 !important;
    text-decoration: none;
}
.nav-link-vertical i.nav-icon {
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 3px;
    display: inline-block;
    transition: transform 0.2s ease;
}
.nav-link-vertical:hover i.nav-icon {
    transform: translateY(-2px);
}
.nav-link-vertical:hover,
.nav-link-vertical.active {
    color: var(--primary-color) !important;
    background-color: rgba(255, 107, 0, 0.08);
}
.nav-link-vertical.dropdown-toggle::after {
    display: none !important;
}

/* Botones */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.65rem 1.4rem;
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.22);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #e65c00 0%, #ff7b00 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 107, 0, 0.32);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-weight: 700;
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.25);
}

.btn-orange-soft {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 0, 0.2);
    font-weight: 700;
    border-radius: 12px;
}
.btn-orange-soft:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Botones de Acción de Alta Gama para Platillos - Vivos & Coloridos */
.btn-dish-action {
    background: linear-gradient(135deg, #ff5500 0%, #ff7b00 50%, #ffa502 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.52rem 1.18rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}
.btn-dish-action:hover {
    background: linear-gradient(135deg, #e64a00 0%, #ff6600 50%, #ff9500 100%);
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(255, 85, 0, 0.48);
    color: #ffffff !important;
}
.btn-dish-action:active {
    transform: scale(0.95);
}

.btn-dish-notes {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #fed7aa;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.14);
}
.btn-dish-notes:hover {
    border-color: #f59e0b;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.38);
}
.btn-dish-notes:active {
    transform: scale(0.95);
}

/* Botón Favorito ❤️ con Glassmorphism y Toque Colorido */
.favorite-btn {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 107, 0, 0.18) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.favorite-btn:hover {
    background: #ffffff !important;
    border-color: #ef4444 !important;
    transform: scale(1.14);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.28);
}

/* Hero Banner */
.hero-banner-orange {
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.25);
}

/* Tarjetas de Producto */
.card-product {
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius);
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-product:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(255, 107, 0, 0.2);
}
.card-product .product-img-wrapper {
    height: 190px;
    background: #fff8f3;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-product .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-product:hover .product-img {
    transform: scale(1.05);
}
.card-product .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Categorías Pill con Íconos Vivos */
.category-pill {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #57606f;
    border: 1px solid #e4e7eb;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.category-pill:hover, .category-pill.active {
    background: var(--primary-color);
    color: #ffffff !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.28);
}
.category-pill:hover i, .category-pill.active i {
    color: #ffffff !important;
}

/* Íconos Vivos por Categoría */
.icon-cat-1 { color: #ff9f43 !important; } /* Hamburguesas */
.icon-cat-2 { color: #ff5252 !important; } /* Pizzas */
.icon-cat-3 { color: #00d2d3 !important; } /* Bebidas */
.icon-cat-4 { color: #ff6b81 !important; } /* Postres */
.icon-cat-5 { color: #9b59b6 !important; } /* Combos */

/* Badges de Íconos Circulares de Colores */
.icon-circle-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}
.icon-circle-badge:hover {
    transform: scale(1.1);
}
.icon-badge-orange { background: rgba(255, 107, 0, 0.12); color: #ff6b00; }
.icon-badge-red    { background: rgba(255, 71, 87, 0.12);  color: #ff4757; }
.icon-badge-green  { background: rgba(46, 213, 115, 0.12); color: #2ed573; }
.icon-badge-blue   { background: rgba(30, 144, 255, 0.12); color: #1e90ff; }
.icon-badge-purple { background: rgba(155, 89, 182, 0.12); color: #9b59b6; }
.icon-badge-cyan   { background: rgba(0, 210, 211, 0.12);  color: #00d2d3; }
.icon-badge-yellow { background: rgba(255, 165, 2, 0.12);  color: #ffa502; }

/* Badges de Estado de Pedido */
.badge-status {
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-pendiente { background-color: #fff8e1; color: #ff8f00; border: 1px solid #ffe082; }
.badge-preparando { background-color: #fff3eb; color: #ff6b00; border: 1px solid #ffd8bf; }
.badge-en_camino { background-color: #e3f2fd; color: #0984e3; border: 1px solid #bbdefb; }
.badge-entregado { background-color: #e8f8f0; color: #2ed573; border: 1px solid #c3e6cb; }
.badge-cancelado { background-color: #ffebee; color: #d32f2f; border: 1px solid #ffcdd2; }

/* Barra de Progreso de Tracking */
.tracking-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}
.tracking-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e4e7eb;
    z-index: 1;
}
.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}
.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e4e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.2rem;
    color: #a4b0be;
    transition: all 0.3s ease;
}
.step-item.active .step-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.2);
}
.step-item.completed .step-icon {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}
.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #747d8c;
}
.step-item.active .step-label, .step-item.completed .step-label {
    color: #1a1d20;
    font-weight: 700;
}

/* Mapa Leaflet Contenedor */
#map-tracking, #map-checkout {
    height: 480px;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    z-index: 1;
}
#map-checkout {
    height: 280px;
}

/* Pulsing Driver Marker Animation (Vibrant Orange) */
.driver-pulsing-marker {
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    animation: pulse-ring-orange 1.8s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
}

@keyframes pulse-ring-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 107, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

/* Toast Notificación Flotante */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Dashboard Metric Cards */
.metric-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}
.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.metric-icon.bg-orange { background: rgba(255, 107, 0, 0.12); color: var(--primary-color); }
.metric-icon.bg-green  { background: rgba(46, 213, 115, 0.12); color: var(--secondary-color); }
.metric-icon.bg-blue   { background: rgba(30, 144, 255, 0.12); color: #1e90ff; }
.metric-icon.bg-dark   { background: rgba(26, 29, 32, 0.08);   color: #1a1d20; }
.metric-icon.bg-purple { background: rgba(155, 89, 182, 0.12); color: #9b59b6; }
.metric-icon.bg-pink   { background: rgba(255, 107, 129, 0.12);color: #ff6b81; }

/* ============================================================
   DISEÑOS ELEGANTES PARA TIKTOK (@runvene)
   ============================================================ */

/* 1. Botón TikTok en Navbar */
.btn-tiktok-nav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    color: #2b303a !important;
    border: 1.5px solid #edf0f2;
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-tiktok-nav i {
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}
.btn-tiktok-nav:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.16);
    transform: translateY(-1px);
}
.btn-tiktok-nav:hover i {
    transform: scale(1.18);
}

/* 2. Pill TikTok en Hero Banner */
.hero-tiktok-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}
.hero-tiktok-pill:hover {
    background: #ffffff;
    color: var(--primary-color) !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

/* 3. Botón TikTok en Footer */
.footer-tiktok-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #edf0f2;
    padding: 0.55rem 1.15rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.footer-tiktok-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.14);
}
.tiktok-circle-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.footer-tiktok-card:hover .tiktok-circle-icon {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

/* SweetAlert2 - Estilo Corporativo de Alta Gama RUNVEAPPS */
div.swal2-container {
    z-index: 10000 !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
div.swal2-popup {
    border-radius: 24px !important;
    padding: 1.8rem !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.swal2-title {
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    color: #1e293b !important;
}
.swal2-html-container {
    color: #64748b !important;
    font-size: 0.95rem !important;
}
.swal2-actions {
    gap: 10px !important;
    margin-top: 1.5rem !important;
}
.swal2-confirm, .swal2-deny, .swal2-cancel {
    border-radius: 50px !important;
    font-weight: 700 !important;
    padding: 0.6rem 1.4rem !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}
.swal2-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35) !important;
}
.swal2-icon.swal2-info {
    border-color: #ff6b00 !important;
    color: #ff6b00 !important;
}

/* Footer */
footer {
    background: #ffffff;
    border-top: 1px solid #edf0f2;
    padding: 2.2rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: #747d8c;
}
.footer-brand {
    font-weight: 800;
    color: #1a1d20;
}

/* ==============================================================================
   BANNER FLOTANTE DE INSTALACIÓN PWA (ESTILO TOP-TIER APP STORE)
   ============================================================================== */
#pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    margin: 0 auto;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 107, 0, 0.22);
    border-radius: 26px;
    padding: 10px 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(255, 107, 0, 0.1);
    z-index: 1060;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: pwaSlideUp 0.5s ease-out;
}
@keyframes pwaSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.pwa-app-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
    object-fit: cover;
    flex-shrink: 0;
}
.pwa-app-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #1a1d20;
    line-height: 1.2;
}
.pwa-app-subtitle {
    font-size: 0.76rem;
    color: #747d8c;
    font-weight: 500;
    line-height: 1.2;
}
.pwa-rating-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #d97706;
    background: #fef3c7;
    padding: 1px 6px;
    border-radius: 6px;
}
.btn-pwa-cta {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8E26 50%, #FFA845 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 7px 16px;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-pwa-cta:hover, .btn-pwa-cta:active {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
    color: #ffffff !important;
}
.btn-pwa-close {
    width: 28px;
    height: 28px;
    background: #f1f3f5;
    color: #868e96;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}
.btn-pwa-close:hover {
    background: #e9ecef;
    color: #212529;
    transform: rotate(90deg);
}

/* ==========================================================================
   🔢 CONTADOR DINÁMICO DE PLATILLOS POR CATEGORÍA
   ========================================================================== */
.category-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    background: #f1f3f5;
    color: #495057;
    margin-left: 2px;
    transition: all 0.2s ease;
}
.category-pill.active .category-count-badge,
.category-pill:hover .category-count-badge {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
}

/* ==========================================================================
   ⏱️ TARJETA DE CONFIANZA GASTRONÓMICA & ENTREGA (HOME)
   ========================================================================== */
.delivery-info-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.delivery-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
}

/* ==========================================================================
   🌙 MODO OSCURO DE ALTA GAMA (DARK THEME - TOP TIER)
   ========================================================================== */
[data-theme="dark"] {
    --bg-color: #121417;
    --card-bg: #1a1d21;
    --card-bg-light: #24282e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] body {
    background-color: #121417 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .navbar-custom {
    background: rgba(22, 24, 29, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .navbar-custom .nav-link {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .navbar-custom .nav-link:hover,
[data-theme="dark"] .navbar-custom .nav-link.active {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .card-product,
[data-theme="dark"] .delivery-info-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .dropdown-menu {
    background-color: #1a1d21 !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .card-product .product-img-wrapper {
    background-color: #24282e !important;
}

[data-theme="dark"] .bg-white {
    background-color: #1a1d21 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .bg-light {
    background-color: #24282e !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end,
[data-theme="dark"] .border-start-md {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .category-pill {
    background-color: #1e2227;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .category-pill.active,
[data-theme="dark"] .category-pill:hover {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}
[data-theme="dark"] .category-count-badge {
    background-color: #2b313a;
    color: #cbd5e1;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text {
    background-color: #24282e !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .form-control::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .btn-theme-toggle {
    background-color: #24282e !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

[data-theme="dark"] footer {
    background-color: #121417 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .table {
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .favorite-btn {
    background: rgba(30, 34, 40, 0.9) !important;
    border-color: rgba(255, 107, 0, 0.3) !important;
}

[data-theme="dark"] #pwa-install-banner {
    background: rgba(26, 29, 33, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="dark"] .pwa-app-title {
    color: #ffffff !important;
}
[data-theme="dark"] .pwa-app-subtitle {
    color: #94a3b8 !important;
}
[data-theme="dark"] .btn-pwa-close {
    background: #24282e !important;
    color: #cbd5e1 !important;
}

