/* Modern Product Tabs - Pure CSS */

/* Main Container */
.product-details-tabs {
    padding: 20px 0 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Section Title */
.product-info-tabs .section-title {
    text-align: center;
    margin-bottom: 20px;
}

.product-info-tabs .section-title h2 {
    color: var(--primary-Color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.product-info-tabs .title-underline {
    width: 30px;
    height: 3px;
    background-color: var(--secondary-Color);
    margin: 0 auto;
    display: block;
}

/* Tab Container */
.tab-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Tabs Navigation */
.custom-tabs-header {
    position: relative;
    background-color: #f9f9f9;
}

.custom-tabs {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-tabs .nav-item {
    flex: 1;
}

.custom-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 5px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    background-color: transparent;
    border: none;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-tabs .nav-link i {
    margin-right: 6px;
    color: var(--primary-Color);
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Active & Hover States */
.custom-tabs .nav-link:hover {
    color: var(--primary-Color);
    background-color: rgba(81, 65, 104, 0.02);
}

.custom-tabs .nav-link:hover i {
    transform: translateY(-2px);
}

.custom-tabs .nav-link.active {
    color: var(--primary-Color);
    font-weight: 600;
    background-color: #fff;
}

.custom-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-Color);
    transform: scaleX(0.7);
    transition: transform 0.3s ease;
}

.custom-tabs .nav-link.active:hover::after {
    transform: scaleX(1);
}

/* Tab Content */
.custom-tab-content {
    background-color: #fff;
}

.custom-tab-content .tab-pane {
    display: none;
}

.custom-tab-content .tab-pane.active {
    display: block;
}

.custom-tab-content .content-wrapper {
    padding: 24px;
}

/* Rich Content Styling */
.rich-content {
    color: #444;
    line-height: 1.7;
    font-size: 15px;
}

.rich-content h1, 
.rich-content h2, 
.rich-content h3, 
.rich-content h4 {
    color: var(--primary-Color);
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.rich-content h1:first-child, 
.rich-content h2:first-child, 
.rich-content h3:first-child {
    margin-top: 0;
}

.rich-content p {
    margin-bottom: 16px;
}

.rich-content ul, 
.rich-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.rich-content li {
    margin-bottom: 8px;
}

.rich-content ul li::marker {
    color: var(--secondary-Color);
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.rich-content a {
    color: var(--primary-Color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-Color);
    transition: all 0.2s ease;
}

.rich-content a:hover {
    color: var(--secondary-Color);
    border-bottom-color: var(--secondary-Color);
}

/* Empty Content Placeholder */
.text-center.py-4 {
    padding: 30px 20px;
    color: #777;
    background-color: #fafafa;
    border-radius: 6px;
    text-align: center;
}

.text-center.py-4 i {
    display: block;
    font-size: 32px;
    color: var(--primary-Color);
    margin-bottom: 10px;
    opacity: 0.7;
}

/* Fancy Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-tab-content .tab-pane.active .content-wrapper {
    animation: fadeIn 0.4s ease forwards;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .tab-container {
        border-radius: 8px;
        max-width: 95%;
    }
    
    .custom-tabs .nav-link {
        padding: 12px 5px;
        font-size: 13px;
    }
    
    .custom-tabs .nav-link i {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .custom-tab-content .content-wrapper {
        padding: 20px 16px;
    }
    
    .product-info-tabs .section-title h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .custom-tabs {
        flex-direction: column;
    }
    
    .custom-tabs .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .custom-tabs .nav-item:last-child {
        border-bottom: none;
    }
    
    .custom-tabs .nav-link {
        justify-content: flex-start;
        padding: 10px 15px;
    }
    
    .custom-tabs .nav-link.active::after {
        width: 4px;
        height: 100%;
        top: 0;
        left: 0;
        transform: scaleY(1);
    }
    
    .custom-tab-content .content-wrapper {
        padding: 16px 12px;
    }
    
    .rich-content {
        font-size: 14px;
    }
}
