/* public/css/estilos.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;900&display=swap');

/* --- ESTRUCTURA DE LA PÁGINA (FIX ESPACIOS BLANCOS) --- */

:root {
    --negro: #050505; --blanco: #ffffff;
    --gris-fondo: #F5F7FA; --verde-neon: #00E676;
    --fuente: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--fuente); background: var(--blanco); color: var(--negro); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* HEADER */
header {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 15px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-weight: 900; font-size: 24px; letter-spacing: -1px; display: flex; align-items: center; min-width: 120px; }
.logo span { color: var(--verde-neon); }
.nav-links { display: flex; gap: 25px; font-weight: 600; font-size: 14px; color: #333; }
.nav-links a:hover { color: var(--verde-neon); }
.search-wrapper { flex: 1; max-width: 500px; }
.search-wrapper input { width: 100%; background: #F0F2F5; border: 1px solid #ddd; padding: 12px 20px; border-radius: 50px; outline: none; }
.role-capsule { display: flex; background: #eee; padding: 4px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.role-btn { padding: 6px 15px; border-radius: 50px; cursor: pointer; color: #666; }
.role-btn.active { background: var(--negro); color: white; }
.header-icons { display: flex; gap: 15px; font-size: 18px; }

/* HERO */
.hero { background: #000; color: white; padding: 80px 0; min-height: 550px; display: flex; align-items: center; overflow: hidden; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: 100%; }
.hero-text h1 { font-size: 70px; font-weight: 900; line-height: 0.9; margin-bottom: 20px; text-transform: uppercase; letter-spacing: -2px; }
.btn-hero { display: inline-block; background: var(--verde-neon); color: var(--negro); padding: 15px 40px; font-weight: 800; border-radius: 50px; text-transform: uppercase; font-size: 14px; }
.hero-image img { animation: float 4s ease-in-out infinite; filter: drop-shadow(0 0 50px rgba(255,255,255,0.1)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* PRODUCT GRID */
.section-padding { padding: 80px 0; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: var(--gris-fondo); border-radius: 20px; padding: 30px; text-align: center; transition: 0.3s; position: relative; }
.product-card:hover { background: white; box-shadow: 0 20px 40px rgba(0,0,0,0.08); transform: translateY(-5px); }
.card-img-box { height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-img-box img { max-height: 100%; mix-blend-mode: multiply; }
.btn-details { display: block; width: 100%; background: var(--negro); color: white; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 14px; margin-top: 15px; border: none; cursor: pointer; }
.btn-details:hover { background: #333; }

/* --- PÁGINA DE DETALLE (NUEVO) --- */
.detail-container { padding: 60px 0; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }
.detail-image-box { background: var(--gris-fondo); border-radius: 30px; padding: 50px; display: flex; align-items: center; justify-content: center; position: sticky; top: 100px; }
.detail-image-box img { max-width: 100%; mix-blend-mode: multiply; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); }

.detail-info h1 { font-size: 40px; font-weight: 900; line-height: 1.1; margin-bottom: 10px; }
.detail-price { font-size: 32px; font-weight: 900; color: var(--negro); margin: 20px 0; display: flex; align-items: center; gap: 15px; }
.discount-tag { background: var(--verde-neon); color: black; font-size: 14px; padding: 5px 10px; border-radius: 5px; font-weight: bold; }

.variant-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: block; text-transform: uppercase; color: #555; }
.variant-options { display: flex; gap: 10px; margin-bottom: 30px; }
.v-btn { padding: 10px 20px; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.2s; }
.v-btn:hover { border-color: var(--negro); }
.v-btn.selected { background: var(--negro); color: white; border-color: var(--negro); }

.color-option { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.color-option.selected { border-color: var(--negro); transform: scale(1.1); }

.actions-row { display: flex; gap: 20px; margin-top: 40px; }
.btn-add-cart { flex: 1; background: var(--negro); color: white; font-weight: 800; font-size: 16px; padding: 18px; border-radius: 12px; border: none; cursor: pointer; display: flex; justify-content: center; gap: 10px; }
.btn-add-cart:hover { background: #333; }
.btn-fav { width: 60px; border: 1px solid #ddd; border-radius: 12px; background: white; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; }

/* FOOTER */
footer { background: #0a0a0a; color: white; padding-top: 60px; margin-top: 50px; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.eco-card { background: #151515; padding: 25px; border-radius: 15px; border: 1px solid #222; }
.copyright { border-top: 1px solid #222; padding: 20px; text-align: center; font-size: 12px; color: #555; }

/* --- GALERÍA INTERACTIVA (VERSIÓN SUPREME) --- */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky; 
    top: 100px; /* Se queda fija al hacer scroll */
}

/* Marco Principal */
.main-image-frame {
    background: var(--gris-fondo);
    border-radius: 30px;
    height: 450px; /* Altura fija para evitar saltos de diseño */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.main-image-frame img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Funde el fondo blanco de la img con el gris */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animación sutil al cambiar */
.fade-in { animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0.5; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

/* Tira de Miniaturas */
.thumbnails-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumb-btn {
    width: 80px;
    height: 80px;
    background: var(--gris-fondo);
    border-radius: 18px;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.thumb-btn img {
    max-height: 70%;
    max-width: 70%;
    mix-blend-mode: multiply;
}

/* Estado Hover y Activo */
.thumb-btn:hover { border-color: #ccc; transform: translateY(-2px); }

.thumb-btn.active {
    border-color: var(--negro); /* Borde negro sólido al seleccionar */
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- ESTILOS DE VENDEDOR Y RESEÑAS (NUEVO) --- */

/* Badge del Vendedor */
.seller-info {
    display: flex; align-items: center; gap: 10px;
    background: #F0F2F5; padding: 8px 15px; border-radius: 50px;
    width: fit-content; margin-bottom: 20px; font-size: 13px;
}
.seller-stars { color: #FFD700; font-weight: bold; }
.verified-icon { color: var(--verde-neon); }

/* --- RESEÑAS ESTILO SUPREME (Dark Mode) --- */
.reviews-section {
    background: #000; /* Fondo negro para separar visualmente */
    color: white;
    padding: 80px 0;
    margin-top: 80px;
    border-radius: 30px 30px 0 0; /* Curva suave arriba */
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

.rating-display { font-size: 60px; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.rating-stars { color: var(--verde-neon); font-size: 20px; margin-top: 10px; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: #111;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #222;
    transition: transform 0.3s ease;
}
.review-card:hover { transform: translateY(-5px); border-color: var(--verde-neon); }

.reviewer-info { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.reviewer-avatar {
    width: 45px; height: 45px;
    background: linear-gradient(45deg, #333, #555);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 14px;
}
.review-body { color: #ccc; line-height: 1.6; font-size: 15px; }

/* --- FOOTER MEJORADO (Basado en PDF) --- */
footer {
    background: #050505;
    color: white;
    padding-top: 80px;
    border-top: 1px solid #222;
}

/* Ecosistema (Tarjetas Superiores) */
.footer-eco-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid #222;
}

.eco-card {
    background: #0F0F0F;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #1a1a1a;
    transition: 0.3s;
}
.eco-card:hover { background: #151515; border-color: #333; }
.eco-card h3 { font-size: 20px; margin-bottom: 8px; font-weight: 800; display: flex; align-items: center; gap: 10px; }

/* Columnas de Enlaces */
.footer-links-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.f-col h4 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.f-col ul li { margin-bottom: 12px; }
.f-col ul li a { color: #888; font-size: 14px; transition: 0.3s; }
.f-col ul li a:hover { color: var(--verde-neon); padding-left: 5px; }

/* Newsletter Input */
.f-input-group { position: relative; }
.f-input-group input {
    width: 100%; background: #111; border: 1px solid #333;
    padding: 15px; border-radius: 12px; color: white; outline: none;
}
.f-input-group input:focus { border-color: var(--verde-neon); }
.f-input-group button {
    position: absolute; right: 5px; top: 5px; bottom: 5px;
    background: var(--verde-neon); color: black; border: none;
    padding: 0 20px; border-radius: 8px; font-weight: bold; cursor: pointer;
}

.copyright {
    text-align: center; color: #444; padding: 30px 0; border-top: 1px solid #111; font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-links-container { grid-template-columns: 1fr; gap: 40px; }
}
/* --- NUEVOS ESTILOS (FEEDBACK MEJORAS) --- */

/* Lista de Características (Bullets Técnicos) */
.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
    background: #FAFAFA;
    padding: 20px;
    border-radius: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}
.feature-icon {
    font-size: 16px;
    color: var(--negro);
    width: 24px;
    text-align: center;
}

/* Badges de Confianza (Debajo del CTA) */
.trust-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.trust-item i { color: var(--verde-neon); font-size: 14px; }

/* Texto dinámico de color */
.color-label-text { font-weight: 400; color: #666; margin-left: 5px; }
/* --- RESPONSIVE MEDIA QUERIES (MÓVIL Y TABLET) --- */

@media (max-width: 991px) {
    
    /* 1. AJUSTES GENERALES */
    .container { padding: 0 20px; }
    
    /* 2. HEADER MÓVIL */
    .header-inner {
        flex-wrap: wrap; /* Permite que los elementos bajen si no caben */
        gap: 15px;
    }
    
    .nav-links { display: none; } /* Ocultamos menú texto en móvil por espacio */
    
    .search-wrapper {
        order: 3; /* El buscador baja a una segunda línea */
        min-width: 100%;
        margin: 0;
    }
    
    .logo { font-size: 20px; }
    
    /* Cápsula Seller/Customer más pequeña */
    .role-capsule { transform: scale(0.9); margin-left: auto; }
    
    /* 3. HERO SECTION */
    .hero { text-align: center; padding: 40px 0; }
    .hero-content { grid-template-columns: 1fr; gap: 30px; }
    .hero-text h1 { font-size: 40px; }
    .hero-image img { max-width: 80%; margin: 0 auto; }
    
    /* 4. PÁGINA DE DETALLE (EL ARREGLO IMPORTANTE) */
    .detail-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 30px;
    }
    
    .gallery-container {
        position: static; /* Ya no se queda pegado */
        top: 0;
        width: 100%;
    }
    
    .main-image-frame {
        height: 350px; /* Altura más cómoda para celular */
        margin-bottom: 20px;
    }
    
    .thumbnails-row {
        justify-content: flex-start; /* Alineados a la izq */
        overflow-x: auto; /* Scroll horizontal si son muchos */
        padding-bottom: 10px;
    }
    
    .detail-info h1 { font-size: 28px; }
    
    .actions-row {
        position: fixed; /* Botón de compra flotante abajo (Estilo App) */
        bottom: 0; left: 0; right: 0;
        background: white;
        padding: 15px 20px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        margin: 0;
        border-top: 1px solid #eee;
    }
    
    /* Hacemos espacio al final para que el botón flotante no tape contenido */
    .reviews-section { padding-bottom: 100px; }
    
    /* 5. FOOTER */
    .footer-links-container, .eco-grid {
        grid-template-columns: 1fr; /* Todo en una columna */
        text-align: center;
    }
    .f-col { margin-bottom: 30px; }
    .f-col ul li a:hover { padding-left: 0; color: var(--verde-neon); }
}

/* --- ESTILOS PÁGINAS INTERNAS --- */

/* PÁGINA COMPRAR (Shop) */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding: 60px 0; }
.filters-sidebar { position: sticky; top: 100px; height: fit-content; }
.filter-group { margin-bottom: 30px; }
.filter-title { font-weight: 800; margin-bottom: 15px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-list li { margin-bottom: 10px; color: #666; font-size: 14px; cursor: pointer; transition: 0.2s; }
.filter-list li:hover { color: var(--negro); transform: translateX(5px); font-weight: 600; }
.filter-checkbox { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; color: #555; cursor: pointer; }

/* PÁGINA VENDER (Seller Landing) */
.seller-hero {
    background: #000; color: white; padding: 100px 0; text-align: center;
    border-radius: 30px; margin-top: 40px; position: relative; overflow: hidden;
}
.seller-hero h1 { font-size: 60px; font-weight: 900; margin-bottom: 20px; line-height: 1; }
.seller-hero p { font-size: 18px; color: #ccc; max-width: 600px; margin: 0 auto 40px; }
.seller-stats { display: flex; justify-content: center; gap: 50px; margin-top: 60px; border-top: 1px solid #333; padding-top: 40px; }
.stat-box h3 { font-size: 40px; font-weight: 900; color: var(--verde-neon); margin-bottom: 5px; }
.stat-box p { font-size: 14px; color: #888; text-transform: uppercase; }

/* Steps para Vender */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 80px 0; }
.step-card { background: #F5F7FA; padding: 40px; border-radius: 20px; text-align: center; }
.step-number { 
    width: 50px; height: 50px; background: var(--negro); color: white; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-weight: 900; font-size: 20px; margin: 0 auto 20px; 
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .shop-layout { grid-template-columns: 1fr; }
    .filters-sidebar { display: none; /* Ocultar filtros en móvil por ahora */ }
    .seller-stats { flex-direction: column; gap: 30px; }
    .steps-grid { grid-template-columns: 1fr; }
}
/* --- MEJORAS: TIENDAS Y TENDENCIAS --- */

/* 1. SECCIÓN TIENDAS TOP (Shop) */
.top-stores-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.stores-scroll {
    display: flex; gap: 25px; overflow-x: auto; padding: 10px 5px;
    scrollbar-width: none; /* Ocultar scrollbar Firefox */
}
.stores-scroll::-webkit-scrollbar { display: none; } /* Ocultar scrollbar Chrome */

.store-circle-card {
    display: flex; flex-direction: column; align-items: center; min-width: 100px; cursor: pointer;
}
.store-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: white; border: 2px solid #eee; padding: 5px;
    position: relative; transition: 0.3s;
}
.store-avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
/* Efecto de borde degradado para tiendas destacadas */
.store-avatar.featured {
    border-color: transparent;
    background-image: linear-gradient(white, white), linear-gradient(45deg, #00C853, #00E676);
    background-origin: border-box; background-clip: content-box, border-box;
}
.store-circle-card:hover .store-avatar { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.store-name { font-size: 13px; font-weight: 700; margin-top: 10px; text-align: center; }
.store-rating { font-size: 11px; color: #666; display: flex; align-items: center; gap: 3px; }

/* 2. BOTÓN DE ACCIÓN (Vender) */
.btn-cta-sell {
    background: white; color: black;
    padding: 18px 50px; font-size: 18px; font-weight: 900;
    border-radius: 50px; border: none; cursor: pointer;
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
    transition: 0.3s; display: inline-block; text-transform: uppercase;
}
.btn-cta-sell:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(255,255,255,0.4); }

/* 3. TENDENCIAS BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}
/* Tarjetas especiales que ocupan más espacio */
.bento-item { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; }
.bento-large { grid-column: span 2; grid-row: span 2; } /* Cuadrado Grande */
.bento-wide { grid-column: span 2; } /* Rectángulo Ancho */

.bento-item img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}
.bento-item:hover img { transform: scale(1.1); }

.bento-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px; color: white;
}
.trend-badge {
    position: absolute; top: 20px; left: 20px;
    background: var(--verde-neon); color: black;
    font-weight: 900; padding: 5px 12px; border-radius: 50px; font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; height: 300px; }
}/* --- SHOP SUPREME: FILTROS Y ESTILOS --- */

/* 1. Header de Categoría (Banner) */
.shop-banner {
    background: linear-gradient(to right, #111, #222);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.shop-banner h1 { font-size: 36px; font-weight: 900; margin-bottom: 10px; }
.shop-banner p { color: #ccc; max-width: 500px; }
.shop-banner-img {
    position: absolute; right: 0; top: -20px; height: 140%;
    opacity: 0.3; transform: rotate(-10deg);
}

/* 2. Barra Lateral (Sidebar) */
.filters-sidebar {
    background: white;
    border-right: 1px solid #eee;
    padding-right: 30px;
}
.filter-section { margin-bottom: 30px; border-bottom: 1px solid #f5f5f5; padding-bottom: 20px; }
.filter-title { font-weight: 800; font-size: 15px; margin-bottom: 15px; display: flex; justify-content: space-between; }

/* Checkbox Personalizado (Estilo Supreme) */
.custom-check {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px; cursor: pointer; font-size: 14px; color: #555;
    transition: 0.2s;
}
.custom-check:hover { color: black; }
.checkmark {
    width: 20px; height: 20px; border: 2px solid #ddd; border-radius: 5px;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
/* Cuando el input (oculto) está checked */
.custom-check input:checked ~ .checkmark {
    background: var(--negro); border-color: var(--negro);
}
.checkmark::after {
    content: '✓'; color: var(--verde-neon); font-size: 14px; font-weight: bold; display: none;
}
.custom-check input:checked ~ .checkmark::after { display: block; }
.custom-check input { display: none; } /* Ocultar el feo por defecto */

/* Filtros de Color */
.color-filter-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-color-btn {
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd; cursor: pointer;
    position: relative;
}
.filter-color-btn.active::after {
    content: ''; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px;
    border: 2px solid var(--negro); border-radius: 50%;
}

/* 3. Toolbar (Ordenar por, Resultados) */
.shop-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #eee;
}
.sort-select {
    padding: 8px 15px; border: 1px solid #ddd; border-radius: 8px; outline: none; background: white;
}

/* 4. Etiquetas de Filtros Activos */
.active-filters { display: flex; gap: 10px; margin-bottom: 20px; }
.filter-tag {
    background: #f0f0f0; padding: 5px 12px; border-radius: 20px; font-size: 12px;
    display: flex; align-items: center; gap: 5px; cursor: pointer;
}
.filter-tag:hover { background: #e0e0e0; }
/* --- PERFIL DE TIENDA (STOREFRONT) --- */

.store-header-container {
    margin-bottom: 40px;
    background: white;
    border-bottom: 1px solid #eee;
}

/* Banner de la tienda */
.store-cover {
    height: 250px;
    background: linear-gradient(45deg, #111, #333); /* Por defecto si no tiene imagen */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Barra de Información (Avatar + Datos) */
.store-info-bar {
    max-width: 1280px; margin: 0 auto; padding: 0 40px;
    position: relative; top: -40px; /* Para que el avatar suba sobre el banner */
    display: flex; align-items: flex-end; gap: 30px;
    margin-bottom: -20px; /* Compensar el subido */
}

.store-avatar-large {
    width: 140px; height: 140px;
    background: white; border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
}
.store-avatar-large img { width: 100%; height: 100%; object-fit: contain; }

.store-details { flex: 1; margin-bottom: 40px; color: #000; }
.store-name-title { font-size: 32px; font-weight: 900; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
.store-meta { font-size: 14px; color: #666; display: flex; gap: 20px; }
.store-meta i { color: var(--verde-neon); margin-right: 5px; }

/* Botones de Acción de Tienda */
.store-actions { margin-bottom: 45px; display: flex; gap: 10px; }
.btn-follow {
    background: var(--negro); color: white; padding: 10px 25px;
    border-radius: 50px; font-weight: 700; border: none; cursor: pointer;
}
.btn-contact {
    background: white; color: black; border: 1px solid #ddd;
    padding: 10px 20px; border-radius: 50px; font-weight: 600; cursor: pointer;
}

/* Buscador interno de la tienda */
.store-search {
    background: #F5F7FA; border-radius: 10px; padding: 20px;
    margin-bottom: 30px; display: flex; align-items: center; justify-content: space-between;
}
.search-in-store {
    border: none; background: transparent; width: 100%; outline: none; font-size: 14px;
}

/* Responsive Tienda */
@media (max-width: 768px) {
    .store-info-bar { flex-direction: column; align-items: center; text-align: center; top: -60px; }
    .store-details { margin-bottom: 10px; }
    .store-meta { justify-content: center; }
}
/* --- AUTENTICACIÓN (LOGIN / REGISTER) --- */

.auth-wrapper {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F7FA;
    padding: 40px 20px;
}

.auth-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* Lado Izquierdo (Visual) */
.auth-visual {
    background: #000;
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.auth-visual h2 { font-size: 45px; font-weight: 900; line-height: 1; margin-bottom: 20px; }
.auth-visual p { color: #ccc; font-size: 16px; line-height: 1.6; max-width: 300px; }
.auth-bg-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.2; object-fit: cover;
}

/* Lado Derecho (Formulario) */
.auth-form-side { padding: 60px; display: flex; flex-direction: column; justify-content: center; }

.auth-tabs {
    display: flex; background: #f0f0f0; padding: 5px;
    border-radius: 12px; margin-bottom: 30px; width: fit-content;
}
.auth-tab {
    padding: 10px 25px; font-weight: 600; font-size: 14px;
    border-radius: 8px; cursor: pointer; transition: 0.3s; color: #666;
}
.auth-tab.active { background: white; color: black; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.input-group { margin-bottom: 20px; }
.input-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #333; }
.auth-input {
    width: 100%; padding: 15px; border: 2px solid #eee;
    border-radius: 12px; font-size: 15px; outline: none; transition: 0.3s;
}
.auth-input:focus { border-color: var(--negro); background: #fff; }

.btn-auth {
    width: 100%; background: var(--negro); color: white;
    padding: 18px; font-weight: 800; border: none; border-radius: 12px;
    font-size: 16px; cursor: pointer; margin-top: 10px;
}
.btn-auth:hover { background: #333; }

/* Responsive Móvil */
@media (max-width: 850px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-visual { display: none; } /* Ocultamos la imagen en móvil para simplificar */
    .auth-form-side { padding: 40px 20px; }
}
/* --- BOTONES DE AUTH EN HEADER --- */
.header-auth-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #eee; /* Separador sutil */
}

.btn-login {
    font-weight: 600; font-size: 14px; color: #333;
    transition: 0.2s; cursor: pointer;
}
.btn-login:hover { color: var(--negro); }

.btn-register-header {
    background: var(--negro); color: white;
    padding: 8px 20px; border-radius: 50px;
    font-weight: 700; font-size: 13px;
    transition: 0.2s; cursor: pointer;
}
.btn-register-header:hover {
    background: #333; transform: translateY(-1px);
}

/* --- MENÚ DE USUARIO (LOGGED IN) --- */
.user-dropdown { position: relative; cursor: pointer; }

.user-avatar-small {
    width: 35px; height: 35px;
    background: var(--verde-neon); color: black;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 14px; border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Menú oculto por defecto */
/* --- MENÚ DE USUARIO (CLIENTE) CORREGIDO --- */
.dropdown-menu {
    display: none; /* Se activa con hover */
    position: absolute;
    
    /* CAMBIO 1: Pegado al contenedor padre, el margen da el espacio visual */
    top: 100%; 
    right: 0;
    margin-top: 15px; 

    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px;
    border: 1px solid #eee;
    flex-direction: column;
    z-index: 1000;
}

/* CAMBIO 2: EL PUENTE INVISIBLE (PARA EL CLIENTE TAMBIÉN) */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px; /* Cubre el hueco hacia arriba */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Mostrar al pasar el mouse */
.user-dropdown:hover .dropdown-menu { display: flex; }

.dropdown-item {
    padding: 10px 15px; border-radius: 8px; font-size: 14px;
    color: #333; display: flex; align-items: center; gap: 10px;
    transition: 0.2s;
}
.dropdown-item:hover { background: #F5F7FA; color: black; }
.dropdown-divider { height: 1px; background: #eee; margin: 5px 0; }
/* =========================================
   AUTH 2026: SUPREME + RESPONSIVE
   ========================================= */

/* Importamos Inter para esa nitidez premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&display=swap');

.auth-wrapper {
    /* CLAVE: Se estira para tocar el footer */
    flex: 1; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    
    /* Fondo oscuro */
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 100%);
    
    /* Padding controlado para que no se vea exagerado */
    padding: 40px 20px;
}

/* --- BLOBS DE FONDO (LUZ AMBIENTAL) --- */
.auth-blob {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: floatBlob 10s infinite alternate ease-in-out;
}
.blob-1 { top: -20%; left: -10%; }
.blob-2 { bottom: -20%; right: -10%; background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%); }

@keyframes floatBlob {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* --- CARD PRINCIPAL (VIDRIO REAL) --- */
.auth-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    width: 100%;
    max-width: 1050px;
    position: relative;
    z-index: 10;
    
    /* Efecto Glassmorphism 2026 */
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    
    /* Sombra suave y profunda */
    box-shadow: 
        0 40px 80px -20px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
        
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

/* --- LADO IZQUIERDO: STORYTELLING --- */
.auth-visual {
    padding: 60px;
    background: #0a0a0a; /* Diferenciación sutil */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.visual-content h2 {
    font-size: 48px; letter-spacing: -0.03em; line-height: 1.1;
    color: white; margin-bottom: 20px;
}

/* Stats Animados */
.stat-row { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.stat-item { display: flex; align-items: center; gap: 15px; }
.stat-number { font-size: 32px; font-weight: 800; color: white; font-feature-settings: "tnum"; }
.stat-label { font-size: 13px; color: #666; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- LADO DERECHO: FORMULARIO CLEAN --- */
.auth-form-side {
    background: rgba(255, 255, 255, 0.96); /* Casi blanco sólido para contraste */
    padding: 60px 80px;
    display: flex; flex-direction: column; justify-content: center;
}

/* TOGGLE 2026 (Píldora deslizante) */
.toggle-container {
    background: #F2F4F7; padding: 4px; border-radius: 16px;
    display: inline-flex; position: relative; margin-bottom: 35px; width: fit-content;
}
.toggle-btn {
    padding: 10px 30px; font-size: 14px; font-weight: 600;
    color: #667085; text-decoration: none; z-index: 2; border-radius: 12px; transition: 0.3s;
}
.toggle-btn.active { color: #000; background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* INPUTS CON GLOW */
.input-group { margin-bottom: 20px; }
.input-label { font-size: 13px; font-weight: 600; color: #344054; margin-bottom: 8px; display: block; }

.auth-input {
    width: 100%; padding: 14px 16px; background: white;
    border: 1px solid #E4E7EC; border-radius: 12px;
    font-size: 15px; color: #101828; transition: all 0.2s ease;
}
.auth-input:focus {
    outline: none; border-color: var(--verde-neon);
    box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.15); /* GLOW */
}

/* BOTÓN CTA MEMORABLE */
.btn-submit {
    width: 100%; background: #000; color: white;
    padding: 16px; border-radius: 12px; font-weight: 700; font-size: 16px;
    border: none; cursor: pointer; transition: 0.3s;
    display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 10px;
}
.btn-submit:hover { background: #111; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

/* CONFIANZA INVISIBLE */
.trust-row { margin-top: 25px; display: flex; justify-content: center; gap: 20px; opacity: 0.6; }
.trust-item { font-size: 12px; color: #666; display: flex; align-items: center; gap: 6px; font-weight: 500; }

/* =========================================
   MEDIA QUERIES (ESTRUCTURA MÓVIL CORRECTA)
   ========================================= */

/* 1. LAPTOPS (Pantallas medianas) */
@media (max-width: 1400px), (max-height: 800px) {
    .auth-wrapper {
        padding:  20px;
        min-height: auto; 
        height: auto;
        align-items: flex-start;
    }
    .auth-card { margin: 0 auto; max-width: 900px; }
    .auth-visual { padding: 40px; }
    .auth-form-side { padding: 40px 50px; }
    .visual-content h2 { font-size: 36px; }
}

/* 2. MÓVILES (SOLUCIÓN A ESPACIOS EXAGERADOS) */
@media (max-width: 900px) {
    
    .auth-wrapper {
        min-height: auto; display: block; padding: 20px 15px;
    }

    .auth-card {
        display: flex; flex-direction: column; width: 100%; max-width: 100%; margin: 0; border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    }

    /* CABECERA VISUAL (Solo imagen decorativa) */
    .auth-visual {
        height: 100px; padding: 0; display: block; position: relative;
        background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80');
        background-size: cover; background-position: center;
    }
    
    /* Ocultamos contenido visual complejo en móvil */
    .visual-content, .auth-blob { display: none !important; }

    /* EL FORMULARIO */
    .auth-form-side {
        padding: 30px 20px;
        border-radius: 25px 25px 0 0; margin-top: -25px; 
        position: relative; z-index: 10; background: white;
    }

    .auth-form-side h1 { font-size: 24px; text-align: center; }
    .auth-form-side p { text-align: center; margin-bottom: 20px; }
    
    /* Centrar toggle */
    .toggle-container { width: 100%; display: flex; }
    .toggle-btn { flex: 1; }
}


/* =========================================
   HEADER VENDEDOR SUPREME (2026)
   ========================================= */

/* 1. BOTÓN "SUBIR PRODUCTO" (GLOW EFFECT) */
.btn-seller-glow {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    color: #050505;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3); /* Luz verde */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 20px;
}
.btn-seller-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.5); /* Más luz al hover */
    background: linear-gradient(135deg, #00FF85 0%, #00E676 100%);
}

/* 2. AVATAR PRO (CON ANILLO DE ESTADO) */
.avatar-pro-wrapper {
    position: relative; cursor: pointer;
}
.avatar-pro {
    width: 42px; height: 42px;
    background: #111; color: var(--verde-neon);
    border-radius: 12px; /* Cuadrado redondeado (más moderno que círculo) */
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
    border: 2px solid #eee;
    transition: 0.2s;
}
.avatar-pro:hover { border-color: var(--verde-neon); background: #000; }

/* Punto de estado (Online/Verificado) */
.status-dot {
    position: absolute; bottom: -2px; right: -2px;
    width: 14px; height: 14px;
    background: var(--verde-neon);
    border: 2px solid white; border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 3. MENÚ "CENTRO DE COMANDO" (DROPDOWN) */
.dropdown-panel-pro {
    display: none;
    position: absolute; 
    
    /* CAMBIO 1: Lo acercamos y usamos margin para el espacio */
    top: 100%; 
    right: 0;
    margin-top: 15px; /* Este es el espacio visual */
    
    width: 260px;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px -10px rgba(0,0,0,0.15),
        0 0 0 1px rgba(0,0,0,0.03);
    padding: 8px;
    z-index: 1000;
    animation: slideUpFade 0.2s ease-out;
}
.dropdown-panel-pro::before {
    content: '';
    position: absolute;
    top: -20px; /* Sube para tocar el avatar */
    left: 0;
    width: 100%;
    height: 20px; /* Altura del puente */
    background: transparent; /* Invisible */
}
.avatar-pro-wrapper:hover .dropdown-panel-pro { display: block; }

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

/* Cabecera del Menú */
.panel-header {
    background: #F9FAFB; border-radius: 14px; padding: 15px;
    margin-bottom: 8px; border: 1px solid #F2F4F7;
}
.shop-id { font-size: 10px; color: #666; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 4px; }

/* Badge de Verificado */
.verified-badge {
    background: #E8F5E9; color: #1B5E20;
    font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
    display: inline-flex; align-items: center; gap: 3px;
    margin-left: auto; /* Empuja a la derecha */
}

/* Items del Menú */
.panel-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    color: #344054; font-size: 14px; font-weight: 500;
    transition: 0.2s;
    text-decoration: none;
    margin-bottom: 2px;
}
.panel-link:hover { background: #F5F7FA; color: black; }
.panel-link i { width: 20px; text-align: center; font-size: 16px; color: #98A2B3; transition: 0.2s; }
.panel-link:hover i { color: var(--negro); transform: scale(1.1); }

/* Separador */
.panel-divider { height: 1px; background: #eee; margin: 6px 10px; }

/* Item de Salir */
.panel-link.danger:hover { background: #FEF3F2; color: #B42318; }
.panel-link.danger:hover i { color: #B42318; }

/* --- BOTÓN CARRITO (INTERACTIVO & SUPREME) --- */
.icon-btn {
    position: relative;
    width: 45px; height: 45px; /* Área de clic más grande y cómoda */
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; /* Círculo perfecto */
    color: #333;
    font-size: 18px;
    text-decoration: none; /* Quita el subrayado del link */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: transparent;
}

/* Efecto al pasar el mouse (Feedback visual) */
.icon-btn:hover {
    background: #F3F4F6; /* Círculo gris muy sutil */
    color: black;
    transform: scale(1.05); /* Pequeño zoom */
}

/* Efecto al hacer clic */
.icon-btn:active {
    transform: scale(0.95);
    background: #E5E7EB;
}

/* El Badge (Contador) mejorado */
.badge {
    position: absolute; top: 2px; right: 2px;
    background: #000; /* Negro elegante en vez de rojo chillón */
    color: white;
    font-size: 10px; font-weight: 800;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 2px solid white; /* Borde blanco para separarlo del icono */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* =========================================
   CARRITO DE COMPRAS SUPREME
   ========================================= */

.cart-page-wrapper {
    background: #F9FAFB; /* Fondo gris muy claro para separar del blanco de las tarjetas */
    min-height: calc(100vh - 80px); /* Ocupa la pantalla menos header */
    padding: 40px 0;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Izquierda ancha, Derecha compacta */
    gap: 40px;
    align-items: start;
}

/* --- SECCIÓN PRODUCTOS (IZQUIERDA) --- */
.cart-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 15px;
}
.cart-title { font-size: 28px; font-weight: 800; color: #111; }
.cart-count { color: #666; font-weight: 600; font-size: 14px; }

.cart-item-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex; gap: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: 0.2s;
    position: relative;
}
.cart-item-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }

.cart-img-wrapper {
    width: 100px; height: 100px;
    background: #f9f9f9; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cart-img { width: 80%; height: auto; object-fit: contain; mix-blend-mode: multiply; }

.cart-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.item-brand { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
.item-name { font-size: 16px; font-weight: 700; color: #111; margin: 4px 0; line-height: 1.3; }
.item-price { font-size: 18px; font-weight: 800; color: #111; }

/* Selector de Cantidad Custom */
.qty-selector {
    display: flex; align-items: center;
    background: #F3F4F6; border-radius: 8px;
    width: fit-content; padding: 2px;
}
.qty-btn {
    width: 30px; height: 30px; border: none; background: transparent;
    cursor: pointer; font-weight: bold; color: #555; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: white; border-radius: 6px; shadow: 0 2px 5px rgba(0,0,0,0.1); color: black; }
.qty-input {
    width: 30px; text-align: center; border: none; background: transparent;
    font-weight: 700; font-size: 14px; outline: none;
}
/* Quitar flechas del input number */
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-remove {
    position: absolute; top: 20px; right: 20px;
    color: #999; cursor: pointer; transition: 0.2s; font-size: 14px;
}
.btn-remove:hover { color: #ef4444; }

/* --- SECCIÓN RESUMEN (DERECHA - STICKY) --- */
.cart-summary-box {
    background: white; padding: 30px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    position: sticky; top: 100px; /* Se queda pegado al bajar */
}

.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 14px; color: #555; }
.summary-row.total {
    margin-top: 20px; padding-top: 20px; border-top: 2px dashed #eee;
    font-size: 20px; font-weight: 900; color: #000;
}

.btn-checkout {
    width: 100%; background: var(--negro); color: white;
    padding: 16px; border-radius: 12px; font-weight: 800; font-size: 16px;
    border: none; cursor: pointer; margin-top: 25px;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    transition: 0.3s;
}
.btn-checkout:hover { background: #333; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

.secure-badge {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    margin-top: 20px; font-size: 12px; color: #888; background: #F9FAFB;
    padding: 10px; border-radius: 8px;
}

/* --- EMPTY STATE --- */
.empty-cart-view {
    text-align: center; padding: 60px 20px;
    display: flex; flex-direction: column; align-items: center;
}
.empty-icon-box {
    width: 100px; height: 100px; background: #F3F4F6;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: #9CA3AF; margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .cart-grid { grid-template-columns: 1fr; gap: 20px; }
    .cart-summary-box { position: static; /* Ya no es sticky en móvil */ }
}
/* =========================================
   CARRITO 2026 (MICRO-INTERACCIONES)
   ========================================= */

/* 1. Header con Jerarquía */
.cart-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 20px;
}
.cart-header-text h1 { font-size: 32px; font-weight: 800; color: #111; margin: 0; line-height: 1; }
.cart-header-text p { color: #666; font-size: 14px; margin-top: 5px; font-weight: 500; }

.cart-count-badge {
    background: #F3F4F6; color: #111; padding: 6px 12px; border-radius: 20px;
    font-size: 13px; font-weight: 700;
}

/* 2. Item Card & Delete Ghost */
.cart-item-card {
    /* ... (Mismos estilos base de antes) ... */
    position: relative;
    transition: all 0.2s ease;
}

/* El botón eliminar está oculto por defecto */
.btn-remove {
    position: absolute; top: 20px; right: 20px;
    color: #999; cursor: pointer; transition: 0.2s; font-size: 14px;
    opacity: 0; /* INVISIBLE */
    transform: translateX(10px);
}
.btn-remove:hover { color: #ef4444; background: #FEF2F2; padding: 5px; border-radius: 6px; }

/* Al pasar el mouse por la tarjeta, aparece el eliminar suavemente */
.cart-item-card:hover .btn-remove {
    opacity: 1;
    transform: translateX(0);
}

/* En móvil siempre visible porque no hay hover */
@media (max-width: 900px) { .btn-remove { opacity: 1; transform: none; } }

/* 3. Precios Claros */
.price-column { text-align: right; }
.unit-price-small { font-size: 11px; color: #888; font-weight: 500; margin-top: 2px; }

/* 4. Cupón con Animación */
.coupon-input-group {
    margin-top: 25px; position: relative;
}
.coupon-success-msg {
    color: #00C853; font-size: 12px; font-weight: 700; margin-top: 8px;
    display: flex; align-items: center; gap: 5px;
    opacity: 0; transform: translateY(-5px); transition: 0.3s;
}
.coupon-success-msg.visible { opacity: 1; transform: translateY(0); }

/* Animación de carga para cantidades */
.item-price.updating {
    opacity: 0.5; filter: blur(2px);
}

/* 5. Confianza Sutil */
.secure-badge {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    margin-top: 20px; font-size: 11px; /* Más pequeño */
    color: #999; /* Más suave */
    background: transparent; /* Sin fondo para menos peso visual */
    opacity: 0.8;
}

/* Resumen Sticky (Aseguramos que funcione) */
.cart-summary-box {
    position: sticky; top: 100px;
    background: white; padding: 30px; border-radius: 24px; /* Más redondo */
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.08); /* Sombra más premium */
    border: 1px solid rgba(0,0,0,0.02);
}
/* =========================================
   PERFIL DE USUARIO SUPREME (FINAL 2026)
   ========================================= */

/* --- LAYOUT GENERAL --- */
.profile-wrapper {
    background: #F9FAFB;
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 260px 1fr; /* Sidebar fija | Contenido */
    gap: 40px;
    align-items: start;
}

/* --- SIDEBAR DE NAVEGACIÓN --- */
.profile-sidebar {
    background: white; 
    border-radius: 16px;
    border: 1px solid #eee; 
    overflow: hidden;
    position: sticky; 
    top: 100px; /* Se queda fija al bajar */
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.user-mini-header {
    padding: 20px; 
    border-bottom: 1px solid #f0f0f0;
    display: flex; 
    align-items: center; 
    gap: 15px;
}

.sidebar-avatar {
    width: 50px; height: 50px; 
    background: #111; 
    color: var(--verde-neon);
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
}

.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 20px; 
    color: #555; 
    text-decoration: none;
    font-weight: 500; 
    transition: 0.2s; 
    border-left: 3px solid transparent;
}

.sidebar-link:hover { background: #f9f9f9; color: black; }

.sidebar-link.active {
    background: #F0FDF4; 
    color: #111; 
    font-weight: 700;
    border-left-color: var(--verde-neon);
}
.sidebar-link i { width: 20px; text-align: center; }


/* --- CONTENEDORES Y TÍTULOS --- */
.profile-content-card {
    background: white; 
    border-radius: 20px;
    padding: 30px; 
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.section-title { 
    font-size: 24px; 
    font-weight: 800; 
    margin-bottom: 25px; 
    color: #111; 
}


/* --- TARJETAS DE PEDIDOS (ORDERS) SUPREME --- */
.order-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.order-header {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    padding-bottom: 20px; 
    border-bottom: 1px solid #f5f5f5; 
    margin-bottom: 20px;
}

.order-id { font-size: 18px; font-weight: 800; color: #111; margin: 0; }
.order-meta { font-size: 14px; color: #666; margin-top: 8px; }
.order-total { color: #111; font-weight: 700; }

/* Badges de Estado */
.status-badge {
    padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: 10px;
}
.status-delivered { background: #DCFCE7; color: #166534; }
.status-shipping { background: #E0F2FE; color: #075985; }
.status-processing { background: #FEF3C7; color: #92400E; }


/* --- TIMELINE DE SEGUIMIENTO (TRACKING) --- */
.tracking-steps { 
    display: flex; 
    align-items: center; 
    margin: 30px 0; 
    position: relative; 
}

.step { 
    flex: 1; 
    text-align: center; 
    position: relative; 
    z-index: 2; 
}

/* Puntos */
.step-dot { 
    width: 14px; height: 14px; 
    background: #eee; 
    border-radius: 50%;
    margin: 0 auto 8px; 
    border: 3px solid white; /* Borde blanco para separar de la línea */
    box-shadow: 0 0 0 1px #eee; 
}

/* Líneas */
.step-line { 
    position: absolute; 
    top: 7px; /* Alineado al centro del punto */
    left: 0; 
    width: 100%; 
    height: 3px; 
    background: #eee; 
    z-index: 1; 
}

/* Estado Completado */
.step.completed .step-dot {
    background: var(--verde-neon); 
    box-shadow: 0 0 0 1px var(--verde-neon);
}
.step.completed .step-line { background: var(--verde-neon); }

/* Texto del paso */
.step-label { 
    font-size: 11px; 
    color: #999; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-top: 10px;
}
.step.completed .step-label { color: #111; }

/* Ocultar línea del último paso */
.step:last-child .step-line { display: none; }


/* --- MINIATURAS DE PRODUCTOS (THUMBNAILS) --- */
.product-thumbs {
    display: flex; gap: 15px; margin-top: 25px;
}

.thumb-item {
    position: relative;
    width: 70px; height: 70px;
    background: #f9f9f9; 
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #eee; 
    padding: 5px;
}

.thumb-img {
    width: 90%; height: 90%; 
    object-fit: contain; 
    mix-blend-mode: multiply;
}

.thumb-qty {
    position: absolute; 
    bottom: -6px; right: -6px;
    background: #111; 
    color: white; 
    font-size: 10px; 
    font-weight: 700;
    padding: 3px 7px; 
    border-radius: 20px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* --- BOTONES DE ACCIÓN --- */
.btn-action {
    padding: 10px 20px; 
    border-radius: 10px; 
    font-weight: 700; 
    font-size: 13px;
    cursor: pointer; 
    transition: 0.2s; 
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}

.btn-outline {
    border: 1px solid #ddd; 
    background: white; 
    color: #333;
}
.btn-outline:hover { 
    border-color: #000; 
    background: #f9f9f9; 
    color: #000;
}

.btn-primary {
    border: none; 
    background: #111; 
    color: white;
}
.btn-primary:hover { 
    background: #333; 
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
}


/* --- SECCIÓN DE DIRECCIONES --- */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; margin-top: 20px;
}

.address-card {
    background: white; border: 1px solid #eee; border-radius: 16px;
    padding: 25px; position: relative; transition: 0.2s;
    display: flex; flex-direction: column; justify-content: space-between;
    height: 100%;
}
.address-card:hover {
    border-color: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-3px);
}

.address-card.add-new {
    border: 2px dashed #ddd; background: #fafafa;
    align-items: center; justify-content: center; cursor: pointer; min-height: 180px;
}
.address-card.add-new:hover {
    border-color: var(--verde-neon); background: #F0FDF4; color: #000;
}

.add-icon {
    width: 50px; height: 50px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #ccc; margin-bottom: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.addr-tag {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; display: inline-block;
}
.tag-home { background: #EEF2FF; color: #4F46E5; }
.tag-office { background: #FEF3C7; color: #D97706; }

.addr-actions {
    margin-top: 20px; padding-top: 15px; border-top: 1px solid #f5f5f5;
    display: flex; gap: 15px; font-size: 13px; font-weight: 600; color: #666;
}
.addr-btn:hover { color: #000; text-decoration: underline; cursor: pointer; }
.addr-btn.delete:hover { color: #ef4444; }


/* --- FAVORITOS (WISHLIST SUPREME) --- */
.wishlist-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.wish-card {
    background: white;
    border: 1px solid #f0f0f0; 
    border-radius: 16px; 
    padding: 20px;
    position: relative; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wish-card:hover { 
    border-color: #000;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08); 
    transform: translateY(-5px);
}

/* Área de Imagen */
.wish-img-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wish-img { 
    width: 85%; 
    height: auto; 
    object-fit: contain; 
    mix-blend-mode: multiply;
    transition: 0.3s;
}

.wish-card:hover .wish-img { transform: scale(1.08); }

/* Botón Eliminar (X) */
.wish-remove {
    position: absolute; 
    top: 10px; right: 10px;
    width: 28px; height: 28px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #999; 
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    z-index: 2;
}
.wish-remove:hover { color: #ef4444; transform: scale(1.1); }

/* Etiquetas Flotantes */
.wish-badge {
    position: absolute; 
    top: 10px; left: 10px;
    font-size: 10px; font-weight: 800; 
    padding: 4px 8px; border-radius: 6px;
    text-transform: uppercase;
    z-index: 2;
}
.badge-sale { background: #111; color: var(--verde-neon); }
.badge-low { background: #FEF3C7; color: #D97706; }

/* Información del Producto */
.wish-brand { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; margin-bottom: 4px; }
.wish-title { font-weight: 800; font-size: 15px; line-height: 1.3; color: #111; margin-bottom: 8px; }
.wish-price { font-size: 16px; color: #111; font-weight: 500; margin-bottom: 15px; }

/* Botón Agregar al Carrito */
.btn-wish-cart {
    width: 100%; 
    background: #111; 
    color: white; 
    border: none; 
    padding: 12px; 
    border-radius: 10px; 
    font-weight: 700; 
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-wish-cart:hover { 
    background: var(--verde-neon); 
    color: black; 
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.25);
}


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; margin-bottom: 20px; z-index: 1; }
    .order-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .order-header button { width: 100%; justify-content: center; }
}


/* --- BILLETERA & TARJETAS (WALLET) --- */
.wallet-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px; margin-top: 10px;
}

/* Diseño de Tarjeta de Crédito */
.credit-card {
    width: 100%; height: 190px;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    color: white;
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.credit-card:hover { transform: translateY(-5px) scale(1.02); }

/* Fondos de Tarjetas */
.card-visa {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}
.card-mastercard {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}
.card-bg-shape {
    position: absolute; width: 300px; height: 300px;
    background: rgba(255,255,255,0.05); border-radius: 50%;
    top: -50px; right: -50px; pointer-events: none;
}

/* Elementos de la tarjeta */
.card-chip {
    width: 40px; height: 30px;
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    border-radius: 6px; margin-bottom: 10px;
}
.card-number { font-size: 20px; letter-spacing: 2px; font-family: 'Courier New', monospace; text-shadow: 0 2px 2px rgba(0,0,0,0.3); }
.card-holder-label { font-size: 10px; opacity: 0.7; text-transform: uppercase; margin-bottom: 2px; }
.card-holder { font-size: 14px; text-transform: uppercase; font-weight: 600; }
.card-logo { width: 50px; opacity: 0.9; }

/* Botón Agregar Tarjeta */
.add-card-btn {
    height: 190px; border: 2px dashed #ddd; border-radius: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; background: #fafafa; color: #999; transition: 0.2s;
}
.add-card-btn:hover { border-color: var(--verde-neon); color: black; background: #F0FDF4; }
/* =========================================
   DASHBOARD VENDEDOR SUPREME (FINAL 2026)
   ========================================= */

/* --- GRID DE ESTADÍSTICAS (KPIs) --- */
.stats-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 20px; 
    margin-bottom: 30px;
}

.stat-card {
    background: white; 
    padding: 25px; 
    border-radius: 16px; 
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: relative; 
    overflow: hidden;
    transition: 0.3s;
}

.stat-card:hover { 
    transform: translateY(-3px); 
    border-color: #000; 
}

.stat-label { 
    font-size: 12px; 
    color: #888; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 5px; 
}

.stat-value { 
    font-size: 28px; 
    font-weight: 800; 
    color: #111; 
    letter-spacing: -0.5px; 
}

.stat-trend { 
    font-size: 12px; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    gap: 4px; 
    margin-top: 8px; 
}
.trend-up { color: #00C853; }
.trend-down { color: #ef4444; }

/* Icono de fondo decorativo */
.stat-icon-bg {
    position: absolute; 
    right: -10px; bottom: -10px;
    font-size: 80px; 
    opacity: 0.05; 
    color: #000; 
    transform: rotate(-15deg);
}


/* --- SECCIÓN GRÁFICA & ACTIVIDAD --- */
.dashboard-split {
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 25px;
}

.chart-container {
    background: white; 
    border-radius: 20px; 
    padding: 25px;
    border: 1px solid #eee; 
    min-height: 350px;
    display: flex; 
    flex-direction: column;
}

/* --- CONTENEDORES DE GRÁFICAS JS --- */
.charts-grid-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Izquierda ancha, derecha angosta */
    gap: 25px;
    margin-bottom: 25px;
}

.chart-box {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: relative;
    display: flex; flex-direction: column;
}

.chart-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.chart-title { font-size: 16px; font-weight: 800; color: #111; margin: 0; }

/* Canvas Responsive */
.chart-canvas-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 250px; /* Altura mínima asegurada */
}

/* Gráficas secundarias en fila inferior */
.secondary-charts-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px;
}

@media (max-width: 900px) {
    .charts-grid-wrapper { grid-template-columns: 1fr; }
    .secondary-charts-grid { grid-template-columns: 1fr; }
}


/* --- LISTA DE ACTIVIDAD RECIENTE --- */
.activity-list {
    background: white; 
    border-radius: 20px; 
    padding: 25px; 
    border: 1px solid #eee;
}

.activity-item {
    display: flex; 
    gap: 15px; 
    align-items: center;
    padding: 15px 0; 
    border-bottom: 1px dashed #eee;
}
.activity-item:last-child { border-bottom: none; }

.act-icon {
    width: 40px; height: 40px; 
    border-radius: 10px; 
    background: #f9f9f9; 
    display: flex; align-items: center; justify-content: center;
    color: #111;
}


/* --- BOTONES DE TABLA (JERARQUÍA VISUAL) --- */
.btn-small {
    padding: 6px 14px; 
    font-size: 11px; 
    font-weight: 700; 
    border-radius: 8px;
    /* Hereda estilos de btn-outline */
}

/* Botón solo ícono (Ojo) */
.btn-icon-only {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #999; 
    text-decoration: none;
    transition: 0.2s;
    background: transparent;
    border: 1px solid transparent;
}

.btn-icon-only:hover {
    background: #f5f5f5; 
    color: #111; 
    border-color: #eee;
}
 /* --- MEJORAS DASHBOARD PRO (TOP PRODUCTOS & ALERTAS) --- */

/* Lista de Top Productos */
.top-products-list {
    display: flex; flex-direction: column; gap: 15px;
}

.top-product-item {
    display: flex; align-items: center; gap: 15px;
    padding-bottom: 15px; border-bottom: 1px dashed #eee;
}
.top-product-item:last-child { border-bottom: none; padding-bottom: 0; }

.tp-rank {
    font-size: 14px; font-weight: 800; color: #ccc; width: 20px;
}
.tp-image {
    width: 45px; height: 45px; border-radius: 8px; 
    background: #f9f9f9; border: 1px solid #eee;
    object-fit: contain; padding: 4px; mix-blend-mode: multiply;
}
.tp-info { flex: 1; }
.tp-name { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 4px; }
.tp-stats { font-size: 11px; color: #666; display: flex; justify-content: space-between; }

/* Barra de venta visual */
.tp-bar-bg {
    width: 100%; height: 6px; background: #f0f0f0; border-radius: 10px; margin-top: 6px; overflow: hidden;
}
.tp-bar-fill { height: 100%; background: #111; border-radius: 10px; }

/* Tarjeta de Stock Muerto (Alerta) */
.dead-stock-card {
    background: #FEF2F2; border: 1px solid #FECACA;
    border-radius: 16px; padding: 20px;
    display: flex; align-items: flex-start; gap: 15px;
    margin-bottom: 25px;
}
.ds-icon {
    background: #FEE2E2; color: #DC2626;
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ds-btn {
    margin-top: 10px; font-size: 11px; font-weight: 700; 
    color: #DC2626; text-decoration: underline; cursor: pointer;
}

/* Ajuste Grid de 4 KPIs */
.stats-grid-4 {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin-bottom: 25px;
}
/* RESPONSIVE */
@media (max-width: 900px) {
    .dashboard-split { grid-template-columns: 1fr; }
}
/* =========================================
   OPTIMIZACIÓN PARA PANTALLAS GRANDES (27" / 4K)
   ========================================= */

/* =========================================
   OPTIMIZACIÓN CONTROLADA (27" / 4K)
   ========================================= */

@media (min-width: 1440px) {
    /* 1. Límite Elegante: No más del 95%, pero con un tope de 1600px */
    .profile-wrapper .container {
        max-width: 1600px !important; 
        width: 90%; /* Por si la pantalla no llega a 1600px */
        margin: 0 auto; /* Centrado perfecto */
    }

    /* 2. Mantener proporciones de la grid */
    .profile-grid {
        grid-template-columns: 280px 1fr; /* Sidebar fija, contenido flexible */
        gap: 40px;
    }

    /* 3. Gráficas con altura controlada */
    /* Evita que se vean "aplastadas" al estirarse */
    .chart-canvas-container {
        height: 350px; /* Altura fija para mantener proporción */
        max-height: 350px;
    }

    /* 4. Grid de KPIs (Tarjetas superiores) */
    /* Mantenemos el gap controlado para que no se separen demasiado */
    .stats-grid-4 {
        gap: 25px;
    }

    /* 5. Ajuste visual para la lista de productos Top */
    /* Evita que las barras de progreso se vean infinitas */
    .top-products-list {
        max-width: 100%;
    }
}

/* --- GESTIÓN DE PEDIDOS VENDEDOR --- */

/* Filtros tipo Cápsula */
.filter-tabs {
    display: flex; gap: 10px; margin-bottom: 25px;
    overflow-x: auto; padding-bottom: 5px; /* Para scroll en móvil */
}

.filter-pill {
    padding: 8px 16px; 
    border-radius: 30px; 
    font-size: 13px; font-weight: 600; 
    border: 1px solid #eee; background: white; color: #666;
    cursor: pointer; transition: 0.2s; white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
}

.filter-pill:hover { border-color: #ccc; color: #111; }

.filter-pill.active {
    background: #111; color: white; border-color: #111;
}

.count-badge {
    background: #333; color: white; 
    font-size: 10px; padding: 2px 6px; border-radius: 10px;
}
.filter-pill.active .count-badge { background: white; color: #111; }

/* Buscador de Pedidos */
.order-search-bar {
    display: flex; gap: 10px; margin-bottom: 20px;
}
.search-input {
    flex: 1; padding: 10px 15px; border: 1px solid #eee; border-radius: 10px; outline: none;
}
.search-input:focus { border-color: var(--verde-neon); }

/* Miniaturas en Tabla */
.table-thumbs { display: flex; gap: -10px; /* Superposición ligera */ }
.table-thumb-img {
    width: 35px; height: 35px; border-radius: 50%; border: 2px solid white;
    background: #f9f9f9; object-fit: contain; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.more-items {
    width: 35px; height: 35px; border-radius: 50%; border: 2px solid white;
    background: #eee; color: #666; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* Acciones Flotantes (Hover en fila) */
.table-actions { opacity: 0.6; transition: 0.2s; }
tr:hover .table-actions { opacity: 1; }

/* Status específicos de Vendedor */
.st-pending { background: #FFF7ED; color: #C2410C; } /* Naranja */
.st-shipped { background: #EFF6FF; color: #1D4ED8; } /* Azul */
.st-completed { background: #F0FDF4; color: #15803D; } /* Verde */
.st-cancelled { background: #FEF2F2; color: #B91C1C; } /* Rojo */

/* --- GESTIÓN DE PRODUCTOS VENDEDOR --- */

/* Toggle Switch (Activo/Pausado) */
.switch {
  position: relative; display: inline-block; width: 34px; height: 20px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
  position: absolute; content: "";
  height: 14px; width: 14px; left: 3px; bottom: 3px;
  background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--verde-neon); }
input:checked + .slider:before { transform: translateX(14px); }

/* Badges de Stock (Semáforo) */
.stock-badge {
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; display: inline-block;
}
.stock-high { background: #DCFCE7; color: #15803D; } /* Verde */
.stock-low { background: #FEF3C7; color: #B45309; } /* Naranja */
.stock-out { background: #FEE2E2; color: #B91C1C; } /* Rojo */

/* Dropzone de Imágenes (Simulado) */
.image-upload-area {
    border: 2px dashed #ddd; border-radius: 12px;
    padding: 40px; text-align: center; cursor: pointer;
    background: #fafafa; transition: 0.2s;
}
.image-upload-area:hover { border-color: var(--verde-neon); background: #F0FDF4; }

/* Grid del Formulario */
.form-section {
    background: white; border-radius: 16px; border: 1px solid #eee; padding: 25px; margin-bottom: 25px;
}
.form-label { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 8px; display: block; }
.form-input {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; transition: 0.2s;
}
.form-input:focus { border-color: black; }
/* --- KIT DE REPARACIÓN DE BOTONES --- */
button { cursor: pointer; font-family: inherit; }

.btn-primary {
    background: #111; color: white;
    padding: 10px 20px; border-radius: 10px;
    font-size: 13px; font-weight: 700;
    border: none; transition: 0.2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none;
}
.btn-primary:hover {
    background: #333; transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-outline {
    background: white; color: #111;
    padding: 10px 20px; border-radius: 10px;
    font-size: 13px; font-weight: 700;
    border: 1px solid #ddd; transition: 0.2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none;
}
.btn-outline:hover {
    border-color: #111; background: #f9f9f9;
}

/* --- DIRECTORIO DE PROVEEDORES (NUEVO) --- */
.supplier-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px; margin-top: 25px;
}

.supplier-card {
    background: white; border: 1px solid #eee; border-radius: 16px;
    overflow: hidden; transition: 0.3s; position: relative;
    display: flex; flex-direction: column;
}
.supplier-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: #000;
}

.supplier-banner {
    height: 80px; background: #f5f5f5; position: relative;
}
.supplier-logo-wrapper {
    width: 60px; height: 60px; background: white; border-radius: 12px;
    position: absolute; bottom: -20px; left: 20px;
    border: 1px solid #eee; display: flex; align-items: center; justify-content: center;
    padding: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.supplier-body { padding: 30px 20px 20px; flex: 1; }
.supplier-name { font-size: 16px; font-weight: 800; color: #111; margin-bottom: 5px; }
.supplier-meta { font-size: 12px; color: #666; margin-bottom: 15px; display: flex; gap: 10px; }

.supplier-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; }
.s-tag { 
    font-size: 10px; font-weight: 700; background: #f5f5f5; 
    padding: 4px 8px; border-radius: 6px; color: #555; text-transform: uppercase; 
}

.supplier-footer {
    padding: 15px 20px; border-top: 1px solid #f5f5f5; background: #fafafa;
    display: flex; justify-content: space-between; align-items: center;
}

/* Badge de Verificado */
.verified-badge {
    position: absolute; top: 10px; right: 10px;
    background: white; color: #0EA5E9; font-size: 11px; font-weight: 700;
    padding: 4px 8px; border-radius: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 4px;
}
/* =========================================
   PERFIL DE TIENDA (DISEÑO PRO)
   ========================================= */

/* Cabecera Apple Style */
.store-header-container {
    background: white; border-bottom: 1px solid #eee; margin-bottom: 30px;
}
.store-cover {
    height: 200px; background-size: cover; background-position: center;
}
.store-info-bar {
    max-width: 1200px; margin: 0 auto; padding: 0 20px 20px;
    display: flex; align-items: flex-end; gap: 30px; position: relative; top: -40px; margin-bottom: -40px;
}
.store-avatar-large {
    width: 140px; height: 140px; background: white; border-radius: 20px; padding: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); flex-shrink: 0;
}
.store-avatar-large img {
    width: 100%; height: 100%; object-fit: contain; border-radius: 15px; border: 1px solid #eee;
}
.store-details { flex: 1; padding-bottom: 10px; }
.store-name-title { font-size: 28px; font-weight: 800; margin: 0 0 5px; display: flex; align-items: center; gap: 10px; }
.store-meta { display: flex; gap: 15px; font-size: 13px; color: #666; font-weight: 600; }
.store-actions { display: flex; gap: 10px; padding-bottom: 10px; }

/* Botones de Cabecera */
.btn-follow {
    background: #111; color: white; border: none; padding: 10px 20px;
    border-radius: 30px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.btn-contact {
    background: white; color: #111; border: 1px solid #ddd; padding: 10px 20px;
    border-radius: 30px; font-weight: 700; font-size: 13px; cursor: pointer;
}

/* Buscador y Layout */
.store-search {
    background: #f9f9f9; padding: 15px 20px; border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
}
.search-in-store {
    background: transparent; border: none; outline: none; font-size: 14px; width: 100%;
}
.shop-layout {
    display: grid; grid-template-columns: 240px 1fr; gap: 40px;
}

/* Filtros */
.filter-section { margin-bottom: 25px; }
.filter-title { font-weight: 800; font-size: 14px; margin-bottom: 15px; text-transform: uppercase; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { padding: 5px 0; color: #555; cursor: pointer; font-size: 14px; }
.filter-list li:hover { color: black; font-weight: 700; }
.custom-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #666; margin-bottom: 8px; cursor: pointer; }

/* Tarjetas (Compatibilidad) */
.product-card {
    background: white; border: 1px solid #eee; border-radius: 16px; padding: 20px;
    text-align: center; transition: 0.2s; position: relative;
    display: flex; flex-direction: column; justify-content: space-between; height: 100%;
}
.product-card:hover { border-color: #000; transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.card-img-box { height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.card-img-box img { max-width: 80%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.btn-details {
    display: block; width: 100%; padding: 10px; background: #f5f5f5; color: #111;
    border-radius: 8px; text-decoration: none; font-size: 12px; font-weight: 700; transition: 0.2s;
}
.btn-details:hover { background: #111; color: white; }

/* ESTILOS B2B (Caja de precio) */
.b2b-box {
    background: #F0FDF4; border: 1px dashed #166534; padding: 10px; border-radius: 8px; margin: 10px 0; text-align: left;
}
.b2b-badge-card {
    position: absolute; top: 10px; left: 10px; background: #111; color: var(--verde-neon);
    font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 4px;
}

@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
    .store-info-bar { flex-direction: column; align-items: center; text-align: center; top: -60px; margin-bottom: -60px; }
    .filters-sidebar { display: none; } /* Ocultar filtros en móvil por ahora */
}
/* --- PAGINACIÓN PERSONALIZADA --- */
        /* Contenedor de la lista */
        .pagination { 
            display: flex; 
            justify-content: center; 
            gap: 8px; 
            list-style: none; 
            padding: 0; 
            margin-top: 20px;
        }

        /* Los botones (links) */
        .page-link { 
            display: flex; 
            align-items: center; 
            justify-content: center;
            padding: 8px 14px; 
            border: 1px solid #eee; 
            border-radius: 8px; 
            color: #555; 
            text-decoration: none; 
            font-size: 13px; 
            font-weight: 700; 
            transition: all 0.2s;
            background: white;
            min-width: 35px; /* Para que sean cuadraditos uniformes */
        }

        /* Efecto Hover */
        .page-link:hover { 
            background: #f4f4f4; 
            color: #000; 
            border-color: #ddd; 
        }

        /* Página Activa (La negra) */
        .page-item.active .page-link { 
            background: #111; 
            color: white; 
            border-color: #111; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }

        /* Botones deshabilitados (Anterior/Siguiente cuando no hay más) */
        .page-item.disabled .page-link { 
            color: #ccc; 
            pointer-events: none; 
            background: #f9f9f9;
            border-color: #eee;
        }
        
        /* Ocultar iconos gigantes SVG si queda alguno */
        .page-link svg { width: 14px; height: 14px; }


        .main-image-frame img.fade-in {
    animation: simpleFade 0.4s ease-in-out;
}

@keyframes simpleFade {
    from { opacity: 0.6; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Evitar saltos visuales al ocultar colores */
.color-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Agrega esto a tu app.css o styles.css */
.detail-container { padding: 40px 0; max-width: 1200px; margin: 0 auto; font-family: 'Inter', sans-serif; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; margin-bottom: 60px; }
.gallery-container { display: flex; flex-direction: column; gap: 20px; }
.main-image-frame { width: 100%; height: 500px; background: #fbfbfb; border-radius: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.main-image-frame img { max-height: 90%; max-width: 90%; object-fit: contain; transition: opacity 0.3s ease; }
.thumbnails-row { display: flex; gap: 15px; justify-content: center; margin-top: 10px; }
.thumb-btn { width: 70px; height: 70px; border: 2px solid transparent; border-radius: 12px; padding: 5px; cursor: pointer; transition: all 0.2s; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.thumb-btn.active { border-color: #0071e3; transform: scale(1.05); }
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }

.detail-info h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; color: #1d1d1f; }
.seller-info { font-size: 14px; color: #666; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.verified-icon { color: #0071e3; margin-left: 5px; }
.seller-stars { color: #ffbf00; }

.detail-price { font-size: 34px; font-weight: 600; color: #1d1d1f; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.old-price { font-size: 18px; text-decoration: line-through; color: #999; font-weight: 400; }
.discount-tag { background: #e30000; color: white; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.b2b-badge { background: #000; color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-left: 10px;}

.features-list { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.feature-item { background: #f5f5f7; padding: 8px 15px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #333; display: flex; align-items: center; gap: 8px; }

.variant-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #333; }
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }

/* Botones de atributos generales (RAM, Tamaño) */
.v-btn { padding: 10px 20px; border: 1px solid #d2d2d7; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.2s; background: white; min-width: 80px; text-align: center; }
.v-btn:hover { border-color: #0071e3; }
.v-btn.selected { border-color: #0071e3; color: #0071e3; background: #eef6ff; font-weight: 600; box-shadow: 0 0 0 1px #0071e3; }
.v-btn.disabled { opacity: 0.5; cursor: not-allowed; background: #f5f5f5; border-color: #eee; }

/* Opciones de Color */
.color-option { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 2px solid white; box-shadow: 0 0 0 1px #d2d2d7; transition: all 0.2s; position: relative; }
.color-option.selected { box-shadow: 0 0 0 2px #0071e3; transform: scale(1.1); }

.actions-row { display: flex; gap: 15px; margin-top: 20px; }
.btn-add-cart { flex: 1; background: #0071e3; color: white; border: none; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-add-cart:hover { background: #0077ed; }
.btn-fav { width: 54px; height: 54px; border: 1px solid #d2d2d7; border-radius: 12px; background: white; color: #0071e3; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.btn-fav:hover { background: #f5f5f7; }

.trust-badges { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; font-size: 13px; color: #666; }
.trust-item { display: flex; align-items: center; gap: 8px; }
/* RESET TOTAL DEL BOTÓN */
.wishlist-btn-clean {
    position: absolute; /* <--- Esto es lo que falta */
    background: none !important;
    border: none !important;
    padding: 2px !important; /* Agregado px */
    margin: 0 !important;    /* Ajustado para que no mueva el contenedor */
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    
    /* Posicionamiento */
    top: 15px;
    right: 15px;
    z-index: 10;
}

/* El contenedor de la imagen DEBE tener esto para que el corazón no se escape */
.contenedor-del-producto {
    position: relative;
}

/* Tamaño y color del icono */
.wishlist-btn-clean i {
    font-size: 20px;
    color: #3d4044; 
    transition: all 0.3s ease;
}

/* Efecto cuando el corazón está lleno (Rojo) */
.wishlist-btn-clean i.is-active {
    color: #ef4444 !important;
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.3));
}

.wishlist-btn-clean:hover {
    transform: scale(1.2);
}
/* Estilos del Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    grid-template-rows: repeat(2, 280px);  /* 2 filas de 280px */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    background: #f4f4f4;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.bento-item:hover {
    transform: scale(1.02);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Clave para que la imagen llene la caja sin deformarse */
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.1);
}

/* Configuraciones de tamaño */
.bento-large {
    grid-column: span 2; /* Ocupa 2 columnas */
    grid-row: span 2;    /* Ocupa 2 filas (alto) */
}

.bento-wide {
    grid-column: span 2; /* Ocupa 2 columnas a lo ancho */
}

/* Overlay de texto */
.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 2;
    pointer-events: none; /* Permite hacer clic a través del texto */
}

.trend-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e30000;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.p-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.p-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--verde-neon);
}

.opacity-50 {
    opacity: 0.5;
}
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%; /* Se adapta a la altura del navbar */
}

.main-logo {
    height: 40px; /* Ajusta esta altura según tu diseño */
    width: auto;  /* Mantiene la proporción */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05); /* Efecto sutil al pasar el mouse */
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas en tablet */
        grid-template-rows: auto;
    }
    .bento-large {
        grid-column: span 2;
        height: 400px;
    }
    .bento-wide {
        grid-column: span 2;
        height: 250px;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        display: flex;
        flex-direction: column; /* Una lista vertical en móvil */
        gap: 15px;
    }
    .bento-large, .bento-wide, .bento-item {
        height: 300px; /* Altura fija en móvil */
    }
}
@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
    .main-image-frame { height: 350px; }
}