/* Estilos base */
.product-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em;
}

/* Banner para productos especiales */
.special-products-banner {
    background-color: #f9f0e6;
    padding: 3em 2em;
    margin: 3em auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid white;
}

.special-banner-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.special-banner-content h2 {
    color: #F98E2B;
    font-size: 2.2em;
    margin-bottom: 0.8em;
    font-weight: bolder;
}

.special-banner-content p {
    color: #7e4115;
    font-size: 1.4em;
    margin-bottom: 1.5em;
    line-height: 1.5;
    font-weight: 500;
}

.whatsapp-btn {
    display: inline-block;
    background-color: #638c1c;
    color: white;
    text-decoration: none;
    padding: 1em 2em;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #638c1c;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.whatsapp-btn:hover {
    background-color: #feeddd;
    color: #638c1c;
    transform: translateY(-5px);
}

/* Grid de productos - usando CSS Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

.product {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border-bottom: 1px solid white;
    transition: transform 0.5s ease;
    margin-bottom: 2em;
}

.product:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    background-color: #f9f0e6;
}

.product-image {
    position: relative;
    width: 80%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto;
    margin-top: 10px;
}

/* Estilos de imagen y hover */
.image-front, .image-back {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 20px;
}

.image-front {
    transform: translateX(0);
}

.image-back {
    transform: translateX(100%);
}

.product-image:hover .image-front {
    transform: translateX(-100%);
}

.product-image:hover .image-back {
    transform: translateX(0);
}

.product-info {
    text-align: center;
    padding: 1em;
}

.brand-name {
    display: none;
    color: #3d1500;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

.availability-tag {
    display: inline-block;
    padding: 0.3em 1em;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    color: #feeddd;
    background-color: #638c1c;
    margin: 0.5em 0;
}

.availability-tag.sold-out {
    background-color: #aa0050;
}

.availability-tag.special {
    background-color: #F98E2B;
}

.product h3 {
    color: #F98E2B;
    text-align: left;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1.4em;
    text-transform: uppercase;
    font-weight: bolder;
}

.product p {
    height: 3em;
    width: 100%;
    color: #3d1500;
    font-weight: 500;
    text-align: left;
    font-size: 1.2em;
    margin-bottom: 0px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product a {
    text-decoration: none;
    color: #feeddd;
    padding: 10px 0;
    background-color: #aa0050;
    border: 2px solid #feeddd;
    border-radius: 20px;
    font-size: 1.1em;
    display: block;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

.product a:hover {
    background-color: #feeddd;
    color: #aa0050;
    border: 1px solid #aa0050;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5em;
    }
    
    .product-list, .special-products-banner {
        max-width: 100%;
        padding: 1.5em;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
    }
}

@media (max-width: 768px) {
    .product-list {
        padding: 1em;
    }
    
    .special-products-banner {
        padding: 2em 1em;
        margin: 1em;
    }
    
    .special-banner-content h2 {
        font-size: 1.8em;
    }
    
    .special-banner-content p {
        font-size: 1.2em;
    }
    
    .whatsapp-btn {
        padding: 0.8em 1.5em;
        font-size: 1em;
    }
    
    .product {
        border-radius: 15px;
    }
    
    .product-image {
        width: 100%;
        margin-top: 0;
        border-radius: 15px 15px 0 0;
    }
    
    .product-info {
        padding: 1em;
    }
    
    .brand-name {
        display: block;
    }
    
    .product p {
        display: none;
    }
    
    .product h3 {
        font-size: 1.1em;
        margin-bottom: 0.3em;
        text-align: center;
    }
    
    .availability-tag {
        font-size: 0.8em;
    }

    .product a {
        padding: 8px 0;
        font-size: 0.9em;
        margin-top: 0.5em;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .special-products-banner {
        padding: 1.5em 1em;
        margin: 1em;
    }
    
    .special-banner-content h2 {
        font-size: 1.5em;
    }
    
    .special-banner-content p {
        font-size: 1em;
    }
    
    .whatsapp-btn {
        width: 50%;
        padding: 0.7em 1em;
        font-size: 0.9em;
    }
    
    .product h3 {
        font-size: 1em;
    }

    .brand-name {
        font-size: 1em;
    }

    .product a {
        padding: 6px 0;
        font-size: 0.8em;
    }
}
