/*==================================================
COMPONENT: PRODUCT TABS
==================================================*/

.sidv-product-tabs {
    --sidv-tabs-border: var(--sidv-color-border, #E8EDF3);
    --sidv-tabs-bg: var(--sidv-color-bg-alt, #F8FAFC);
    --sidv-tabs-bg-hover: var(--sidv-color-bg-subtle, #EEF2F7);
    --sidv-tabs-text: var(--sidv-color-text-muted, #64748B);
    --sidv-tabs-text-active: var(--sidv-color-heading, #0D2137);
    --sidv-tabs-primary: var(--sidv-color-primary, #FF9800);
    --sidv-tabs-shadow: 0 10px 24px rgba(255, 152, 0, 0.25);

    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidv-product-tabs.is-ready {
    opacity: 1;
}

/*==================================================
NAVIGATION CONTAINER
==================================================*/

.sidv-product-tabs__navigation-wrapper {
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--sidv-tabs-border);
    padding-bottom: 1.25rem;
}

.sidv-product-tabs__navigation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

/*==================================================
BUTTONS (PILL STYLE)
==================================================*/

.sidv-product-tabs__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    padding: 0 1.5rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    background-color: var(--sidv-tabs-bg);
    color: var(--sidv-tabs-text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sidv-product-tabs__button:hover {
    background-color: var(--sidv-tabs-bg-hover);
    color: var(--sidv-tabs-text-active);
}

.sidv-product-tabs__button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.35);
}

.sidv-product-tabs__button.is-active {
    background-color: var(--sidv-tabs-primary);
    color: #FFFFFF;
    box-shadow: var(--sidv-tabs-shadow);
}

/*==================================================
CONTENT & PANELS
==================================================*/

.sidv-product-tabs__content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sidv-product-tabs__panel {
    display: none;
    width: 100%;
}

.sidv-product-tabs__panel:focus-visible {
    outline: none;
}

.sidv-product-tabs__panel.is-active {
    display: block;
    animation: sidvTabFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/*==================================================
ANIMATIONS
==================================================*/

@keyframes sidvTabFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*==================================================
RESPONSIVE DESIGN (MOBILE SCROLLING)
==================================================*/

@media (max-width: 768px) {
    .sidv-product-tabs {
        gap: 1.75rem;
    }

    .sidv-product-tabs__navigation-wrapper {
        padding-bottom: 0.85rem;
    }

    .sidv-product-tabs__navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .sidv-product-tabs__navigation::-webkit-scrollbar {
        display: none;
    }

    .sidv-product-tabs__button {
        flex-shrink: 0;
        height: 42px;
        padding: 0 1.25rem;
        font-size: 0.88rem;
    }
}