.wolf-category-showcase {
    width: 100%;
    font-family: "Montserrat", sans-serif;
}

.wolf-category-showcase,
.wolf-category-showcase * {
    box-sizing: border-box;
}

.wolf-category-showcase__title {
    margin: 0 0 30px;
    color: #252525;
    font-family: inherit;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

/*
|--------------------------------------------------------------------------
| Grid principal
|--------------------------------------------------------------------------
*/

.wolf-category-showcase__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(270px, 1fr)
        minmax(250px, 1fr);
    grid-template-rows: repeat(2, 195px);
    gap: 18px;
}

/*
|--------------------------------------------------------------------------
| Card
|--------------------------------------------------------------------------
*/

.wolf-category-card {
    position: relative;
    display: flex;
    overflow: hidden;
    min-width: 0;
    padding: 28px;
    color: #fff;
    background-color: var(--wolf-category-background);
    border-radius: 15px;
    isolation: isolate;
}

.wolf-category-card--large {
    grid-row: 1 / 3;
}

.wolf-category-card--medium {
    grid-row: 1 / 3;
}

.wolf-category-card--small {
    padding: 24px;
}

/*
|--------------------------------------------------------------------------
| Imagem
|--------------------------------------------------------------------------
|
| Como a imagem já possui fundo próprio, ela preenche todo o card.
|
*/

.wolf-category-card__image {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    pointer-events: none;
    user-select: none;
}

/*
 * Remove as antigas limitações das imagens pequenas.
 */
.wolf-category-card--small .wolf-category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
|--------------------------------------------------------------------------
| Conteúdo
|--------------------------------------------------------------------------
*/

.wolf-category-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    width: auto;
    max-width: 62%;
    flex-direction: column;
    align-items: flex-start;
}

/*
 * O card de Pod Systems precisa de um pouco mais de largura
 * para não quebrar título e botão.
 */
.wolf-category-card--medium .wolf-category-card__content {
    max-width: 72%;
}

.wolf-category-card--small .wolf-category-card__content {
    max-width: 72%;
}

/*
|--------------------------------------------------------------------------
| Título
|--------------------------------------------------------------------------
*/

