/*----------------------------------------*/
/*  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;
    }
}

/*----------------------------------------*/
/*  My Account — modern dashboard layout  */
/*----------------------------------------*/

body.woocommerce-account.logged-in .entry-content > .woocommerce {
    max-width: none;
}

.shofy-myaccount-shell {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 0 60px;
}

.shofy-myaccount-layout {
    display: grid;
    grid-template-columns: minmax(260px, 290px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ── Sidebar card ── */
.shofy-myaccount-sidebar {
    background: var(--tp-common-white, #fff);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(1, 15, 28, 0.06);
    border: 1px solid var(--tp-border-primary, #EAEBED);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.shofy-myaccount-profile {
    padding: 28px 24px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--tp-grey-1, #F6F7F9) 0%, var(--tp-common-white, #fff) 100%);
    border-bottom: 1px solid var(--tp-border-primary, #EAEBED);
}

.shofy-myaccount-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--tp-common-white, #fff);
    box-shadow: 0 6px 18px rgba(1, 15, 28, 0.1);
    display: block;
    text-decoration: none;
}

a.shofy-myaccount-avatar:hover .shofy-myaccount-avatar-overlay {
    opacity: 1;
}

.shofy-myaccount-avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 15, 28, 0.45);
    color: var(--tp-common-white, #fff);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.shofy-myaccount-avatar-overlay i {
    font-family: shofyicon !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-size: 22px;
    line-height: 1;
}

.shofy-myaccount-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.shofy-myaccount-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--tp-heading-primary, #010F1C);
    margin: 0 0 6px;
    line-height: 1.4;
}

.shofy-myaccount-phone,
.shofy-myaccount-email {
    font-size: 14px;
    color: var(--tp-text-1, #767A7D);
    margin: 0;
    line-height: 1.5;
}

.shofy-myaccount-phone {
    direction: ltr;
    unicode-bidi: embed;
}

/* ── Vertical navigation ── */
body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 16px !important;
    margin: 0 !important;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li {
    width: 100%;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li:last-child a {
    border-right: none;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a {
    display: flex;
    align-items: center;
    flex-direction: row;
    direction: rtl;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    margin: 0 !important;
    border: none !important;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--tp-text-body, #55585B);
    text-decoration: none;
    text-align: right;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Icon font fixes (animate.css overrides i tags) */
body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a i[class^="shofyicon-"],
body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a i[class*=" shofyicon-"],
.shofy-myaccount-avatar-overlay i[class^="shofyicon-"],
.shofy-myaccount-avatar-overlay i[class*=" shofyicon-"] {
    font-family: shofyicon !important;
    font-style: normal !important;
    font-weight: normal !important;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a i.fa-solid,
body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a i.fa-regular,
body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a i.fa-light {
    font-family: var(--fa-style-family, "Font Awesome 6 Pro") !important;
    font-style: normal !important;
    font-weight: 900 !important;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a i.fa-regular,
body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a i.fa-light {
    font-weight: 400 !important;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a i {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    font-size: 17px;
    line-height: 1;
    opacity: 0.85;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a span {
    flex: 1;
    min-width: 0;
    text-align: right;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li:not(.is-active) a:hover {
    background: var(--tp-grey-1, #F6F7F9);
    color: var(--tp-heading-primary, #010F1C);
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li.is-active a,
body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li.is-active a:hover {
    background-color: var(--tp-theme-primary, #0989FF) !important;
    border-color: transparent !important;
    color: var(--tp-common-white, #fff) !important;
    box-shadow: 0 4px 14px rgba(9, 137, 255, 0.28);
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--tp-pink-1, #FD4B6B);
}

body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout:not(.is-active) a:hover {
    background: #fff5f5;
    color: var(--tp-pink-1, #FD4B6B);
}

/* ── Main content card ── */
.shofy-myaccount-main {
    background: var(--tp-common-white, #fff);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(1, 15, 28, 0.06);
    border: 1px solid var(--tp-border-primary, #EAEBED);
    padding: 32px 36px;
    min-width: 0;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-content > p:first-child {
    font-size: 15px;
    line-height: 1.8;
    color: var(--tp-text-body, #55585B);
    margin-bottom: 24px;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-login-title,
body.woocommerce-account.logged-in .tp-woo-myaccount-order-view-title,
body.woocommerce-account.logged-in .tp-woo-myaccount-address-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--tp-heading-primary, #010F1C);
    margin-bottom: 20px;
}

/* ── Modern form fields ── */
body.woocommerce-account.logged-in .tp-woo-input-field label {
    font-size: 15px;
    font-weight: 600;
    color: var(--tp-text-body, #55585B);
    margin-bottom: 10px;
}

body.woocommerce-account.logged-in .tp-woo-input-field input[type]:not([type="checkbox"], [type="radio"]),
body.woocommerce-account.logged-in .tp-woo-input-field textarea,
body.woocommerce-account.logged-in .tp-woo-input-field .select2-container--default .select2-selection--single {
    border: 1.5px solid var(--tp-border-primary, #EAEBED) !important;
    border-radius: 14px !important;
    background: var(--tp-grey-1, #F6F7F9) !important;
    padding: 14px 18px !important;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.woocommerce-account.logged-in .tp-woo-input-field input[type]:not([type="checkbox"], [type="radio"]):focus,
body.woocommerce-account.logged-in .tp-woo-input-field textarea:focus {
    border-color: var(--tp-theme-primary, #0989FF) !important;
    box-shadow: 0 0 0 3px rgba(9, 137, 255, 0.12);
    background: var(--tp-common-white, #fff) !important;
    outline: none;
}

body.woocommerce-account.logged-in .tp-woo-input-field fieldset {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--tp-border-primary, #EAEBED);
    border-radius: 16px;
    background: var(--tp-grey-1, #F6F7F9);
}

body.woocommerce-account.logged-in .tp-woo-input-field fieldset legend {
    font-size: 16px;
    font-weight: 700;
    color: var(--tp-heading-primary, #010F1C);
    padding: 0 8px;
}

/* ── Buttons ── */
body.woocommerce-account.logged-in .button,
body.woocommerce-account.logged-in .tp-btn,
body.woocommerce-account.logged-in .woocommerce-Button {
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 14px 28px !important;
    height: auto !important;
    line-height: 1.5 !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.woocommerce-account.logged-in .button:not(.cancel):not(.alt),
body.woocommerce-account.logged-in .tp-btn,
body.woocommerce-account.logged-in .woocommerce-Button.button {
    background-color: var(--tp-theme-primary, #0989FF) !important;
    color: var(--tp-common-white, #fff) !important;
    border: none !important;
}

body.woocommerce-account.logged-in .button:not(.cancel):not(.alt):hover,
body.woocommerce-account.logged-in .tp-btn:hover,
body.woocommerce-account.logged-in .woocommerce-Button.button:hover {
    background-color: var(--tp-common-black, #010F1C) !important;
    color: var(--tp-common-white, #fff) !important;
    transform: translateY(-1px);
}

/* ── Order table ── */
body.woocommerce-account.logged-in .tp-woo-myaccount-order-table {
    border: 1px solid var(--tp-border-primary, #EAEBED);
    border-radius: 16px;
    overflow: hidden;
    background: var(--tp-common-white, #fff);
}

body.woocommerce-account.logged-in .tp-woo-myaccount-order-table table.shop_table {
    margin: 0;
    border: none;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-order-table table.shop_table thead {
    background: var(--tp-grey-1, #F6F7F9);
}

body.woocommerce-account.logged-in .tp-woo-myaccount-order-table table.shop_table thead tr th {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-heading-primary, #010F1C);
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--tp-border-primary, #EAEBED);
}

body.woocommerce-account.logged-in .tp-woo-myaccount-order-table table.shop_table tbody tr td {
    padding: 18px 20px !important;
    border-bottom: 1px solid var(--tp-border-primary, #EAEBED);
    vertical-align: middle;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-order-table table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-order-table table.shop_table tbody tr:hover td {
    background: rgba(246, 247, 249, 0.6);
}

body.woocommerce-account.logged-in .tp-woo-myaccount-order-table table.shop_table tbody tr td.woocommerce-orders-table__cell-order-actions a,
body.woocommerce-account.logged-in .tp-woo-myaccount-order-table table.shop_table tbody tr td.download-file a {
    border-radius: 10px;
    padding: 8px 16px !important;
    border: 1.5px solid var(--tp-border-primary, #EAEBED) !important;
    background: var(--tp-common-white, #fff);
}

body.woocommerce-account.logged-in .tp-woo-myaccount-order-table table.shop_table tbody tr td.woocommerce-orders-table__cell-order-status span {
    border-radius: 999px;
    padding: 6px 14px !important;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-order-status {
    border-top: none;
    border-radius: 14px;
    border: 1px solid rgba(255, 179, 66, 0.35);
    background: rgba(255, 179, 66, 0.1);
    padding: 16px 22px;
    margin-bottom: 28px;
}

body.woocommerce-account.logged-in .tp-woo-myaccount-address-msg.woocommerce-message {
    border-radius: 14px;
    border: 1px solid rgba(49, 183, 87, 0.25);
    background: rgba(49, 183, 87, 0.08);
    padding: 16px 20px;
    margin-bottom: 28px;
}

/* ── Address cards ── */
body.woocommerce-account.logged-in .profile__address-item {
    background: var(--tp-grey-1, #F6F7F9);
    border: 1px solid var(--tp-border-primary, #EAEBED);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.woocommerce-account.logged-in .profile__address-item:hover {
    box-shadow: 0 8px 24px rgba(1, 15, 28, 0.06);
    border-color: rgba(9, 137, 255, 0.2);
}

body.woocommerce-account.logged-in .profile__address-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tp-heading-primary, #010F1C);
    margin-bottom: 0;
}

body.woocommerce-account.logged-in .profile__address-header .edit {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-theme-primary, #0989FF) !important;
    background: rgba(9, 137, 255, 0.08);
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

body.woocommerce-account.logged-in .profile__address-header .edit:hover {
    background: rgba(9, 137, 255, 0.15);
    text-decoration: none !important;
}

body.woocommerce-account.logged-in .profile__address-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--tp-text-body, #55585B);
}

/* ── Notices & pagination ── */
body.woocommerce-account.logged-in .woocommerce-info,
body.woocommerce-account.logged-in .woocommerce-message,
body.woocommerce-account.logged-in .woocommerce-error {
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 24px;
}

body.woocommerce-account.logged-in .woocommerce-pagination {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Avatar upload field (edit account) ── */
.shofy-myaccount-avatar-field {
    margin-bottom: 28px;
    padding: 24px;
    border: 1px solid var(--tp-border-primary, #EAEBED);
    border-radius: 16px;
    background: var(--tp-grey-1, #F6F7F9);
}

.shofy-myaccount-avatar-field-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--tp-heading-primary, #010F1C);
    margin-bottom: 16px;
}

.shofy-myaccount-avatar-field-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: row-reverse;
}

.shofy-myaccount-avatar-preview-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--tp-common-white, #fff);
    box-shadow: 0 4px 14px rgba(1, 15, 28, 0.08);
}

.shofy-myaccount-avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shofy-myaccount-avatar-actions {
    flex: 1;
    text-align: right;
}

.shofy-myaccount-avatar-upload-btn,
.shofy-myaccount-avatar-remove-btn {
    margin-left: 8px !important;
    margin-bottom: 8px !important;
}

.shofy-myaccount-avatar-hint {
    font-size: 13px;
    color: var(--tp-text-1, #767A7D);
    margin: 8px 0 0;
    line-height: 1.6;
}

/* ── RTL adjustments ── */
[dir="rtl"] body.woocommerce-account.logged-in .profile__address-title {
    margin-right: 0;
    margin-left: 22px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .shofy-myaccount-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shofy-myaccount-sidebar {
        position: static;
    }

    body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 12px 16px 16px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul::-webkit-scrollbar {
        display: none;
    }

    body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li {
        width: auto;
        flex-shrink: 0;
    }

    body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a {
        white-space: nowrap;
        padding: 10px 16px;
    }

    body.woocommerce-account.logged-in .tp-woo-myaccount-navigation ul li a span {
        flex: none;
    }

    .shofy-myaccount-profile {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: start;
        padding: 20px;
    }

    .shofy-myaccount-avatar {
        width: 64px;
        height: 64px;
        margin: 0;
        flex-shrink: 0;
    }

    .shofy-myaccount-name {
        font-size: 16px;
    }

    .shofy-myaccount-main {
        padding: 24px 20px;
    }
}

@media (max-width: 575px) {
    .shofy-myaccount-shell {
        padding-bottom: 40px;
    }

    .shofy-myaccount-main {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .shofy-myaccount-sidebar {
        border-radius: 16px;
    }
}

/* Image Search (HeroAI) */
.shofy-image-search {
    margin-top: 24px;
    text-align: center;
}

.shofy-image-search-divider {
    position: relative;
    margin: 20px 0;
}

.shofy-image-search-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e5;
}

.shofy-image-search-divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: var(--tp-common-white, #fff);
    color: #888;
    font-size: 14px;
}

.shofy-image-search-upload {
    position: relative;
}

.shofy-image-search-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.shofy-image-search-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    border: 2px dashed #d5d5d5;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.shofy-image-search-label:hover {
    border-color: var(--tp-theme-primary, #0989ff);
    background: rgba(9, 137, 255, 0.03);
}

.shofy-image-search-icon {
    color: var(--tp-theme-primary, #0989ff);
}

.shofy-image-search-text {
    font-weight: 600;
    font-size: 16px;
    color: var(--tp-common-black, #111);
}

.shofy-image-search-hint {
    font-size: 13px;
    color: #888;
}

.shofy-image-search-upload.has-preview .shofy-image-search-label {
    display: none;
}

.shofy-image-search-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.shofy-image-search-preview img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e5e5e5;
}

.shofy-image-search-clear {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.shofy-image-search-status {
    margin: 12px 0;
    font-size: 14px;
    color: var(--tp-theme-primary, #0989ff);
}

.shofy-image-search-status.is-error {
    color: #e74c3c;
}

.shofy-image-search-status.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.shofy-is-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e5e5;
    border-top-color: var(--tp-theme-primary, #0989ff);
    border-radius: 50%;
    animation: shofy-is-spin 0.8s linear infinite;
}

@keyframes shofy-is-spin {
    to { transform: rotate(360deg); }
}

.shofy-image-search-results {
    text-align: right;
    margin-top: 20px;
    max-height: 420px;
    overflow-y: auto;
}

.shofy-is-title {
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.shofy-is-detected {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    text-align: center;
}

.shofy-is-empty {
    text-align: center;
    color: #888;
    padding: 20px 0;
}

.shofy-is-grid {
    margin: 0 -8px;
}

.shofy-is-item {
    padding: 8px;
    margin-bottom: 8px;
}

.shofy-is-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.shofy-is-item-link:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.shofy-is-item-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.shofy-is-item-info {
    padding: 10px;
}

.shofy-is-item-info h4 {
    font-size: 13px;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shofy-is-item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-theme-primary, #0989ff);
}

.shofy-is-footer {
    text-align: center;
    margin-top: 16px;
}

.shofy-is-see-all {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
}

@media (max-width: 575px) {
    .shofy-is-item-thumb img {
        height: 110px;
    }
}
