
/******************************************************************بنر 2 تایی ها *****/
        .ec-new-banners .ec-new-banner-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease;
}

.ec-new-banners img {
    width: 100%;
    height: auto;
    display: block;
}

.ec-new-banners .ec-new-banner-card:hover {
    transform: translateY(-3px);
}

.banner-box img{
border-radius:12px;
transition:0.3s;
}

.banner-box img:hover{
transform:scale(1.03);
}
 
 
 
 /*************************************بنر4 تایی هااااا **************************/
 
.banner-box{
    border-radius:20px;
    overflow:hidden;
}

.banner-box img{
    width:100%;
    height:auto;
    display:block;
    object-fit:cover;
}
 /*********************************** کاروسل جدید **************************/

.ec-pro-title {
    font-size: 14px;
    line-height: 1.6;
}
.ec-pro-title a{
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: unset !important;
direction: rtl;
    unicode-bidi: plaintext;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}
.ec-price {
    display: block;
    margin-top: 5px;
    font-weight: 600;
}

@media (max-width: 575px) {
    .ec-pro-title {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .ec-pro-title a{
        -webkit-line-clamp: 3;
    }
}

.ec-all-product-inner.ec-pro-content .ec-price1 {
  /*font-size: 16px;
 */ display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: left;
      -ms-flex-pack: left;
          justify-content: left;
  color: #777777;
}

.ec-all-product-inner .ec-pro-content .ec-price1:not(:last-child) {
  margin-bottom: 5px;
}

.ec-all-product-inner .ec-pro-content .ec-price1 span.new-price {
  color: #9935c4;
  font-weight: 700;
  font-size: 15px;
  margin-left:20px;
}

.ec-all-product-inner .ec-pro-content .ec-price1 span.old-price {
  font-size: 12px;
  margin-right: 15px;
  text-decoration: line-through;
  color: #777777;
}




/*********************************************************/
/* کنترل عنوان محصول → دو خط، بدون ... */
.product-card .product-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: unset !important;
    font-size: 15px;
    min-height: 38px;
    line-height: 19px;
}

/* جلوگیری از افتادن قیمت روی نام کالا */
.product-card .product-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-price {
    font-weight: bold;
    color: #e60023;
    position: static !important;
    margin-top: auto !important;
}





/*************************************************/
/* استایل کلی کارت محصول */

.custom-product-card {
    background: #ffffff;
    border-radius: 12px; /* کمی گردتر برای ظاهر مدرن */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding-bottom: 15px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid transparent; /* حذف کادر خطی خشن */
}

.custom-product-card:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);

}

/* بخش عکس */
.custom-product-card .ec-pro-image {
    padding: 0; /* پدینگ حذف شد تا عکس کامل بچسبد */
    position: relative;
}

.custom-product-card .main-image {
    border-radius: 12px 12px 0 0; /* انحنا فقط برای دو گوشه بالا تا با کارت هماهنگ شود */
    object-fit: cover; /* پر کردن کل فضا */
    width: 100%;
    height: 100%;
}




/* برچسب‌های روی عکس */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.out-of-stock {
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-weight: bold;
}

.discount-badge {
    background: #ef4444; /* رنگ قرمز جذاب برای تخفیف */
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

/* بخش محتوا و عنوان */
.custom-pro-content {
    padding: 10px 20px;
    text-align: right;
}

.custom-pro-content .ec-pro-title {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
    height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.custom-pro-content .ec-pro-title a {
    color: #3f3f46;
    font-weight: 600;
    transition: color 0.2s ease;
    text-decoration: none;
}

.custom-pro-content .ec-pro-title a:hover {
    color: #ef4444;
}

/* چینش قیمت و دکمه سبد خرید */
.price-and-cart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.custom-product-card .ec-price {
    display: flex;
    flex-direction: column;
}

.custom-product-card .old-price {
    text-decoration: line-through;
    color: #a1a1aa;
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 400;
}



.custom-product-card .new-price {
    color: #27272a; 
    font-size: 20px; /* بزرگتر شد (قبلا 17 بود) */
    font-weight: 900; /* کمی ضخیم‌تر شد */
}


/* دکمه افزودن (پلاس) */
.custom-add-cart {
    background: #f4f4f5;
    color: #ef4444; /* رنگ آیکون */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.custom-add-cart:hover {
    background: #d6d6d6; 
    color: #fff;
    transform: scale(1.05);
}

/* لینک مشاهده همه */
.custom-see-all {
    color: #9935c4;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-see-all:hover {
    color: #9935c4;
}
/********************************************************************************************************/

