/* ================================
   MÓDULO: PRODUCTS GRID
   Estilos para grid de productos
   ================================ */

/* Reset específico del módulo */
.products-grid,
.products-grid * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* ================================
   PRODUCT ITEM
   ================================ */

.product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(62, 39, 35, 0.08);
    transition: all 0.4s ease;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(62, 39, 35, 0.15);
}

/* Imagen del producto */
.product-item__image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 3px solid #A67B5B;
    transition: all 0.4s ease;
}

.product-item:hover .product-item__image {
    transform: scale(1.05);
}

/* Overlay en hover */
.product-item__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 39, 35, 0);
    transition: all 0.4s ease;
}

.product-item:hover .product-item__image::before {
    background: rgba(62, 39, 35, 0.1);
}

/* Contenido del producto */
.product-item__content {
    padding: 1.8rem 1.5rem;
    text-align: center;
}

/* Nombre del producto */
.product-item__name {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #3E2723;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

/* Descripción */
.product-item__description {
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    color: #6B5B52;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* Botón */
.product-item__button {
    display: inline-block;
    padding: 0.7rem 2rem;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #A67B5B;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(166, 123, 91, 0.3);
}

.product-item__button:hover {
    background: #8B6A4F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 123, 91, 0.4);
}

/* ================================
   RESPONSIVE: TABLET
   ================================ */
@media screen and (max-width: 968px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .product-item__image {
        height: 220px;
    }

    .product-item__content {
        padding: 1.5rem 1.2rem;
    }

    .product-item__name {
        font-size: 1.2rem;
    }

    .product-item__description {
        font-size: 0.9rem;
    }
}

/* ================================
   RESPONSIVE: MÓVIL
   ================================ */
@media screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .product-item__image {
        height: 240px;
    }

    .product-item__content {
        padding: 1.5rem;
    }

    .product-item__button {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .products-grid {
        gap: 1.2rem;
        margin-top: 2rem;
    }

    .product-item__image {
        height: 200px;
        border-bottom-width: 2px;
    }

    .product-item__content {
        padding: 1.3rem 1rem;
    }

    .product-item__name {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .product-item__description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .product-item__button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}