/* ============================================================
   cards.css — Premium card UI
   Layered on top of style.css — no duplicated rules
   ============================================================ */

/* ── 1. Card wrapper ───────────────────────────────────────── */
.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 35, 77, 0.07);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ── 2. Hover lift ─────────────────────────────────────────── */
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 35, 77, 0.12);
}

/* ── 3. Image area ─────────────────────────────────────────── */
/* Fixed-height container; bg fills space while image loads     */
.product-card-img {
    height: 180px;
    background: #f3f4f6;
    /* existing: position:relative; overflow:hidden; border-radius:15px */
}

/* hover-switch fills container and carries the zoom transform  */
.product-card-img .hover-switch {
    display: block;
    height: 100%;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-img .hover-switch {
    transform: scale(1.04);
}

/* Overrides div#Catalogo img { height:auto } via higher specificity */
#Catalogo .product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

/* ── 4. Details ────────────────────────────────────────────── */
.product-card-details {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── 5. Title ──────────────────────────────────────────────── */
/* Replaces the !important blocks removed from coleccion-sidebar.php */
.product-card-title,
.product-card-title a {
    font-size: 13px;
    color: #2b2b2b;
    line-height: 1.45;
    text-align: left;
    overflow: hidden;
}

/* ── 6. Price ──────────────────────────────────────────────── */
.card-price-regular {
    font-size: 20px;
    font-weight: 700;
    color: #00234D;
    line-height: 1.2;
}

.card-price-compare {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    opacity: 0.85;
}

/* ── 7. Offer expiry ───────────────────────────────────────── */
.product-card-offer-expiry {
    font-size: 10px;
    color: #bbb;
}

/* ── 8. Discount badge ─────────────────────────────────────── */
.badge-label.badge-percentage {
    background: #e53935;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 3px 8px;
}

/* ── 9. Responsive ─────────────────────────────────────────── */
@media (max-width: 576px) {
    .product-card-img {
        height: 160px;
    }

    .card-price-regular {
        font-size: 17px;
    }

    .product-card-details {
        padding: 10px 12px 14px;
        gap: 4px;
    }
}

/* No hover lift on touch-only screens */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 35, 77, 0.07);
    }
}
