.section-product_category {
    background: #F9F9F9;
    padding-block: 48px;
}
.product-categories-tabs {
    margin: 20px 0;
}
.main-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 40px;
    overflow-x: auto;
}
.main-tab {
    padding: 8px;
    cursor: pointer;
    border: 1px solid #D7D7D7;
    margin-right: 5px;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    min-width: 240px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    &:before {
        content: "";
        width: 80%;
        height: 6px;
        background: var(--color1);
        position: absolute;
        bottom: 0;
        border-radius: 8px 8px 0 0;
        right: 50%;
        transform: translateX(50%);
        transition: 0.4s;
    }
}
.main-tab:hover:before,
.main-tab.active:before {
    height: 46px;
}
.main-tab-img {
    z-index: 1;
    max-width: 220px;
    height: auto;
}
.main-tab-text {
    font-weight: bold;
}
.sub-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 40px;
    overflow: auto;
    padding-bottom: 12px;
}
.sub-tab {
    font-family: 'IRANYekanX';
    background: none;
    border: 1px solid #868686;
    border-radius: 8px;
    padding: 9px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #494949;
    font-family: var(--main);
    min-width: 125px;
    text-align: center;
}
.sub-tab:hover,
.sub-tab.active {
    background: var(--color1);
    border-color: var(--color1);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.products-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(1, 1fr);
}
.no-products {
    padding: 20px;
    text-align: center;
    color: white;
    background: var(--danger);
    border-radius: 12px;
}
.main-cat-desc {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-right: 4px solid #007cba;
}
@media only screen and (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sub-tabs,
    .main-tabs {
        justify-content: center;
        padding-bottom: 0;
    }
}
@media only screen and (min-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


