/*----------------------------------------*/
/*  Menu & mobile header icons
/*  آیکون‌های منو و هدر موبایل
/*----------------------------------------*/

/*
 * animate.css فونت iranyekan را روی a و button با !important می‌گذارد؛
 * آیکون‌های shofyicon و Font Awesome داخل منوی موبایل/آف‌کنواس خراب می‌شوند.
 */
i[class^="shofyicon-"],
i[class*=" shofyicon-"] {
    font-family: shofyicon !important;
    font-style: normal !important;
    font-weight: normal !important;
}

i[class^="shofyicon-"]::before,
i[class*=" shofyicon-"]::before {
    font-family: shofyicon !important;
    font-weight: normal !important;
}

.tp-main-menu-mobile i.fa-regular,
.tp-category-mobile-menu i.fa-regular,
.tp-offcanvas-category-toggle i.fa-regular {
    font-family: var(--tp-ff-fontawesome, "Font Awesome 6 Pro") !important;
    font-weight: 400 !important;
}

.tp-main-menu-mobile i.fa-solid,
.tp-category-mobile-menu i.fa-solid,
.tp-offcanvas-category-toggle i.fa-solid,
.tp-mobile-item-btn i.fa-solid {
    font-family: var(--tp-ff-fontawesome, "Font Awesome 6 Pro") !important;
    font-weight: 900 !important;
}

.tp-main-menu-mobile ul li > a i[class^="shofyicon-"],
.tp-main-menu-mobile ul li > a i[class*=" shofyicon-"],
.tp-category-mobile-menu ul li a i[class^="shofyicon-"],
.tp-category-mobile-menu ul li a i[class*=" shofyicon-"],
.tp-mobile-item-btn i[class^="shofyicon-"],
.tp-mobile-item-btn i[class*=" shofyicon-"],
.offcanvas__category nav ul li a i[class^="shofyicon-"],
.offcanvas__category nav ul li a i[class*=" shofyicon-"] {
    display: inline-block;
    min-width: 24px;
    font-size: 21px;
    line-height: 1;
    vertical-align: middle;
}

.tp-category-menu-btn::after,
.tp-category-menu nav ul li.has-dropdown > a:not(.mega-menu-title)::after,
.tp-header-side-menu ul li.has-dropdown > a::after,
.tp-offcanvas-category-toggle::after {
    font-family: var(--tp-ff-fontawesome, "Font Awesome 6 Pro") !important;
    font-weight: 400;
}

[dir="rtl"] .tp-main-menu-mobile ul li > a > i,
[dir="rtl"] .tp-category-mobile-menu ul li a > i {
    margin-right: 0;
    margin-left: 13px;
}

/*----------------------------------------*/
/*  Shop grid: equal card & image heights
/*  چیدمان شبکه فروشگاه: هم‌ارتفاع کردن کارت‌ها و تصاویر
/*----------------------------------------*/

/* هر سلول گرید به ارتفاع کامل ستون کشیده شود تا کارت‌های یک ردیف هم‌قد شوند */
.tp-shop-items-wrapper .tp-product-grid-item-wrapper {
    display: flex;
    height: 100%;
}

