/* ==========================================================================
   WooPanel — Categorias
   Escopado em .wpcat-wrapper.
   ========================================================================== */

:root {
    --wp-admin-bar-height: 0px;
}

body.admin-bar {
    --wp-admin-bar-height: 32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --wp-admin-bar-height: 46px;
    }
}

.wpcat-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 32px 24px;
    font-family: inherit;
    color: inherit;
}

.wpcat-wrapper *,
.wpcat-wrapper *::before,
.wpcat-wrapper *::after {
    box-sizing: border-box;
}

.wpcat-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Layout 2 Colunas (Grid Desktop)
   ============================================================ */
.wpcat-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}

.wpcat-main-content {
    min-width: 0;
}

/* ============================================================
   Painel Lateral (Sidebar Sticky Desktop)
   ============================================================ */
.wpcat-sidebar {
    position: sticky;
    top: calc(20px + var(--wp-admin-bar-height, 0px));
    max-height: calc(100vh - 40px - var(--wp-admin-bar-height, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(127, 127, 127, .3) transparent;
}

.wpcat-sidebar::-webkit-scrollbar {
    width: 4px;
}

.wpcat-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.wpcat-sidebar::-webkit-scrollbar-thumb {
    background: rgba(127, 127, 127, .3);
    border-radius: 4px;
}

.wpcat-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(127, 127, 127, .18);
}

.wpcat-sidebar__title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpcat-sidebar__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: inherit;
}

.wpcat-sidebar__clear-all {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: inherit;
    opacity: .6;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: opacity .2s ease;
}

.wpcat-sidebar__clear-all:hover {
    opacity: 1;
}

/* ============================================================
   Accordions / Sanfonas Minimalistas
   ============================================================ */
.wpcat-accordions {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wpcat-accordion {
    border-bottom: 1px solid rgba(127, 127, 127, .12);
    margin: 0;
}

.wpcat-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color .2s ease;
}

.wpcat-accordion__summary::-webkit-details-marker {
    display: none;
}

.wpcat-accordion__summary:hover {
    opacity: .75;
}

.wpcat-accordion__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wpcat-accordion__icon {
    opacity: .5;
    transition: transform .25s ease;
}

.wpcat-accordion[open] .wpcat-accordion__icon {
    transform: rotate(180deg);
}

.wpcat-accordion__content {
    padding-bottom: 20px;
}

/* ============================================================
   Campo de Busca (Padrão Profissional E-Commerce: Zara, Renner, Dafiti)
   ============================================================ */
.wpcat-wrapper .wpcat-search-field,
.wpcat-search-field {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpcat-wrapper .wpcat-search-field__inner,
.wpcat-search-field__inner {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ícone da Lupa (Área Fixa à Esquerda, Sem Interferir no Foco/Clique) */
.wpcat-wrapper .wpcat-search-field__icon,
.wpcat-search-field__icon,
svg.wpcat-search-field__icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    opacity: .55 !important;
    z-index: 3 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0 !important;
    color: currentColor !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Input de Pesquisa (Padding Esquerdo de 48px Reserva Espaço para o Ícone) */
.wpcat-wrapper input[type="search"].wpcat-search-field__input,
.wpcat-wrapper input.wpcat-search-field__input,
.wpcat-search-field__input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 48px !important; /* Reserva 16px margem + 18px ícone + 14px espaçamento */
    padding-right: 44px !important; /* Reserva espaço para botão de limpar */
    border: 1.5px solid rgba(127, 127, 127, .25) !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    outline: none !important;
}

/* Desabilita botões nativos de busca em Webkit para evitar conflito de espaçamento */
.wpcat-wrapper input[type="search"].wpcat-search-field__input::-webkit-search-decoration,
.wpcat-wrapper input[type="search"].wpcat-search-field__input::-webkit-search-cancel-button,
.wpcat-wrapper input[type="search"].wpcat-search-field__input::-webkit-search-results-button,
.wpcat-wrapper input[type="search"].wpcat-search-field__input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important;
}

/* Placeholder (Nunca toca o ícone, inicia exatamente aos 48px) */
.wpcat-wrapper .wpcat-search-field__input::placeholder,
.wpcat-search-field__input::placeholder {
    color: inherit !important;
    opacity: .55 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Estado de Foco */
.wpcat-wrapper .wpcat-search-field__input:focus,
.wpcat-search-field__input:focus {
    outline: none !important;
    border-color: rgba(15, 15, 15, .8) !important;
    box-shadow: 0 0 0 3px rgba(15, 15, 15, .08) !important;
}

/* Botão Limpar ("X") */
.wpcat-wrapper .wpcat-search-field__clear,
.wpcat-search-field__clear {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(127, 127, 127, .18) !important;
    color: inherit !important;
    cursor: pointer !important;
    opacity: .7 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 3 !important;
    transition: opacity .2s ease, background-color .2s ease !important;
}

.wpcat-wrapper .wpcat-search-field__clear:hover,
.wpcat-search-field__clear:hover {
    opacity: 1 !important;
    background: rgba(127, 127, 127, .32) !important;
}

/* ============================================================
   Checkboxes de Categorias
   ============================================================ */
.wpcat-checkbox-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.wpcat-checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: opacity .15s ease;
}

