/**
 * استایل‌های محصولات تصادفی
 * این فایل توسط random-products.php فراخوانی می‌شود
 */

.product-simple-list .product--img {
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 20px;
    padding: 6px;
    transition: ease .3s all;
    filter: brightness(1) contrast(1);
    mix-blend-mode: multiply;
}
.product-simple-list {
    position: relative;
}
.product-simple-list:before {
    content: "";
    width: 4px;
    height: 30px;
    border-radius: 10px;
    background-color: #f8a203;
    display: inline-block;
    box-shadow: 2px 0px 10px 2px rgba(248, 162, 3, 0.3) !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.product--title {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    transition: ease .3s all;
}
.product-simple-list .product--price {
    font-weight: 700;
    font-size: 15.5px;
    color: #0060ff;
}
.unit {
    background: url(http://newtic.ir/wp-content/uploads/2026/04/toman-D-K3lGL1.svg) center no-repeat;
    background-size: contain;
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 3px;
    position: relative;
    top: 3px;
}
.product--meta {
    width: calc(100% - 85px);
    margin-right: 15px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.product--link {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}
.product-simple-list .product--body {
    width: 100%;
    background-color: #f2f5fc;
    display: flex;
    align-items: center;
    padding: 13px 16px 13px 13px;
    border-radius: 20px;
    transition: ease .3s all;
    position: relative;
}
.row {
    --bs-gutter-x: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px;
}
.row > * {
    padding-left: calc(var(--bs-gutter-x) / 2);
    padding-right: calc(var(--bs-gutter-x) / 2);
}
.el-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-simple-box .product--img {
    width: 70px;
    height: 70px;
    background-color: #f2f5fc;
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 5px;
    transition: ease .3s all;
    filter: brightness(1) contrast(1);
    mix-blend-mode: multiply;
}
.product-simple-box .product--title {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
    transition: ease .3s all;
    color:#000000;
}
.col-3 {
    flex: 0 0 auto;
    width: 25%;
}
.product-simple-box-link {
    text-decoration: none;
    display: block;
    transition: ease .3s all;
}
.product-simple-box-link:hover .product--img {
    transform: scale(1.05);
}
.product-simple-box-link:hover .product--title {
    color: #f8a203;
}
@media (min-width: 769px) and (max-width: 1024px) {
    .product-simple-list .product--img,
    .product-simple-box .product--img {
        width: 90px;
        height: 90px;
        padding: 10px;
    }
    .product--meta {
        width: calc(100% - 115px);
        margin-right: 25px;
    }
    .product--title {
        font-size: 17px;
    }
    .product-simple-list .product--price {
        font-size: 18.5px;
    }
    .unit {
        width: 22px;
        height: 22px;
        margin-right: 5px;
        top: 5px;
    }
    .product-simple-list .product--body {
        padding: 18px 25px 18px 18px;
        border-radius: 28px;
    }
}