.productos-interna {
    color: var(--purple);
}

/* Hero */
.productos-interna-hero {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 290px;
    padding: 100px 0 40px;
    background: var(--violet);
    text-align: center;
}

.productos-interna-hero h1 {
    color: var(--light-pink);
    font-size: 76px;
    font-weight: 800;
}

/*Ajuste hover imagen*/
.producto-card-image {
    position: relative;
    overflow: hidden;
}

.producto-card-image__primary,
.producto-card-image__hover {
    display: block;
    width: 100%;
    transition: opacity .35s ease;
}

.producto-card-image__primary {
    position: relative;
    z-index: 1;
    opacity: 1;
}

.producto-card-image__hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: contain;
}

.producto-home-card:hover .producto-card-image.has-hover .producto-card-image__primary,
.producto-home-card:focus .producto-card-image.has-hover .producto-card-image__primary,
.producto-grid-card:hover .producto-card-image.has-hover .producto-card-image__primary,
.producto-grid-card:focus-within .producto-card-image.has-hover .producto-card-image__primary {
    opacity: 0;
}

.producto-home-card:hover .producto-card-image.has-hover .producto-card-image__hover,
.producto-home-card:focus .producto-card-image.has-hover .producto-card-image__hover,
.producto-grid-card:hover .producto-card-image.has-hover .producto-card-image__hover,
.producto-grid-card:focus-within .producto-card-image.has-hover .producto-card-image__hover {
    opacity: 1;
}

@media(max-width:767px) {
    .productos-interna-hero {
        min-height: 160px;
        padding: 75px 20px 30px;
    }

    .productos-interna-hero h1 {
        font-size: 32px;
    }
}

/* Introducción */
.productos-intro {
    margin: 45px 0 20px;
    text-align: center;
}

.productos-intro h2 {
    margin: 0 0 15px;
    color: var(--violet);
    font-size: 32px;
    font-weight: 800;
}

.productos-intro p {
    color: var(--violet);
    font-size: 20px;
}

/* Filtros */
.productos-filtros-wrapper {
    margin-bottom: 75px;
}

.productos-filtros-principales {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.producto-filtro-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 130px;
    padding: 13px 24px;
    border: 0;
    border-radius: 40px;
    background: var(--light-pink);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .3s ease;
}

.producto-filtro-pill:hover,
.producto-filtro-pill.is-active {
    background: var(--light-purple);
}

.producto-filtro-toggle img {
    display: block;
    width: 6px;
    transform: rotate(90deg);
    transition: transform .3s ease;
    filter: brightness(500%);
}

.producto-filtro-toggle[aria-expanded="true"] img {
    transform: rotate(-90deg);
}

/* Opciones desplegables */
.productos-filtros-opciones {
    margin-top: 20px;
}

.producto-filter-options {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.producto-filter-options.is-open {
    display: flex;
}

.producto-filter-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 115px;
    padding: 11px 22px;
    border: 1px solid var(--violet);
    border-radius: 40px;
    background: white;
    color: var(--violet);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
    font-family: var(--primary-font);
}

.producto-filter-option:hover,
.producto-filter-option.is-active {
    background: var(--purple);
    color: white;
}

/* Oculta controles nativos pero los mantiene funcionales */
.productos-native-filters {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    white-space: nowrap;
}

/* Grid productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 85px 50px;
}

.productos-grid .views-row {
    min-width: 0;
}

.producto-grid-card {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.producto-grid-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    margin-bottom: 25px;
    text-decoration: none;
}

.producto-grid-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all .3s;
    margin: auto;
}

.producto-grid-card:hover .producto-grid-image img {
    transform: scale(1.03);
}

.producto-grid-card h2 {
    margin: 0 0 22px;
    color: var(--violet);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.1;
}

/* Botón producto */
.btn-producto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    max-width: 165px;
    padding: 11px 22px;
    border: 1px solid var(--violet);
    border-radius: 40px;
    background: white;
    color: var(--violet);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .3s;
}

.btn-producto:hover,
.btn-producto:focus {
    background: var(--light-pink);
    color: white;
    border-color: transparent;
}

.btn-producto span {
    display: flex;
    align-items: center;
}

.btn-producto:hover img,
.btn-producto:focus img {
    filter: brightness(700%);
}

