/* ============================================
   CSS MODERNO INTEGRADO
   Este CSS se carga después del app.css para sobrescribir estilos
   ============================================ */

/* ============================================
   VARIABLES MODERNAS
   ============================================ */
:root {
    --primary-modern: #030579;
    --primary-hover-modern: #03003b;
    --secondary-modern: #10b981;
    --accent-modern: #f59e0b;
    --dark-modern: #0f172a;
    --surface-modern: #1e293b;
    --light-bg-modern: #f8fafc;
    --white-modern: #ffffff;
    --text-primary-modern: #1e293b;
    --text-secondary-modern: #64748b;
    --shadow-sm-modern: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md-modern: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg-modern: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl-modern: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BANNER HERO MODERNO
   ============================================ */




/* ============================================
   BARRA DE HERRAMIENTAS MODERNA
   ============================================ */
.shop-toolbar-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: var(--white-modern);
    border-radius: 12px;
    box-shadow: var(--shadow-md-modern);
}

.toolbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filters-btn {
    padding: 10px 20px;
    background: var(--white-modern);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-primary-modern);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-btn:hover {
    border-color: var(--primary-modern);
    color: var(--primary-modern);
}

.filters-btn i {
    font-size: 0.9rem;
}

.view-controls {
    display: flex;
    gap: 0;
    background: var(--white-modern);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-right: 2px solid #e2e8f0;
    cursor: pointer;
    color: var(--text-secondary-modern);
    transition: all 150ms ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.view-btn:last-child {
    border-right: none;
}

.view-btn:hover {
    background: var(--light-bg-modern);
    color: var(--primary-modern);
}


.toolbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.select-modern {
    padding: 10px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: var(--white-modern) !important;
    color: var(--text-primary-modern) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 150ms ease !important;
    outline: none !important;
    min-width: 140px !important;
}

.select-modern:hover,
.select-modern:focus {
    border-color: var(--primary-modern) !important;
}

/* ============================================
   TARJETAS DE PRODUCTO MODERNAS
   ============================================ */
.product-card-modern {
    transition: all 300ms ease !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    background: var(--white-modern) !important;
}

.product-card-modern:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-xl-modern) !important;
    border-color: var(--primary-modern) !important;
}

/* Badge moderno */
.product-badge-modern {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary-modern);
    color: var(--white-modern);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge-modern.sale {
    background: #ef4444;
}

.product-badge-modern.popular {
    background: var(--accent-modern);
}

/* Botón de añadir al carrito moderno */
.btn--e-brand-modern {
    background: var(--primary-modern) !important;
    color: var(--white-modern) !important;
    border: none !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 300ms ease !important;
}

.btn--e-brand-modern:hover {
    background: var(--primary-hover-modern) !important;
    transform: translateY(-2px) !important;
}

/* Quick look - Arriba a la derecha */
.product-m__quick-look {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 3 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 300ms ease !important;
}

.product-card-modern:hover .product-m__quick-look {
    opacity: 1 !important;
    visibility: visible !important;
}

.product-m__quick-look a {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: var(--white-modern) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--shadow-md-modern) !important;
    transition: all 150ms ease !important;
    color: var(--text-primary-modern) !important;
}

.product-m__quick-look a:hover {
    background: var(--primary-modern) !important;
    color: var(--white-modern) !important;
    transform: scale(1.1) !important;
}

/* Wishlist - Abajo a la derecha de la imagen */
.product-m__wishlist {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    z-index: 3 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 300ms ease !important;
}

.product-card-modern:hover .product-m__wishlist {
    opacity: 1 !important;
    visibility: visible !important;
}

.product-m__wishlist a {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: var(--white-modern) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--shadow-md-modern) !important;
    font-size: 1rem !important;
    transition: all 150ms ease !important;
    color: var(--text-primary-modern) !important;
}

.product-m__wishlist a:hover {
    background: var(--primary-modern) !important;
    color: var(--white-modern) !important;
    transform: scale(1.1) !important;
}

/* Add to Cart - Abajo de toda la tarjeta */
.product-m__add-cart {
    position: static !important;
    width: 100% !important;
    padding: 12px 16px 16px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.product-m__add-cart a {
    width: 100% !important;
}

/* Categoría con color primario */
.product-m__category a {
    color: var(--primary-modern) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.75rem !important;
}

/* Nombre del producto */
.product-m__name a {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--text-primary-modern) !important;
    line-height: 1.4 !important;
}

/* Rating con estrellas amarillas */
.product-m__rating i {
    color: #fbbf24 !important;
}

/* Precio destacado */
.product-m__price {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary-modern) !important;
}

.product-m__discount {
    font-size: 0.9rem !important;
    color: var(--text-secondary-modern) !important;
    text-decoration: line-through !important;
}

/* Hover sin descripción (eliminamos la descripción) */
.product-m__hover {
    background: transparent !important;
    box-shadow: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
}

.product-m__preview-description {
    display: none !important;
}

/* ============================================
   PAGINACIÓN MODERNA
   ============================================ */
.shop-p__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.shop-p__pagination > li > a {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    border-radius: 8px !important;
    background: var(--white-modern) !important;
    border: 2px solid #e2e8f0 !important;
    color: var(--text-primary-modern) !important;
    font-weight: 600 !important;
    transition: all 150ms ease !important;
}

.shop-p__pagination > li > a:hover {
    border-color: var(--primary-modern) !important;
    color: var(--primary-modern) !important;
    background: #eef2ff !important;
}

