/* =========================================================
   PRODUCT CARD FIX PREMIUM - ÓPTICA MIRA
   Fotos reales con zoom, recorte elegante y cards premium
========================================================= */

.product-grid {
    align-items: stretch;
}

.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 250, 241, .98), rgba(248, 237, 219, .96));
    border: 1px solid rgba(128, 91, 44, .18);
    box-shadow:
        0 22px 55px rgba(77, 48, 24, .10),
        inset 0 0 0 1px rgba(255, 255, 255, .38);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 146, 47, .40);
    box-shadow:
        0 30px 70px rgba(77, 48, 24, .16),
        inset 0 0 0 1px rgba(255, 255, 255, .48);
}

/* Contenedor elegante para imagen */
.product-card .product-image {
    position: relative;
    width: calc(100% - 28px);
    height: 260px;
    margin: 14px auto 0;
    padding: 0;
    overflow: hidden;
    display: block;
    border-radius: 24px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, .75), transparent 55%),
        linear-gradient(145deg, #f8ead1, #fff8ec);
    border: 1px solid rgba(196, 146, 47, .20);
}

/* Brillo sutil encima de la foto */
.product-card .product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 248, 236, .08),
            rgba(255, 248, 236, 0) 42%,
            rgba(63, 43, 31, .08)
        );
    pointer-events: none;
}

/*
   Imagen con zoom centrado.
   cover recorta los bordes negros y hace que el producto se vea mejor.
*/
.product-card .product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.08);
    border-radius: 24px;
    background: #fff8ec;
    transition: transform .35s ease, filter .35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.13);
    filter: saturate(1.04) contrast(1.03);
}

/* Información abajo */
.product-card .product-info {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 20px 22px 20px;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.product-card .product-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-bottom: 10px;
    color: #c4922f;
    font-size: .70rem;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.product-card .product-category::before {
    content: "";
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, #c4922f, transparent);
}

.product-card .product-info h3 {
    margin: 0 0 10px;
    color: #3f2b1f;
    font-size: 1.12rem;
    line-height: 1.22;
    font-weight: 950;
}

.product-card .product-info p {
    margin: 0 0 20px;
    color: #8d735e;
    font-size: .92rem;
    line-height: 1.58;
}

/* Precio + botón abajo */
.product-card .product-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(128, 91, 44, .12);
}

.product-card .price-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-card .price-box span {
    color: #9b7d63;
    font-size: .82rem;
    text-decoration: line-through;
}

.product-card .price-box strong {
    color: #3f2b1f;
    font-size: 1.18rem;
    font-weight: 950;
}

.product-card .btn-small {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #4b2c1d;
    color: #fff8ec;
    font-size: .9rem;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(77, 48, 24, .16);
}

.product-card .btn-small:hover {
    background: linear-gradient(135deg, #c4922f, #e0b75a);
    color: #25170e;
    transform: translateY(-2px);
}

/* Badge destacado opcional si existe */
.product-card .badge,
.product-card .product-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 4;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 248, 236, .90);
    color: #3f2b1f;
    border: 1px solid rgba(196, 146, 47, .28);
    font-size: .72rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

/* Evita overlays heredados raros */
.product-card::before,
.product-card::after,
.product-card .product-info::before,
.product-card .product-info::after {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-card .product-image {
        height: 245px;
    }
}

@media (max-width: 560px) {
    .product-card {
        border-radius: 26px;
    }

    .product-card .product-image {
        width: calc(100% - 24px);
        height: 235px;
        margin-top: 12px;
        border-radius: 22px;
    }

    .product-card .product-image img {
        border-radius: 22px;
        transform: scale(1.10);
    }

    .product-card:hover .product-image img {
        transform: scale(1.13);
    }

    .product-card .product-info {
        padding: 18px;
    }

    .product-card .product-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .product-card .btn-small {
        width: 100%;
    }
}
/* =========================================================
   PRODUCTOS EN 3 COLUMNAS EN MÓVIL
========================================================= */

@media (max-width: 560px) {

    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .product-card {
        border-radius: 16px !important;
    }

    .product-card .product-image {
        width: calc(100% - 10px) !important;
        height: 115px !important;
        margin-top: 5px !important;
        border-radius: 13px !important;
    }

    .product-card .product-image img {
        border-radius: 13px !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform: scale(1.12) !important;
    }

    .product-card .product-info {
        padding: 9px !important;
    }

    .product-card .product-category {
        font-size: .52rem !important;
        letter-spacing: .05em !important;
        margin-bottom: 5px !important;
    }

    .product-card .product-category::before {
        display: none !important;
    }

    .product-card .product-info h3 {
        font-size: .78rem !important;
        line-height: 1.15 !important;
        margin-bottom: 6px !important;
    }

    .product-card .product-info p {
        display: none !important;
    }

    .product-card .product-bottom {
        padding-top: 7px !important;
        gap: 7px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .product-card .price-box strong {
        font-size: .82rem !important;
    }

    .product-card .price-box span {
        font-size: .68rem !important;
    }

    .product-card .btn-small {
        width: 100% !important;
        min-height: 30px !important;
        padding: 0 8px !important;
        font-size: .72rem !important;
    }
}