/* ============================================================
   PRODUCT NAVIGATION
============================================================ */

.product-navigation {
    position: relative;

    z-index: 10;

    display: flex;

    align-items: stretch;

    width: 100%;

    padding: 6px;

    background:
        rgba(255, 255, 255, 0.075);

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 16px;

    backdrop-filter: blur(8px);
}


/* ============================================================
   PRODUCT CARD
============================================================ */

.product-card {
    position: relative;

    flex: 1;

    min-width: 0;
    min-height: 72px;

    display: flex;

    flex-direction: row;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 12px 16px;

    color:
        rgba(255, 255, 255, 0.68);

    background: transparent;

    border-radius: 11px;

    transition: var(--transition);
}


/* ============================================================
   DIVISORS
============================================================ */

.product-card:not(:last-child)::before {
    content: "";

    position: absolute;

    top: 18px;
    right: 0;

    width: 1px;
    height: 36px;

    background:
        rgba(255, 255, 255, 0.08);
}


/* ============================================================
   HOVER
============================================================ */

.product-card:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.07);
}


/* ============================================================
   ACTIVE
============================================================ */

.product-card.active {
    color: var(--primary);

    background: #ffffff;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.10);
}

.product-card.active::before {
    display: none;
}

.product-card.active+.product-card::before {
    display: none;
}


/* ============================================================
   ACTIVE INDICATOR
============================================================ */

.product-card::after {
    content: "";

    position: absolute;

    bottom: 7px;
    left: 50%;

    width: 0;
    height: 3px;

    transform: translateX(-50%);

    background: var(--accent);

    border-radius: 20px;

    transition: width 0.2s ease;
}

.product-card.active::after {
    width: 28px;
}


/* ============================================================
   ICON
============================================================ */

.product-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #79bfff;

    background:
        rgba(255, 255, 255, 0.07);

    border-radius: 10px;

    font-size: 15px;

    transition: var(--transition);
}

.product-card:hover .product-icon {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.10);
}

.product-card.active .product-icon {
    color: var(--accent);

    background: var(--accent-light);
}


/* ============================================================
   PRODUCT NAME
============================================================ */

.product-name {
    font-size: 12px;

    font-weight: 650;

    white-space: nowrap;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 850px) {

    .product-navigation {
        overflow-x: auto;

        justify-content: flex-start;

        scrollbar-width: none;
    }

    .product-navigation::-webkit-scrollbar {
        display: none;
    }

    .product-card {
        flex:
            0 0 145px;

        min-width: 145px;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .product-navigation {
        padding: 5px;

        border-radius: 14px;
    }

    .product-card {
        flex:
            0 0 112px;

        min-width: 112px;
        min-height: 64px;

        flex-direction: column;

        gap: 4px;

        padding: 8px;
    }

    .product-card:not(:last-child)::before {
        top: 14px;

        height: 34px;
    }

    .product-icon {
        width: 31px;
        height: 31px;

        flex-basis: 31px;

        font-size: 13px;
    }

    .product-name {
        font-size: 9px;
    }

    .product-card::after {
        bottom: 4px;
    }

}