* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Alibaba Regular", Alibaba;
    background-color: #FBF9F4;
    direction: rtl;
	color: #3C101E;
}

.rpbb-products-scroll {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

.rpbb-products-grid {
    display: block;
}

.rpbb-products-grid.slick-initialized {
    visibility: visible;
}

.rpbb-product-card {
    overflow: hidden;
    margin: 0 10px;
}

.rpbb-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.rpbb-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.rpbb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
	border-radius: 5px;
}

.rpbb-product-card:hover .rpbb-product-image img {
    transform: scale(1.05);
}

.product-badge.popular {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgb(132, 64, 37);
    color: #fff;
    padding: 4px 11px;
    font-size: 10px;
    z-index: 2;
    font-weight: 100;
}

.rpbb-product-title {
    padding: 16px 16px 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 60px;
}

.rpbb-product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.rpbb-product-price {
    padding: 0 16px 12px;
    font-size: 18px;
    font-weight: 400;
    text-align: left;
}

.woocommerce-Price-currencySymbol {
    font-size: 14px;
    margin-right: 4px;
}

.wszb-endbox-rpbb {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 16px 16px;
    border-top: 1px solid #f0f0f0;
    gap: 10px;
}

.iblo-wishlist-rpbb button:hover {
    background: #ffe0e0;
}

.iblo-wishlist-rpbb svg {
    width: 22px;
    height: 22px;
}

.rpbb-add-to-cart, .iblo-wishlist-rpbb button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #3C101E;
    background: #F6F3E7;
    color: #3C101E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.rpbb-add-to-cart:hover, .iblo-wishlist-rpbb button:hover {
    background: #3C101E;
    color: #F6F3E7;
}

.rpbb-add-to-cart i {
    font-size: 16px;
}

.slick-prev, .slick-next {
    z-index: 10;
    transition: all 0.3s ease;
}
.slick-prev:before {
    content: '' !important; 
    display: block;
    width: 24px;
    height: 24px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0M4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    color: #2c3e50; 
}

.slick-next:before {
    content: '' !important;
    display: block;
    width: 24px;
    height: 24px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-4.5-.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.slick-next:before:hover, .slick-prev:before:hover{
	opacity: 1;
}

.slick-next:focus, .slick-next:hover, .slick-prev:focus, .slick-prev:hover{
	fill: #3C101E !important;
	color: #3C101E !important;
}

.slick-prev:before, .slick-next:before {
    color: #3C101E;
    opacity: 1;
    fill: #3C101E !important;
}

[dir=rtl] .slick-next {
    right: auto;
    left: 0px;
}

[dir=rtl] .slick-prev {
    right: 0px;
    left: auto;
}

.slick-dots {
    bottom: -35px;
}

.slick-dots li button:before {
    font-size: 10px;
    color: #bdc3c7;
    opacity: 1;
}

.slick-dots li.slick-active button:before {
    color: #2c3e50;
}

/* ==================== */
/* نسخه موبایل (تا 768px) */
/* ==================== */
@media (max-width: 768px) {
    .rpbb-products-scroll {
        padding: 20px 0;
        overflow: hidden;
    }

    .rpbb-products-grid {
        padding-right: 0 !important;
        display: block !important;
    }

    .rpbb-products-grid .rpbb-product-card {
        float: right;  
        margin: 0 8px;
        width: auto !important;
        min-width: 280px;
    }

    .slick-center .rpbb-product-card {
        transform: scale(1);
        opacity: 1;
    }

    .slick-slide:not(.slick-center) .rpbb-product-card {
        opacity: 0.7;
        transform: scale(0.95);
        transition: all 0.3s ease;
    }

    .slick-slide:not(.slick-center) .rpbb-product-card:hover {
        opacity: 1;
    }

    .rpbb-product-title {
        font-size: 13px;
        min-height: 50px;
        padding: 12px 12px 6px;
    }

    .rpbb-product-price {
        font-size: 16px;
        padding: 0 12px 10px;
    }

    .wszb-endbox-rpbb {
        padding: 10px 12px 12px;
    }

    .slick-prev,
    .slick-next {
        display: none !important;
    }

    .slick-dots {
        bottom: -30px;
    }

    .slick-track {
        width: auto !important;
        display: flex;
        align-items: stretch;
    }
    
    .slick-slide {
        float: none;
        height: auto;
        width: 85% !important;
    }
    
    .slick-slide > div {
        width: 100%;
    }
}
