

.swiperCategories {
    position: relative;
    margin: 0 10%;
    padding-top: 60px;
    padding-bottom: 60px;
}

.swiperCategories .swiper {
    border: 1px solid rgb(51, 51, 51);
    border-right: unset;
    border-left: unset;
    cursor: pointer;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
}

.swiper-slide {
    text-align: center;
}

.swiper-slide.is-active {
    background-color: rgb(232, 232, 232);
}

.swiper-slide.activeCategory {
    background-color: rgba(9, 23, 43, 0.2)
}

.swiper-slide p {
    margin: 0;
    font-family: 'Inter';
    color: rgb(51, 51, 51);
    font-weight: 400;
    font-size: 1em;
    padding: 15px 0;
}

.swiper-button-prev::after, .swiper-button-next::after {
    display: none;
}

.swiper-button-prev {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(calc(-100% - 20px), 0);
    height: auto;
    padding: 13px;
    background-color: rgb(242, 242, 242);
    border: 1px solid rgb(77, 77, 77);
    width: 22px;
    transition: all 0.25s ease-in-out;
}

.swiper-button-next {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(20px, 0);
    height: auto;
    padding: 13px;
    background-color: rgb(242, 242, 242);
    border: 1px solid rgb(77, 77, 77);
    width: 22px;
    transition: all 0.25s ease-in-out;
}

.swiper-button-prev:hover {
    transform: translate(calc(-100% - 20px), 0) scale(1.1);
}

.swiper-button-next:hover {
    transform: translate(20px, 0) scale(1.1);
}

.swiper-slide > a {
    text-decoration: none;
}

.titleCategory, .filtersCategory, .textCategory, .blurbsProduct {
    padding: 0 6.4%;
}

