/* =========================================================
   CATÁLOGO NOMBIKE
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Road+Rage&display=swap');


/* =========================================================
   RESET DEL CATÁLOGO
   ========================================================= */

.catalog-page {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111111;
}

.catalog-page *,
.catalog-page *::before,
.catalog-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   HEADER DEL CATÁLOGO
   ========================================================= */

.catalog-header {
    width: 100%;
    padding: 60px 0 40px;
}

.catalog-header__inner {
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.catalog-title {
    margin: 0;

    font-family: "Road Rage", sans-serif;
    font-size: 72px;
    font-weight: 400;
    line-height: 1;

    color: #111111;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.catalog-search {
    display: flex;
    align-items: stretch;

    width: 430px;
    max-width: 100%;
}

.catalog-search input {
    flex: 1;

    min-width: 0;
    height: 52px;
    border-radius: 5px 0 0 5px;

    padding: 0 18px;

    border: 1px solid #bdbdbd;
    border-right: none;

    background: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #111111;

    outline: none;
}

.catalog-search input:focus {
    border-color: #111111;
}

.catalog-search input::placeholder {
    color: #777777;
}

.catalog-search button {
    height: 52px;
    
    border-radius: 0 5px 5px 0;

    padding: 0 24px;

    border: 1px solid #FF1B1BCF;

    background: #FF1B1BCF;
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.catalog-search button:hover {
    background: #CD1E1E;
    color: #ffffff;

}

/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

.catalog-content {
    width: 80%;
    max-width: 1600px;

    margin: 0 auto 100px;

    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);

    gap: 60px;

    align-items: start;
}


/* =========================================================
   FILTROS
   ========================================================= */

.catalog-filters {
    width: 100%;

    border: 1px solid #d7d7d7;
    background: #ffffff;
    border-radius: 5px 5px 5px 5px;

    position: sticky;
    top: 30px;
}

.catalog-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 20px;

    border-bottom: 1px solid #d7d7d7;
}

.catalog-filters__header h2 {
    margin: 0;

    font-family: Roboto, sans-serif;
    font-size: 20px;
    font-weight: 700;

    color: #111111;
}

.catalog-clear-filters {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;

    color: #111111;
    text-decoration: underline;

    transition: color 0.2s ease;
}

.catalog-clear-filters:hover {
    color: #ff1b1b;
}


/* =========================================================
   CADA FILTRO
   ========================================================= */

.catalog-filter {
    padding: 25px 20px;

    border-bottom: 1px solid #e2e2e2;
}

.catalog-filter:last-of-type {
    border-bottom: none;
}

.catalog-filter__toggle {
    width: 100%;

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;

    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 700;

    letter-spacing: 0.3px;

    color: #111111;

    text-align: left;
}

.catalog-filter__title {
    display: block;
}

.catalog-filter__arrow {
    width: 14px;
    height: 14px;

    display: block;

    object-fit: contain;

    transition: transform 0.25s ease;
}


/* =========================================================
   OPCIONES
   ========================================================= */

.catalog-filter__options {
    display: none;

    flex-direction: column;
    gap: 11px;

    padding-top: 18px;
}

.catalog-filter.is-open .catalog-filter__options {
    display: flex;
}

.catalog-filter.is-open .catalog-filter__arrow {
    transform: rotate(180deg);
}

.catalog-filter__option {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 0;

    cursor: pointer;

    font-family: Roboto, sans-serif;
    font-size: 14px;

    color: #333333;
}

.catalog-filter__option input {
    width: 15px;
    height: 15px;

    margin: 0;

    accent-color: #111111;

    cursor: pointer;
}


/* =========================================================
   PRECIO
   ========================================================= */

.catalog-price-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.catalog-price-fields input {
    width: 100%;
    height: 40px;

    border-radius: 5px 5px 5px 5px;

    padding: 0 10px;

    border: 1px solid #cccccc;

    background: #ffffff;

    font-family: Roboto, sans-serif;
    font-size: 13px;

    outline: none;
}

.catalog-price-fields input:focus {
    border-color: #111111;
}


/* =========================================================
   BOTÓN APLICAR
   ========================================================= */

.catalog-apply-filters {
    width: calc(100% - 40px);

    margin: 20px;

    min-height: 46px;

    border: 1px solid #FF1B1BCF;
    border-radius: 5px;

    background: #FF1B1BCF;
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}
.catalog-apply-filters:hover {
    background: #CD1E1E;
    color: #ffffff;
}

/* =========================================================
   ÁREA DE PRODUCTOS
   ========================================================= */

.catalog-products-area {
    min-width: 0;
}

.catalog-products-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 35px;

    margin-bottom: 25px;
}

.catalog-results-count {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #666666;
}


/* =========================================================
   GRILLA DE PRODUCTOS
   ========================================================= */

.catalog-products-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 35px 25px;

    align-items: start;
}


/* =========================================================
   TARJETA DEL PRODUCTO
   ========================================================= */

.catalog-product-card {
    width: 100%;
    height: 570px;

    background: #ffffff;

    border: 1px solid #d8d8d8;

    overflow: hidden;

    transform: translateY(0) scale(1);

    box-shadow: 0 0 0 rgba(0, 0, 0, 0);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    position: relative;
    z-index: 1;
}

