/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}



.product-small .box,
.products .product-small .box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    text-align: center;
    height: 400px;
    /* ارتفاع کارت به حالت اولیه برگشت */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.product-small .box-image,
.products .product-small .box-image {
    margin: 0;
    padding: 0;
}

.product-small .box-image img,
.products .product-small .box-image img {
    max-height: 300px;
    /* افزایش ارتفاع تصویر برای طبیعی‌تر شدن */
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.product-small .box-text,
.products .product-small .box-text {
    padding: 10px 10px 0;
    /* پدینگ بالا و راست/چپ ۱۰ پیکسل، پایین صفر */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-small .title-wrapper,
.products .product-small .title-wrapper {
    margin: 10px 0 0;
    /* فاصله ۱۰ پیکسل بعد از تصویر */
}

.product-small .title-wrapper .woocommerce-loop-product__title,
.products .product-small .title-wrapper .woocommerce-loop-product__title {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.product-small .price,
.products .product-small .price {
    color: red;
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 10px;
    /* فاصله ۱۰ پیکسل تا انتهای کارت */
}

/* فقط آیکن‌های دیفالت رو حذف می‌کنیم، ریبون می‌مونه */
.product-small .add-to-cart-button,
.products .product-small .add-to-cart-button,
.product-small .wishlist-button,
.products .product-small .wishlist-button {
    display: none !important;
}

/* آیکن‌های هاور */
.product-small .box:hover .hover-icons,
.products .product-small .box:hover .hover-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
}

.product-small .hover-icons,
.products .product-small .hover-icons {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.product-small .hover-icons .wishlist-icon::before,
.products .product-small .hover-icons .wishlist-icon::before {
    content: "\f004";
    /* آیکن قلب */
    font-family: "Font Awesome 5 Free";
}

.product-small .hover-icons .view-icon::before,
.products .product-small .hover-icons .view-icon::before {
    content: "\f06e";
    /* آیکن چشم */
    font-family: "Font Awesome 5 Free";
}

.product-small .hover-icons .cart-icon::before,
.products .product-small .hover-icons .cart-icon::before {
    content: "\f07a";
    /* آیکن سبد خرید */
    font-family: "Font Awesome 5 Free";
}

.product-small .hover-icons a,
.products .product-small .hover-icons a {
    color: #333;
    font-size: 18px;
    text-decoration: none;
    margin: 0 5px;
}

/* تنظیمات RTL */
body.rtl .product-small .box-text,
body.rtl .products .product-small .box-text {
    text-align: right;
}