/* --- تنظیمات ریشه ویجت (تغییرات جدید) --- */
.elementor-widget-category-card-slider {
    /* درخواست #1: تغییر فونت */
    font-family: 'yekanbakhfanum-regul', 'Vazirmatn', sans-serif;
    position: relative;
    /* درخواست #2: حذف padding */
    padding: 0;
    /* درخواست #3: رفع مشکل بریده شدن تصویر */
    overflow: visible;
}

/* --- استایل‌های اسلایدر Swiper --- */
.category-slider-wrapper {
    width: 100%;
    /* درخواست #2: اعمال !important طبق درخواست شما */
    padding-top: 60px !important; 
    padding-bottom: 50px; 
    position: relative;
    overflow: visible; 
    /* پدینگ افقی برای جلوگیری از بریده شدن سایه‌ها توسط کانتینر والد */
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.swiper-slide {
    height: auto; /* ارتفاع خودکار برای هر اسلاید */
    overflow: visible; /* ::: اجازه می‌دهد تصویر بیرون بزند ::: */
    /* ::: تغییر کلیدی (درخواست #4 قبلی): افزایش padding برای ایجاد فاصله ::: */
    padding: 9px; /* فضای کافی برای shadow کارت و ایجاد فاصله 18px بین کارت‌ها */
    box-sizing: border-box;
}

/* --- استایل پایه کارت --- */
.product-card {
    width: 100%; 
    background: #ffffff;
    border-radius: 24px;
    /* درخواست #1: حذف سایه کارت (کد قبلی شما) */
    /* box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08); */
    box-shadow: 0 5px 5px rgb(0 0 0 / 5%); /* سایه ملایم‌تر جایگزین شده */
    position: relative;
    overflow: visible; /* ::: مهم: برای بیرون زدن تصویر ::: */
    /* درخواست #1: حذف سایه از transition */
    transition: transform 0.3s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    /* درخواست #1: حذف سایه هاور */
    /* box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12); */
}

/* --- بخش بالای کارت (شامل شکل SVG و تصویر) --- */
.product-card__top-area {
    position: relative;
    height: 100px; 
    z-index: 2; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- شکل SVG ترکیبی --- */
.product-card__svg-shape {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 140px; 
    z-index: 1; 
}

/* --- تصویر محصول --- */
.product-card__image {
    position: absolute;
    z-index: 3; 
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* موقعیت bottom و height در HTML تنظیم شده */
}

.product-card:hover .product-card__image {
    transform: translateX(-50%) scale(1.05);
}

/* --- برچسب تعداد (محصول) --- */
.product-card__stock {
    position: absolute;
    top: 20px;
    right: 20px; 
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    z-index: 4; 
}


/* --- بخش سفید محتوای کارت (بدنه) --- */
.product-card__body {
    padding: 60px 25px 30px; 
    position: relative;
    background: #ffffff;
    border-radius: 0 0 24px 24px; 
    z-index: 1; 
    text-align: right; 
}

.product-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.product-card__description {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* --- دکمه "مشاهده دسته" --- */
.product-card__button {
    display: block;
    text-decoration: none;
    color: #ffffff;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    /* ::: تغییر (درخواست #5): سایه عمومی برای دکمه داینامیک ::: */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

.product-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* --- استایل دکمه‌های صفحه‌بندی Swiper --- */
.category-slider-wrapper .swiper-pagination {
    bottom: 10px;
}

.category-slider-wrapper .swiper-pagination-bullet-active {
    background: #4A00E0; /* رنگ پیشفرض */
}

/* ::: تغییر (درخواست #3 و #7): استایل فلش‌ها ::: */
.category-slider-wrapper .swiper-button-next,
.category-slider-wrapper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #4A00E0; /* رنگ فلش */
    transition: background-color 0.3s, color 0.3s;
    top: 50%;
    transform: translateY(-50%);
    /* درخواست #3 و #7: مخفی کردن فلش‌ها در همه حالات */
    display: none; 
}

.category-slider-wrapper .swiper-button-next:hover,
.category-slider-wrapper .swiper-button-prev:hover {
    background: #4A00E0;
    color: #ffffff;
}

/* حذف محتوای قبلی (آیکون) */
.category-slider-wrapper .swiper-button-next::after,
.category-slider-wrapper .swiper-button-prev::after {
    content: '';
    font-family: none; /* حذف فونت آیکون swiper */
    
    /* ساخت فلش ساده با border */
    border: solid currentColor; /* رنگ را از والد (دکمه) به ارث می‌برد */
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 4px; /* اندازه فلش */
    font-size: 16px; /* ریست کردن */
}

/* چرخاندن فلش‌ها */
.category-slider-wrapper .swiper-button-next::after {
    transform: rotate(-45deg);
    margin-right: -2px; /* مرکزیت */
}

.category-slider-wrapper .swiper-button-prev::after {
    transform: rotate(135deg);
    margin-left: -2px; /* مرکزیت */
}


/* درخواست #3 و #7: دیگر نیازی به نمایش دکمه‌ها در موبایل نیست */
@media (max-width: 767px) {
    /* .category-slider-wrapper .swiper-button-next,
    .category-slider-wrapper .swiper-button-prev {
        display: block; 
    }
    */
    
    .category-slider-wrapper {
         padding-top: 40px; 
         padding-left: 10px;  /* پدینگ کمتر در موبایل */
         padding-right: 10px; /* پدینگ کمتر در موبایل */
    }
}