.wpcat-checkbox-label:hover {
    opacity: .8;
}

.wpcat-checkbox-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.wpcat-checkbox-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(127, 127, 127, .4);
    border-radius: 3px;
    background: transparent;
    transition: border-color .2s ease, background-color .2s ease;
}

.wpcat-checkbox-input:checked + .wpcat-checkbox-custom {
    background-color: rgba(15, 15, 15, .9);
    border-color: rgba(15, 15, 15, .9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7l3 3 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
}

.wpcat-checkbox-label__text {
    flex: 1;
}

.wpcat-checkbox-label__count {
    font-size: 11.5px;
    opacity: .45;
}

/* ============================================================
   Grid de Tamanhos
   ============================================================ */
.wpcat-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wpcat-size-option {
    position: relative;
    cursor: pointer;
}

.wpcat-size-option__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.wpcat-size-option__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border: 1.5px solid rgba(127, 127, 127, .25);
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: inherit;
    background: transparent;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
    user-select: none;
}

.wpcat-size-option__label:hover {
    border-color: rgba(15, 15, 15, .4);
}

.wpcat-size-option__input:checked + .wpcat-size-option__label {
    background-color: rgba(15, 15, 15, .9);
    border-color: rgba(15, 15, 15, .9);
    color: #fff;
}

/* ============================================================
   Filtro de Preço
   ============================================================ */
.wpcat-price-fields {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.wpcat-price-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wpcat-price-field__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .55;
}

.wpcat-price-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid rgba(127, 127, 127, .25);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

.wpcat-price-input::placeholder {
    opacity: .5;
    font-weight: 400;
}

.wpcat-price-input:focus {
    outline: none;
    border-color: rgba(15, 15, 15, .6);
    box-shadow: 0 0 0 3px rgba(15, 15, 15, .06);
}

.wpcat-price-sep {
    opacity: .4;
    font-size: 14px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

/* ============================================================
   Ordenação
   ============================================================ */
.wpcat-orderby {
    width: 100%;
}

.wpcat-orderby__select {
    width: 100%;
    height: 40px;
    padding: 0 30px 0 12px;
    border: 1.5px solid rgba(127, 127, 127, .25);
    border-radius: 8px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: inherit;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

.wpcat-orderby__select:focus {
    outline: none;
    border-color: rgba(15, 15, 15, .6);
}

/* ============================================================
   Badges
   ============================================================ */
.wpcat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    background-color: rgba(15, 15, 15, .88);
    color: #fff;
}

.wpcat-badge--sm {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9.5px;
}

/* ============================================================
   Toolbar & Controles de Exibição
   ============================================================ */
.wpcat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: rgba(127, 127, 127, .04);
    border: 1px solid rgba(127, 127, 127, .12);
    border-radius: 10px;
}

.wpcat-toolbar__count {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    opacity: .7;
}

.wpcat-toolbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wpcat-toolbar__group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpcat-toolbar__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .6;
}

.wpcat-columns__options {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    background: rgba(127, 127, 127, .08);
    border-radius: 999px;
}

.wpcat-columns__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    opacity: .6;
    transition: all .2s ease;
}

.wpcat-columns__btn[aria-pressed="true"] {
    background: rgba(15, 15, 15, .9);
    color: #fff;
    opacity: 1;
}

.wpcat-per-page__select {
    -webkit-appearance: none;
    appearance: none;
    padding: 6px 28px 6px 12px;
    border: 1.5px solid rgba(127, 127, 127, .25);
    border-radius: 999px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.wpcat-js .wpcat-per-page__submit {
    display: none;
}

/* ============================================================
   Chips / Tags de Filtros Ativos
   ============================================================ */
.wpcat-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.wpcat-active-filters__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 15, 15, .06);
    border: 1px solid rgba(15, 15, 15, .12);
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.wpcat-active-filters__tag:hover {
    background: rgba(200, 30, 30, .1);
    border-color: rgba(200, 30, 30, .3);
}

.wpcat-active-filters__clear {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .6;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    margin-left: 4px;
}

/* ============================================================
   Grade de Produtos & Layout dos Cards
   ============================================================ */
.wpcat-wrapper .wpcat-grid,
.wpcat-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--wpcat-columns, 3), 1fr) !important;
    gap: 24px !important;
    align-items: stretch !important;
}

