/* =========================================
   1. ESTILOS DE PORTADA / HERO
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 65vh; 
    min-height: 500px;
    max-height: 800px;
    margin-top: -130px; 
    padding-top: 130px; 
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%; 
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    color: white;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: black;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-hero:hover { background: black; color: white; text-decoration: none; }


/* =========================================
   2. LAYOUT CATÁLOGO (Sidebar + Grid)
   ========================================= */
.catalog-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

/* Sidebar PC */
.sidebar-filters {
    width: 250px;
    flex-shrink: 0;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.sidebar-header-mobile { display: none; } /* Oculto en PC */

.filter-group { margin-bottom: 30px; }

.filter-title {
    font-family: var(--font-primary, serif);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
    color: #000;
}

.filter-item {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px; font-size: 0.9rem; color: #555; cursor: pointer;
}

.filter-item input[type="checkbox"] { accent-color: #000; width: 16px; height: 16px; }

.catalog-grid-wrapper { flex-grow: 1; }

/* Barra de Herramientas (Ordenar + Botón Filtro Móvil) */
.catalog-toolbar {
    display: flex;
    justify-content: flex-end; /* A la derecha en PC */
    margin-bottom: 20px;
}

.btn-mobile-filter { display: none; } /* Oculto en PC */


/* =========================================
   3. GRILLA DE PRODUCTOS (3 Columnas PC)
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas en PC */
    gap: 30px;
    width: 100%;
}

.product-item { /* Animación removida - causaba lag */ }
.product-item a { display: block; color: inherit; }

/* AQUÍ ESTÁ EL CAMBIO IMPORTANTE: 1/1 (Cuadrado) */
.img-wrapper {
    position: relative; width: 100%; 
    aspect-ratio: 1/1; /* <--- CAMBIADO A CUADRADO PARA REDUCIR ALTURA */
    overflow: hidden; margin-bottom: 10px; background: #f9f9f9;
}

.img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
}

.product-item:hover .img-wrapper img { }

.info { text-align: center; }
.info h3 {
    font-family: 'Marcellus', serif; font-size: 0.9rem; margin: 0 0 5px 0;
    color: #000; text-transform: uppercase; letter-spacing: 0.5px;
}
.info .price { font-family: var(--font-price); font-size: 1.3rem; font-weight: 600; color: #333; }

/* Estilos de Descuento */
.old-price { text-decoration: line-through; color: #999; font-size: 0.9rem; margin-right: 8px; }
.discount-badge {
    position: absolute; top: 10px; left: 10px;
    background-color: #d63384; color: white; padding: 4px 8px;
    font-size: 0.75rem; font-weight: bold; z-index: 2; text-transform: uppercase;
}
.price.discounted { color: #d63384; }

/* Botones de Talle (Filtro) */
.size-btn {
    display: inline-block; width: 35px; height: 35px; line-height: 33px;
    text-align: center; border: 1px solid #ddd; font-size: 0.85rem;
    color: #555; background: #fff;
}
input[type="checkbox"]:checked + .size-btn, .size-btn.active {
    background: #000; color: #fff; border-color: #000;
}


/* =========================================
   4. ANIMACIÓN SCROLL (Efecto aparecer)
   ========================================= */
.scroll-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.scroll-show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   5. SLIDER DE CATEGORÍAS (Visibilidad)
   ========================================= */
/* Oculto en PC */
.mobile-category-slider { display: none; }


/* =========================================
   6. SEPARADOR RESPONSIVE (Línea gris)
   ========================================= */
.divider-responsive {
    opacity: 0.1;
    margin: 60px 0; /* PC: Espacio grande */
    border: 0;
    border-top: 1px solid #000;
}


/* =========================================
   7. RESPONSIVE (Tablets y Móviles)
   ========================================= */

/* Tablets (hasta 992px): Bajamos a 2 columnas */
@media (max-width: 992px) {
    .products-grid { grid-template-columns: 1fr 1fr; }
}

/* Celulares (hasta 768px): Diseño móvil completo */
@media (max-width: 768px) {
    
    /* Hero ajustado */
    .hero-section { margin-top: -100px; padding-top: 100px; height: 75vh; }
    .hero-content h1 { font-size: 2rem; }

    /* Separador pequeño */
    .divider-responsive { margin: 10px 0; }

    /* Título de sección: Menos espacio */
    #shop > div[style*="text-align: center"] {
         margin-bottom: 10px !important;
         margin-top: 30px !important;
    }

    /* Slider de Categorías: Visible y estilizado */
    .mobile-category-slider {
        display: block; 
        margin-bottom: 25px; 
        padding-left: 0; 
    }

    .cat-card {
        display: inline-block;
        background-color: #f0f0f0;
        padding: 8px 16px;
        text-align: center;
        text-transform: uppercase;
        font-family: var(--font-primary, serif);
        font-size: 0.75rem; 
        font-weight: 600;
        color: #555;
        border: 1px solid transparent;
        border-radius: 30px;
        white-space: nowrap;
    }

    .cat-card.active { background-color: #000; color: #fff; }

    /* Sidebar Off-Canvas */
    .sidebar-filters {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
        background: white; z-index: 3000; padding: 20px; overflow-y: auto; border-right: none;
    }
    .sidebar-filters.active { left: 0; }

    .sidebar-header-mobile {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 15px;
    }
    .sidebar-header-mobile span { font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: bold; }
    .sidebar-header-mobile button { background: none; border: none; font-size: 1.5rem; cursor: pointer; }

    /* Toolbar móvil */
    .catalog-toolbar {
        justify-content: space-between; align-items: center;
        border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 10px 0;
    }
    .btn-mobile-filter {
        display: flex; align-items: center; gap: 8px; background: none;
        border: 1px solid #000; padding: 8px 15px; font-size: 0.8rem;
        text-transform: uppercase; font-weight: 600; cursor: pointer;
    }
    .sort-wrapper select { border: none; background: transparent; font-size: 0.9rem; text-align: right; }

    /* Grilla móvil: 2 columnas, espacio reducido */
    .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .catalog-container { flex-direction: column; gap: 20px; }
}

/* =========================================
   BOTÓN "VER TODOS" (Portada)
   ========================================= */
.btn-view-all {
    display: inline-block;
    padding: 12px 40px;
    background-color: transparent;
    border: 1px solid #ccc;
    color: #333;
    font-family: 'Marcellus', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    margin-top: 50px;
}

.btn-view-all:hover {
    border-color: #000; /* Se oscurece al pasar el mouse */
    color: #000;
    background-color: #fafafa;
}

/* =========================================
   TIPOGRAFÍA PRECIOS (Estilo Kendra)
   ========================================= */
.price, .old-price, .discount-badge {
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: -0.5px; /* Hace los números más compactos y modernos */
}

/* Precio Principal (Negro) */
.price {
    font-weight: 700; /* Bien negrita */
    font-size: 1.1rem; /* Un pelín más grande */
}

/* Precio Tachado (Gris) */
.old-price {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Precio con Descuento (Rosa/Verde) */
.price.discounted {
    font-weight: 700;
}