/**
 * Single Product Module: Interactive Tabs & Content Container
 * Location: css/single-product/tabs-single-product.css
 */

.mcb-spt-container {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    margin-bottom: 50px;
    box-sizing: border-box;
}

/* Tab Navigation Bar */
.mcb-spt-nav-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.mcb-spt-nav-bar::-webkit-scrollbar {
    height: 4px;
}
.mcb-spt-nav-bar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

.mcb-spt-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.mcb-spt-tab-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.mcb-spt-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.mcb-spt-tab-btn.active {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.35);
    color: #a78bfa;
}

/* Panel Activation */
.mcb-spt-panel {
    display: none;
    animation: mcbSptFade 0.25s ease;
}

.mcb-spt-panel.active {
    display: block;
}

@keyframes mcbSptFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Prose Styling for Overview */
.mcb-spt-prose {
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
}

.mcb-spt-prose h2,
.mcb-spt-prose h3,
.mcb-spt-prose h4 {
    color: #ffffff;
    margin-top: 24px;
    margin-bottom: 12px;
}

.mcb-spt-prose ul,
.mcb-spt-prose ol {
    padding-left: 22px;
    margin-bottom: 20px;
}

.mcb-spt-prose li {
    margin-bottom: 8px;
}

.mcb-spt-prose p {
    margin-bottom: 16px;
}

/* Specs Table */
.mcb-spt-table {
    width: 100%;
    border-collapse: collapse;
}

.mcb-spt-table th,
.mcb-spt-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    text-align: left;
}

.mcb-spt-table th {
    color: #94a3b8;
    width: 32%;
    font-weight: 600;
}

.mcb-spt-table td {
    color: #ffffff;
    font-weight: 600;
}

.mcb-spt-table tr:last-child th,
.mcb-spt-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Accordion */
.mcb-spt-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mcb-spt-faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.mcb-spt-faq-item:hover,
.mcb-spt-faq-item.open {
    border-color: rgba(124, 58, 237, 0.4);
}

.mcb-spt-faq-trigger {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.mcb-spt-faq-trigger svg {
    stroke: #94a3b8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mcb-spt-faq-item.open .mcb-spt-faq-trigger svg {
    transform: rotate(180deg);
    stroke: #7c3aed;
}

.mcb-spt-faq-answer {
    display: none;
    padding: 0 22px 18px 22px;
    font-size: 14px;
    line-height: 1.65;
    color: #94a3b8;
}

.mcb-spt-faq-item.open .mcb-spt-faq-answer {
    display: block;
}

.mcb-spt-faq-answer p {
    margin: 0;
}

/* Reviews Wrapper */
.mcb-spt-reviews-wrapper #comments {
    margin: 0;
}

.mcb-spt-reviews-wrapper .commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.mcb-spt-reviews-wrapper .commentlist li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 14px;
}

.mcb-spt-reviews-wrapper .comment-text .meta {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.mcb-spt-reviews-wrapper .comment-text .description {
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
}

@media screen and (max-width: 768px) {
    .mcb-spt-container {
        padding: 20px;
    }

    .mcb-spt-table th {
        width: 40%;
    }
}