/* =================================================================
   DERMLUXA PRODUCT DETAIL TABS  v2.0
   dermluxa-product-tabs.css
   ================================================================= */

/* =============================================
   OUTER WRAPPER — reset hoàn toàn khỏi theme
   ============================================= */
.dermluxa-detail-wrap {
    display: grid !important;
    grid-template-columns: 3fr 2fr !important;
    gap: 60px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 40px 0 60px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
}

/* =============================================
   CỘT TRÁI
   ============================================= */
.dermluxa-col-left {
    min-width: 0; /* ngăn overflow trong grid */
}

/* =============================================
   CỘT PHẢI
   ============================================= */
.dermluxa-col-right {
    min-width: 0;
    position: sticky;
    top: 100px;
}

/* =============================================
   ACCORDION WRAPPER
   ============================================= */
.dermluxa-accordion-wrapper {
    width: 100%;
}

/* =============================================
   MỖI ACCORDION ITEM
   ============================================= */
.dermluxa-accordion {
    border-top: 1px solid #e5e5e5;
}

.dermluxa-accordion:last-child {
    border-bottom: 1px solid #e5e5e5;
}

/* =============================================
   NÚT TIÊU ĐỀ
   ============================================= */
.dermluxa-accordion-btn {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 18px 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    text-align: left !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #111 !important;
    font-family: inherit !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}

.dermluxa-accordion-btn:hover,
.dermluxa-accordion-btn:focus {
    background: none !important;
    color: #111 !important;
    outline: none !important;
}

.dermluxa-accordion-btn span {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    flex: 1;
    padding-right: 12px;
}

.dermluxa-accordion-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #111;
}

.dermluxa-accordion.open .dermluxa-accordion-btn svg {
    transform: rotate(180deg);
}

/* =============================================
   CONTENT ẨN/HIỆN
   ============================================= */
.dermluxa-accordion-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease !important;
}

.dermluxa-accordion.open .dermluxa-accordion-content {
    max-height: 3000px !important;
}

.dermluxa-accordion-inner {
    padding: 4px 0 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.dermluxa-accordion-inner p        { margin-bottom: 12px; }
.dermluxa-accordion-inner ul       { padding-left: 20px; margin-bottom: 12px; }
.dermluxa-accordion-inner ul li    { margin-bottom: 8px; }
.dermluxa-accordion-inner strong   { color: #111; }

/* =============================================
   HIGHLIGHTS
   ============================================= */
.dermluxa-highlights-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dermluxa-highlights-list li {
    display: flex !important;
    gap: 20px;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f5f5f5;
    margin: 0 !important;
}

.dermluxa-highlights-list li:last-child { border-bottom: none; }

.hl-label {
    font-weight: 600;
    color: #111;
    min-width: 140px;
    flex-shrink: 0;
}

.hl-value { color: #555; }

/* =============================================
   SKIN TAGS
   ============================================= */
.dermluxa-tag {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 3px 12px;
    margin: 3px;
    font-size: 12px;
    border-radius: 20px;
    color: #444;
}

/* =============================================
   FAQS
   ============================================= */
.faq-item {
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
    font-weight: 700;
    color: #111;
    margin-bottom: 6px !important;
}

.faq-a {
    color: #555;
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.7;
}

/* =============================================
   SLIDESHOW
   ============================================= */
.dermluxa-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
    margin-bottom: 12px;
}

.dermluxa-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.dermluxa-slide.active { opacity: 1; }

.dermluxa-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dots */
.dermluxa-slide-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dermluxa-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dermluxa-dot.active {
    background: #111;
    transform: scale(1.4);
}

.dermluxa-dot:hover { background: #888; }

/* Caption */
.dermluxa-slide-caption {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
    margin: 0 0 20px;
    padding: 0 4px;
}

/* =============================================
   DELIVERY & RETURNS BOX (cột phải, bên dưới ảnh)
   ============================================= */
.dermluxa-delivery-box {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
    margin-top: 4px;
}

.dermluxa-delivery-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.dermluxa-delivery-body {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

.dermluxa-delivery-body a {
    color: #111;
    text-decoration: underline;
}

.dermluxa-delivery-body p { margin-bottom: 8px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .dermluxa-detail-wrap {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .dermluxa-col-right {
        position: static;
    }
}

@media (max-width: 767px) {
    .dermluxa-detail-wrap {
        margin: 30px 0 40px !important;
    }

    .dermluxa-accordion-btn {
        font-size: 15px !important;
        padding: 15px 0 !important;
    }

    .dermluxa-accordion-btn span {
        font-size: 15px;
    }

    .hl-label { min-width: 110px; }
}