/* =====================================================
   GLOBAL STYLES
===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

.container {
    max-width: 1480px;
    margin: auto;
    padding: 0 20px;
}

/* =====================================================
   HERO CAROUSEL — PRODUCCIÓN PRO
===================================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3456 / 1089;
    max-height: 650px;
    overflow: hidden;
    background: #000;
}

.carousel-slide {
    
    
 
    
    
    position: absolute;
    inset: 0;
background-position: 50% 50% !important;
        background-size: cover !important;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;

    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Overlay elegante */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(0,0,0,0) 35%,
        rgba(0,0,0,0.6) 55%,
        rgba(0,0,0,0.9) 100%
    );
}

/* Contenido */

.carousel-content {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    z-index: 2;

    color: white;
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    background: #2563eb;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.carousel-content h1 {
    font-size: 2.4rem;
    margin: 0 0 10px;
}

.carousel-content h2 {
    font-size: 1.4rem;
    margin: 0 0 15px;
    font-weight: 500;
}

.carousel-content p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.btn-hero.primary {
    background: #2563eb;
    color: white;
}

.btn-hero.secondary {
    border: 1px solid white;
    color: white;
}

/* =====================================================
   HERO MOBILE — CENTRADO PRO
===================================================== */
/* ===== MOBILE HERO CAROUSEL PRO ===== */

@media (max-width: 868px) {

    .hero-carousel {
        height: 10vh;
        min-height: 340px;
        border-radius: 18px;
        overflow: hidden;
    }

    .carousel-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 18px;
        background-position: center center;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    .carousel-content {
        left: -15%;


        position: relative;
        z-index: 2;
        max-width: 65%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .hero-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .carousel-content h1,
    .carousel-content h2 {
        font-size: 1.4rem;
        line-height: 1.25;
        margin: 0;
    }

    .carousel-content p {
        font-size: 0.9rem;
        opacity: 0.95;
        margin: 0;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 8px;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 0.95rem;
    }

}


/* =====================================================
   SHOP LAYOUT
===================================================== */

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin-top: 40px;
}

.shop-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
}

.category-list li a:hover,
.category-list li a.active {
    background: #e2e8f0;
}

/* Toolbar */

.shop-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.sort-form-modern select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
}

/* =====================================================
   PRODUCTS GRID
===================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: white;
}

.badge-out {
    background: #ef4444;
}

.badge-sale {
    background: #22c55e;
}

.quick-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s ease;
}

.product-image:hover .quick-view-overlay {
    opacity: 1;
}

.btn-quick {
    background: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.product-body {
    padding: 18px;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 10px 0;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.btn-add-cart:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}



@media (max-width: 1024px) {

    .shop-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Sidebar visible en móvil */
    .shop-sidebar {
        display: block;
        position: relative;
        top: auto;
        order: -1; /* lo pone arriba */
    }

    .sidebar-card {
        margin-bottom: 10px;
        padding: 16px;
    }

    /* Categorías estilo móvil */
    .category-list li a {
        padding: 12px;
        font-size: 0.95rem;
    }

}




/* ===== PRODUCTOS: 2 COLUMNAS EN MÓVIL ===== */

@media (max-width: 768px) {

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-image {
        height: 160px;
    }

    .product-body {
        padding: 12px;
    }

    .price {
        font-size: 1.1rem;
    }

}































