/* ===== VARIABLES CSS Y CONFIGURACIÓN GLOBAL ===== */
:root {
    --primary-color: #3b82f6;
    --accent-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    --text-color: #334155;
    --text-muted: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.5;
    padding-top: 80px;
}

/* ===== HEADER COMPACTO ===== */
.header-compact {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.header-compact.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.logo-compact {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-compact:hover {
    transform: scale(1.05);
}

/* Menú Principal */
.main-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.menu-nav li {
    margin: 0;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.text-fire {
    color: #ff6b35 !important;
    font-weight: 700 !important;
    background: linear-gradient(45deg, #ff6b35, #ff8e35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Acciones del Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-selector {
    position: relative;
}

.currency-dropdown {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.currency-dropdown:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.theme-toggle-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: rotate(15deg);
}

.ico-moon {
    display: none;
}

[data-theme="dark"] .ico-sun {
    display: none;
}

[data-theme="dark"] .ico-moon {
    display: block;
}

/* Carrito Header */
.cart-wrapper {
    position: relative;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

/* Cuenta de Usuario */
.user-account {
    position: relative;
}

.account-dropdown-wrapper {
    position: relative;
}

.account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.account-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 10px;
}

.account-dropdown-wrapper:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.account-dropdown ul li {
    margin: 0;
}

.account-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.account-dropdown ul li a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.account-dropdown ul li a i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
}

/* ===== SECCIÓN VIDEO HERO ===== */
.video-section {
    padding: 0;
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
    width: 90%;
}

/* Promoción Inferior Derecha */
.bottom-right-promo {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    display: none;
    align-items: center;
    gap: 1.5rem;
    background-color: rgba(20, 26, 32, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    color: white;
    overflow: hidden;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.bottom-right-promo:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.promo-play-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 2px solid #13b1d4;
    border-radius: 8px;
    width: 60px;
    height: 45px;
    color: #13b1d4;
    flex-shrink: 0;
}

.promo-text {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 180px;
}

/* ===== LAYOUT PRINCIPAL TIENDA ===== */
.store-container {
    display: flex;
    min-height: 100vh;
    margin-top: 80px;
}

/* ===== SIDEBAR CATEGORÍAS ===== */
.categories-sidebar {
    width: 300px;
    background-color: white;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    overflow-y: auto;
    position: fixed;
    top: 80px;
    height: calc(100vh - 80px);
}

.categories-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    margin-bottom: 0.25rem;
}

.category-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.category-button:hover {
    background-color: #f1f5f9;
    transform: translateX(5px);
}

.category-button.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.category-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-count {
    margin-left: auto;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.category-button.active .category-count {
    background: rgba(255,255,255,0.2);
}

/* Acordeón Subcategorías */
.category-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.accordion-toggle.expanded {
    transform: rotate(45deg);
}

.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    display: none;
}

.subcategory-item {
    margin-bottom: 0.25rem;
}

.subcategory-button {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.subcategory-button:hover {
    background-color: #f1f5f9;
    color: var(--text-color);
}

.subcategory-button.active {
    background-color: var(--primary-color);
    color: white;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    flex: 1;
    padding: 2rem;
    background-color: var(--light-color);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* ===== BARRA FILTROS TIPOS ===== */
.types-filter-bar {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.types-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.type-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.type-filter-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.type-filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.type-filter-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

.type-filter-btn i {
    font-size: 1rem;
}

/* ===== GRID PRODUCTOS MEJORADO ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Contenedor Imagen con Overlay Vertical */
.product-image-container { 
    position: relative;
    height: 200px; 
    overflow: hidden; 
    background: #eee; 
}

/* 🔥 ACCIONES DE ESQUINA - Siempre visibles */
.corner-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

/* 🔥 BOTONES DE ACCIÓN DE ESQUINA */
.corner-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.corner-action-btn:hover {
    background-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.corner-action-btn.youtube-btn { 
    color: #ff0000; 
}

.corner-action-btn.youtube-btn:hover { 
    background-color: #ff0000;
    color: white;
}

.corner-action-btn.details-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-img {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    background: white;
}

.product-image.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .default-img {
    opacity: 0;
}

.product-card:hover .hover-img {
    opacity: 1;
}

/* 🔥 OVERLAY CENTRAL - Para vista rápida */
.product-image-overlay.center-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    visibility: hidden;
    transition: all 0.3s ease; 
    z-index: 3;
}

.product-card:hover .product-image-overlay.center-overlay { 
    opacity: 1; 
    visibility: visible; 
}

.overlay-icon-btn {
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 3rem; 
    height: 3rem; 
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color); 
    border-radius: 50%; 
    border: none;
    cursor: pointer; 
    font-size: 1.2rem; 
    transition: all 0.2s; 
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.overlay-icon-btn:hover { 
    background-color: white; 
    color: var(--primary-color); 
    transform: scale(1.1); 
}

/* ✅ ACCIONES DE COMPRA - Aparecen al hacer hover */
.product-actions.hover-actions {
    position: absolute;
    bottom: 10px; 
    left: 10px; 
    right: 10px;  
    z-index: 4;
    opacity: 0; 
    visibility: hidden;
    transform: translateY(10px); 
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    display: flex; 
    justify-content: center; 
}

.product-card:hover .product-actions.hover-actions {
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0);
}

/* Indicador de Video */
.video-indicator {
    position: absolute;
    top: 10px;
    right: 60px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 0.7rem;
}

/* Contenido Tarjeta Producto */
.product-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-price {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Acciones Producto */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.product-actions button {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.add-to-cart {
    background: var(--primary-color);
    color: white;
}

.add-to-cart:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.quick-view {
    background: #f1f5f9;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.quick-view:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.view-details {
    background: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.view-details:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== CARRITO FLOTANTE ===== */
.floating-cart {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1000;
}

.cart-toggle {
    position: relative;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.cart-toggle:hover {
    background-color: #2563eb;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Panel Carrito */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-color);
    color: white;
}

.cart-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: var(--radius);
    margin-right: 1rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.cart-quantity-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 0.875rem;
}

.cart-quantity-display {
    margin: 0 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.cart-item-total {
    font-weight: 600;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #2563eb;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ===== MODALES ===== */
/* Modal Popup Principal */
.custom-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    display: none;
    justify-content: center;
    align-items: center;
}

.custom-popup-modal.show {
    display: flex !important;
}

.custom-popup-modal .modal-dialog {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.custom-popup-modal .modal-content {
    position: relative;
    background-color: transparent;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
}

.custom-popup-modal .modal-body {
    padding: 0;
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.custom-popup-modal .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.8;
}

.custom-popup-modal .btn-close:hover {
    opacity: 1;
}

.custom-popup-modal .video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.custom-popup-modal .modal-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.custom-popup-modal .promo-container {
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.custom-popup-modal .promo-description {
    font-size: 0.9rem;
    color: #f1f1f1;
}

.custom-popup-modal .promo-container .btn {
    background-color: #25D366;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
}

.custom-popup-modal .promo-container .btn:hover {
    background-color: #1DAE54;
}

/* Modal Vista Rápida */
.quick-view-video video {
    border-radius: 8px;
    background: #000;
}

.quick-view-image img {
    transition: transform 0.3s ease;
}

.quick-view-image img:hover {
    transform: scale(1.02);
}

.thumbnail {
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #007bff;
}

.thumbnail:hover {
    border-color: #0056b3;
    transform: scale(1.05);
}

.related-product-card {
    transition: all 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== MOBILE MENU ===== */
.mobile-header-active {
    display: none;
}

.mobile-header-wrapper-style {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-header-wrapper-style.active {
    opacity: 1;
    visibility: visible;
}

.mobile-header-wrapper-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-header-wrapper-style.active .mobile-header-wrapper-inner {
    transform: translateX(0);
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-header-logo img {
    height: 35px;
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-header-content-area {
    padding: 20px;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 5px;
}

.mobile-menu li a {
    display: block;
    padding: 15px 20px;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
}

.mobile-menu li a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.mobile-header-info-wrap {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.single-mobile-header-info a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.single-mobile-header-info a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.single-mobile-header-info a i {
    margin-right: 10px;
    width: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== WHATSAPP FLOTANTE ===== */
.wcs_fixed_right {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
}

.wcs_button_circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wcs_button_circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wcs_button_circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.wcs_button_circle:hover::before {
    opacity: 1;
}

.wcs_button_circle img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

/* ===== UTILIDADES ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-4 { gap: 1rem; }
.mt-8 { margin-top: 2rem; }
.justify-center { justify-content: center; }
.uppercase { text-transform: uppercase; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.view-details-link.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.disabled {
    pointer-events: none;
}

/* ===== MODO OSCURO ===== */
[data-theme="dark"] {
    --light-color: #1e293b;
    --dark-color: #f8fafc;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

[data-theme="dark"] .header-compact {
    background: rgba(30, 41, 59, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-link {
    color: #e2e8f0;
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .currency-dropdown,
[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .cart-icon,
[data-theme="dark"] .account-icon {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .account-dropdown {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .account-dropdown ul li a {
    color: #e2e8f0;
}

[data-theme="dark"] .account-dropdown ul li a:hover {
    background: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .mobile-header-wrapper-inner {
    background: #1e293b;
}

[data-theme="dark"] .mobile-menu li a {
    color: #e2e8f0;
}

[data-theme="dark"] .single-mobile-header-info a {
    color: #e2e8f0;
}

[data-theme="dark"] .product-card {
    background: #334155;
    border: 1px solid #475569;
}

[data-theme="dark"] .product-title {
    color: #e2e8f0;
}

[data-theme="dark"] .quick-view,
[data-theme="dark"] .view-details {
    background: #475569;
    border-color: #64748b;
    color: #e2e8f0;
}

[data-theme="dark"] .quick-view:hover,
[data-theme="dark"] .view-details:hover {
    background: #4b5563;
}

[data-theme="dark"] .categories-sidebar {
    background: #334155;
    border-right-color: #475569;
}

[data-theme="dark"] .categories-sidebar h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .category-button {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .category-button:hover {
    background: #475569;
}

[data-theme="dark"] .main-content {
    background: #1e293b;
}

/* ===== RESPONSIVE COMPLETO ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-sidebar {
        width: 250px;
    }
}

@media (max-width: 1024px) {
    .menu-nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .header-compact {
        padding: 12px 0;
    }
    
    .header-wrap {
        padding: 0 15px;
    }
    
    .logo-compact {
        height: 35px;
    }
    
    .main-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .currency-dropdown {
        font-size: 11px;
        padding: 6px 8px;
        min-width: 70px;
    }
    
    .theme-toggle-btn,
    .cart-icon,
    .account-icon {
        width: 38px;
        height: 38px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .store-container {
        flex-direction: column;
        margin-top: 70px;
    }
    
    .categories-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        top: 0;
    }
    
    .category-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }
    
    .category-item {
        flex-shrink: 0;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .category-button {
        white-space: nowrap;
        min-width: 120px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions button {
        width: 100%;
    }
    
    .floating-cart {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        transform: none;
    }
    
    .cart-toggle:hover {
        transform: scale(1.1);
    }
    
    .cart-toggle {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
    
    .cart-panel {
        max-width: 100%;
        right: -100%;
    }
    
    .bottom-right-promo {
        display: flex;
    }
    
    .md\:flex-row {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 6px;
    }
    
    .currency-selector {
        display: none;
    }
    
    .theme-toggle-btn,
    .cart-icon,
    .account-icon {
        width: 36px;
        height: 36px;
    }
    
    .wcs_fixed_right {
        bottom: 20px;
        right: 20px;
    }
    
    .wcs_button_circle {
        width: 60px;
        height: 60px;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-image-container {
        height: 220px;
    }
    
    .product-image-overlay {
        width: 45px;
    }
    
    .overlay-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
    
    .video-indicator {
        right: 50px;
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 768px) {
    .bottom-right-promo {
        display: flex;
    }
}

/* ===== BOTONES EN FORMA DE OREJA MEJORADOS ===== */
.ear-buttons {
    position: absolute;
    top: 10px;
    right: 0; /* Cambiado de 10px a 0 para que esté más a la derecha */
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.ear-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 35px;
    border: none;
    border-radius: 8px 0 0 8px; /* Cambiado para que el borde redondeado esté a la izquierda */
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.3); /* Sombra ajustada */
    transition: all 0.3s ease;
    margin-left: 0; /* Eliminado el margen negativo */
    transform: translateX(10px); /* Inicialmente fuera de la imagen */
}

.ear-button:hover {
    transform: translateX(0); /* Se desliza completamente dentro al hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ear-button-green {
    background-color: #05f1a3;
    color: white;
}

.ear-button-red {
    background-color: #ef4444;
    color: white;
}

.ear-button-green:hover {
    background-color: #05d895;
}

.ear-button-red:hover {
    background-color: #dc2626;
}

/* Asegurar que los botones no tapen la imagen en dispositivos móviles */
@media (max-width: 768px) {
    .ear-buttons {
        top: 5px;
        right: 0;
    }
    
    .ear-button {
        width: 35px;
        height: 30px;
        font-size: 12px;
        transform: translateX(8px);
    }
}

/* Opcional: Efecto de aparición suave al cargar la página */
.product-card .ear-button {
    animation: slideInEar 0.5s ease-out forwards;
}

@keyframes slideInEar {
    from {
        transform: translateX(15px);
        opacity: 0;
    }
    to {
        transform: translateX(10px);
        opacity: 1;
    }
}

/* ===== BOTONES DEBAJO DEL PRECIO ===== */
.product-actions-below {
    margin-top: 1rem;
}

.main-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 140px;
}

.add-to-cart-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.quick-view-btn-below {
    flex: 1;
    background: #f1f5f9;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 140px;
}

.quick-view-btn-below:hover {
    background: #e2e8f0;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.quantity-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.quantity-display {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* shop-enhanced.css */
.product-image-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
}

.product-image-slider .slick-slide {
    display: none;
    transition: opacity 0.3s ease;
}

.product-image-slider .slick-slide.active {
    display: block;
}

.product-image-slider img {
    width: 100%;
    height: auto;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.product-image-slider img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.slider-nav-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}

.slider-nav-thumbnails .slick-slide {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-nav-thumbnails .slick-slide.active {
    border-color: #3b82f6;
}

.slider-nav-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Controles de cantidad mejorados */
.detail-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    max-width: 140px;
}

.qty-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.qty-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.qty-val {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
}

/* Selectores de variantes mejorados */
.list-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}

.list-filter li {
    list-style: none;
}

.list-filter a {
    display: block;
    padding: 8px 16px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.list-filter li.active a {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.list-filter a:hover {
    border-color: #3b82f6;
    transform: translateY(-1px);
}

/* Notificaciones */
.product-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 4px solid #3b82f6;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.product-notification-success {
    border-left-color: #10b981;
}

.product-notification-error {
    border-left-color: #ef4444;
}

.notification-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .slider-nav-thumbnails .slick-slide {
        width: 60px;
        height: 60px;
    }
    
    .list-filter {
        gap: 6px;
    }
    
    .list-filter a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}


/* main-enhanced.css */
/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== STICKY HEADER ===== */
.sticky-bar {
    transition: all 0.3s ease;
    background: white;
}

.sticky-bar.stick {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ===== MOBILE MENU ENHANCEMENTS ===== */
.mobile-header-active {
    transition: transform 0.3s ease;
}

.mobile-header-active.sidebar-visible {
    transform: translateX(0);
}

.menu-expand {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.menu-expand.expanded {
    transform: rotate(180deg);
}

.mobile-menu .dropdown ul {
    display: none;
    padding-left: 15px;
}

.mobile-menu .dropdown.active > ul {
    display: block;
}

/* ===== LAZY LOADING ===== */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* ===== COUNTDOWN ENHANCEMENTS ===== */
.countdown-section {
    display: inline-block;
    text-align: center;
    margin: 0 5px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 70px;
}

.countdown-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    display: block;
}

.countdown-period {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
    margin-top: 5px;
}

/* ===== SEARCH MODAL ===== */
.main-search-active {
    transition: all 0.3s ease;
}

.main-search-active.search-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .countdown-section {
        min-width: 60px;
        margin: 0 2px;
        padding: 8px;
    }
    
    .countdown-amount {
        font-size: 1.2rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
[data-theme="dark"] .sticky-bar.stick {
    background: #1e293b;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .countdown-section {
    background: #334155;
}

[data-theme="dark"] .countdown-period {
    color: #94a3b8;
}



/* CORRECCIÓN DEL SIDEBAR DE CATEGORÍAS PARA LAPTOPS */
.store-container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem;
    align-items: flex-start;
}

.categories-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 4rem);
}

.categories-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3a86ff;
    color: #3a86ff;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.category-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.95rem;
    color: #333;
}

.category-button:hover {
    background-color: rgba(58, 134, 255, 0.1);
    color: #3a86ff;
}

.category-button.active {
    background-color: #3a86ff;
    color: white;
    font-weight: 600;
}

.category-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.category-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: auto;
}

.category-button.active .category-count {
    background: rgba(255, 255, 255, 0.3);
}

.accordion-toggle {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.accordion-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.subcategory-list {
    list-style: none;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.subcategory-list.expanded {
    max-height: 500px;
}

.subcategory-item {
    margin-bottom: 0.25rem;
}

.subcategory-button {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.875rem;
    color: #6c757d;
}

.subcategory-button:hover {
    background-color: rgba(58, 134, 255, 0.05);
    color: #3a86ff;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Estilos para hacer la imagen clickeable */
.product-image-container {
    cursor: pointer;
    position: relative;
}

.product-image-container::after {
    content: '👁️ Vista Rápida';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.product-image-container:hover::after {
    opacity: 1;
}

/* Estilos específicos para el modal de vista rápida */
#productQuickViewModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#productQuickViewModal .modal-header {
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

#productQuickViewModal .modal-body {
    padding: 2rem;
}

.thumbnail-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-gallery img:hover,
.thumbnail-gallery img.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.related-product-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.related-product-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.related-product-card h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-card .price {
    font-weight: bold;
    color: var(--primary-color);
}

/* Asegurar que el modal se cierre correctamente */
#productQuickViewModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#productQuickViewModal .btn-close:hover {
    opacity: 1;
}

/* Animación de entrada del modal */
#productQuickViewModal .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== CARRITO FLOTANTE MEJORADO ===== */
.store-floating-cart {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1000;
}

.store-cart-toggle {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    border: none;
    border-radius: 50%;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    animation: pulse-cart 2s infinite;
}

.store-cart-toggle:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6);
    animation: none;
}

.store-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    animation: bounce 0.5s ease;
}

@keyframes pulse-cart {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: scale(1); }
    40%, 43% { transform: scale(1.1); }
    70% { transform: scale(1.05); }
}

/* Panel Carrito Mejorado */
.store-cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1100; /* Aumentado para que esté por encima */
    display: flex;
    flex-direction: column;
}

.store-cart-panel.open {
    right: 0;
}

.store-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.store-cart-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

.store-cart-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.store-cart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.store-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
}

.store-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.store-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.store-empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.store-cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.store-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: var(--radius);
}

.store-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.store-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.store-checkout-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Overlay del Carrito */
.store-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1099; /* Debajo del panel pero encima de todo lo demás */
}

.store-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Items del Carrito */
.store-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Cambiado a flex-start para mejor alineación */
    padding: 1rem; /* Aumentado el padding */
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.5rem; /* Espacio entre items */
    border-radius: 8px; /* Bordes redondeados */
    background: #fafafa; /* Fondo suave */
    transition: all 0.3s ease;
}

.store-cart-item:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.store-cart-item-info {
    flex: 1;
    min-width: 0;
    margin-right: 1rem;
}

.store-cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-cart-item-subtotal {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
}

.store-cart-item-price {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.store-cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.store-quantity-controls {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 0.25rem;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.store-quantity-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}


.store-quantity-btn:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.store-quantity-display {
    margin: 0 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 1.5rem;
    text-align: center;
}

.store-remove-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.store-remove-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .store-floating-cart {
        display: none;
    }
    
    .store-cart-panel {
        max-width: 100%;
        right: -100%;
    }
}


/* Animaciones para notificaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Efectos de carga */
.store-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.store-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Animaciones para notificaciones y carrito */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Transición suave para el panel del carrito */
.store-cart-panel {
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-cart-overlay {
    transition: all 0.3s ease;
}


/* Estilos para el carrito */
.store-cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.store-cart-panel.open {
    right: 0;
}

.store-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.store-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.store-cart-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: between;
    align-items: center;
}

.store-cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.store-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.store-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.store-cart-footer {
    padding: 1rem;
    border-top: 1px solid #e5e5e5;
}

.store-checkout-btn {
    width: 100%;
    padding: 0.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.store-checkout-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Botón toggle del carrito */
.store-cart-toggle {
    position: relative;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
}

.store-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


.store-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.store-floating-cart {
    z-index: 9998 !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.store-cart-overlay.open ~ .store-floating-cart,
.store-cart-panel.open ~ .store-floating-cart {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Ocultar el carrito flotante verde */
.store-floating-cart {
    display: none !important;
}

/* Estilos para los paneles del menú móvil */
.mobile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-panel.open {
    right: 0;
}

.mobile-panel-header {
    background: linear-gradient(135deg, var(--wa-primary), var(--wa-secondary));
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mobile-panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important; /* Forzar texto blanco */
}

.mobile-panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Panel de búsqueda con IA */
.search-panel {
    background: white;
}

.search-form {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.search-suggestions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.suggestion-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.suggestion-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #495057;
}

.suggestion-item:hover {
    background: #e9ecef;
}

/* Icono de robot para búsqueda IA */
.ai-search-icon {
    position: relative;
}

.ai-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Panel de lista de deseos */
.wishlist-panel .wishlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.wishlist-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.wishlist-item-info {
    flex: 1;
}

.wishlist-item-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
}

.wishlist-item-price {
    color: var(--wa-accent);
    font-weight: 700;
}

/* Panel de usuario */
.user-panel .user-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-action-btn {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
}

.user-action-btn:hover {
    border-color: var(--wa-accent);
    background: #f8f9fa;
}

.cart-badge-mobile {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== VARIABLES WA (WhatsApp) ESPECÍFICAS ===== */
:root {
    --wa-primary: #25D366;
    --wa-secondary: #128C7E;
    --wa-accent: #075E54;
    --wa-light: #DCF8C6;
    --wa-dark: #0a5c36;
}

/* ===== PANELES MÓVILES MEJORADOS ===== */
.mobile-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
}

.mobile-panel.active {
    right: 0;
}

.mobile-panel-header {
    background: linear-gradient(135deg, var(--wa-primary), var(--wa-secondary));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mobile-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.mobile-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.mobile-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8fafc;
}

/* Panel de Búsqueda con IA */
.search-suggestions {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.suggestion-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.ai-search-icon {
    position: relative;
    color: var(--wa-primary);
}

.ai-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.suggestion-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
    border-left: 3px solid transparent;
    margin-bottom: 0.5rem;
}

.suggestion-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

/* Panel de Lista de Deseos */
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.wishlist-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.wishlist-item-info {
    flex: 1;
    min-width: 0;
}

.wishlist-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.wishlist-item-actions {
    display: flex;
    gap: 0.5rem;
}

.wishlist-action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.wishlist-action-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.wishlist-action-btn.remove {
    background: #ef4444;
}

.wishlist-action-btn.remove:hover {
    background: #dc2626;
}

/* Panel de Usuario */
.user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-action-btn {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.user-action-btn:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(5px);
    color: var(--primary-color);
}

.user-action-btn i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Badge para carrito móvil */
.cart-badge-mobile {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Estados vacíos */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--primary-color);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ===== BOTONES DE ACCIÓN FLOTANTES MEJORADOS ===== */
.action-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wa-primary), var(--wa-secondary));
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.fab-main:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    transform: scale(0);
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.fab-item:nth-child(2) { background: var(--primary-color); }
.fab-item:nth-child(3) { background: #8B5CF6; }
.fab-item:nth-child(4) { background: #EF4444; }

.fab-main.active {
    transform: rotate(45deg);
}

.fab-main.active + .fab-item {
    transform: scale(1);
    opacity: 1;
}

.fab-item:hover {
    transform: scale(1.15) !important;
}

/* ===== ANIMACIONES ESPECÍFICAS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ===== RESPONSIVE PARA PANELES MÓVILES ===== */
@media (max-width: 480px) {
    .mobile-panel {
        width: 100%;
        max-width: none;
    }
    
    .mobile-panel-header {
        padding: 1.25rem;
    }
    
    .mobile-panel-content {
        padding: 1rem;
    }
    
    .wishlist-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .wishlist-item-actions {
        justify-content: center;
    }
    
    .action-fab {
        bottom: 1rem;
        right: 1rem;
    }
    
    .fab-main {
        width: 55px;
        height: 55px;
        font-size: 1.25rem;
    }
    
    .fab-item {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ===== DARK MODE PARA PANELES ===== */
[data-theme="dark"] .mobile-panel {
    background: #1e293b;
}

[data-theme="dark"] .mobile-panel-content {
    background: #0f172a;
}

[data-theme="dark"] .search-suggestions,
[data-theme="dark"] .wishlist-item,
[data-theme="dark"] .user-action-btn {
    background: #334155;
    border-color: #475569;
}

[data-theme="dark"] .user-action-btn {
    color: #e2e8f0;
}

[data-theme="dark"] .suggestion-item:hover,
[data-theme="dark"] .user-action-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .empty-state {
    color: #94a3b8;
}

[data-theme="dark"] .empty-state h3 {
    color: #e2e8f0;
}

/* ===== SIDEBAR CATEGORÍAS PARA LAPTOP ===== */
.store-container {
  display: flex;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
  gap: 2rem;
  align-items: flex-start;
}

.categories-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
  overflow-y: auto;
  max-height: calc(100vh - 4rem);
}

.categories-sidebar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #3a86ff;
  color: #3a86ff;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-item {
  margin-bottom: 0.5rem;
}

.category-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.category-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 0.95rem;
  color: #333;
}

.category-button:hover {
  background-color: rgba(58, 134, 255, 0.1);
  color: #3a86ff;
}

.category-button.active {
  background-color: #3a86ff;
  color: white;
  font-weight: 600;
}

.category-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.category-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: auto;
}

.category-button.active .category-count {
  background: rgba(255, 255, 255, 0.3);
}

.accordion-toggle {
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  color: #6c757d;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.accordion-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.subcategory-list {
  list-style: none;
  margin-top: 0.5rem;
  margin-left: 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.subcategory-list.expanded {
  max-height: 500px;
}

.subcategory-item {
  margin-bottom: 0.25rem;
}

.subcategory-button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 0.875rem;
  color: #6c757d;
}

.subcategory-button:hover {
  background-color: rgba(58, 134, 255, 0.05);
  color: #3a86ff;
}

.main-content-area {
  flex: 1;
  min-width: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .store-container {
    flex-direction: column;
  }
  
  .categories-sidebar {
    width: 100%;
    position: static;
    margin-bottom: 1rem;
  }
}

/* Estilos para actualizaciones en tiempo real */
.cart-updating {
    opacity: 0.7;
    pointer-events: none;
}

.cart-updated {
    animation: cartPulse 0.5s ease-in-out;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.quantity-btn.plus {
  background-color: #25D366; /* Verde WhatsApp para el fondo */
  color: #FFFFFF;             /* Texto (el "+") en color blanco */
  font-weight: bold;           /* Negrita */
  border: none;                /* Opcional: quita el borde feo del botón */
  padding: 5px 10px;           /* Opcional: le da un poco de espacio */
  cursor: pointer;             /* Opcional: muestra la manito al pasar el mouse */
}

.quantity-btn.minus {
  background-color: #FF6B6B; /* Este es un rojo suave */
  color: #FFFFFF;             /* Texto (el "-") en color blanco */
  font-weight: bold;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.cart-item-quantity {
  color: #25D366 !important;     /* Este es el color verde de WhatsApp */
  font-weight: bold;   /* Esto pone el texto en negrita */
}