.product_details h1, 
.product_details h2, 
.product_details h3,
.product_details h4, 
.product_details h5, 
.product_details h6 {
    font-weight: 700;
    line-height: 1.5;
    color: #222;
    
    /* فاصله از پاراگراف یا المان بالایی */
    margin-top: 2.5rem !important; 
    
    /* فاصله از پاراگراف پایینی (نزدیک‌تر شدن) */
    margin-bottom: 0.5rem !important; 
    
    /* اطمینان از نمایش بلاکی برای اعمال فاصله */
    display: block;
}

/* اگر اولین عنوان در ابتدای متن است، فاصله بالایی نداشته باشد */
.product_details h1:first-child,
.product_details h2:first-child,
.product_details h3:first-child {
    margin-top: 0 !important;
}

.product_details table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.5rem 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #f3f4f6 !important;
    direction: rtl !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.product_details thead tr {
    background-color: #1e293b !important; 
    color: #ffffff !important;
}

.product_details th {
    padding: 12px 20px !important;
    text-align: right !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

.product_details td {
    padding: 12px 20px !important;
    font-size: 14px !important;
    color: #4b5563 !important; /* Gray 600 */
    border-bottom: 1px solid #f1f5f9 !important;
}

.product_details td:first-child {
    background-color: #f8fafc !important; /* Slate 50 */
    font-weight: bold !important;
    color: #0f172a !important; /* Slate 900 */
    width: 30% !important;
}

.product_details tbody tr:nth-child(even) {
    background-color: #f9fafb !important;
}

.product_details tbody tr:hover {
    background-color: #eff6ff !important; /* Blue 50 */
}

.product_details tr:last-child td {
    border-bottom: none !important;
}

.product_details a, .article a {
    color: #007bff !important;
    text-decoration: underline !important;
}
