/* --- فونت اصلی کل متن --- */
body, .product-description-section {
    font-family: 'Vazir', sans-serif !important;
    line-height: 1.8rem;
    color: #333;
}

.cta-link-wrapper {
    display: block; /* برای اینکه به عنوان یک بلوک عمل کند */
    padding: 1rem 1.5rem; /* فاصله داخلی */
    background-color: #f9fafb; /* رنگ پس‌زمینه بسیار روشن */
    border-radius: 0.75rem; /* گوشه‌های گرد */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* سایه لطیف */
    border-right: 4px solid #033232; /* خط عمودی با رنگ دلخواه */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: right;
    direction: rtl;
}

.cta-link-wrapper a {
    color: #033232 !important;
    text-decoration: underline !important;
    font-weight: bold;
}

@media (max-width: 768px) {
    .cta-link-wrapper {
        padding: 1rem;
    }
}

.w-24{
    border-radius:5px;
}
div .prose, 
.p-4.border.rounded.shadow-lg{
    border-radius:1rem;
}
.mb-8.shadow-2xl{
    width:70%;
}
.text-lg{
    font-size:1rem!important;
    font-weight:400!important;
}
.product-description-section h2 span,
.product-description-section h3 span,
.product-description-section h4 span{
    font-family: 'Vazir', sans-serif !important;
}

/* --- لینک‌ها --- */
.text-justify a {
    color: #3498db !important;
    text-decoration: underline;
    font-weight: 600;
}
.text-justify a span{
    color: #3498db !important;
}

/* --- دکمه با افکت hover --- */
.button-hover-effect {
    background: linear-gradient(to left, rgba(241, 241, 241, 0.6) 50%, rgb(0, 51, 51) 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: background-position 0.3s ease, color 0.3s ease;
    color: black;
    text-align: center;
    padding: 1rem;
    border-radius: 9999px;
    font-weight: bold;
}
.button-hover-effect:hover {
    background-position: left bottom;
    color: white;
}

/* --- متن محصول با محدودیت ارتفاع (read more) --- */
.product-text-content {
    overflow: hidden;
    position: relative;
    max-height: 100px;
    line-height: 1.8em;
    transition: max-height 0.3s ease;
}
.product-text-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}
.product-description-section.expanded .product-text-content {
    max-height: none;
}
.product-description-section.expanded .product-text-content::after {
    display: none;
}

/* --- اسلایدر Swiper --- */
.swiper-pagination-bullet,
.swiper-pagination-bullet-active {
    background-color: #003333 !important;
}
@media (max-width: 1024px) {
    .swiper-slide {
        width: calc(50% - 10px);
    }
}
@media (max-width: 640px) {
    .swiper-slide {
        width: 100%;
    }
}

/* --- بخش توضیحات محصول (دسکتاپ) --- */
@media (min-width: 600px){
    .product-description-section{
        padding: 30px;
        max-width: 1100px;
        margin: auto;
    }
    .product-description-section h2,
    .product-description-section h3 {
        font-family: 'Vazir', sans-serif !important;
        margin: 10px 0 5px 0!important;
        font-size: 22px !important;
        color: #003333;
        font-weight: 600;
    }
    .product-description-section p,
    .product-description-section ul,
    .product-description-section ol {
        line-height: 1.8rem;
        margin: 15px 0;
    }
    /* تصاویر وسط‌چین */
    .product-description-section img {
        display: block !important;
        margin: 30px auto;
        max-height: 500px;
        width: auto !important;
    }
}

/* --- موبایل --- */
@media (max-width: 600px){
    /*.product-description-section{*/
    /*    border-radius: 20px;*/
    /*    padding: 10px;*/
    /*}*/
    .product-description-section h2,
    .product-description-section h3,
    .product-description-section h4{
        font-size: 18px !important;
        
        margin: 10px 0 5px 0;
        color: #003333;
        font-weight: 700;
    }
    .product-description-section p span,
    .product-description-section p, .product-description-section ul li{
        font-size: 14px;
        line-height: 1.6rem;
    }
    .product-description-section p,
    .product-description-section li {
        margin: 10px 0;
    }
    /* تصاویر ریسپانسیو */
    .product-description-section img {
        display: block !important;
        margin: 20px auto;
        max-width: 100% !important;
        height: auto !important;
    }
    /* جدول‌ها در موبایل اسکرول بخورن */
    .product-description-section {
        overflow-x: auto;
    }
}

/* --- استایل جدول --- */
.product-description-section table {
    margin: 30px auto;
    border-collapse: collapse;
    width: auto;
    max-width: 100%;
    text-align: center;
}
.product-description-section table th,
.product-description-section table td {
    border: 1px solid #ccc;
    padding: 10px 15px;
    text-align: center;
    vertical-align: middle;
}
.product-description-section table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* --- لیست‌ها (بولت پوینت‌ها) --- */
.product-description-section ul, .product-description-section ol {
    list-style-type: disc;
    padding-right: 25px;
    margin: 15px 0;
    font-family: 'Vazir', sans-serif !important;
}
.product-description-section ul li {
    margin: 8px 0;
    line-height: 1.8rem;
    font-family: 'Vazir', sans-serif !important;
}

.product-description-section ul li span{
    font-family: 'Vazir', sans-serif !important;
}
.product-description-section ol {
    list-style-type: decimal;
    padding-left: 25px;
    margin: 15px 0;
    font-family: 'Vazir', sans-serif !important;
}
.product-description-section ol li {
    margin: 8px 0;
    line-height: 1.8rem;
    font-family: 'Vazir', sans-serif !important;
}
