/* ===== PRODUCT CARD ===== */

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    /* needed if badges are used later */

    transition: transform 0.18s ease,
        box-shadow 0.18s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.06);
}


/* ===== IMAGE ===== */

.product-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.25s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.06);
}


/* ===== BODY ===== */

.product-card__body {
    display: flex;
    flex-direction: column;

    flex-grow: 1;

    padding: 14px;
}


/* ===== TITLE ===== */

.product-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;

    margin: 0;

    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    line-clamp: 2;
    overflow: hidden;

    max-height: calc(1.35em * 2);
}


/* ===== BADGES (optional future use) ===== */

.product-badge {
    position: absolute;
    top: 10px;

    padding: 4px 8px;

    font-size: 0.7rem;
    font-weight: 600;

    border-radius: 5px;

    color: white;
}

.product-badge--featured {
    left: 10px;
    background: #f97316;
}

.product-badge--sale {
    right: 10px;
    background: #dc2626;
}