﻿.product-card-style {
    direction: rtl;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 24px 0 rgba(10,41,113,0.08);
    overflow: hidden;
    transition: box-shadow .2s, transform .16s;
    width: 100%;
    max-width: 340px;
    margin: 16px auto;
    border: 1.5px solid #eef3fa;
    display: flex;
    flex-direction: column;
    font-family: 'Vazir', Arial, sans-serif;
    position: relative;
}

    .product-card-style:hover {
        box-shadow: 0 10px 36px 0 rgba(10,41,113,0.13);
        border-color: #0a29711b;
    }

.product-image-wrapper-style {
    position: relative;
    width: 100%;
    padding-top: 85%;
    background: #f0f4fa;
    overflow: hidden;
}

.product-link-img-style,
.product-link-img-style:visited {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

.product-image-style {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* فیت‌تر نسبت به contain */
    border-radius: 18px 18px 0 0;
    transition: transform 0.19s;
    display: block;
    background: #f6f6fa;
}

.product-card-style:hover .product-image-style {
    transform: scale(1.04);
}

.product-badges-style {
    position: absolute;
    top: 11px;
    right: 13px;
    display: flex;
    gap: 6px;
    z-index: 2;
    flex-wrap: wrap;
}

.badge-style {
    display: inline-block;
    padding: 2.5px 12px;
    border-radius: 11px;
    font-size: 11.7px;
    font-weight: 600;
    color: #fff;
    background: #6d7b92;
    box-shadow: 0 1.5px 7px 0 rgba(10,41,113,0.11);
    opacity: 0.91;
    letter-spacing: -.1px;
    white-space: nowrap;
}

.badge-new-style {
    background: #09c372;
}
.badge-discount-style {
    background: #ff2c2c;
}
.badge-special-style {
    background: #0a2971;
}

.badge-freeship-style {
    background: #f19d38;
}

.product-content-style {
    padding: 20px 13px 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-title-style {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 7px 0 5px 0;
    color: #1b2347;
    line-height: 1.40;
    min-height: 20px;
    text-align: center;
}

    .product-title-style a {
        text-decoration: none;
        color: #1b2347;
        transition: color 0.17s;
    }

        .product-title-style a:hover {
            color: #0a2971;
        }

.product-category-style {
    color: #7291c3;
    background: #eef4ff;
    font-size: 12.2px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 8px;
    margin-bottom: 3px;
    display: inline-block;
    letter-spacing: -0.2px;
    text-align: right;
    text-decoration: none;
    transition: background 0.13s, color 0.13s;
}

    .product-category-style:hover {
        background: #f1f6ff;
        color: #0a2971;
    }

.product-prices-style {
    margin: 6px 0 1px 0;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
}

.price-style {
    font-size: 1.06em;
    font-weight: 700;
    display: inline-block;
}

.price-original-style {
    color: #9da7b6;
    text-decoration: line-through;
    font-size: 0.98em;
    font-weight: 500;
    order: 2;
}

.price-discounted-style {
    color: #1d4ed8;
    background: #eef4ff;
    border-radius: 9px;
    padding: 0 8px;
    font-size: 1.12em;
    margin-left: 5px;
    font-weight: 800;
    order: 1;
}

.toman {
    font-size: 0.85em;
    font-weight: 400;
    color: #8395b6;
    margin-right: 2.5px;
}

.product-footer-style {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
}

.product-comments-style {
    font-size: 12.5px;
    color: #0a2971;
    background: #eff6fd;
    border-radius: 8px;
    padding: 2px 12px 2px 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4.5px;
    direction: rtl;
}

    .product-comments-style i {
        font-size: 13.7px;
        color: #7291c3;
    }

@media (max-width: 480px) {
    .product-card-style {
        max-width: 99vw;
        border-radius: 14px;
    }

    .product-content-style {
        padding: 14px 8px 10px 8px;
    }
}
