﻿
/* ==================================
   PUNTOMIX - PRODUCTOS
   ================================== */

.featured-section {
    padding: 10px 0 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Tarjeta */

.product-card {
    background: white;
    border: 1px solid #F0E8DF;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    }

/* Imagen */

.product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    padding: 18px;
    background: #FFFFFF;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.product-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 18px;
    background: #FFF5EB;
    color: var(--color-primary);
    border-radius: 12px;
}

    .product-placeholder svg {
        width: 55px;
        height: 55px;
        stroke-width: 1.5;
    }

/* Información */

.product-info {
    padding: 16px;
}

    .product-info h3 {
        margin: 0 0 5px;
        font-size: 16px;
        font-weight: 700;
    }

.product-presentation {
    margin: 0 0 12px;
    color: #777;
    font-size: 13px;
}

.product-price {
    margin: 0 0 15px;
    color: #E94320;
    font-size: 22px;
    font-weight: 800;
}

/* Botón */

.add-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 15px;
    border: none;
    border-radius: 9px;
    background: var(--color-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

    .add-cart-btn:hover {
        background: #E85B28;
    }

    .add-cart-btn svg {
        width: 18px;
        height: 18px;
    }

/* ==================================
   TARJETA COMPLETA CLICABLE
   ================================== */

.product-card {
    position: relative;
    cursor: pointer;
}

/* Enlace invisible sobre la tarjeta */

.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

    /* Accesibilidad con teclado */

    .product-card-link:focus-visible {
        outline: 3px solid var(--color-primary);
        outline-offset: -3px;
    }

/* Botón Agregar por encima del enlace */

.product-card .add-cart-btn {
    position: relative;
    z-index: 2;
    cursor: pointer;
}
