/* =========================================================
   CATÁLOGO COMO NO V2 ("Todos os produtos" e páginas de coleção)
   Caminho do topo com linha, rótulo, título, texto de apoio, atalhos para
   as coleções, contador e "Ordenar". Medidas do site de referência.
   Dados em config/storefront-lines.php (catalog).
   ========================================================= */

body.storefront-catalog .catalog-page {
    padding-top: 0;
}

body.storefront-catalog .catalog-page .catalog-page__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 22px 0 16px;
    border-bottom: 1px solid #e3e9f1;
    color: #5b6b82;
    font-size: 12.5px;
    line-height: 15px;
}

body.storefront-catalog .catalog-page .catalog-page__breadcrumb a {
    color: #5b6b82;
    text-decoration: none;
}

body.storefront-catalog .catalog-page .catalog-page__breadcrumb a:hover {
    color: #1a5db6;
}

body.storefront-catalog .catalog-v2__head {
    padding-top: 34px;
}

body.storefront-catalog .catalog-v2__eyebrow {
    display: block;
    color: #1a5db6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 14px;
    text-transform: uppercase;
}

body.storefront-catalog .catalog-v2__head h1 {
    margin: 10px 0 0;
    color: #061c40;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: normal;
    line-height: 44px;
}

body.storefront-catalog .catalog-v2__lead {
    margin: 10px 0 0;
    color: #5b6b82;
    font-size: 15px;
    line-height: 1.5;
}

body.storefront-catalog .catalog-v2__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

body.storefront-catalog .catalog-v2__chips a {
    padding: 9px 16px;
    border: 1px solid #e3e9f1;
    border-radius: 999px;
    background: #ffffff;
    color: #061c40;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 15px;
    text-decoration: none;
}

body.storefront-catalog .catalog-v2__chips a.is-active {
    border-color: #061c40;
    background: #061c40;
    color: #ffffff;
}

body.storefront-catalog .catalog-v2__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3e9f1;
    color: #5b6b82;
    font-size: 13px;
}

body.storefront-catalog .catalog-v2__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #061c40;
    font-weight: 600;
}

body.storefront-catalog .catalog-v2__sort select {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #cbd4e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0b1a33;
    font: inherit;
    font-size: 13px;
}

body.storefront-catalog .catalog-page .catalog-grid {
    margin-top: 30px;
}

@media (max-width: 900px) {
    body.storefront-catalog .catalog-page .catalog-page__breadcrumb {
        padding-top: 14px;
        padding-bottom: 12px;
    }

    body.storefront-catalog .catalog-v2__head h1 {
        font-size: 26px;
        line-height: 32px;
    }

    body.storefront-catalog .catalog-v2__lead {
        font-size: 13px;
    }

    body.storefront-catalog .catalog-v2__chips {
        flex-wrap: nowrap;
        margin-right: -14px;
        margin-left: -14px;
        padding: 0 14px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.storefront-catalog .catalog-v2__chips::-webkit-scrollbar {
        display: none;
    }

    body.storefront-catalog .catalog-v2__chips a {
        flex: none;
    }

    body.storefront-catalog .catalog-v2__bar {
        margin-top: 18px;
    }

    body.storefront-catalog .catalog-v2__sort select {
        max-width: 170px;
    }

    body.storefront-catalog .catalog-page .catalog-grid {
        margin-top: 20px;
    }
}

/* "Todos os produtos" separado por coleção, com o cabeçalho das seções da
   home. Espaços iguais aos de "Produtos por categoria". */
body.storefront-catalog .catalog-groups {
    gap: 70px;
    margin-top: 40px;
}

body.storefront-catalog .catalog-groups .catalog-home__header--collection {
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e3e9f1;
}

body.storefront-catalog .catalog-groups .catalog-home__header--collection h2 {
    margin-top: 10px;
}

body.storefront-catalog .catalog-groups .catalog-grid {
    margin-top: 0;
}

@media (max-width: 900px) {
    body.storefront-catalog .catalog-groups {
        gap: 40px;
        margin-top: 24px;
    }

    body.storefront-catalog .catalog-groups .catalog-home__header--collection {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    body.storefront-catalog .catalog-groups .catalog-home__header--collection h2 {
        font-size: 22px;
    }

    body.storefront-catalog .catalog-groups .catalog-home__header--collection .catalog-home__all {
        margin-top: 0;
    }
}
