/* ===== استایل جدول محصولات آهن ===== */

.iron-table-container {
    border: 1px solid #0d435124;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.iron-table-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
	background: #FFF;
    gap: 15px;
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

.iron-table-header .right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.iron-table-header .category-title {
    color: #000;;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding-right: 15px;
    border-right: 3px solid #ec4925;
}

.iron-table-header .update-date {
    color: #000;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.iron-table-header .update-date span {
    color: #ec4925;
    font-weight: 600;
    margin-right: 5px;
}

.iron-table-header .vat-section {
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border: 1px solid #0d435124;
}

.iron-table-header .vat-section label {
    color: #000;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.iron-table-header .vat-section input[type='checkbox'] {
    width: 13px;
    height: 13px;
    cursor: pointer;
    accent-color: #ec4925;
}

.iron-products-table {
    width: 100% !important;
    border-collapse: collapse;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    margin: 0 !important;
}

.iron-products-table thead tr {
    background-color: #f5f5f5 !important;
}

.iron-products-table thead th {
	padding: 14px 5px !important;
    font-weight: 600;
    font-size: 14px;
    text-align: center !important;
    border: 1px solid #dddddd24;
    color: #FFF !important;
    background-color: #0d4351 !important
}

.iron-products-table tbody tr {
    background-color: #ffffff;
    transition: background-color 0.3s;
}

.iron-products-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.iron-products-table tbody tr:hover {
    background-color: #f2e9e3;
}

.iron-products-table tbody td {
	padding: 14px 5px !important;
    border: 1px solid #dddddd36;
    text-align: center;
    font-size: 13px;
}

.iron-products-table tbody td:first-child {
    font-weight: 600;
    color: #0d4351;
}

.iron-products-table tbody td:first-child a {
    color: #0d4351;
    text-decoration: none;
}

.iron-products-table tbody td:first-child a:hover {
    color: #ec4925;
}

.iron-products-table tbody td:last-child {
    font-weight: 700;
    color: #0d4351;
    font-size: 14px;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

/* ===== ریسپانسیو کامل برای موبایل ===== */
@media screen and (max-width: 768px) {
    .iron-table-header {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .iron-table-header .right-section {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .iron-table-header .category-title {
        font-size: 16px;
        padding-right: 10px;
        border-right-width: 2px;
        width: 48%;
    }
    
    .iron-table-header .update-date {
        width: 48%;
        text-align: center;
        font-size: 12px;
    }
    
    .iron-table-header .vat-section {
        width: 100%;
        justify-content: center;
        padding: 6px 12px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		border: 1px solid #0d435124;
    }
    
    .iron-table-header .vat-section label {
        font-size: 13px;
    }
    
    /* ===== مشکل اصلی: جدول با اسکرول افقی ===== */
    .iron-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* برای اسکرول نرم در iOS */
        margin: 15px -15px; /* کشیده شدن به بیرون برای استفاده از فضای بیشتر */
        width: calc(100% + 30px);
        border-radius: 0; /* حذف گردی لبه‌ها وقتی کشیده میشه */
    }
    
    .iron-products-table {
        min-width: 100%; /* افزایش حداقل عرض برای نمایش همه ستون‌ها */
        font-size: 12px;
    }
    
    .iron-products-table thead th {
        padding: 10px 6px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .iron-products-table tbody td {
        padding: 8px 4px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    /* ستون نام محصول می‌تونه کمی بیشتر فضا بگیره */
    .iron-products-table tbody td:first-child {
        white-space: normal;
        min-width: 140px;
        text-align: right;
    }
    
    /* نمایش بهتر قیمت */
    .iron-products-table tbody td:last-child {
        font-size: 12px;
        white-space: nowrap;
    }
}

/* برای موبایل‌های خیلی کوچک */
@media screen and (max-width: 480px) {
    .iron-table-header {
        margin: 17px;
        border-radius: 9px;
    }
    
    .iron-table-header .category-title {
        font-size: 15px;
    }
    
    .iron-table-header .update-date span {
        display: block;
        margin-top: 3px;
    }
    
    /* .iron-products-table {
        min-width: 100%; /* افزایش بیشتر برای موبایل‌های کوچک */
    } */
    
    /* رفع مشکل کانتینر برای صفحه‌های باریک */
    .iron-table-container {
		margin: 0;
        width: 100% !important;
        border-radius: 9px;
    }
}

/* برای نمایش در آیپد و تبلت */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .iron-products-table {
        font-size: 13px;
    }
    
    .iron-products-table thead th,
    .iron-products-table tbody td {
        padding: 14px 5px;
    }
}


table tbody tr:hover>td, table tbody tr:hover>th
{
	background-color: hsl(24deg 36.59% 91.96%) !important;
}


table.dataTable thead>tr>th.sorting:before, table.dataTable thead>tr>th.sorting_asc:before
{
	content: "↑" !important;
}

table.dataTable thead>tr>th.sorting:after, table.dataTable thead>tr>th.sorting_asc:after
{
	content: "↓" !important;
}



/* ===== چیدمان افقی فیلترهای YITH ===== */
/* ===== چیدمان افقی فیلترهای YITH ===== */

/* فرم فیلترها */
.yith-wcan-filters form {
	display: flex !important;
    gap: 20px !important;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
}

/* هر بخش فیلتر */
.yith-wcan-filters .filter-item {
    flex: 1 !important;
    min-width: 250px !important;
}

/* دکمه اعمال فیلتر */
.yith-wcan-filters .apply-filters {
    flex: 0 0 auto !important;
}

/* برای موبایل */
@media screen and (max-width: 768px) {
    .yith-wcan-filters form {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .yith-wcan-filters .filter-item {
        width: 100% !important;
    }
}



.yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown:after
{
	left:15px !important;
	    right: auto !important;

}

.yith-wcan-filters .yith-wcan-filter {
    margin-bottom: 0px !important;
    width: 300px !important;
}

.yith-wcan-filters .yith-wcan-filter .filter-items
{
	padding-right: 0px !important;
}

.yith-wcan-filters .yith-wcan-filter .filter-items, .yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-label, .yith-wcan-filters .yith-wcan-filter .yith-wcan-dropdown .dropdown-wrapper .search-field-container .search-field
 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: 14px !important;
 }

 .yith-wcan-filters {
    background-color: transparent;
    margin-bottom: 0px;
}