/* ========================================================================
   _product-card.css
   Product card component (grid item used on ShopList / Home / etc.)
   NOTE: depends on @keyframes btn-spin defined in _cart-drawer.css —
   make sure _cart-drawer.css is loaded on any page that uses this file.
   ======================================================================== */

.product-card {
    background: #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    overflow: hidden;
    text-align: left;
    height: 100%;
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

    .product-card .product-media {
        margin: 0;
        padding: 20px;
        text-align: center;
        position: relative;
        height: 320px;
        min-height: 0;
        box-sizing: border-box;
        overflow: hidden;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .product-card .product-media img {
            max-width: 100%;
            max-height: 280px;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
            margin: 0 auto;
        }

    .product-card .product-image-hover {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        opacity: 0;
        transition: opacity .3s ease;
    }

    .product-card:hover .product-image-default {
        opacity: 0;
    }

    .product-card:hover .product-image-hover {
        opacity: 1;
    }

.product-card-body {
    padding: 0 16px 16px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

    .product-card .product-name a {
        color: #1a1a1a;
        text-decoration: none;
    }

.product-card .product-desc {
    font-size: 13px;
    color: #6b6b6b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card .product-rating {
    font-size: 13px;
    color: #d4af37;
    margin-bottom: 10px;
}

    .product-card .product-rating span {
        color: #6b6b6b;
        margin-left: 4px;
    }

.product-card .product-price {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    margin-top: auto;
}

.btn-add-to-bag {
    width: 100%;
    background-color: #001e60;
    color: #fff;
    border: none;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color .2s ease;
}

    .btn-add-to-bag:hover {
        background-color: #0e1a34;
    }

    .btn-add-to-bag.is-loading {
        opacity: .5;
        pointer-events: none;
        position: relative;
        color: transparent !important;
    }

        .btn-add-to-bag.is-loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 18px;
            height: 18px;
            margin: -9px 0 0 -9px;
            border: 2px solid rgba(255,255,255,.4);
            border-top-color: #fff;
            border-radius: 50%;
            animation: btn-spin .6s linear infinite;
        }
