﻿/* کارت محصول */
.shop-product-card {
    min-width: 0;
}

/* قاب ثابت ۳ به ۴؛ نسبت واقعی فرش حفظ می‌شود. */
.shop-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #ffffff;
}

    .shop-product-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

/* اطلاعات محصول */
.shop-product-info {
    padding: 16px 2px 0;
    text-align: right;
}

.shop-product-title {
    margin: 0 0 10px;
    color: #181818;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.shop-product-code,
.shop-product-size {
    margin: 0 0 6px;
    color: #666666;
    font-size: 13px;
    line-height: 1.9;
}

.shop-product-size {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
}

.shop-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 12px 0 0;
    color: #181818;
}

    .shop-product-price strong {
        font-size: 19px;
        font-weight: 700;
    }

    .shop-product-price span {
        color: #666666;
        font-size: 13px;
    }

/* تنظیم کارت‌ها در حالت دوستونهٔ موبایل */
@media (max-width: 768px) {
    .shop-grid[data-mobile-columns="2"] .shop-product-image {
        padding: 6px;
    }

    .shop-grid[data-mobile-columns="2"] .shop-product-info {
        padding-top: 12px;
    }

    .shop-grid[data-mobile-columns="2"] .shop-product-title {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .shop-grid[data-mobile-columns="2"] .shop-product-code,
    .shop-grid[data-mobile-columns="2"] .shop-product-size {
        font-size: 12px;
    }

    .shop-grid[data-mobile-columns="2"] .shop-product-price strong {
        font-size: 16px;
    }

    .shop-grid[data-mobile-columns="2"] .shop-product-price span {
        font-size: 12px;
    }
}