.catalog-product-card:hover {
    transform: translateY(-6px) scale(1.025);

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);

    z-index: 5;
}


/* =========================================================
   LINK DE LA TARJETA
   ========================================================= */

.catalog-product-card__link {
    display: block;

    width: 100%;

    color: inherit;
    text-decoration: none;
}


/* =========================================================
   IMAGEN
   ========================================================= */

.catalog-product-card__image {
    width: 100%;

    aspect-ratio: 1 / 1;

    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    overflow: hidden;
}

.catalog-product-card__image img {
    display: block;

    width: 300px;
    height: 300px;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transition: transform 0.25s ease;
}


/*
 * La tarjeta completa hace el zoom.
 * La imagen solamente acompaña el movimiento.
 */

.catalog-product-card:hover .catalog-product-card__image img {
    transform: scale(1.02);
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.catalog-product-card__info {
    padding: 0 20px 25px;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.catalog-product-card__title {
    margin: 10px 0 0;

    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;

    line-height: 1.1;

    color: #111111;
}


/* =========================================================
   CATEGORÍA
   ========================================================= */

.catalog-product-card__category {
    margin-top: 20px;

    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;

    line-height: 1.2;

    color: #111111;

    text-decoration: underline;

    transition: color 0.2s ease;
}

.catalog-product-card:hover .catalog-product-card__category {
    color: #ff1b1b;
}


/* =========================================================
   PRECIO
   ========================================================= */

.catalog-product-card__price {
    margin-top: 20px;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;

    line-height: 1.2;

    color: #111111;
}

.catalog-product-card__price del {
    color: #777777;
    font-weight: 400;
}

.catalog-product-card__price ins {
    text-decoration: none;
}


/* =========================================================
   SIN RESULTADOS
   ========================================================= */

.catalog-no-results {
    width: 100%;

    padding: 80px 30px;

    border: 1px solid #dddddd;

    text-align: center;
}

.catalog-no-results h2 {
    margin: 0 0 15px;

    font-family: "Road Rage", sans-serif;
    font-size: 48px;
    font-weight: 400;
}

.catalog-no-results p {
    margin: 0 0 25px;

    font-family: Arial, sans-serif;
    font-size: 16px;

    color: #666666;
}

.catalog-no-results a {
    display: inline-block;

    padding: 13px 24px;

    background: #FF1B1BCF;
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    border: 1px solid #FF1B1BCF;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}
.catalog-no-results a:hover {
    background: #ffffff;
    color: #FF1B1BCF;
    border-color: #FF1B1BCF;
}


/* =========================================================
   PAGINACIÓN
   ========================================================= */

.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 60px;
}

.catalog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    margin: 0 3px;

    border: 1px solid #dddddd;

    color: #111111;

    font-family: Arial, sans-serif;
    font-size: 14px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.catalog-pagination .page-numbers:hover,
.catalog-pagination .page-numbers.current {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .catalog-header__inner {
        width: 90%;
    }

    .catalog-content {
        width: 90%;

        grid-template-columns: 220px minmax(0, 1fr);

        gap: 35px;
    }

    .catalog-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-title {
        font-size: 60px;
    }

    .catalog-product-card__title {
        font-size: 26px;
    }

    .catalog-product-card__category {
        font-size: 18px;
    }

    .catalog-product-card__price {
        font-size: 20px;
    }
}


/* =========================================================
   TABLET PEQUEÑO
   ========================================================= */

@media (max-width: 800px) {

    .catalog-header {
        padding: 40px 0 30px;
    }

    .catalog-header__inner {
        width: 92%;

        flex-direction: column;
        align-items: stretch;

        gap: 25px;
    }

    .catalog-title {
        font-size: 56px;
    }

    .catalog-search {
        width: 100%;
    }

    .catalog-content {
        width: 92%;

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .catalog-filters {
        width: 100%;
    }

    .catalog-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 550px) {

    .catalog-header {
        padding: 30px 0 25px;
    }

    .catalog-header__inner {
        width: 94%;
    }

    .catalog-title {
        font-size: 48px;
    }

    .catalog-search {
        display: grid;
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .catalog-search input {
        border-right: 1px solid #bdbdbd;
    }

    .catalog-search button {
        width: 100%;
    }

    .catalog-content {
        width: 94%;
        margin-bottom: 60px;
    }

    .catalog-products-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .catalog-product-card__title {
        font-size: 27px;
    }

    .catalog-product-card__category {
        font-size: 19px;
    }

    .catalog-product-card__price {
        font-size: 21px;
    }
}









/* =========================================================
   QUITAR HOVER DE LOS TÍTULOS DE FILTROS
   ========================================================= */

.catalog-filter__toggle,
.catalog-filter__toggle:hover,
.catalog-filter__toggle:focus,
.catalog-filter__toggle:active {
    color: #111111 !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.catalog-filter__toggle:hover .catalog-filter__title,
.catalog-filter__toggle:focus .catalog-filter__title,
.catalog-filter__toggle:active .catalog-filter__title {
    color: #111111 !important;
}









/* =========================================================
   FILTROS FIJOS DURANTE EL SCROLL
   ========================================================= */

@media (min-width: 801px) {

    .catalog-filters {
        position: sticky;
        top: 110px;

        align-self: start;

        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

}