/* Extra Tab Product Styles - Maquette fidèle */

.extratab-products {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Header Section */
.extratab-header {
    margin-bottom: 40px;
}

.extratab-titles {
    margin-bottom: 30px;
}

.extratab-title {
    font-size: 32px;
    font-weight: 700;
    color: #006b6b;
    margin: 0 0 15px 0;
    padding-left: 20px;
    border-left: 4px solid #006b6b;
}

.extratab-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    max-width: 900px;
}

/* Navigation Tabs */
.extratab-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.extratab-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.extratab-tab-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.extratab-tab-btn:hover {
    background: #006b6b;
    color: white;
    border-color: #006b6b;
}

.extratab-tab-btn.active {
    background: #006b6b;
    color: white;
    border-color: #006b6b;
}

.extratab-view-all {
    color: #006b6b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.extratab-view-all:hover {
    color: #004d4d;
    text-decoration: underline;
}

/* Tab Content */
.extratab-tab-content {
    display: none;
}

.extratab-tab-content.active {
    display: block;
}

/* Slider Container */
.extratab-slider-container {
    position: relative;
    padding: 0 50px;
}

.extratab-slider {
    overflow: hidden;
    position: relative;
}

.extratab-products-grid {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
}

.extratab-products-grid > * {
    flex: 0 0 calc(25% - 18.75px);
    max-width: calc(25% - 18.75px);
}

/* Slider Navigation Buttons */
.extratab-slider-prev,
.extratab-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #333;
}

.extratab-slider-prev:hover,
.extratab-slider-next:hover {
    background: #006b6b;
    color: white;
    border-color: #006b6b;
}

.extratab-slider-prev {
    left: 0;
}

.extratab-slider-next {
    right: 0;
}

.extratab-slider-prev:disabled,
.extratab-slider-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Slider Dots */
.extratab-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.extratab-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.extratab-slider-dot.active {
    background: #006b6b;
    width: 30px;
    border-radius: 5px;
}

/* Product Card */
.extratab-product-miniature {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.extratab-product-miniature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Thumbnail */
.extratab-thumbnail-container {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
}

.extratab-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
}

.extratab-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.extratab-product-miniature:hover .extratab-thumbnail img {
    transform: scale(1.05);
}

/* Discount Badge */
.extratab-discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffd700;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
}

/* Product Description */
.extratab-product-description {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.extratab-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.extratab-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.extratab-product-title a:hover {
    color: #006b6b;
}

/* Product Meta */
.extratab-product-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.extratab-product-stock,
.extratab-product-reference {
    display: block;
}

/* Product Description Short */
.extratab-product-description-short {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Price Block */
.extratab-product-price-block {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.extratab-price-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.extratab-prices {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.extratab-price-current {
    font-size: 22px;
    font-weight: 700;
    color: #006b6b;
}

.extratab-price-regular {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.extratab-price-unit {
    font-size: 12px;
    color: #666;
}

/* Product Actions */
.extratab-product-actions {
    margin-top: 15px;
}

.extratab-btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #006b6b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.extratab-btn-details:hover {
    background: #004d4d;
    color: white;
}

.extratab-btn-details svg {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .extratab-products-grid > * {
        flex: 0 0 calc(33.333% - 16.67px);
        max-width: calc(33.333% - 16.67px);
    }
}

@media (max-width: 992px) {
    .extratab-title {
        font-size: 28px;
    }
    
    .extratab-products-grid {
        gap: 20px;
    }
    
    .extratab-products-grid > * {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    
    .extratab-slider-container {
        padding: 0 40px;
    }
    
    .extratab-slider-prev,
    .extratab-slider-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .extratab-products {
        padding: 40px 0;
    }
    
    .extratab-title {
        font-size: 24px;
        padding-left: 15px;
    }
    
    .extratab-subtitle {
        font-size: 14px;
    }
    
    .extratab-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .extratab-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .extratab-tab-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .extratab-products-grid {
        gap: 15px;
    }
    
    .extratab-products-grid > * {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .extratab-slider-container {
        padding: 0 35px;
    }
    
    .extratab-slider-prev,
    .extratab-slider-next {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .extratab-slider-container {
        padding: 0;
    }
    
    .extratab-slider-prev,
    .extratab-slider-next {
        display: none;
    }
    
    .extratab-product-description {
        padding: 15px;
    }
    
    .extratab-product-title {
        font-size: 15px;
    }
    
    .extratab-price-current {
        font-size: 20px;
    }
}