/* ========================================
   UNIFIED TAB SYSTEM - TÍM HỒNG GRADIENT
   Áp dụng cho toàn bộ hệ thống
   ======================================== */

/* ============= TAB CONTAINERS ============= */
.L_slider-tabs,
.M_slider-tabs,
.h_tabs,
.slider-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 15px auto;
    max-width: 800px;
    background: white;
    padding: 8px 0;
    overflow-x: auto;
    border-bottom: none;
    position: static;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============= TAB BUTTONS - BASE STYLE ============= */
.L_slider-tab-btn,
.M_slider-tab-btn,
.h_tab,
.slider-tab-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px 8px 0 0;
    background: rgb(249, 250, 251) !important;
    color: rgb(107, 114, 128) !important;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 2px;
    outline: none;
    flex: 1;
    text-align: center;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============= TAB ACTIVE - PASTEL GRADIENT ============= */
.L_slider-tab-btn.L_active,
.M_slider-tab-btn.M_active,
.h_tab.h_active,
.slider-tab-btn.active {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3) !important;
    transform: scale(1.02) !important;
    border: none !important;
    font-weight: 700 !important;
}

/* ============= TAB HOVER ============= */
.L_slider-tab-btn:hover:not(.L_active),
.M_slider-tab-btn:hover:not(.M_active),
.h_tab:hover:not(.h_active),
.slider-tab-btn:hover:not(.active) {
    background-color: rgb(229, 231, 235);
    transform: translateY(-2px);
}

/* ============= SLIDER CONTAINERS ============= */
.L_slider-container,
.M_slider-container,
.h_container-md {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 !important;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
}

/* ============= SLIDES ============= */
.L_slide,
.M_slide,
.h_slide {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 !important;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
    width: 100%;
}

/* Không cần .L_active cho slide vì dùng translateX */

/* ============= IMAGES IN SLIDES ============= */
.L_slide img,
.M_slide img,
.h_slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 0 auto 16px auto;
    box-shadow: none;
    border: 1px solid rgb(229, 231, 235);
}

/* ============= BUTTON ACTIONS ============= */
.L_slider-actions,
.M_slider-actions,
.h_slider-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .L_slider-tabs,
    .M_slider-tabs,
    .h_tabs,
    .slider-tabs {
        max-width: 100%;
        padding: 4px 0;
        margin: 6px 0;
    }
    
    .L_slider-tab-btn,
    .M_slider-tab-btn,
    .h_tab,
    .slider-tab-btn {
        padding: 10px 12px;
        font-size: 14px;
        min-width: 80px;
        flex: 1;
    }
    
    .L_slider-container,
    .M_slider-container,
    .h_container-md {
        padding: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }
    
    .L_slide,
    .M_slide,
    .h_slide {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .L_slider-tab-btn,
    .M_slider-tab-btn,
    .h_tab,
    .slider-tab-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 60px;
    }
}

/* ============= ACTION BUTTONS ROW ============= */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    justify-content: center;
}

.button-row button,
.button-row a {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    justify-content: center;
}

/* Responsive for mobile */
@media (max-width: 640px) {
    .button-row {
        flex-direction: column;
    }
    
    .button-row button,
    .button-row a {
        max-width: 100%;
        width: 100%;
    }
}

