/**
 * Sticky Navigation Styles
 * Product page navigation with icons and labels
 */

.sticky-nav {
    position: relative;
    z-index: 1000;
    background-color: var(--global-palette9, #f5f5f5);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    --sticky-nav-offset: 0px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sticky-nav.is-sticky {
    position: fixed;
    top: var(--sticky-nav-offset, 0px);
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    transform: translateZ(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sticky-nav-placeholder {
    display: none;
    width: 100%;
}

.sticky-nav-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: var(--global-content-width, 1290px);
    margin: 0 auto;
}

.sticky-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--global-palette3, #1a1a2e);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.sticky-nav-item:visited,
.sticky-nav-item:hover,
.sticky-nav-item:active {
    color: var(--global-palette3, #1a1a2e);
}

.sticky-nav-item.active {
    border-bottom-color: var(--global-palette3, #1a1a2e);
}

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

.sticky-nav-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sticky-nav-label {
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sticky-nav {
        padding: 0.4rem 0.75rem 0;
    }

    .sticky-nav-inner {
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    .sticky-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .sticky-nav-item {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .sticky-nav-label {
        white-space: nowrap;
    }

    .sticky-nav-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .sticky-nav {
        padding: 0.35rem 0.5rem 0;
    }

    .sticky-nav-item {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    .sticky-nav-icon {
        width: 14px;
        height: 14px;
    }
}
