/* 
 * Products Tabs Stylesheet
 * Vertical tab navigation with content area
 */

/* Products Section Container */
.products-section {
    padding: 80px 0;
    background: #fff;
}

/* Tab Container Layout */
.products-tabs-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.products-tab-nav {
    flex: 0 0 280px;
    background: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

    /* Optional: make it sticky so it stays visible */
    position: sticky;
    top: 100px;
}

/* Custom scrollbar for scrollable sub-lists */
.products-tab-nav ul ul::-webkit-scrollbar {
    width: 4px;
}

.products-tab-nav ul ul::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.products-tab-nav ul ul::-webkit-scrollbar-thumb {
    background: #f49424;
    border-radius: 10px;
}

.products-tab-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.products-tab-nav>ul>li {
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.products-tab-nav>ul>li:last-child {
    border-bottom: none;
}

/* Nested List Items */
.products-tab-nav li {
    position: relative;
}

/* Primary Category Buttons */
.products-tab-nav>ul>li>button {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #0f1934;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.products-tab-nav>ul>li>button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #f49424;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.products-tab-nav>ul>li>button:hover {
    background: #fff;
    color: #f49424;
    padding-left: 30px;
}

.products-tab-nav>ul>li>button.active {
    background: #fff;
    color: #f49424;
    padding-left: 30px;
}

.products-tab-nav>ul>li>button.active::before {
    transform: scaleY(1);
}

/* Expand/Collapse Icon */
.products-tab-nav button .expand-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #999;
}

/* Active State for Nested Items */
.products-tab-nav ul ul>li>button.active {
    color: #f49424;
    font-weight: 400;
    background: #fff;
}

.products-tab-nav ul ul ul>li>button.active {
    color: #f49424;
    font-weight: 400;
}

.products-tab-nav button.expanded .expand-icon {
    transform: rotate(90deg);
}

/* Nested Subcategory Lists */
.products-tab-nav ul ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.products-tab-nav ul ul.expanded {
    max-height: 60vh;
    overflow-y: auto;
}

/* Secondary Category Buttons */
.products-tab-nav ul ul>li>button {
    width: 100%;
    padding: 12px 25px 12px 20px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.products-tab-nav ul ul>li:last-child>button {
    border-bottom: none;
}

.products-tab-nav ul ul>li>button:hover {
    background: #f7f7f7;
    color: #f49424;
    padding-left: 25px;
}

.products-tab-nav ul ul>li>button.active {
    background: #f7f7f7;
    color: #f49424;
    padding-left: 25px;
    font-weight: 400;
}

/* Sub-secondary Category Buttons (Third Level) */
.products-tab-nav ul ul ul>li>button {
    padding: 10px 25px 10px 20px;
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

.products-tab-nav ul ul ul>li>button:hover {
    padding-left: 25px;
}

.products-tab-nav ul ul ul>li>button.active {
    padding-left: 25px;
}

/* Right Side - Tab Content Area */
.products-tab-content {
    flex: 1;
    min-height: 400px;
}

.products-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.products-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Content Styling */
.products-tab-pane h2 {
    font-size: 20px;
    color: #0f1934;
    margin-bottom: 20px;
    font-weight: 500;
}

.products-tab-pane h2 {
    margin-top: 0px;
}

.products-tab-pane h3 {
    font-size: 20px;
    color: #f49424;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.products-tab-pane p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.products-tab-pane ul {
    margin: 20px 0;

}

.products-tab-pane ul li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.products-tab-pane ul li::marker {
    color: #f49424;
}

/* Product Features Grid */
.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid #f49424;
}

.feature-item h4 {
    font-size: 16px;
    color: #0f1934;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .products-tabs-container {
        flex-direction: column;
        gap: 30px;
    }

    .products-tab-nav {
        width: 100%;
        position: relative;
        top: 0;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }

    .products-tab-content {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .products-section {
        padding: 50px 0;
    }

    .products-tab-nav button {
        padding: 15px 20px;
        font-size: 15px;
    }

    .products-tab-pane h2 {
        font-size: 26px;
    }

    .products-tab-pane h3 {
        font-size: 18px;
    }

    .product-features {
        grid-template-columns: 1fr;
    }
}

.belt-process-item h4 {
    font-size: 15px;
    margin-top: 10px;
    font-weight: 500;
}