/* ConfeccionesMath - Estilos */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.product-card .product-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f3f4f6;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card .discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e91e63;
    color: white;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-card .quick-view-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 2;
    border: none;
    cursor: pointer;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-card .tallas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 12px;
    margin-top: 4px;
}

.product-card .tallas-list .talla-tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
}

.product-card .whatsapp-btn {
    display: block;
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 10px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.product-card .whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.02);
}

/* Quick View Modal */
#quickViewModal .modal-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

/* Category Card Hover */
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::after {
    opacity: 1;
}

/* Filter Talla Active */
.filter-talla.active {
    border-color: #e91e63 !important;
    color: #e91e63 !important;
    background: #fce4ec;
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
    
    .hero-slide .text-4xl {
        font-size: 1.75rem;
    }
    
    .hero-slide .text-6xl {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 350px;
    }
}