/* Estilos específicos para la página de tienda */

/* Banner de la tienda */
.store-banner {
background-image: url("images/Fondo\ hero.webp");
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.store-banner h1 {
    color: var(--white);
}

/* Filtros de categoría */
.category-filter {
    background-color: var(--white);
    border-bottom: 1px solid var(--dark-cream); 
    top: 80px;
    z-index: 90;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.filter-tab {
    margin: 0 15px;
    padding: 8px 15px;
    color: var(--teal);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Secciones de productos */
.product-section {
    padding: 20px 50px;

}

.product-section:nth-child(odd) {
    background-color: var(--cream);
}

.product-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.product-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Grid de productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Tarjeta de producto */
.product-card {
    display: flex;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 320px; /* Limita el tamaño de las tarjetas */    
    margin: 10px auto; /* Centra las tarjetas */
    text-decoration: none; /* Elimina subrayado en el enlace */
    flex-direction: column; /* Organiza la imagen y la info en columna */
}

.product-image {
    height: 280px;
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.product-image img {
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--teal);
}

.product-info .brand {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

.product-info .description {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--black);
    line-height: 1.4;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.btn-compra{
    padding: 10px;
    font-size: 1em;
    position: relative;
    font-family: "Roboto Mono";
    background-color: #25d366;
}

.btn-compra:hover{
    background-color: #128c7e;
}

/* Versión pequeña de botones para productos */
.btn-sm {
    padding: 8px 0;
    font-size: 0.85rem;
}

/* Nota de presentación */
.product-note {
    padding: 60px 0;
    background-color: var(--white);
}

.note-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--cream);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.note-box h3 {
    color: var(--teal);
    margin-bottom: 15px;
}

.note-box p {
    margin-bottom: 15px;
}

.note-box .cta-buttons {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 20px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .filter-tab {
        margin: 5px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions a {
        width: 100%;
        text-align: center;
    }
}