.titleCategory h1, .titleCategory h2 {
    margin: 0;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 1.8em;
    color: rgb(9, 23, 43);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.titleCategorySeparator {
    width: 500px;
    height: 1px;
    background-color: rgba(9, 23, 43, 0.3);
    margin-bottom: 40px;
}

.filtersCategory {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 35px;
    height: 40px;
}

.filtersCategoryLeft {
    display: flex;
    flex-direction: row;
}

.filtersCategoryButton, .filtersCategoryResults {
    border: 2px solid rgb(9, 23, 43);
    padding: 0px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.filtersCategoryButton {
    border-right: none;
    cursor: pointer;
}

.filtersCategoryLeft p {
    margin: 0;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 0.9em;
    color: black;
}

.filtersCategoryOrderBy {
    width: 100%;
    height: 100%;
}

.filtersCategoryOrderBy select#filters {
  width: 100%;
  height: 100%;
  font-family: 'Inter';
  font-weight: 400;
  font-size: 0.9em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 10px 40px 10px 15px;
  border: 2px solid rgb(9, 23, 43);
  border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  cursor: pointer;
}

.textCategory p {
    margin: 0;
    color: rgb(128, 128, 128);
    font-family: 'Inter';
    font-weight: 400;
    font-size: 0.9em;
}

.filtersCategoryButtonSvg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.filtersCategoryButtonSvg {
    margin-right: 10px;
    width: 18px;
}

.filtersCategoryResults p {
    transform: translateY(1px);
}

.blurbsProduct {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.blurbProduct {
    width: 25%;
    height: 570px;
    margin-bottom: 100px;
    cursor: pointer;
    text-decoration: none;
}

.textCategory {
    margin-bottom: 70px;
}

.blurbProductTop {
    height: 75%;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.blurbProductIcons {
    position: absolute;
    top: 0;
    left: 100%;
    display: flex;
    flex-direction: row;
    transform: translateX(calc(-100% - 40px));
}

.blurbProductImgs {
    width: 100%;
    height: 70%;
    position: relative;
}

.blurbProductImgs img {
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: contain;
}

.blurbProductImgFirst, .blurbProductImgSecond {
    width: 100%;
    height: 100%;
    transition: all 0.15s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.blurbProductImgFirst {
    opacity: 1;
    transition: opacity 0.35s ease-in-out;
}

.blurbProductImgSecond {
    z-index: -1;
    opacity: 0;
    transform: scale(1);
    transition: all 0.75s cubic-bezier(.35,.86,.67,.86);
}

.blurbProductImgs:hover .blurbProductImgFirst {
    opacity: 0;
}

.blurbProductImgs:hover .blurbProductImgSecond {
    transform: scale(1.1);
    opacity: 1;
}

.blurbProductBottom {
    height: 25%;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 1px solid rgba(128, 128, 128, 0.5);
    padding-top: 15px;
    box-sizing: border-box;
}

.blurbProductIcons svg {
    width: 100%;
    height: 100%;
    display: block;
}

.blurbProductFav, .blurbProductCart {
    width: 20px;
}

.blurbProductFav {
    margin-left: 10px;
}

.blurbProductBottom p {
    margin: 0;
    font-family: 'Inter';
    font-weight: 600;
    color: rgb(51, 51, 51);
    font-size: 0.9em;
}

.blurbProductTitle p:first-of-type {
    margin-bottom: 5px;
}

.blurbProductPrice p {
    color: rgb(193, 39, 45);
    font-size: 1em;
}

.blurbProductAddCart {
    cursor: pointer;
    border: 1px solid rgb(51, 51, 51);
    width: 150px;
    margin: 0 auto;
    padding: 3px 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-color 0.25s ease-in-out, transform 0.1s;
}

.blurbProductAddCart p {
    font-size: 0.9em;
    transition: all 0.25s ease-in-out;
}

.blurbProductAddCart:hover {
    background-color: #09172b;
}

.blurbProductAddCart:hover p{
    color: white;
}

.blurbProductAddCart:active {
    transform: scale(0.92);
}

.sideFilters {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999999;
    top: 0;
    left: -150%;
    opacity: 0;
    overflow: hidden;
    transition: left 0.35s ease-in-out, background-color 0.05s ease-in-out, opacity 0.65s cubic-bezier(1,.02,.4,.47);
}

.sideFilters.open {
    opacity: 1;
    left: 0;
    background-color: rgba(0, 0, 0, 0.54);
    transition: opacity 0.01s ease, left 0.35s cubic-bezier(.42,1.01,.57,.97), background-color 0.85s cubic-bezier(1,.02,.4,.47);
}

.sideFiltersInner {
    width: 27%;
    background-color: white;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 3% 0%;
    box-sizing: border-box;
    box-shadow: 10px 0px 20px rgba(0, 0, 0, 0.3);
}

.sideFiltersTop {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 0 10%;
    align-items: center;
    box-sizing: border-box;
    padding-bottom: 20px;
    border-bottom: 1px solid #09172b;
}

.sideFiltersTopSvg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sideFiltersTopSvg {
    width: 20px;
    cursor: pointer;
}

.sideFiltersTop h2 {
    margin: 0;
    font-family: 'Inter';
    font-weight: 700;
    font-size: 1.6em;
    color: rgb(9, 23, 43);
    line-height: 110%;
}

.sideFiltersContent {
    margin-bottom: auto;
    padding-top: 80px;
    width: 100%;
    padding: 0 10%;
    box-sizing: border-box;
    padding-top: 80px;
    /* Hay ~370 marcas: la zona central hace scroll y la cabecera y los botones quedan fijos */
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 40px;
}

.sideFiltersTop, .sideFiltersBottom {
    flex-shrink: 0;
}

.sideFiltersCategory, .sideFiltersBrand, .sideFiltersPrice {
    /* display: flex; */
    /* flex-direction: row; */
    /* justify-content: space-between; */
    /* padding: 0 10%; */
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 50px;
}

.sideFiltersContentTitle {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.sideFiltersContentTitle h3, .sideFiltersPriceTitle h3 {
    margin: 0;
    font-family: 'Inter';
    font-weight: 700;
    font-size: 1.2em;
    color: rgb(9, 23, 43);
    line-height: 110%;
}

.sideFiltersContentSvg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sideFiltersContentSvg {
    width: 20px;
    transition: all 0.35s ease-in-out;
}

.sideFiltersPrice {
    padding-bottom: 0;
}

/* Filtro "Solo productos en oferta" (?ofertas=1) */
.sideFiltersOffers {
    padding-bottom: 40px;
}

.sideFiltersOffers label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Inter';
    font-weight: 700;
    font-size: 1.2em;
    color: rgb(9, 23, 43);
}

.sideFiltersOffers input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: rgb(9, 23, 43);
    cursor: pointer;
}

.sideFiltersPriceTitle h3 {
    padding-bottom: 20px;
}

.sideFiltersPriceTitle p {
    color: rgb(128, 128, 128);
    font-family: 'Inter';
    font-weight: 300;
    font-size: 0.9em;
}

.sideFiltersBottom {
    width: 100%;
    box-sizing: border-box;
    padding: 0 7%;
    border-top: 1px solid #09172b;
    padding-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.sideFiltersCleanFilter, .sideFiltersApply {
    border: 1px solid rgb(9, 23, 43);
    width: 44%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
}

.sideFiltersCleanFilter p, .sideFiltersApply p {
    color: black;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 1em;
    line-height: 100%;
}

.sideFiltersContentInner {
    padding-top: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    opacity: 0;
}

.sideFiltersType.open .sideFiltersContentInner {
    padding-top: 15px;
    height: auto;
    opacity: 1;
}

.sideFiltersType.open .sideFiltersContentSvg {
    transform: rotate(180deg);
}

/* Categorías y marcas en dos columnas (orden alfabético de arriba a abajo) */
.sideFiltersContentInner {
    column-count: 2;
    column-gap: 24px;
}

.sideFiltersContentInner p {
    margin-top: 0;
    margin-bottom: 6px;
    cursor: pointer;
    position: relative;
    width: fit-content;
    max-width: 100%;
    break-inside: avoid;
    overflow-wrap: break-word;
}

.sideFiltersContentInner p::after {
    content: '';
    top: 100%;
    left: 0;
    position: absolute;
    height: 2px;
    background-color: black;
    border-radius: 20px;
    width: 100%;
    transform: translateY(1px) scaleX(0);
    transform-origin: left center;
    transition: all 0.35s ease-in-out;
}

.sideFiltersContentInner p:hover::after {
    transform: translateY(1px) scaleX(1);
}

.sideFiltersContentInner p.selected::after {
    transform: translateY(1px) scaleX(1);
}

.sideFiltersPriceInner {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.sideFiltersPriceTitle {
    margin-bottom: 40px;
}

.sideFiltersPriceBulletMin,
.sideFiltersPriceBulletMax {
    position: absolute;
    top: 50%;
    left: calc(var(--progreso, 0) * 1%);
    width: 20px;
    height: 20px;
    z-index: 10;
    background-color: white;
    transform: translate(calc(var(--progreso, 0) * -1%), -50%);
    border-radius: 50%;
    border: 1px solid rgba(77, 77, 77, 0.5);
    cursor: grab;
}

.sideFiltersPriceBulletMin:active,
.sideFiltersPriceBulletMax:active {
    cursor: grabbing;
}

.sideFiltersPriceLine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(77, 77, 77, 0.5);
    border-radius: 20px;
}

.blurbsProduct .noProducts {
    font-family: 'Inter';
    margin: 0 auto;
    margin-bottom: 80px;
    font-size: 2em;
    color: rgb(9, 23, 43);
    font-weight: 600;
    text-align: center;
}

.blurbProductTop::after {
    display: none;
    position: absolute;
    content: 'PRODUCTO SIN STOCK';
    background-color: rgb(9, 23, 43);
    width: 80%;
    top: 100%;
    left: 50%;
    text-align: center;
    color: white;
    transform: translate(-50%, calc(-100% - 3px));
    font-family: 'INTER';
    padding: 5px 0;
}

.noStock .blurbProductTop::after {
    display: block;
}

.textCategoryDescription {
    padding: 60px 6.4%;
    text-align: center;
    padding-top: 0;
}

.textCategoryDescription p {
    margin: 0;
    font-family: 'Inter';
    color: rgb(51, 51, 51);
    font-size: 1.2em;
    font-weight: 400;
}

/* Texto SEO de categorías y marcas: varios párrafos y enlaces a servicios */
.textCategoryDescription p + p {
    margin-top: 14px;
}

.textCategoryDescription strong {
    font-weight: 600;
}

.textCategoryDescription a {
    color: rgb(9, 23, 43);
    text-decoration: underline;
}

/* PAGINACIÓN (sobrescribe los estilos por defecto de woocommerce.css) */

.paginationCategory {
    padding: 0 6.4%;
    margin-bottom: 70px;
}

.paginationCategory nav.woocommerce-pagination {
    text-align: center;
}

.paginationCategory nav.woocommerce-pagination ul.page-numbers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
    white-space: normal;
}

.paginationCategory nav.woocommerce-pagination ul.page-numbers li {
    float: none;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.paginationCategory nav.woocommerce-pagination ul.page-numbers li .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    margin: 0;
    border: 1px solid rgb(9, 23, 43);
    background-color: white;
    color: rgb(9, 23, 43);
    font-family: 'Inter';
    font-weight: 400;
    font-size: 0.95em;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}

.paginationCategory nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
.paginationCategory nav.woocommerce-pagination ul.page-numbers li a.page-numbers:focus {
    background-color: rgb(9, 23, 43);
    color: white;
}

.paginationCategory nav.woocommerce-pagination ul.page-numbers li span.page-numbers.current {
    background-color: rgb(9, 23, 43);
    color: white;
    font-weight: 600;
}

.paginationCategory nav.woocommerce-pagination ul.page-numbers li span.page-numbers.dots {
    border-color: transparent;
    min-width: 20px;
    padding: 0;
    color: rgb(128, 128, 128);
}

.paginationCategory nav.woocommerce-pagination ul.page-numbers li .page-numbers.prev,
.paginationCategory nav.woocommerce-pagination ul.page-numbers li .page-numbers.next {
    font-size: 1.2em;
}

@media only screen and (max-width: 1600px) {
    .sideFiltersInner {
        width: 35%;
    }
}

@media only screen and (max-width: 1200px) {
    .blurbProduct {
        width: 33.33%;
    }
    .sideFiltersInner {
        width: 40%;
    }
}

@media only screen and (max-width: 1000px) {
    .blurbProduct {
        width: 50%;
    }
    .sideFiltersInner {
        width: 45%;
    }
    .blurbsProduct .noProducts {
        font-size: 1.5em;
    }
}

@media only screen and (max-width: 800px) {
    .swiper-button-next, .swiper-button-prev {
        top: 55%;
        padding: 8px;
        width: 15px;
    }
    .swiper-slide p {
        font-size: 0.9em;
    }
    .titleCategory h1, .titleCategory h2 {
        text-align: center;
    }
    .titleCategorySeparator {
        width: 100%;
    }
    .sideFiltersInner {
        width: 60%;
    }
}

@media only screen and (max-width: 600px) {
    .swiper-button-next {
        transform: translate(12px, 0);
    }
    .swiper-button-prev {
        transform: translate(calc(-100% - 12px), 0)
    }
    /* Móvil: 2 productos por fila (antes 1 por fila y tarjetas de 570px: mucho scroll) */
    .blurbsProduct {
        padding: 0 4%;
    }
    .blurbProduct {
        width: 50%;
        height: 390px;
        margin-bottom: 36px;
        padding: 0 6px;
        box-sizing: border-box;
    }
    .blurbProductTop {
        height: 58%;
    }
    .blurbProductImgs {
        height: 88%;
    }
    .blurbProductIcons {
        top: 2px;
        transform: translateX(calc(-100% - 4px));
    }
    .blurbProductBottom {
        height: 42%;
        padding-top: 10px;
    }
    .blurbProductBottom p {
        font-size: 0.8em;
    }
    .blurbProductTitle p:first-of-type {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .blurbProductPrice p {
        font-size: 0.85em;
    }
    .blurbProductAddCart {
        width: 100%;
        padding: 6px 0;
        box-sizing: border-box;
    }
    .blurbProductAddCart p {
        font-size: 0.8em;
    }
    .blurbProductTop::after {
        width: 92%;
        font-size: 0.65em;
    }
    .filtersCategory {
        height: 115px;
        flex-wrap: wrap;
    }
    .filtersCategoryLeft, .filtersCategoryRight {
        width: 100%;
        height: calc(50% - 7.5px);
    }
    .filtersCategoryLeft {
        margin-bottom: 15px;
    }
    .filtersCategoryButton, .filtersCategoryResults {
        width: 50%;
    }
    .textCategory {
        text-align: center;
    }
    .sideFiltersInner {
        width: 70%;
    }
    .sideFiltersCleanFilter, .sideFiltersApply {
        width: 47%;
    }
    .sideFiltersCleanFilter p, .sideFiltersApply p {
        font-size: 0.9em;
    }
    .swiperCategories {
        margin: 0 80px;
    }
}

@media only screen and (max-width: 450px) {
    .sideFiltersInner {
        width: 85%;
    }
    .sideFiltersCleanFilter p, .sideFiltersApply p {
        font-size: 0.8em;
    }
    .swiperCategories {
        margin: 0 70px;
    }
}

/* Por debajo de 360px las dos columnas parten las palabras: volvemos a una sola */
@media only screen and (max-width: 359px) {
    .sideFiltersContentInner {
        column-count: 1;
    }
}

/* Categorías en grupos plegables (árbol de 2 niveles: principal → subcategorías) */
.sideFiltersContentInner.sideCategory,
.sideFiltersContentInner.sideBrand {
    column-count: 1;
}

.catGroup {
    border-bottom: 1px solid rgba(9, 23, 43, 0.15);
}

.catGroupHead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    cursor: pointer;
    font-family: 'Inter';
}

.catGroupName {
    font-weight: 600;
    color: #09172b;
    font-size: 0.95em;
}

.catGroupNum {
    color: #808080;
    font-weight: 400;
    font-size: 0.85em;
    margin-left: 5px;
}

.catGroupHead svg {
    width: 14px;
    flex-shrink: 0;
    fill: #09172b;
    transition: transform 0.25s;
}

.catGroup.open .catGroupHead svg {
    transform: rotate(180deg);
}

.catGroupItems {
    display: none;
    column-count: 2;
    column-gap: 24px;
    padding: 0 0 12px 12px;
}

.catGroup.open .catGroupItems {
    display: block;
}

.sideFiltersContentInner .catGroupItems p {
    font-size: 0.9em;
    padding-bottom: 3px;
    margin-bottom: 4px;
}

/* El subrayado va dentro de la caja del <p>: así no salta a la columna de al lado */
.sideFiltersContentInner .catGroupItems p::after {
    top: auto;
    bottom: 0;
}

.catGroupItems p.catGroupTodo {
    font-weight: 600;
}

@media only screen and (max-width: 359px) {
    .catGroupItems {
        column-count: 1;
    }
}

/* MOSTRAR N PRODUCTOS (select #mostrar), a la izquierda de "Ordenar por" */
.filtersCategoryRight {
    display: flex;
    gap: 12px;
}

.filtersCategoryPerPage {
    height: 100%;
    flex: 0 0 auto;
}

.filtersCategoryPerPage select#mostrar {
    height: 100%;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 0.9em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 10px 40px 10px 15px;
    border: 2px solid rgb(9, 23, 43);
    border-radius: 0;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
}

@media only screen and (max-width: 800px) {
    .filtersCategoryOrderBy {
        flex: 1 1 auto;
        width: auto;
    }
    .filtersCategoryPerPage select#mostrar {
        padding-right: 34px;
    }
}

/* OFERTA: precio normal tachado + precio rebajado, uno al lado del otro y centrados (como en las novedades de la home) */
.blurbProductPrice {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    column-gap: 8px;
}

.blurbProductPrice p.blurbProductPriceOld {
    color: rgb(51, 51, 51);
    text-decoration: line-through;
    text-decoration-color: rgb(193, 39, 45);
    text-decoration-thickness: 2px;
}
