/* Product Tabs – Scoped Frontend Styles */
/* All styles are scoped under .pt-wrapper to avoid conflicts with Elementor */

.pt-wrapper {
    --pt-accent: #3B82F6;
    --pt-hover-bg: #EFF6FF;
    --pt-radius: 12px;
    --pt-font: inherit;
    --pt-text: #1E293B;
    --pt-text-light: #64748B;
    --pt-border: #E2E8F0;
    --pt-white: #FFFFFF;
    --pt-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --pt-shadow-lg: 0 4px 12px rgba(0,0,0,0.08);

    font-family: var(--pt-font);
    color: var(--pt-text);
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.pt-wrapper *, .pt-wrapper *::before, .pt-wrapper *::after {
    box-sizing: border-box;
}

/* ── Tab Navigation ── */
.pt-tab-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--pt-white);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: var(--pt-shadow);
}

.pt-tab-nav::-webkit-scrollbar {
    display: none;
}

.pt-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: calc(var(--pt-radius) - 2px);
    background: transparent;
    color: var(--pt-text-light);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.4;
    flex-shrink: 0;
}

.pt-tab-btn:hover {
    background: var(--pt-hover-bg);
    color: var(--pt-accent);
}

.pt-tab-btn.pt-active {
    background: var(--pt-hover-bg);
    color: var(--pt-accent);
    font-weight: 600;
}

.pt-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pt-tab-icon svg {
    width: 18px;
    height: 18px;
}

.pt-tab-icon .pt-custom-icon-img {
    object-fit: contain;
    display: block;
}

.pt-tab-title {
    font-size: 14px;
}

/* ── Panels ── */
.pt-panel {
    display: none;
    margin-top: 16px;
    animation: pt-fadeIn 0.25s ease;
}

.pt-panel-visible,
.pt-panel[data-visible="true"] {
    display: block;
}

@keyframes pt-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pt-panel-content {
    background: var(--pt-white);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 28px 32px;
    box-shadow: var(--pt-shadow);
    line-height: 1.7;
    font-size: 15px;
    color: var(--pt-text);
}

.pt-panel-content h1,
.pt-panel-content h2,
.pt-panel-content h3,
.pt-panel-content h4 {
    color: var(--pt-text);
    margin-top: 0;
}

.pt-panel-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.pt-panel-content ul, .pt-panel-content ol {
    padding-left: 24px;
}

.pt-panel-content a {
    color: var(--pt-accent);
    text-decoration: none;
}

.pt-panel-content a:hover {
    text-decoration: underline;
}

/* ── Overview List ── */
.pt-overview-list {
    background: var(--pt-white);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    overflow: hidden;
    box-shadow: var(--pt-shadow);
}

.pt-overview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 22px 28px;
    border: none;
    border-bottom: 1px solid var(--pt-border);
    background: var(--pt-white);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
    font-family: inherit;
    color: var(--pt-text);
}

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

.pt-overview-item:hover {
    background: var(--pt-hover-bg);
}

.pt-overview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--pt-hover-bg);
    color: var(--pt-accent);
    flex-shrink: 0;
}

.pt-overview-icon svg {
    width: 22px;
    height: 22px;
}

.pt-overview-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pt-overview-text strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--pt-text);
}

.pt-overview-text span {
    font-size: 14px;
    color: var(--pt-text-light);
}

.pt-overview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--pt-text-light);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.pt-overview-arrow svg {
    width: 20px;
    height: 20px;
}

.pt-overview-item:hover .pt-overview-arrow {
    transform: translateX(4px);
    color: var(--pt-accent);
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .pt-tab-nav {
        gap: 2px;
        padding: 4px;
        border-radius: 10px;
    }

    .pt-tab-btn {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .pt-tab-title {
        font-size: 13px;
    }

    .pt-tab-icon {
        width: 18px;
        height: 18px;
    }

    .pt-tab-icon svg {
        width: 16px;
        height: 16px;
    }

    .pt-overview-item {
        padding: 16px 18px;
        gap: 12px;
    }

    .pt-overview-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .pt-overview-icon svg {
        width: 18px;
        height: 18px;
    }

    .pt-overview-text strong {
        font-size: 15px;
    }

    .pt-overview-text span {
        font-size: 13px;
    }

    .pt-panel-content {
        padding: 20px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pt-tab-nav {
        padding: 3px;
    }

    .pt-tab-btn {
        padding: 7px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .pt-tab-btn .pt-tab-title {
        display: none;
    }

    .pt-tab-btn.pt-active .pt-tab-title {
        display: inline;
    }

    .pt-overview-item {
        padding: 14px 14px;
    }

    .pt-overview-icon {
        width: 34px;
        height: 34px;
    }

    .pt-panel-content {
        padding: 16px 14px;
        border-radius: 10px;
    }
}
