/* Estilos de la tarjeta de producto compartida (_ProductoCard.cshtml).
   Las reglas .exp-* se comparten desde acá para que Favoritos/Home rendericen
   la MISMA card que Explorar. (Explorar mantiene su copia inline; son idénticas.) */

/* ─── Grid + card ─── */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e8e8e8;
}
@media (min-width: 576px)  { .exp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px)  { .exp-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .exp-grid { grid-template-columns: repeat(5, 1fr); } }

.exp-card { background: #fff; position: relative; overflow: hidden; }

.exp-img-wrap {
    position: relative;
    aspect-ratio: 3 / 4;   /* el sizing definitivo va inline en el partial */
    overflow: hidden;
    background: #f4f3f1;
}
.exp-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.exp-card:hover .exp-img-wrap img { transform: scale(1.05); }

.exp-card-body { padding: 10px 10px 14px; }
.exp-store  { font-size: .7rem; color: #888; letter-spacing: .06em; text-transform: uppercase; }
.exp-name   { font-size: .85rem; font-weight: 500; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-price  { font-size: .85rem; font-weight: 600; color: #1c1a18; }

.exp-fav-btn {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 5;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.exp-fav-btn:hover { background: #fff; }

.exp-badge {
    position: absolute;
    bottom: 8px; left: 8px;
    z-index: 5;
    background: rgba(28,26,24,.82);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    display: flex; align-items: center; gap: 4px;
}

/* ─── Badges nuevos (Nuevo / Probador) ─── */

/* Arriba-DERECHA: el corazón de favorito ocupa arriba-izquierda y el badge de
   cantidad de imágenes abajo-izquierda, así que esta esquina queda libre. */
.pc-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    pointer-events: none;
}

.pc-badge {
    font-size: .66rem;
    font-weight: 600;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 999px;
    letter-spacing: .02em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    white-space: nowrap;
}

.pc-badge-nuevo {
    background: #111;
    color: #fff;
}

.pc-badge-probador {
    background: rgba(255, 255, 255, .92);
    color: #6d28d9;
    border: 1px solid rgba(109, 40, 217, .25);
}
.pc-badge-oferta { background: #d71920; color: #fff; }
.pc-badge-stock { background: #fff; color: #b45309; border: 1px solid rgba(180, 83, 9, .3); }

/* Acciones rápidas (vista rápida + probar) — pila de iconos esquina inf. der. */
.pc-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pc-action-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .82rem;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
    transition: background .15s;
}
.pc-action-btn:hover { background: #fff; }
.pc-quickview { color: #1c1a18; border: 1px solid rgba(0, 0, 0, .15); }
.pc-probar { color: #6d28d9; border: 1px solid rgba(109, 40, 217, .25); }
.pc-probar:hover { color: #6d28d9; }
