/* TodoFrío Automotriz - Sistema de Temas Estacionales para Vista Cliente */

/* Banner Estacional Global */
.tf-theme-ribbon {
    width: 100%;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.25px;
    position: relative;
    z-index: 1001;
    text-align: center;
}

.tf-theme-ribbon-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.tf-theme-ribbon-cta:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.tf-theme-preview-pill {
    background: #fef08a;
    color: #713f12;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Luces navideñas CSS sutiles */
.tf-xmas-lights {
    position: relative;
    width: 100%;
    height: 12px;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 12px 4px, #ef4444 4px, transparent 5px) 0 0 / 72px 12px repeat-x,
        radial-gradient(circle at 30px 6px, #facc15 4px, transparent 5px) 0 0 / 72px 12px repeat-x,
        radial-gradient(circle at 48px 4px, #22c55e 4px, transparent 5px) 0 0 / 72px 12px repeat-x,
        radial-gradient(circle at 66px 6px, #38bdf8 4px, transparent 5px) 0 0 / 72px 12px repeat-x;
    animation: tfXmasTwinkle 2.2s ease-in-out infinite alternate;
}

@keyframes tfXmasTwinkle {
    0% { opacity: 0.75; filter: brightness(0.95); }
    100% { opacity: 1; filter: brightness(1.2); }
}

/* =========================================================
   TEMA 1: BLACK FRIDAY & CYBER DEALS
   ========================================================= */
body[data-site-theme="black_friday"] {
    background:
        radial-gradient(circle at 15% 12%, rgba(245, 158, 11, 0.14), transparent 36%),
        radial-gradient(circle at 85% 22%, rgba(239, 68, 68, 0.12), transparent 34%),
        #0b0c10 !important;
    --bg-primary: #0b0c10;
    --accent-cyan: #f59e0b;
    --border-highlight: #f59e0b;
}

body[data-site-theme="black_friday"] .tf-theme-ribbon {
    background: linear-gradient(90deg, #09090b 0%, #7f1d1d 45%, #b45309 100%);
    color: #fef3c7;
    border-bottom: 2px solid #f59e0b;
}
body[data-site-theme="black_friday"] .tf-theme-ribbon-cta {
    background: #fbbf24;
    color: #09090b;
}

body[data-site-theme="black_friday"] .top-store-bar {
    background: #050507;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

body[data-site-theme="black_friday"] .site-header {
    background: linear-gradient(90deg, #09090b 0%, #18181b 100%);
    border-bottom: 2px solid #f59e0b;
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.18);
}

body[data-site-theme="black_friday"] .site-header .brand-logo {
    background: rgba(255, 255, 255, 0.96);
    padding: 4px 12px;
    border-radius: 10px;
}

body[data-site-theme="black_friday"] .site-header .nav-link,
body[data-site-theme="black_friday"] .site-header .user-badge-nav {
    color: #f8fafc;
}
body[data-site-theme="black_friday"] .site-header .nav-link:hover {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.14);
}
body[data-site-theme="black_friday"] .mobile-menu-toggle {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.45);
}

body[data-site-theme="black_friday"] .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}
body[data-site-theme="black_friday"] .btn-primary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b91c1c 100%);
}

body[data-site-theme="black_friday"] .main-content > .section-header .section-title,
body[data-site-theme="black_friday"] main.main-content > h1,
body[data-site-theme="black_friday"] #catalogTitle {
    color: #fbbf24;
}

body[data-site-theme="black_friday"] .search-filter-card,
body[data-site-theme="black_friday"] .store-quick-card,
body[data-site-theme="black_friday"] .cat-pill-card,
body[data-site-theme="black_friday"] .product-card {
    border-color: rgba(245, 158, 11, 0.48) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 158, 11, 0.12);
}

