:root {
    --mct-radius: 12px;
    --mct-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =========================================
   KIỂU 1: BẢNG CHI TIẾT (Pizza Style)
   ========================================= */
.mct-detail-card {
    background: #fff;
    border-radius: var(--mct-radius);
    box-shadow: var(--mct-shadow);
    padding: 30px;
    max-width: 500px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #f0f0f0;
}

/* [SỬA LỖI MÀU TIÊU ĐỀ] Ưu tiên màu user chọn */
.mct-detail-title {
    text-align: center;
    color: var(--mct-header-bg, #5a3e36) !important; 
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 800;
    line-height: 1.3;
}

.mct-detail-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px; 
    margin: 0 0 25px 0;
    font-weight: 500;
    line-height: 1.5;
}

.mct-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.mct-detail-item:last-child {
    border-bottom: none;
}

.mct-label {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    background: #fff;
    padding-right: 10px;
    z-index: 2;
}

/* [SỬA LỖI MÀU GIÁ TRỊ] Ưu tiên màu user chọn */
.mct-value {
    font-weight: 700;
    color: var(--mct-header-bg, #d90429) !important;
    font-size: 15px;
    background: #fff;
    padding-left: 10px;
    z-index: 2;
}

.mct-detail-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 16px; 
    font-weight: 500;
    line-height: 1.5;
}

.mct-detail-footer small {
    font-size: 16px !important;
}


/* =========================================
   KIỂU 2: BẢNG SO SÁNH (Dolivo Style)
   ========================================= */
.mct-comparison-table {
    border-radius: var(--mct-radius);
    overflow: hidden;
    box-shadow: var(--mct-shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 20px 0;
    border: 1px solid #eaeaea;
    background: #fff;
}

/* Header Gradient & Màu ưu tiên */
.mct-comp-header {
    display: flex;
    background: var(--mct-header-bg, #d90429) !important; 
    background: linear-gradient(135deg, var(--mct-header-bg, #d90429) 0%, rgba(255,255,255,0.2) 150%) !important;
    color: var(--mct-header-text, #fff) !important;
    padding: 18px 20px;
}

.mct-comp-col {
    flex: 1;
    font-weight: 700;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mct-comp-col.criteria-col {
    flex: 0 0 25%;
    text-align: left;
    text-transform: none;
}

.mct-comp-body {
    background: #fff;
}

.mct-comp-row {
    display: flex;
    padding: 15px 20px;
    align-items: center; 
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.mct-comp-row:last-child {
    border-bottom: none;
}

.mct-comp-row.odd {
    background-color: #fdf8f8;
}

.mct-comp-row:hover {
    background-color: #fafafa;
}

.mct-comp-cell {
    flex: 1;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.mct-comp-cell.criteria-cell {
    flex: 0 0 25%;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.mct-comp-cell.value-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mct-mobile-label {
    display: none;
}

/* --- ICON SVG STYLING --- */
.mct-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
}

.mct-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 3px;
}

.mct-icon.success {
    background-color: var(--mct-icon-success, #2e7d32);
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.2);
}

.mct-icon.error {
    background-color: var(--mct-icon-error, #9e9e9e);
}

/* [MỚI] Style cho phần footer chứa nút Xem thêm (Mặc định ẩn trên Desktop) */
.mct-mobile-footer {
    display: none; 
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fff;
}

/* [MỚI] Style nút toggle */
.mct-btn-toggle {
    background: none;
    border: none;
    color: var(--mct-header-bg, #d90429); /* Dùng màu chủ đạo */
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.mct-btn-toggle:hover {
    opacity: 0.8;
}

/* =========================================
   RESPONSIVE MOBILE (Dưới 768px)
   ========================================= */
@media (max-width: 768px) {
    /* [SỬA LỖI] Lề cho Kiểu 1 */
    .mct-detail-card {
        padding: 20px;
        margin: 20px; 
        width: auto;
    }

    /* [SỬA LỖI] Lề cho Kiểu 2 */
    .mct-comparison-table {
        margin: 20px;
    }

    .mct-comp-header {
        display: none !important;
    }

    /* [MỚI] Mặc định ẩn các dòng thừa */
    .mct-hidden-mobile {
        display: none; 
    }

    /* [MỚI] Hiển thị nút Xem thêm trên Mobile */
    .mct-mobile-footer {
        display: block;
    }

    .mct-comp-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        border-bottom: 8px solid #f5f5f5;
    }
    .mct-comp-row.odd {
        background-color: #fff;
    }

    .mct-comp-cell.criteria-cell {
        width: 100%;
        margin-bottom: 15px;
        font-size: 17px;
        color: var(--mct-header-bg); 
        border-bottom: 1px dashed #eee;
        padding-bottom: 8px;
    }

    .mct-comp-cell.value-cell {
        width: 100%;
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fafafa;
        padding: 10px;
        border-radius: 8px;
    }

    .mct-mobile-label {
        display: block;
        font-size: 12px;
        text-transform: uppercase;
        color: #999;
        font-weight: 700;
        margin-right: auto;
    }
    
    .mct-comp-cell.value-cell .mct-icon {
        order: -1; 
        margin-right: 10px;
    }
}