.wolf-category-card h3 {
    margin: 0 0 7px;
    color: #fff;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

/*
 * Impede quebra no desktop.
 */
.wolf-category-card--medium h3,
.wolf-category-card--small h3 {
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Preço
|--------------------------------------------------------------------------
*/

.wolf-category-card__from {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
}

.wolf-category-card__price {
    display: block;
    color: #fff;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.wolf-category-card__price .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/*
|--------------------------------------------------------------------------
| Botão
|--------------------------------------------------------------------------
*/

.wolf-category-card__button {
    display: inline-flex;
    width: auto;
    min-width: max-content;
    min-height: 35px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 8px 18px;
    color: #202020 !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    text-decoration: none !important;
    background-color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.wolf-category-card__button:hover,
.wolf-category-card__button:focus {
    color: #fff !important;
    background-color: #e93b45;
    border-color: #e93b45;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(135, 0, 9, 0.2);
}

.wolf-category-card__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Tablet grande
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {
    .wolf-category-showcase__grid {
        grid-template-columns:
            minmax(0, 1.8fr)
            minmax(240px, 1fr)
            minmax(225px, 0.95fr);
    }

    .wolf-category-card {
        padding: 24px;
    }

    .wolf-category-card h3 {
        font-size: 18px;
    }

    .wolf-category-card__content {
        max-width: 66%;
    }

    .wolf-category-card--medium .wolf-category-card__content,
    .wolf-category-card--small .wolf-category-card__content {
        max-width: 76%;
    }

    .wolf-category-card__button {
        padding-right: 15px;
        padding-left: 15px;
        font-size: 11px;
    }
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .wolf-category-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, 300px);
    }

    .wolf-category-card--large,
    .wolf-category-card--medium {
        grid-row: auto;
    }

    .wolf-category-card--small {
        min-height: 240px;
    }

    .wolf-category-card__content,
    .wolf-category-card--medium .wolf-category-card__content,
    .wolf-category-card--small .wolf-category-card__content {
        max-width: 66%;
    }

    .wolf-category-card--medium h3,
    .wolf-category-card--small h3 {
        white-space: normal;
    }
}

/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| Celular
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {
    .wolf-category-showcase__title {
        margin-bottom: 22px;
        font-size: 23px;
    }

    /*
     * Grid mobile:
     *
     * Linha 1: Pods descartáveis em largura total.
     * Linhas 2 e 3:
     * - Pods systems à esquerda, ocupando as duas linhas.
     * - E-líquidos e Acessórios empilhados à direita.
     */
    .wolf-category-showcase__grid {
        display: grid;
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(0, 1fr);
        grid-template-rows:
            280px
            145px
            145px;
        gap: 12px;
    }

    /*
     * Pods descartáveis.
     */
    .wolf-category-card--large {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 0;
        padding: 24px;
    }

    /*
     * Pods systems.
     */
    .wolf-category-card--medium {
        grid-column: 1;
        grid-row: 2 / 4;
        min-height: 0;
        padding: 20px;
    }

    /*
     * E-líquidos e acessórios.
     *
     * Como os dois usam a classe small, o posicionamento
     * é definido pela ordem em que aparecem no HTML.
     */
    .wolf-category-card--small {
        grid-column: 2;
        min-height: 0;
        padding: 16px;
    }

    .wolf-category-card--small:nth-of-type(3) {
        grid-row: 2;
    }

    .wolf-category-card--small:nth-of-type(4) {
        grid-row: 3;
    }

    /*
     * Conteúdo do bloco grande.
     */
    .wolf-category-card--large .wolf-category-card__content {
        max-width: 62%;
    }

    /*
     * Conteúdo do Pods systems.
     */
    .wolf-category-card--medium .wolf-category-card__content {
        max-width: 88%;
    }

    /*
     * Conteúdo dos cards pequenos.
     */
    .wolf-category-card--small .wolf-category-card__content {
        max-width: 86%;
    }

    /*
     * Títulos.
     */
    .wolf-category-card h3,
    .wolf-category-card--medium h3,
    .wolf-category-card--small h3 {
        font-size: 17px;
        white-space: normal;
    }

    .wolf-category-card--small h3 {
        margin-bottom: 4px;
        font-size: 14px;
        line-height: 1.15;
    }

    /*
     * Texto “a partir de”.
     */
    .wolf-category-card__from {
        font-size: 14px;
    }

    .wolf-category-card--small .wolf-category-card__from {
        margin-bottom: 1px;
        font-size: 11px;
    }

    /*
     * Preços.
     */
    .wolf-category-card__price {
        font-size: 20px;
    }

    .wolf-category-card--small .wolf-category-card__price {
        font-size: 16px;
    }

    /*
     * Botões.
     */
    .wolf-category-card__button {
        margin-top: 15px;
        padding: 9px 16px;
        font-size: 11px;
    }

    .wolf-category-card--small .wolf-category-card__button {
        min-height: 29px;
        margin-top: 9px;
        padding: 7px 11px;
        font-size: 9px;
    }

    /*
     * Nos cards pequenos, mantém o texto acima da imagem.
     */
    .wolf-category-card--small .wolf-category-card__content {
        position: relative;
        z-index: 3;
    }

    /*
     * Ajuste da imagem do bloco grande.
     */
    .wolf-category-card--large .wolf-category-card__image {
        object-position: center;
    }

    /*
     * Pods systems:
     * mantém o foco no lado direito/inferior.
     */
    .wolf-category-card--medium .wolf-category-card__image {
        object-position: center bottom;
    }

    /*
     * Cards pequenos:
     * imagem de fundo ocupa tudo.
     */
    .wolf-category-card--small .wolf-category-card__image {
        object-position: center;
    }
}

/*
|--------------------------------------------------------------------------
| Celular pequeno
|--------------------------------------------------------------------------
*/

@media (max-width: 390px) {
    .wolf-category-showcase__grid {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(0, .95fr);
        grid-template-rows:
            250px
            132px
            132px;
        gap: 10px;
    }

    .wolf-category-card--large {
        padding: 21px;
    }

    .wolf-category-card--medium {
        padding: 17px;
    }

    .wolf-category-card--small {
        padding: 13px;
    }

    .wolf-category-card--large .wolf-category-card__content {
        max-width: 66%;
    }

    .wolf-category-card--medium .wolf-category-card__content {
        max-width: 90%;
    }

    .wolf-category-card--small .wolf-category-card__content {
        max-width: 92%;
    }

    .wolf-category-card--medium h3 {
        font-size: 15px;
    }

    .wolf-category-card--small h3 {
        font-size: 12px;
    }

    .wolf-category-card--small .wolf-category-card__from {
        font-size: 10px;
    }

    .wolf-category-card--small .wolf-category-card__price {
        font-size: 14px;
    }

    .wolf-category-card--small .wolf-category-card__button {
        min-height: 26px;
        padding: 6px 9px;
        font-size: 8px;
    }
}

/*
|--------------------------------------------------------------------------
| Hover do card
|--------------------------------------------------------------------------
*/

.wolf-category-card {
    transform: translateY(0);
    transition:
        transform .28s ease,
        box-shadow .28s ease;
}

.wolf-category-card__image {
    transition:
        transform .45s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.wolf-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.wolf-category-card:hover .wolf-category-card__image {
    transform: scale(1.06) translateY(-4px);
}

.wolf-category-card:hover .wolf-category-card__button {
    color: #fff !important;
    background: #e93b45;
    border-color: #e93b45;
}