body[data-site-theme="black_friday"] .cat-pill-card.active-category {
    background: linear-gradient(135deg, #b45309 0%, #dc2626 100%);
    border-color: #fbbf24 !important;
}

body[data-site-theme="black_friday"] .site-footer {
    border-top: 2px solid #f59e0b !important;
}

/* =========================================================
   TEMA 2: NAVIDAD & FIN DE AÑO
   ========================================================= */
body[data-site-theme="christmas"] {
    background:
        radial-gradient(circle at 12% 8%, rgba(220, 38, 38, 0.08), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(22, 101, 52, 0.09), transparent 34%),
        #f0f7f4 !important;
    --bg-primary: #f0f7f4;
    --accent-cyan: #15803d;
    --border-highlight: #dc2626;
}

body[data-site-theme="christmas"] .tf-theme-ribbon {
    background: linear-gradient(90deg, #14532d 0%, #166534 35%, #b91c1c 100%);
    color: #fef9c3;
    border-bottom: 2px solid #eab308;
}
body[data-site-theme="christmas"] .tf-theme-ribbon-cta {
    background: #fef08a;
    color: #7f1d1d;
}

body[data-site-theme="christmas"] .top-store-bar {
    background: #0f3d21;
    border-bottom: 1px solid rgba(234, 179, 8, 0.35);
}

body[data-site-theme="christmas"] .site-header {
    background: linear-gradient(90deg, #14532d 0%, #166534 55%, #991b1b 100%);
    border-bottom: 2px solid #eab308;
    box-shadow: 0 6px 20px rgba(20, 83, 45, 0.25);
}

body[data-site-theme="christmas"] .site-header .brand-logo {
    background: rgba(255, 255, 255, 0.96);
    padding: 4px 12px;
    border-radius: 10px;
}

body[data-site-theme="christmas"] .site-header .nav-link,
body[data-site-theme="christmas"] .site-header .user-badge-nav {
    color: #ffffff;
}
body[data-site-theme="christmas"] .site-header .nav-link:hover {
    color: #fef08a;
    background: rgba(255, 255, 255, 0.14);
}
body[data-site-theme="christmas"] .mobile-menu-toggle {
    color: #fef08a;
    border-color: rgba(254, 240, 138, 0.45);
}

body[data-site-theme="christmas"] .btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #15803d 100%);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

body[data-site-theme="christmas"] .cat-pill-card.active-category {
    background: linear-gradient(135deg, #15803d 0%, #b91c1c 100%);
    border-color: #eab308 !important;
}

body[data-site-theme="christmas"] .search-filter-card,
body[data-site-theme="christmas"] .store-quick-card {
    border-color: rgba(22, 101, 52, 0.3) !important;
}

body[data-site-theme="christmas"] .site-footer {
    border-top: 3px solid #dc2626 !important;
}

/* =========================================================
   TEMA 3: TEMPORADA CALOR / VERANO A/C
   ========================================================= */
body[data-site-theme="summer_heat"] {
    background:
        radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.1), transparent 36%),
        radial-gradient(circle at 12% 18%, rgba(6, 182, 212, 0.1), transparent 36%),
        #f0f9ff !important;
}

body[data-site-theme="summer_heat"] .tf-theme-ribbon {
    background: linear-gradient(90deg, #0369a1 0%, #06b6d4 55%, #ea580c 100%);
    color: #ffffff;
    border-bottom: 2px solid #fdba74;
}
body[data-site-theme="summer_heat"] .tf-theme-ribbon-cta {
    background: #ffffff;
    color: #c2410c;
}

body[data-site-theme="summer_heat"] .site-header {
    border-bottom: 3px solid #06b6d4;
}

body[data-site-theme="summer_heat"] .btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
}

/* =========================================================
   TEMA 4: MES CÍVICO EL SALVADOR
   ========================================================= */
body[data-site-theme="independence_sv"] {
    background:
        radial-gradient(circle at 50% 0%, rgba(29, 78, 216, 0.08), transparent 40%),
        #f4f7fc !important;
}

body[data-site-theme="independence_sv"] .tf-theme-ribbon {
    background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
    color: #ffffff;
    border-bottom: 3px solid #eab308;
}
body[data-site-theme="independence_sv"] .tf-theme-ribbon-cta {
    background: #ffffff;
    color: #1e3a8a;
}

body[data-site-theme="independence_sv"] .site-header {
    border-bottom: 3px solid #1d4ed8;
}

body[data-site-theme="independence_sv"] .cat-pill-card.active-category {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    border-color: #1d4ed8 !important;
}

@media (prefers-reduced-motion: reduce) {
    .tf-xmas-lights {
        animation: none !important;
    }
    #tfThemeParticles {
        display: none !important;
    }
}
