/**
 * BeautyConnection — Product Navigation Section
 *
 * Scoped styles for .bc-product-nav. Depends on bc-global for design tokens.
 * Matches Figma node 1:1602 (Prata 60/72 title, Mulish Bold 16 pills, #0A0A0A).
 */

.bc-product-nav {
    padding-block: 36px 36px;
    background: transparent;
}

.bc-product-nav__container {
    max-width: 1500px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.bc-product-nav__title {
    font-family: var(--bc-font-heading);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.75rem);
    line-height: 1.2;
    color: var(--bc-black);
    margin: 0;
}

.bc-product-nav__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bc-product-nav__pill {
    display: inline-flex;
}

.bc-product-nav__pill a {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid var(--bc-black);
    background: #fff;
    color: var(--bc-black);
    font-family: var(--bc-font-body);
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bc-product-nav__pill a:hover,
.bc-product-nav__pill a:focus-visible,
.bc-product-nav__pill.is-active a {
    background: var(--bc-black);
    color: #fff !important;
}

/* Read-only slug field in admin (applied via acf/prepare_field wrapper class). */
.bc-pn-slug-readonly .acf-input input {
    background: #f5f5f5;
    color: #888;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .bc-product-nav {
        padding-block: 24px 16px;
    }

    .bc-product-nav__container {
        gap: 24px;
        padding-inline: 16px;
    }

    .bc-product-nav__pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .bc-product-nav__pills::-webkit-scrollbar {
        display: none;
    }

    .bc-product-nav__pill {
        flex-shrink: 0;
    }
}