.wpcat-wrapper .wpcat-card,
.wpcat-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    border: 1px solid rgba(127, 127, 127, .14) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: rgba(127, 127, 127, .015) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: transform .3s ease, box-shadow .3s ease !important;
}

.wpcat-wrapper .wpcat-card:hover,
.wpcat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08) !important;
}

/* 1. Container da Imagem (Proporção Fixa 4/5 para Moda, 100% Largura, Zero Espaço Vazio) */
.wpcat-wrapper .wpcat-card__image,
.wpcat-card__image {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    overflow: hidden !important;
    background: rgba(0, 0, 0, .03) !important;
    margin: 0 0 0 0 !important;
    padding: 0 0 0 0 !important;
    border: 0 !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    box-sizing: border-box !important;
}

/* Suporte total a wrappers de lazy-load/plugins (picture, figure, span, noscript) */
.wpcat-wrapper .wpcat-card__image picture,
.wpcat-wrapper .wpcat-card__image figure,
.wpcat-wrapper .wpcat-card__image span,
.wpcat-wrapper .wpcat-card__image noscript,
.wpcat-card__image picture,
.wpcat-card__image figure,
.wpcat-card__image span,
.wpcat-card__image noscript {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Imagem Interna (Preenchimento 100% Absoluto, object-fit: cover, NUNCA height: auto) */
.wpcat-wrapper .wpcat-card__image img,
.wpcat-wrapper .wpcat-card__img,
.wpcat-wrapper .wpcat-card__image picture img,
.wpcat-wrapper .wpcat-card__image * img,
.wpcat-card__image img,
.wpcat-card__img,
.wpcat-card__image picture img,
.wpcat-card__image * img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    vertical-align: top !important;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1) !important;
}

.wpcat-wrapper .wpcat-card:hover .wpcat-card__image img,
.wpcat-wrapper .wpcat-card:hover .wpcat-card__img,
.wpcat-card:hover .wpcat-card__image img,
.wpcat-card:hover .wpcat-card__img {
    transform: scale(1.06) !important;
}

/* 2. Área das Informações (Colada exatamente abaixo da Imagem, sem residual) */
.wpcat-wrapper .wpcat-card__body,
.wpcat-card__body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    gap: 6px !important;
    padding: 16px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.wpcat-wrapper .wpcat-card__name,
.wpcat-card__name {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: inherit !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpcat-wrapper .wpcat-card__category,
.wpcat-card__category {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    opacity: .55 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpcat-wrapper .wpcat-card__excerpt,
.wpcat-card__excerpt {
    font-size: 13px !important;
    line-height: 1.45 !important;
    opacity: .75 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpcat-wrapper .wpcat-card__price,
.wpcat-card__price {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
}

.wpcat-wrapper .wpcat-card__button,
.wpcat-card__button {
    display: inline-block !important;
    margin-top: auto !important; /* Botão alinhado perfeitamente na parte inferior */
    padding: 10px 16px !important;
    border-radius: 999px !important;
    text-align: center !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    background: transparent !important;
    color: inherit !important;
    border: 1.5px solid currentColor !important;
    text-decoration: none !important;
    transition: all .2s ease !important;
}

.wpcat-wrapper .wpcat-card__button:hover,
.wpcat-card__button:hover {
    background-color: rgba(15, 15, 15, .9) !important;
    border-color: rgba(15, 15, 15, .9) !important;
    color: #fff !important;
}

.wpcat-wrapper .wpcat-card__button.is-in-cart,
.wpcat-card__button.is-in-cart {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

/* ── Actions container (novo wrapper para dois botões) ── */
.wpcat-wrapper .wpcat-card__actions,
.wpcat-card__actions {
    display:        flex;
    flex-direction: column;
    gap:            0.5rem;
    margin-top:     auto;
    width:          100%;
}

.wpcat-wrapper .wpcat-card__actions-row,
.wpcat-card__actions-row {
    display:         flex;
    flex-direction:  column;
    gap:             0.5rem;
    width:           100%;
    align-items:     stretch;
}

/* Desktop: oculta o botão "COMPRAR" */
.wpcat-wrapper .wpcat-btn-buy,
.wpcat-btn-buy {
    display: none !important;
}

/* ATC: ícone + texto lado a lado (desktop/nativo) */
.wpcat-wrapper .wpcat-btn-atc,
.wpcat-btn-atc {
    display:     inline-flex !important;
    align-items: center;
    justify-content: center;
    gap:         0.4rem;
}

.wpcat-wrapper .wpcat-btn-atc svg,
.wpcat-btn-atc svg {
    width:   15px;
    height:  15px;
    flex-shrink: 0;
}

/* ============================================================
   Paginação
   ============================================================ */
.wpcat-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(127, 127, 127, .14);
}

.wpcat-pagination__summary {
    font-size: 13px;
    opacity: .6;
    margin: 0;
}

.wpcat-pagination__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wpcat-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 14px;
    border: 1.5px solid rgba(127, 127, 127, .25);
    border-radius: 999px;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.wpcat-pagination__btn:hover {
    background-color: rgba(15, 15, 15, .9);
    border-color: rgba(15, 15, 15, .9);
    color: #fff;
}

.wpcat-pagination__btn--disabled {
    opacity: .35;
    pointer-events: none;
}

.wpcat-pagination__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 999px;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    opacity: .65;
}

.wpcat-pagination__number--current {
    background: rgba(15, 15, 15, .9);
    color: #fff;
    opacity: 1;
}

/* ============================================================
   BOTÃO FLUTUANTE MOBILE FIXO (position: fixed)
   ============================================================ */
.wpcat-floating-trigger {
    display: none;
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom, 24px));
    right: 24px;
    z-index: 9990;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 15, 15, .92);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease;
    backdrop-filter: blur(4px);
}

