
.custom-product-features-section {
    width: 100%;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.product-features-tabs-nav {
    display: flex;
    justify-content: space-evenly;
    border-bottom: 1px solid #d0d0d0;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow tabs to wrap on smaller screens if needed */
}

.tab-nav-item {
    padding: 15px 0px;
    cursor: pointer;
    
    color: #000;
    display: flex;
    align-items: center;
    gap:6px; /* Space between icon and text */
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent; /* For active state */
    text-align: center;
    /*flex-grow: 1; /* Allow tabs to grow */
    flex-basis: 0; /* Distribute space evenly */
    justify-content: center; /* Center content */
}

.tab-nav-item img,
.tab-nav-item svg {
    width: 20px;
    height: 21px;
    vertical-align: middle;
    
    transition: opacity 0.3s ease;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.tab-nav-item span {
    white-space: nowrap; /* Prevent title from breaking */
}

.tab-nav-item:hover {
    color: #000;
}

.tab-nav-item.active {
    color: #000; 
    border-bottom-color: #000;
}

.tab-nav-item.active img,
.tab-nav-item.active svg {
    opacity: 1;
}

.product-features-tabs-content .tab-content-item {
    display: none;
    padding: 20px 5px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-features-tabs-content .tab-content-item.active {
    display: block;
}
.product-features-tabs-content {
padding-bottom: 25px;
border-bottom: 1px solid #d0d0d0;
}
/* Styling for content within tabs */
.tab-content-item h3 {
    
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}
.tab-content-item p {
    
    
    color: #555;
    margin-bottom: 1em;
}
.tab-content-item img {
    max-width: 100%;
    height: auto;
    display: block;
    
}


/* --- Mobile Responsiveness --- */
@media (max-width: 768px) { 
    .product-features-tabs-nav {
        display: none; /* Hide tab titles on mobile */
    }
    .product-features-tabs-content {
        padding-bottom: 0;
        border-bottom: none;
    }
    .product-features-tabs-content .tab-content-item {
        display: block !important; /* Show all content stacked (important to override inline style/js) */
        /*border-bottom: 1px solid #eee; /* Separator for stacked content */
        padding: 30px 0;
        animation: none; /* Disable fade-in on mobile */
    }
    
    .product-features-tabs-content .tab-content-item:first-child {
         padding-top: 10px;
    }

    .product-features-tabs-content .tab-content-item:last-child {
        border-bottom: none; /* No border for the last item */
        padding-bottom: 10px;
    }
    
    .tab-content-item h3 {
        font-size: 1.4em;
    }
    
    .tab-content-item p {
        font-size: 1em;
    }
}
