/* === Product Card (reutilizable) ===
   Colores: usa :root --brand-primary / --brand-secondary / --brand-accent ya definidos
*/
.product-card {
    position: relative;
    background: #fff;
    border: 1px solid #E5E7EB;
    /* gris claro */
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.product-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

/* Botón info (reemplaza al favorito), arriba-izquierda */
.product-card .pc-info-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    border: none;
    cursor: pointer;
}

.product-card .pc-info-btn:active {
    transform: scale(.96);
}

/* Media: relación 4/3, imagen centrada, sin recortar */
.product-card .pc-media {
    display: block;
    /* <a> como bloque */
    aspect-ratio: 4 / 3;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 6px;
    /* deja aire alrededor de la imagen */
}

.product-card .pc-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Título en mayúsculas, 2 líneas */
.product-card .pc-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card .pc-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25rem;
    color: #232323;
    text-decoration: none;
    /* sin subrayado */
}

/* Precio + unidad (en verde de marca) */
.product-card .pc-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-card .pc-price {
    color: var(--brand-secondary);
    font-weight: 700;
    font-size: 14px;
}

.product-card .pc-unit {
    color: var(--brand-secondary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

/* Botón “Agregar” (circular, abajo-derecha) */
.product-card .pc-add {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    cursor: pointer;
}

.product-card .pc-add:hover {
    background: var(--brand-primary);
    color: #fff;
}

.product-card .pc-add:active {
    transform: scale(.96);
}

/* Los enlaces internos no deben verse “azules subrayados” */
.product-card a {
    color: inherit;
    text-decoration: none;
}

/* Variante compacta para listados horizontales (ej. Splide) */
.product-card.compact {
    width: 11rem;
}

/* ~ w-44 */