.tp-shop-items-wrapper .tp-product-grid-item-wrapper > .tp-core-product {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tp-shop-items-wrapper .tp-product-grid-item-wrapper > .tp-core-product > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* یکسان‌سازی نسبت ابعاد و ارتفاع تصویر محصول در همه‌ی طرح‌ها (۱ تا ۴ و ۶) */
.tp-shop-items-wrapper .tp-product-grid-item-wrapper .tp-product-thumb img,
.tp-shop-items-wrapper .tp-product-grid-item-wrapper .tp-product-thumb-2 img,
.tp-shop-items-wrapper .tp-product-grid-item-wrapper .tp-product-thumb-3 img,
.tp-shop-items-wrapper .tp-product-grid-item-wrapper .tp-product-thumb-4 img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* طرح ۵ از تصویر پس‌زمینه استفاده می‌کند؛ ارتفاع ثابت بدهیم */
.tp-shop-items-wrapper .tp-product-grid-item-wrapper .tp-category-thumb-4 {
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* محتوای پایین کارت (عنوان/قیمت) به پایین چسبیده تا لبه‌ها هم‌تراز شوند */
.tp-shop-items-wrapper .tp-product-grid-item-wrapper .tp-product-content-2,
.tp-shop-items-wrapper .tp-product-grid-item-wrapper .tp-product-content-3,
.tp-shop-items-wrapper .tp-product-grid-item-wrapper .tp-product-content-4 {
    margin-top: auto;
}

/*----------------------------------------*/
/*  Compare table: design + RTL + responsive
/*  مقایسه محصولات: طراحی، راست‌چین و ریسپانسیو
/*----------------------------------------*/

.tp-woo-myaccount-content,
.woocommerce-MyAccount-content,
.entry-content,
.tp-page-content,
.elementor-widget-shortcode .elementor-widget-container,
[class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

/* ---- صفحه مقایسه [woosc_list] ---- */
.woosc_list,
.woosc-page {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    border: 1px solid rgba(1, 15, 28, 0.08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(1, 15, 28, 0.04);
}

.woosc_list .woosc_table,
.woosc-page .woosc_table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.woosc_list .woosc_table th,
.woosc_list .woosc_table td,
.woosc-page .woosc_table th,
.woosc-page .woosc_table td {
    min-width: 160px;
    max-width: 240px;
    padding: 16px 18px;
    vertical-align: middle;
    text-align: start !important;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tp-common-black, #010f1c);
    background-color: #fff;
    border: 0;
    border-bottom: 1px solid rgba(1, 15, 28, 0.08);
    border-inline-end: 1px solid rgba(1, 15, 28, 0.06);
}

.woosc_list .woosc_table th:last-child,
.woosc_list .woosc_table td:last-child,
.woosc-page .woosc_table th:last-child,
.woosc-page .woosc_table td:last-child {
    border-inline-end: 0;
}

.woosc_list .woosc_table .th-label,
.woosc_list .woosc_table .td-label,
.woosc-page .woosc_table .th-label,
.woosc-page .woosc_table .td-label {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 120px;
    max-width: 150px;
    font-weight: 600;
    background-color: #f7f8fa !important;
    box-shadow: 4px 0 12px rgba(1, 15, 28, 0.04);
}

.woosc_list .woosc_table tbody tr:nth-child(2n) td,
.woosc-page .woosc_table tbody tr:nth-child(2n) td {
    background-color: #fcfcfd;
}

.woosc_list .woosc_table tbody tr:nth-child(2n) .td-label,
.woosc-page .woosc_table tbody tr:nth-child(2n) .td-label {
    background-color: #f5f6f8 !important;
}

.woosc_list .woosc_table tr.tr-highlight td,
.woosc-page .woosc_table tr.tr-highlight td {
    background-color: rgba(9, 137, 255, 0.08) !important;
}

.woosc_list .woosc_table .tr-image img,
.woosc-page .woosc_table .tr-image img {
    max-width: 120px;
    height: auto;
    margin-inline: auto;
    display: block;
    border-radius: 8px;
}

.woosc_list .woosc_table .tr-add_to_cart .button,
.woosc_list .woosc_table .tr-add_to_cart a.button,
.woosc-page .woosc_table .tr-add_to_cart .button,
.woosc-page .woosc_table .tr-add_to_cart a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.woosc_list .woosc-remove,
.woosc-page .woosc-remove,
.woosc_list .woosc-remove-all,
.woosc-page .woosc-remove-all {
    color: #6b7280;
    text-decoration: none !important;
    font-weight: 500;
}

.woosc_list .woosc-remove:hover,
.woosc-page .woosc-remove:hover,
.woosc_list .woosc-remove-all:hover,
.woosc-page .woosc-remove-all:hover {
    color: #ef4444;
}

.woosc_list .woosc-remove-all,
.woosc-page .woosc-remove-all {
    display: inline-block;
    margin: 14px 16px 16px;
}

/* ---- پاپ‌آپ مقایسه ---- */
#woosc-area .woosc-inner .woosc-table,
.woosc-area .woosc-inner .woosc-table {
    background-color: rgba(11, 12, 15, 0.55) !important;
    padding: 20px 20px 88px !important;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner {
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    background-color: #fff;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close {
    top: 0;
    right: 0;
    left: auto;
    z-index: 6;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close .woosc-table-close-icon,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close .woosc-table-close-icon {
    min-width: 48px;
    min-height: 48px;
    border-radius: 0 12px 0 10px;
    background-color: #f3f4f6 !important;
    transition: background-color 0.2s ease;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close .woosc-table-close-icon:hover,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close .woosc-table-close-icon:hover {
    background-color: #e8eaed !important;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items {
    height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table thead tr th,
#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr td,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table thead tr th,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr td {
    min-width: 180px;
    max-width: 260px;
    padding: 16px 18px !important;
    font-size: 14px;
    line-height: 1.5;
    text-align: start !important;
    text-transform: none !important;
    vertical-align: middle;
    color: var(--tp-common-black, #010f1c);
    border: 0 !important;
    border-bottom: 1px solid rgba(1, 15, 28, 0.08) !important;
    border-inline-end: 1px solid rgba(1, 15, 28, 0.06) !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table thead tr th,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table thead tr th {
    font-weight: 600;
    background-color: #f7f8fa !important;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table th:first-child,
#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table td:first-child,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table th:first-child,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table td:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    min-width: 120px;
    max-width: 150px;
    font-weight: 600;
    background-color: #f7f8fa !important;
    box-shadow: 4px 0 12px rgba(1, 15, 28, 0.04);
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr td:first-child,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr td:first-child {
    background-color: #fafbfc !important;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr:nth-child(2n) td,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr:nth-child(2n) td {
    background-color: #fcfcfd;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr:nth-child(2n) td:first-child,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr:nth-child(2n) td:first-child {
    background-color: #f5f6f8 !important;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-highlight td,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-highlight td {
    background-color: rgba(9, 137, 255, 0.08) !important;
    border-bottom-color: rgba(9, 137, 255, 0.2) !important;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-image img,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-image img {
    max-width: 120px;
    width: 100%;
    height: auto;
    margin-inline: auto;
    display: block;
    border-radius: 8px;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-add_to_cart .button,
#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-add_to_cart a.button,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-add_to_cart .button,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-add_to_cart a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-rating td .star-rating,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-rating td .star-rating {
    float: none !important;
    margin-inline: 0 auto 0 0;
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items .ps-scrollbar-x-rail,
#woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items .ps-scrollbar-y-rail,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items .ps-scrollbar-x-rail,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items .ps-scrollbar-y-rail {
    display: none !important;
}

/* ---- RTL ---- */
[dir="rtl"] .woosc_list .woosc_table .th-label,
[dir="rtl"] .woosc_list .woosc_table .td-label,
[dir="rtl"] .woosc-page .woosc_table .th-label,
[dir="rtl"] .woosc-page .woosc_table .td-label,
.rtl .woosc_list .woosc_table .th-label,
.rtl .woosc_list .woosc_table .td-label,
.rtl .woosc-page .woosc_table .th-label,
.rtl .woosc-page .woosc_table .td-label {
    left: auto !important;
    right: 0 !important;
    box-shadow: -4px 0 12px rgba(1, 15, 28, 0.04);
}

[dir="rtl"] #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table th:first-child,
[dir="rtl"] #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table td:first-child,
[dir="rtl"] .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table th:first-child,
[dir="rtl"] .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table td:first-child,
.rtl #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table th:first-child,
.rtl #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table td:first-child,
.rtl .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table th:first-child,
.rtl .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table td:first-child {
    left: auto !important;
    right: 0 !important;
    box-shadow: -4px 0 12px rgba(1, 15, 28, 0.04);
}

[dir="rtl"] #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close,
[dir="rtl"] .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close,
.rtl #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close,
.rtl .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close {
    right: auto;
    left: 0;
}

[dir="rtl"] #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close .woosc-table-close-icon,
[dir="rtl"] .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close .woosc-table-close-icon,
.rtl #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close .woosc-table-close-icon,
.rtl .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close .woosc-table-close-icon {
    border-radius: 12px 0 10px 0;
}

[dir="rtl"] #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-rating td .star-rating,
[dir="rtl"] .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-rating td .star-rating,
.rtl #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-rating td .star-rating,
.rtl .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-rating td .star-rating {
    margin-inline: 0 0 0 auto;
}

[dir="rtl"] .woosc-popup .woosc-popup-inner .woosc-popup-content .woosc-popup-content-inner .woosc-popup-close,
.rtl .woosc-popup .woosc-popup-inner .woosc-popup-content .woosc-popup-content-inner .woosc-popup-close {
    right: auto;
    left: -32px;
}

/* ---- Responsive ---- */
@media only screen and (max-width: 991px) {
    .woosc_list,
    .woosc-page {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x pan-y !important;
    }

    .woosc_list .woosc_table th,
    .woosc_list .woosc_table td,
    .woosc-page .woosc_table th,
    .woosc-page .woosc_table td,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table thead tr th,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr td,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table thead tr th,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr td {
        min-width: 130px !important;
        max-width: 170px !important;
        padding: 12px !important;
        font-size: 12px;
    }

    .woosc_list .woosc_table .th-label,
    .woosc_list .woosc_table .td-label,
    .woosc-page .woosc_table .th-label,
    .woosc-page .woosc_table .td-label,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table th:first-child,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table td:first-child,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table th:first-child,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table td:first-child {
        min-width: 92px !important;
        max-width: 110px !important;
    }

    .woosc_list .woosc_table .tr-image img,
    .woosc-page .woosc_table .tr-image img,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-image img,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-image img {
        max-width: 88px;
    }

    #woosc-area .woosc-inner .woosc-table,
    .woosc-area .woosc-inner .woosc-table {
        padding: 10px 10px 76px !important;
    }

    #woosc-area .woosc-inner .woosc-table .woosc-table-inner,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner {
        border-radius: 10px !important;
    }

    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close .woosc-table-close-icon,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-close .woosc-table-close-icon {
        min-width: 42px;
        min-height: 42px;
        background-size: 14px;
    }
}

@media only screen and (max-width: 575px) {
    .woosc_list,
    .woosc-page {
        border-radius: 8px;
    }

    .woosc_list .woosc_table th,
    .woosc_list .woosc_table td,
    .woosc-page .woosc_table th,
    .woosc-page .woosc_table td,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table thead tr th,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr td,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table thead tr th,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr td {
        min-width: 112px !important;
        max-width: 148px !important;
        padding: 10px !important;
        font-size: 12px;
    }

    .woosc_list .woosc_table .th-label,
    .woosc_list .woosc_table .td-label,
    .woosc-page .woosc_table .th-label,
    .woosc-page .woosc_table .td-label,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table th:first-child,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table td:first-child,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table th:first-child,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table td:first-child {
        min-width: 80px !important;
        max-width: 96px !important;
        font-size: 11px;
    }

    .woosc_list .woosc_table .tr-image img,
    .woosc-page .woosc_table .tr-image img,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-image img,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-image img {
        max-width: 72px;
    }

    #woosc-area .woosc-inner .woosc-table,
    .woosc-area .woosc-inner .woosc-table {
        padding: 6px 6px 70px !important;
    }

    .woosc_list .woosc_table .tr-add_to_cart .button,
    .woosc-page .woosc_table .tr-add_to_cart .button,
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table tbody tr.tr-add_to_cart .button {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ---- Compare visual polish ---- */
.woosc_list,
.woosc-page {
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.woosc_list .woosc_table thead tr th,
.woosc-page .woosc_table thead tr th,
#woosc-area .woosc-table-items table thead tr th,
.woosc-area .woosc-table-items table thead tr th {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f4f8 100%) !important;
    border-bottom: 2px solid rgba(1, 15, 28, 0.08) !important;
}

.woosc_list .woosc_table thead tr th a,
.woosc-page .woosc_table thead tr th a,
#woosc-area .woosc-table-items table thead tr th a,
.woosc-area .woosc-table-items table thead tr th a {
    color: var(--tp-common-black, #010f1c);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woosc_list .woosc_table thead tr th a:hover,
.woosc-page .woosc_table thead tr th a:hover,
#woosc-area .woosc-table-items table thead tr th a:hover,
.woosc-area .woosc-table-items table thead tr th a:hover {
    color: var(--tp-theme-primary, #0989ff);
}

.woosc_list .woosc_table .th-label,
.woosc_list .woosc_table .td-label,
.woosc-page .woosc_table .th-label,
.woosc-page .woosc_table .td-label,
#woosc-area .woosc-table-items table th:first-child,
#woosc-area .woosc-table-items table td:first-child,
.woosc-area .woosc-table-items table th:first-child,
.woosc-area .woosc-table-items table td:first-child {
    color: #374151;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.woosc_list .woosc_table tbody tr.tr-image td,
.woosc-page .woosc_table tbody tr.tr-image td,
#woosc-area .woosc-table-items table tbody tr.tr-image td,
.woosc-area .woosc-table-items table tbody tr.tr-image td {
    background-color: #f8fafc !important;
}

.woosc_list .woosc_table .tr-image img,
.woosc-page .woosc_table .tr-image img,
#woosc-area .woosc-table-items table tbody tr.tr-image img,
.woosc-area .woosc-table-items table tbody tr.tr-image img {
    border: 1px solid rgba(1, 15, 28, 0.08);
    box-shadow: 0 4px 14px rgba(1, 15, 28, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.woosc_list .woosc_table .tr-image a:hover img,
.woosc-page .woosc_table .tr-image a:hover img,
#woosc-area .woosc-table-items table tbody tr.tr-image a:hover img,
.woosc-area .woosc-table-items table tbody tr.tr-image a:hover img {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1, 15, 28, 0.1);
}

.woosc_list .woosc_table .tr-price,
.woosc-page .woosc_table .tr-price,
#woosc-area .woosc-table-items table tbody tr.tr-price td,
.woosc-area .woosc-table-items table tbody tr.tr-price td {
    font-weight: 600;
}

.woosc_list .woosc_table .tr-price .price,
.woosc-page .woosc_table .tr-price .price,
#woosc-area .woosc-table-items table tbody tr.tr-price .price,
.woosc-area .woosc-table-items table tbody tr.tr-price .price {
    color: var(--tp-theme-primary, #0989ff);
    font-size: 15px;
}

.woosc_list .woosc_table .tr-add_to_cart .button,
.woosc_list .woosc_table .tr-add_to_cart a.button,
.woosc-page .woosc_table .tr-add_to_cart .button,
.woosc-page .woosc_table .tr-add_to_cart a.button,
#woosc-area .woosc-table-items table tbody tr.tr-add_to_cart .button,
#woosc-area .woosc-table-items table tbody tr.tr-add_to_cart a.button,
.woosc-area .woosc-table-items table tbody tr.tr-add_to_cart .button,
.woosc-area .woosc-table-items table tbody tr.tr-add_to_cart a.button {
    background-color: var(--tp-theme-primary, #0989ff) !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(9, 137, 255, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.woosc_list .woosc_table .tr-add_to_cart .button:hover,
.woosc_list .woosc_table .tr-add_to_cart a.button:hover,
.woosc-page .woosc_table .tr-add_to_cart .button:hover,
.woosc-page .woosc_table .tr-add_to_cart a.button:hover,
#woosc-area .woosc-table-items table tbody tr.tr-add_to_cart .button:hover,
#woosc-area .woosc-table-items table tbody tr.tr-add_to_cart a.button:hover,
.woosc-area .woosc-table-items table tbody tr.tr-add_to_cart .button:hover,
.woosc-area .woosc-table-items table tbody tr.tr-add_to_cart a.button:hover {
    background-color: var(--tp-common-black, #010f1c) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 15, 28, 0.18);
}

.woosc_list .woosc_table tbody tr:hover td,
.woosc-page .woosc_table tbody tr:hover td,
#woosc-area .woosc-table-items table tbody tr:hover td,
.woosc-area .woosc-table-items table tbody tr:hover td {
    background-color: rgba(9, 137, 255, 0.03);
}

.woosc_list .woosc_table .woosc-remove,
.woosc-page .woosc_table .woosc-remove,
#woosc-area .woosc-table-items table .woosc-remove,
.woosc-area .woosc-table-items table .woosc-remove {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 2px 0;
    font-size: 12px;
    border-bottom: 1px dashed #d1d5db;
    cursor: pointer;
}

.woosc_list .woosc_table .woosc-remove:hover,
.woosc-page .woosc_table .woosc-remove:hover,
#woosc-area .woosc-table-items table .woosc-remove:hover,
.woosc-area .woosc-table-items table .woosc-remove:hover {
    border-bottom-color: #ef4444;
}

#woosc-area .woosc-inner .woosc-table,
.woosc-area .woosc-inner .woosc-table {
    background-color: rgba(1, 15, 28, 0.45) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#woosc-area .woosc-inner .woosc-table .woosc-table-inner,
.woosc-area .woosc-inner .woosc-table .woosc-table-inner {
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 60px rgba(1, 15, 28, 0.28);
}

#woosc-area .woosc-table-items table .woosc-table-settings,
.woosc-area .woosc-table-items table .woosc-table-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(1, 15, 28, 0.1);
    color: var(--tp-common-black, #010f1c) !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    text-transform: none !important;
    transition: all 0.2s ease;
}

#woosc-area .woosc-table-items table .woosc-table-settings:hover,
.woosc-area .woosc-table-items table .woosc-table-settings:hover {
    border-color: var(--tp-theme-primary, #0989ff);
    color: var(--tp-theme-primary, #0989ff) !important;
}

.woosc-area .woosc-inner .woosc-bar {
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 30px rgba(1, 15, 28, 0.18);
}

.woosc-area .woosc-inner .woosc-bar .woosc-bar-btn,
.woosc-area .woosc-inner .woosc-bar .woosc-bar-search,
.woosc-area .woosc-inner .woosc-bar .woosc-bar-print,
.woosc-area .woosc-inner .woosc-bar .woosc-bar-share,
.woosc-area .woosc-inner .woosc-bar .woosc-bar-remove,
.woosc-area .woosc-inner .woosc-bar .woosc-bar-filter {
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.woosc-area .woosc-inner .woosc-bar .woosc-bar-btn:hover,
.woosc-area .woosc-inner .woosc-bar .woosc-bar-search:hover,
.woosc-area .woosc-inner .woosc-bar .woosc-bar-print:hover,
.woosc-area .woosc-inner .woosc-bar .woosc-bar-share:hover,
.woosc-area .woosc-inner .woosc-bar .woosc-bar-remove:hover {
    transform: translateY(-1px);
}

.woosc-popup.woosc-settings .woosc-popup-content,
.woosc-popup.woosc-search .woosc-popup-content {
    border-radius: 14px !important;
    box-shadow: 0 20px 50px rgba(1, 15, 28, 0.2);
    padding: 22px !important;
}

.woosc-popup .woosc-settings-fields {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.woosc-popup .woosc-settings-fields li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border: 1px solid rgba(1, 15, 28, 0.08);
    border-radius: 8px;
    background: #fafbfc;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.woosc-popup .woosc-settings-fields li:hover {
    border-color: rgba(9, 137, 255, 0.35);
    background: #fff;
}

.woosc-popup .woosc-settings-tools li label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
}

.woosc_list .woosc-no-result,
.woosc-page .woosc-no-result,
#woosc-area .woosc-no-result,
.woosc-area .woosc-no-result {
    padding: 48px 24px;
    text-align: center;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}

/* ---- Desktop layout + text fields (description/content) ---- */
@media only screen and (min-width: 992px) {
    .woosc_list .woosc_table th:not(.th-label):not(.td-label),
    .woosc-page .woosc_table th:not(.th-label):not(.td-label),
    #woosc-area .woosc-table-items table thead tr th:not(:first-child),
    .woosc-area .woosc-table-items table thead tr th:not(:first-child) {
        min-width: 220px !important;
        max-width: 300px !important;
        padding: 18px 20px !important;
    }

    .woosc_list .woosc_table td:not(.th-label):not(.td-label),
    .woosc-page .woosc_table td:not(.th-label):not(.td-label),
    #woosc-area .woosc-table-items table tbody tr td:not(:first-child),
    .woosc-area .woosc-table-items table tbody tr td:not(:first-child) {
        min-width: 200px !important;
        max-width: 280px !important;
        padding: 16px 20px !important;
    }

    #woosc-area .woosc-inner .woosc-table .woosc-table-inner,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner {
        max-height: calc(100vh - 120px);
        max-height: calc(100dvh - 120px);
    }
}

.woosc_list .woosc_table tr.tr-description td,
.woosc_list .woosc_table tr.tr-content td,
.woosc_list .woosc_table tr.tr-additional td,
.woosc-page .woosc_table tr.tr-description td,
.woosc-page .woosc_table tr.tr-content td,
.woosc-page .woosc_table tr.tr-additional td,
#woosc-area .woosc-table-items table tr.tr-description td,
#woosc-area .woosc-table-items table tr.tr-content td,
#woosc-area .woosc-table-items table tr.tr-additional td,
.woosc-area .woosc-table-items table tr.tr-description td,
.woosc-area .woosc-table-items table tr.tr-content td,
.woosc-area .woosc-table-items table tr.tr-additional td {
    vertical-align: top !important;
}

.woosc_list .woosc_table tr.tr-description td:not(.th-label):not(.td-label):not(:first-child),
.woosc_list .woosc_table tr.tr-content td:not(.th-label):not(.td-label):not(:first-child),
.woosc-page .woosc_table tr.tr-description td:not(.th-label):not(.td-label):not(:first-child),
.woosc-page .woosc_table tr.tr-content td:not(.th-label):not(.td-label):not(:first-child),
#woosc-area .woosc-table-items table tr.tr-description td:not(:first-child),
#woosc-area .woosc-table-items table tr.tr-content td:not(:first-child),
.woosc-area .woosc-table-items table tr.tr-description td:not(:first-child),
.woosc-area .woosc-table-items table tr.tr-content td:not(:first-child) {
    min-width: 260px !important;
    max-width: 380px !important;
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
}

@media only screen and (min-width: 992px) {
    .woosc_list .woosc_table tr.tr-description td:not(.th-label):not(.td-label):not(:first-child),
    .woosc_list .woosc_table tr.tr-content td:not(.th-label):not(.td-label):not(:first-child),
    .woosc-page .woosc_table tr.tr-description td:not(.th-label):not(.td-label):not(:first-child),
    .woosc-page .woosc_table tr.tr-content td:not(.th-label):not(.td-label):not(:first-child),
    #woosc-area .woosc-table-items table tr.tr-description td:not(:first-child),
    #woosc-area .woosc-table-items table tr.tr-content td:not(:first-child),
    .woosc-area .woosc-table-items table tr.tr-description td:not(:first-child),
    .woosc-area .woosc-table-items table tr.tr-content td:not(:first-child) {
        min-width: 300px !important;
        max-width: 420px !important;
    }
}

.shofy-compare-text {
    display: block;
    margin: 0;
    text-align: start;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.shofy-compare-attrs {
    font-size: 13px;
    line-height: 1.55;
}

.shofy-compare-attrs table.shop_attributes,
.shofy-compare-attrs .woocommerce-product-attributes {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.shofy-compare-attrs table.shop_attributes th,
.shofy-compare-attrs table.shop_attributes td,
.shofy-compare-attrs .woocommerce-product-attributes th,
.shofy-compare-attrs .woocommerce-product-attributes td {
    padding: 8px 10px !important;
    border: 1px solid rgba(1, 15, 28, 0.08) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    vertical-align: top;
    word-break: break-word;
}

.shofy-compare-attrs table.shop_attributes th,
.shofy-compare-attrs .woocommerce-product-attributes th {
    width: 42%;
    font-weight: 600;
    background: #f8fafc;
}

.woosc_list .woosc_table tr.tr-description td p,
.woosc_list .woosc_table tr.tr-content td p,
.woosc-page .woosc_table tr.tr-description td p,
.woosc-page .woosc_table tr.tr-content td p,
#woosc-area .woosc-table-items table tr.tr-description td p,
#woosc-area .woosc-table-items table tr.tr-content td p,
.woosc-area .woosc-table-items table tr.tr-description td p,
.woosc-area .woosc-table-items table tr.tr-content td p {
    margin: 0 0 8px;
}

.woosc_list .woosc_table tr.tr-content td img,
.woosc_list .woosc_table tr.tr-description td img,
.woosc-page .woosc_table tr.tr-content td img,
.woosc-page .woosc_table tr.tr-description td img,
#woosc-area .woosc-table-items table tr.tr-content td img,
#woosc-area .woosc-table-items table tr.tr-description td img,
.woosc-area .woosc-table-items table tr.tr-content td img,
.woosc-area .woosc-table-items table tr.tr-description td img {
    display: none;
}

/* ---- Compare responsive enhancements ---- */
.woosc_list,
.woosc-page {
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(9, 137, 255, 0.45) transparent;
}

.woosc_list::-webkit-scrollbar,
.woosc-page::-webkit-scrollbar,
#woosc-area .woosc-table-items::-webkit-scrollbar,
.woosc-area .woosc-table-items::-webkit-scrollbar {
    height: 6px;
}

.woosc_list::-webkit-scrollbar-thumb,
.woosc-page::-webkit-scrollbar-thumb,
#woosc-area .woosc-table-items::-webkit-scrollbar-thumb,
.woosc-area .woosc-table-items::-webkit-scrollbar-thumb {
    background: rgba(9, 137, 255, 0.45);
    border-radius: 999px;
}

@media only screen and (max-width: 991px) {
    #woosc-area .woosc-inner .woosc-table .woosc-table-inner,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner {
        max-height: calc(100vh - 88px) !important;
        max-height: calc(100dvh - 88px) !important;
    }

    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items {
        max-height: calc(100vh - 88px) !important;
        max-height: calc(100dvh - 88px) !important;
    }

    #woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table thead tr th,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner .woosc-table-items table thead tr th {
        position: sticky;
        top: 0;
        z-index: 5;
        background: #f1f4f8 !important;
        box-shadow: 0 2px 0 rgba(1, 15, 28, 0.06);
    }

    .woosc_list .woosc_table tr.tr-description td:not(.th-label):not(.td-label):not(:first-child),
    .woosc_list .woosc_table tr.tr-content td:not(.th-label):not(.td-label):not(:first-child),
    .woosc-page .woosc_table tr.tr-description td:not(.th-label):not(.td-label):not(:first-child),
    .woosc-page .woosc_table tr.tr-content td:not(.th-label):not(.td-label):not(:first-child),
    #woosc-area .woosc-table-items table tr.tr-description td:not(:first-child),
    #woosc-area .woosc-table-items table tr.tr-content td:not(:first-child),
    .woosc-area .woosc-table-items table tr.tr-description td:not(:first-child),
    .woosc-area .woosc-table-items table tr.tr-content td:not(:first-child) {
        min-width: 180px !important;
        max-width: 220px !important;
        max-height: 140px;
        overflow-y: auto;
        font-size: 12px;
        line-height: 1.6;
    }

    .woosc-area .woosc-inner .woosc-bar {
        border-radius: 12px 12px 0 0;
    }
}

@media only screen and (max-width: 575px) {
    #woosc-area .woosc-inner .woosc-table,
    .woosc-area .woosc-inner .woosc-table {
        padding: 6px 6px 64px !important;
    }

    #woosc-area .woosc-inner .woosc-table .woosc-table-inner,
    .woosc-area .woosc-inner .woosc-table .woosc-table-inner {
        max-height: calc(100vh - 72px) !important;
        max-height: calc(100dvh - 72px) !important;
        border-radius: 8px !important;
    }

    .woosc_list .woosc_table thead tr th a,
    .woosc-page .woosc_table thead tr th a,
    #woosc-area .woosc-table-items table thead tr th a,
    .woosc-area .woosc-table-items table thead tr th a {
        font-size: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .woosc_list .woosc_table tr.tr-description td:not(.th-label):not(.td-label):not(:first-child),
    .woosc_list .woosc_table tr.tr-content td:not(.th-label):not(.td-label):not(:first-child),
    .woosc-page .woosc_table tr.tr-description td:not(.th-label):not(.td-label):not(:first-child),
    .woosc-page .woosc_table tr.tr-content td:not(.th-label):not(.td-label):not(:first-child),
    #woosc-area .woosc-table-items table tr.tr-description td:not(:first-child),
    #woosc-area .woosc-table-items table tr.tr-content td:not(:first-child),
    .woosc-area .woosc-table-items table tr.tr-description td:not(:first-child),
    .woosc-area .woosc-table-items table tr.tr-content td:not(:first-child) {
        min-width: 150px !important;
        max-width: 190px !important;
        max-height: 110px;
    }
}

/*----------------------------------------*/
/*  Single product tabs (responsive)
/*  تب‌های اطلاعات محصول
/*----------------------------------------*/

.tp-product-details-tab-nav .tp-product-details-tabs {
    padding-left: 0 !important;
    background-color: transparent !important;
}

.tp-product-details-tab-nav .tp-product-details-tab-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tp-product-details-tab-nav .tp-product-details-tab-scroll::-webkit-scrollbar {
    display: none;
}

@media only screen and (max-width: 991px) {
    .tp-product-details-tab-nav .tp-product-details-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        width: max-content;
        min-width: 100%;
        padding-bottom: 0;
    }

    .tp-product-details-tab-nav .tp-product-details-tabs .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 17px;
    }

    .tp-product-details-tab-nav .tp-product-details-tabs .nav-link:not(:first-child) {
        margin-left: 28px;
    }

    .tp-product-details-bottom.pb-140 {
        padding-bottom: 80px !important;
    }

    .tp-product-details-tab-nav .tp-product-details-desc-wrapper.pt-80 {
        padding-top: 40px !important;
    }
}

@media only screen and (max-width: 767px) {
    .tp-product-details-tab-nav .tp-product-details-tabs span#productTabMarker {
        display: none !important;
    }

    .tp-product-details-tab-nav .tp-product-details-tabs .nav-link {
        font-size: 15px;
    }

    .tp-product-details-tab-nav .tp-product-details-tabs .nav-link:not(:first-child) {
        margin-left: 18px;
    }

    .tp-product-details-tab-nav .tp-product-details-tabs .nav-link::after {
        position: absolute;
        content: "";
        left: 0;
        right: auto;
        bottom: -1px;
        width: 0%;
        height: 2px;
        background-color: var(--tp-common-black);
        transition: all 0.3s ease-in-out;
    }

    .tp-product-details-tab-nav .tp-product-details-tabs .nav-link.active::after,
    .tp-product-details-tab-nav .tp-product-details-tabs .nav-link:hover::after {
        width: 100%;
    }
}

@media only screen and (min-width: 768px) {
    .tp-product-details-tab-nav .tp-product-details-tabs .nav-link.active::after,
    .tp-product-details-tab-nav .tp-product-details-tabs .nav-link:hover::after {
        display: none;
    }
}

@media only screen and (max-width: 575px) {
    .tp-product-details-bottom.pb-140 {
        padding-bottom: 60px !important;
    }

    .tp-product-details-tab-nav .tp-product-details-desc-wrapper.pt-80 {
        padding-top: 28px !important;
    }
}

[dir="rtl"] .tp-product-details-tab-nav .tp-product-details-tabs .nav-link:not(:first-child) {
    margin-left: 0;
    margin-right: 40px;
}

@media only screen and (max-width: 991px) {
    [dir="rtl"] .tp-product-details-tab-nav .tp-product-details-tabs .nav-link:not(:first-child) {
        margin-right: 28px;
    }
}

@media only screen and (max-width: 767px) {
    [dir="rtl"] .tp-product-details-tab-nav .tp-product-details-tabs .nav-link:not(:first-child) {
        margin-right: 18px;
    }

    [dir="rtl"] .tp-product-details-tab-nav .tp-product-details-tabs .nav-link::after {
        left: auto;
        right: 0;
    }
}

/* Instagram widget: clickable image popup (layout 1) */
.tp-instagram-item > .popup-image {
    position: relative;
}

.tp-instagram-item > .popup-image .tp-instagram-icon span {
    display: inline-block;
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 44px;
    color: var(--tp-common-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
    border-radius: 8px;
}

.tp-instagram-item:hover > .popup-image .tp-instagram-icon span {
    background-color: var(--tp-common-white);
    border-color: var(--tp-common-white);
    color: var(--tp-common-black);
}

/*----------------------------------------*/
/*  Single post (responsive)
/*  صفحه تک‌نوشته
/*----------------------------------------*/

/* min-width:0 فقط برای ستون‌ها — max-width روی .container باعث شکستن عرض bootstrap می‌شود */
.tp-postbox-details-area [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.tp-postbox-details-content,
.postbox__text,
.tp-postbox-details-article-inner {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.tp-postbox-details-thumb img,
.postbox__text img,
.tp-postbox-details-content img,
.tp-postbox-details-article-inner img,
.tp-postbox-slider-item img {
    max-width: 100%;
    height: auto;
}

.postbox__text iframe,
.tp-postbox-details-content iframe,
.tp-postbox-details-article-inner iframe,
.tp-postbox-details-audio iframe {
    max-width: 100%;
}

.postbox__text table,
.tp-postbox-details-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* animate.css keeps 100px side padding below 992px on RTL */
@media only screen and (max-width: 991px) {
    .tp-postbox-details-main-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* animate.css forces slider arrows off-screen on mobile */
.tp-postbox-nav button {
    left: 15px !important;
}

.tp-postbox-nav button.tp-postbox-slider-button-next {
    right: 15px !important;
    left: auto !important;
}

[dir="rtl"] .tp-postbox-nav button {
    right: 15px !important;
    left: auto !important;
}

[dir="rtl"] .tp-postbox-nav button.tp-postbox-slider-button-next {
    left: 15px !important;
    right: auto !important;
}

@media only screen and (max-width: 767px) {
    .tp-postbox-details-area.pt-95 {
        padding-top: 50px !important;
    }

    .tp-postbox-details-area.pb-120 {
        padding-bottom: 60px !important;
    }

    .tp-postbox-details-title {
        font-size: 28px !important;
        line-height: 1.2;
    }

    .tp-postbox-details-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
        margin-bottom: 30px !important;
    }

    .tp-postbox-details-meta span:not(:last-child) {
        margin-right: 0;
        padding-right: 0;
    }

    .tp-postbox-details-meta span:not(:last-child)::after {
        display: none;
    }

    .tp-postbox-details-thumb img {
        margin-bottom: 30px;
    }

    .tp-postbox-details-audio {
        height: auto;
        min-height: 220px;
    }

    .tp-postbox-details-author {
        flex-direction: column;
        text-align: center;
    }

    .tp-postbox-details-author-thumb img {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .tp-sidebar-wrapper.tp-sidebar-ml--24 {
        margin-top: 40px;
    }
}

@media only screen and (max-width: 575px) {
    .tp-postbox-details-title {
        font-size: 24px !important;
    }

    .tp-postbox-details-navigation-item.text-end {
        text-align: start !important;
        justify-content: flex-start !important;
    }

    .gallery-item {
        max-width: 50% !important;
    }
}

/* Post style 2 (single.php alternate layout) */
.postbox__thumb.postbox__thumb-overlay {
    width: 100%;
    min-height: 280px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.postbox__style-2 .postbox__title {
    font-size: clamp(24px, 5vw, 48px);
    line-height: 1.2;
    word-break: break-word;
}

.postbox__style-2 .postbox__main-wrapper,
.postbox__style-2 .postbox__comment-wrapper .container {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media only screen and (max-width: 767px) {
    .postbox__style-2 .postbox__thumb.postbox__thumb-overlay {
        min-height: 220px;
        margin-bottom: 30px !important;
    }

    .postbox__style-2 .postbox__main-wrapper.pt-75 {
        padding-top: 40px !important;
    }

    .postbox__style-2 .postbox__comment-wrapper.pt-90 {
        padding-top: 50px !important;
    }
}
