/* ========================================
   CHIPS | JUPER SISTEM
======================================== */

.catalog-chips-section {
    position: sticky;
    top: 0;
    z-index: 950;
    width: 100%;
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f2;
}

.catalog-chips-wrap {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.catalog-chips {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    width: max-content;
    max-width: 100%;
    margin: auto;
    padding: 4px 8px;

    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
}

.catalog-chips::-webkit-scrollbar {
    display: none;
}

.catalog-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 16px;

    border: 1px solid #d2d2d7;
    border-radius: 999px;
    background: #f5f5f7;
    color: #3a3a3c;

    font: 500 13px -apple-system,
          BlinkMacSystemFont, "Segoe UI", sans-serif;

    white-space: nowrap;
    cursor: pointer;
    transition: background .18s, color .18s;
}


/* CHIP ACTIVO - AZUL IOS OFICIAL */
.catalog-chip.is-active {
    color: #ffffff;
    font-weight: 600;
    border-color: var(--ios-blue);
    background: var(--ios-blue);
}


@media (hover: hover) {
    .catalog-chip:hover:not(.is-active) {
        background: #e9e9ed;
    }
}

.catalog-chip:focus-visible,
.chips-arrow:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

/* FLECHAS */
.chips-arrow {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;

    width: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d1d1f;
    cursor: pointer;
}

.chips-arrow svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chips-arrow:disabled {
    opacity: .25;
    cursor: default;
}

/* TABLET Y CELULAR */
@media (max-width: 768px) {
    .catalog-chips-wrap {
        padding: 0 18px;
    }

    .catalog-chips {
        width: 100%;
        margin: 0;
        gap: 9px;
        padding: 4px 48px;
        scroll-padding-inline: 48px;
        box-sizing: border-box;
    }

    .catalog-chip {
        min-height: 35px;
        padding: 0 14px;
        font-size: 12px;
    }

    .chips-arrow {
        display: flex;
        align-items: center;
    }

    .chips-arrow--left {
        left: 18px;
        justify-content: flex-start;
        padding-left: 3px;
        background: linear-gradient(
            to right,
            #fff 25%,
            rgba(255,255,255,.94) 55%,
            transparent
        );
    }

    .chips-arrow--right {
        right: 18px;
        justify-content: flex-end;
        padding-right: 3px;
        background: linear-gradient(
            to left,
            #fff 25%,
            rgba(255,255,255,.94) 55%,
            transparent
        );
    }
}

@media (max-width: 480px) {
    .catalog-chips-section {
        padding: 9px 0;
    }

    .catalog-chips-wrap {
        padding: 0 12px;
    }

    .chips-arrow {
        width: 42px;
    }

    .chips-arrow--left {
        left: 12px;
    }

    .chips-arrow--right {
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-chips {
        scroll-behavior: auto;
    }

    .catalog-chip {
        transition: none;
    }
}

/* FIN - CHIPS */
