/* Container da paginação */
.pagination-wrapper,
nav[role="navigation"] {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Container de botões */
nav[role="navigation"] .inline-flex {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Botões de página */
nav[role="navigation"] .inline-flex > a,
nav[role="navigation"] .inline-flex > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    min-width: 38px;
    text-align: center;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--theme-color);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

/* Hover */
nav[role="navigation"] .inline-flex > a:hover {
    background-color: var(--main);
    color: var(--theme-color);
    box-shadow: 0 0 5px var(--shadow-color);
}

/* Página ativa */
nav[role="navigation"] .inline-flex > span[aria-current="page"] {
    background: var(--gradient);
    color: var(--theme-color);
    border: none;
    font-weight: bold;
}

/* Desabilitados */
nav[role="navigation"] .inline-flex > span[aria-disabled="true"],
nav[role="navigation"] .inline-flex > span[aria-hidden="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ícones (setas) */
nav[role="navigation"] svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* Informações de paginação (ex: "Showing 1 to 20 of 813 results") */
nav[role="navigation"] p {
    font-size: 14px;
    color: var(--theme-color);
    margin-bottom: 8px;
}

/* Oculta o texto "Showing X to Y of Z results" */
nav[role="navigation"] p {
  display: none !important;
}

/* Oculta o botão "« Previous" da versão mobile */
nav[role="navigation"] .sm\\:hidden span[aria-label*="Previous"] {
  display: none !important;
}

/* Oculta o botão "Next »" da versão mobile */
nav[role="navigation"] .sm\\:hidden a[aria-label*="Next"] {
  display: none !important;
}

/* Oculta os botões de seta (desktop) */
nav[role="navigation"] .inline-flex > span[aria-label*="Previous"],
nav[role="navigation"] .inline-flex > a[aria-label*="Next"] {
  display: none !important;
}

/* Oculta o texto "Showing X to Y of Z results" */
nav[role="navigation"] p {
  display: none !important;
}

/* Oculta o botão "« Previous" com texto (versão mobile) */
nav[role="navigation"] .sm\\:hidden span,
nav[role="navigation"] .sm\\:hidden a,
nav[role="navigation"] .sm\\:hidden {
  display: none !important;
}

/* Oculta os botões de seta (versão desktop) */
nav[role="navigation"] .inline-flex > span[aria-label*="Previous"],
nav[role="navigation"] .inline-flex > a[aria-label*="Next"] {
  display: none !important;
}


/* Responsividade */
@media (max-width: 640px) {
    nav[role="navigation"] .sm\\:flex {
        display: none !important;
    }

    nav[role="navigation"] .sm\\:hidden {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
    }
}