.shop-p__pagination > li.is-active > a {
    background: var(--primary-modern) !important;
    border-color: var(--primary-modern) !important;
    color: var(--white-modern) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .store-banner-hero {
        height: 300px;
        margin-bottom: 30px;
    }
    
    .shop-toolbar-modern {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .filters-btn,
    .view-controls {
        flex: 1;
    }
    .view-controls {
        display: none;
    }
    
    .toolbar-right {
        flex-direction: column;
        gap: 12px;
    }
    
    .select-modern {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .store-banner-hero {
        height: 250px;
    }
    
    /* En móvil, mostrar siempre los botones */
    .product-m__quick-look,
    .product-m__wishlist {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-modern {
    animation: fadeInUp 0.5s ease-out;
}

.product-card-modern:nth-child(1) { animation-delay: 0.05s; }
.product-card-modern:nth-child(2) { animation-delay: 0.1s; }
.product-card-modern:nth-child(3) { animation-delay: 0.15s; }
.product-card-modern:nth-child(4) { animation-delay: 0.2s; }
.product-card-modern:nth-child(5) { animation-delay: 0.25s; }
.product-card-modern:nth-child(6) { animation-delay: 0.3s; }
.product-card-modern:nth-child(7) { animation-delay: 0.35s; }
.product-card-modern:nth-child(8) { animation-delay: 0.4s; }

/* ============================================
   MEJORAS PARA LA COMPATIBILIDAD
   ============================================ */
.shop-p {
    background: transparent !important;
}

.aspect--square {
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
}

.aspect__img {
    transition: transform 300ms ease !important;
}

.product-card-modern:hover .aspect__img {
    transform: scale(1.1) !important;
}

/* Asegurar que el contenido del producto tenga padding adecuado */
.product-card-modern .product-m__content {
    padding: 20px !important;
}

/* ============================================
   ESTILOS PARA VISTA DE LISTA
   ============================================ */
.is-list-active {
    display: block !important;
}

.is-list-active [class*="col-"] {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
}

.is-list-active .product-m {
    padding: 15px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    margin-bottom: 20px !important;
}

.is-list-active .product-m:hover {
    transform: none !important;
    border-radius: 8px !important;
    padding: 15px !important;
}

.is-list-active .product-m__thumb {
    flex: 0 0 33.33333% !important;
    max-width: 33.33333% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
}

.is-list-active .product-m__content {
    flex: 0 0 66.66667% !important;
    max-width: 66.66667% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.is-list-active .product-m__category {
    margin-bottom: 8px !important;
}

.is-list-active .product-m__name {
    margin-bottom: 8px !important;
}

.is-list-active .product-m__rating {
    margin-bottom: 8px !important;
}

.is-list-active .product-m__price {
    margin-bottom: 8px !important;
}

.is-list-active .product-m__wishlist {
    position: absolute !important;
    right: 15px !important;
    bottom: 15px !important;
}

/* Responsive para vista lista */
@media (max-width: 575px) {
    .is-list-active .product-m__thumb {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .is-list-active .product-m__content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .is-list-active .product-m__wishlist {
        position: static !important;
        text-align: right !important;
        margin-top: 10px !important;
    }
}
        .store-banner-hero {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;
        }

        .banner-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .banner-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgb(0 11 60 / 67%) 0%, rgb(5 0 42 / 88%) 100%)
        }

        .banner-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
           
        }

        .banner-content {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            height: 100%;
            padding: 0 40px;
            display: flex;
            align-items: center;
            gap: 50px;
        }

        .store-logo-container {
            flex-shrink: 0;
            animation: logoSlide 0.8s ease-out;
        }

        @keyframes logoSlide {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .store-logo {
            width: 140px;
            height: 140px;
            background: white;
            border-radius: 24px;
            padding: 18px;
            box-shadow: 
                0 20px 50px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }

        .store-logo:hover {
            transform: translateY(-5px);
        }

        .store-logo img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .store-text-content {
            flex: 1;
            animation: textSlide 0.8s ease-out 0.2s both;
        }

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

        .store-label {
            display: inline-block;
            padding: 6px 14px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            color: white;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 16px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .store-name {
            font-size: 52px;
            font-weight: 800;
            color: white;
            margin-bottom: 16px;
            line-height: 1.1;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            letter-spacing: -0.5px;
        }

        .store-description {
            font-size: 20px;
            color: rgba(255, 255, 255, 0.95);
            line-height: 1.5;
            max-width: 600px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        /* Wave separator */
        .wave-separator {
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 60px;
            z-index: 3;
        }

        .wave-separator svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        /* Responsive */
        @media (max-width: 968px) {
            .store-banner-hero {
                height: 350px;
            }

            .banner-content {
                gap: 35px;
                padding: 0 30px;
            }

            .store-logo {
                width: 110px;
                height: 110px;
            }

            .store-name {
                font-size: 40px;
            }

            .store-description {
                font-size: 18px;
            }
        }

        @media (max-width: 640px) {
            .store-banner-hero {
                height: auto;
                min-height: 300px;
                padding: 40px 0;
            }

            .banner-content {
                flex-direction: column;
                text-align: center;
                gap: 25px;
                padding: 0 20px;
            }

            .store-logo {
                width: 100px;
                height: 100px;
            }

            .store-name {
                font-size: 32px;
            }

            .store-description {
                font-size: 16px;
            }

            .wave-separator {
                height: 40px;
            }
        }