.wpcat-floating-trigger:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, .98);
}

/* ============================================================
   OFF-CANVAS MOBILE
   ============================================================ */
.wpcat-offcanvas__overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .3s ease;
}

.wpcat-offcanvas__overlay--visible {
    display: block;
    opacity: 1;
}

.wpcat-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: min(360px, 90vw);
    background: #fff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
    font-family: inherit;
    color: inherit;
}

@media (prefers-color-scheme: dark) {
    .wpcat-offcanvas {
        background: #1a1a1a;
    }
}

.wpcat-offcanvas--open {
    transform: translateX(0);
}

.wpcat-offcanvas__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(127, 127, 127, .14);
}

.wpcat-offcanvas__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
}

.wpcat-offcanvas__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(127, 127, 127, .1);
    color: inherit;
    cursor: pointer;
}

.wpcat-offcanvas__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.wpcat-offcanvas__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(127, 127, 127, .14);
}

.wpcat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.wpcat-btn--primary {
    background: rgba(15, 15, 15, .92);
    color: #fff;
    border-color: rgba(15, 15, 15, .92);
    flex: 1;
}

.wpcat-btn--outline {
    background: transparent;
    color: inherit;
    border-color: rgba(127, 127, 127, .3);
}

/* ============================================================
   RESPONSIVIDADE / MEDIA QUERIES (Mobile & Tablet)
   ============================================================ */

@media (max-width: 900px) {
    .wpcat-container {
        grid-template-columns: 1fr;
    }

    .wpcat-sidebar {
        display: none;
    }

    .wpcat-floating-trigger {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .wpcat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .wpcat-columns {
        display: none;
    }

    .wpcat-card {
        border-radius: 10px;
    }

    .wpcat-card__body {
        padding: 10px;
        gap: 4px;
    }

    .wpcat-card__name {
        font-size: 13px;
        line-height: 1.3;
    }

    .wpcat-card__excerpt {
        display: none;
    }

    .wpcat-card__price {
        font-size: 14px;
    }

    .wpcat-card__button {
        width: 100%;
        min-height: 40px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    /* ============================================================
       MOBILE: 2 botões lado a lado nos cards do módulo Categorias
       ============================================================ */

    .wpcat-wrapper .wpcat-card__actions-row,
    .wpcat-card__actions-row {
        flex-direction: row !important;
        align-items:    stretch;
        gap:            0.5rem;
    }

    /* Exibe o botão "COMPRAR" somente no mobile */
    .wpcat-wrapper .wpcat-btn-buy,
    .wpcat-btn-buy {
        display:        inline-flex !important;
        flex:           1 1 auto !important;
        min-width:      0 !important;
        width:          auto !important;
        max-width:      100% !important;
        min-height:     40px !important;
        height:         auto !important;
        padding:        0 10px !important;
        font-size:      11.5px !important;
        margin-top:     0 !important;
    }

    /* Botão "Adicionar ao Carrinho" no mobile: SÓ ÍCONE (sacola) */
    .wpcat-wrapper .wpcat-btn-atc,
    .wpcat-btn-atc {
        flex:           0 0 auto !important;
        width:          40px !important;
        min-width:      40px !important;
        max-width:      40px !important;
        height:         40px !important;
        min-height:     40px !important;
        padding:        0 !important;
        gap:            0 !important;
        margin-top:     0 !important;
    }

    /* Oculta o texto do botão ATC no mobile */
    .wpcat-wrapper .wpcat-btn-atc .wpcat-btn-atc__text,
    .wpcat-btn-atc .wpcat-btn-atc__text {
        display: none !important;
    }

    .wpcat-wrapper .wpcat-btn-atc svg,
    .wpcat-btn-atc svg {
        width:  18px !important;
        height: 18px !important;
    }

    .wpcat-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .wpcat-toolbar__right {
        justify-content: space-between;
    }
}