.productos-empty {
    text-align: center;
}

.productos-resultados {
    position: relative;
    transition: opacity .2s ease;
}

.productos-resultados.is-loading {
    opacity: .35;
    pointer-events: none;
}

.producto-filter-option.is-active {
    background: var(--purple);
    color: white;
}

.producto-filtro-pill.is-active {
    background: var(--light-purple);
}

/* Paginador */
.productos-pager {
    margin: 40px;
}

.productos-pager .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--violet);
    font-size: 18px;
}

.productos-pager .page-link:hover,
.productos-pager .page-link:focus {
    color: var(--pink);
}

.productos-pager .page-item:not(.pager__item--next):not(.pager__item--previous):not(.pager__item--first):not(.pager__item--last):not(:has(+ .pager__item--next)):not(:has(+ .pager__item--last)) .page-link::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 20px;
    background: var(--light-purple);
    content: "";
    transform: translateY(-50%);
}

/* Página activa */
.productos-pager .page-item.is-active .page-link,
.productos-pager .page-item.active .page-link {
    color: var(--pink);
}

.productos-pager .pager__item--first,
.productos-pager .pager__item--last {
    display: none;
}

.productos-pager .pager__item--next .page-link,
.productos-pager .pager__item--previous .page-link {


    border-radius: 50%;
    background: #e6e6e6;
}

.productos-pager .pager__item--next .page-link > span:not(.visually-hidden),
.productos-pager .pager__item--previous .page-link > span:not(.visually-hidden) {
    display: none;
}

.productos-pager .pager__item--next .page-link::after,
.productos-pager .pager__item--previous .page-link::after {
    width: 10px;
    height: 10px;
    background-image: url("/themes/custom/beautycare/img/arrow-down.svg");
    filter: grayscale(1.2);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
}

.productos-pager .pager__item--previous .page-link::after {
    transform: rotate(180deg);
}

.productos-pager .pager__item--next .page-link:hover,
.productos-pager .pager__item--previous .page-link:hover {
    background: var(--light-purple);
}

li.page-item.is-active.active:last-child a:after {
    content: none !important;
}

@media(max-width:991px) {
    .productos-interna-hero h1 {
        font-size: 40px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 65px 35px;
    }
}

/* Mobile */
@media(max-width:575px) {
    .productos-interna-hero {
        min-height: 155px;
        padding: 75px 20px 25px;
    }

    .productos-interna-hero h1 {
        font-size: 30px;
    }

    .productos-intro {
        margin: 30px 0 15px;
    }

    .productos-intro h2 {
        font-size: 20px;
    }

    .productos-intro p {
        font-size: 14px;
        line-height: 1.3;
    }

    .productos-filtros-wrapper {
        margin-bottom: 35px;
        overflow: hidden;
    }

    .productos-filtros-principales {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .productos-filtros-principales::-webkit-scrollbar {
        display: none;
    }

    .producto-filtro-pill {
        flex: 0 0 auto;
        min-width: auto;
        padding: 10px 16px;
        font-size: 11px;
    }

    .productos-filtros-opciones {
        margin-top: 15px;
    }

    .producto-filter-options {
        justify-content: center;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .producto-filter-options::-webkit-scrollbar {
        display: none;
    }

    .producto-filter-option {
        flex: 0 0 auto;
        min-width: auto;
        padding: 9px 15px;
        font-size: 12px;
    }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .producto-grid-image {
        height: 230px;
        margin-bottom: 20px;
    }

    .producto-grid-card h2 {
        margin-bottom: 18px;
        font-size: 32px;
    }

    .btn-producto {
        min-width: 165px;
    }
}
.bc-filtros-barra {
    position: relative;
    height: 6px;
    margin: 14px 0 0;
    border-radius: 100px;
    background: var(--light-purple);
    cursor: pointer;
    touch-action: none;
}

.bc-filtros-barra::before {
    content: "";
    position: absolute;
    inset: -10px 0;
}

.bc-filtros-barra:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 4px;
}

.bc-filtros-barra__avance {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 100px;
    background: var(--purple);
    cursor: grab;
}

.bc-filtros-barra.is-arrastrando .bc-filtros-barra__avance {
    cursor: grabbing;
}
