
/* CONFIGURACIÓN GENERAL */

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

body {
    font-family: Arial, sans-serif;
    background-color: #f8f6f8;
    color: #29232b;
}

/* ENCABEZADO */

.header {
    background: #54265e;
    color: white;
    text-align: center;
    padding: 35px 20px;
}

.header h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

/* CONTENEDOR PRINCIPAL */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 25px 20px;
}

/* BIENVENIDA */

.welcome {
    text-align: center;
    padding: 35px 15px;
}

.welcome h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* CATÁLOGO */

.catalog h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* FILTROS */

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-button {
    border: 1px solid #54265e;
    background: white;
    color: #54265e;
    padding: 10px 17px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.filter-button:hover,
.filter-button.active {
    background: #54265e;
    color: white;
}

/* TARJETAS */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f4dce8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.product-category {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

.product-price {
    color: #54265e;
    font-weight: bold;
    font-size: 17px;
}

/* PIE DE PÁGINA */

.footer {
    background: #54265e;
    color: white;
    text-align: center;
    padding: 22px;
    margin-top: 40px;
}
/* INFORMACIÓN DEL PRODUCTO */

.product-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* DISPONIBILIDAD */

.availability {
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 15px;
    font-weight: bold;
}

.available {
    background: #e2f5e8;
    color: #258447;
}

.unavailable {
    background: #fbe4e4;
    color: #bd3838;
}

/* DISEÑO RESPONSIVE */

@media (max-width: 768px) {

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 480px) {

    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-image {
        height: 145px;
    }

    .product-heading {
        align-items: flex-start;
    }
    .header h1 {
        font-size: 29px;
    }

    .welcome h2 {
        font-size: 23px;
    }

}
