:root {
    --color-blue: #005CAA;
    --color-blue-light: #1187D0;
    --color-blue-deep: #003F7A;
    --color-gold: #E0B12D;
    --color-gold-light: #F2C94C;
    --color-background: #F7F8FA;
    --color-surface: #FFFFFF;
    --color-text: #1F2937;
    --color-muted: #4B5563;
    --color-soft: #EAF4FC;
    --color-line: #D9E2EC;
    --color-primary: var(--color-blue);
    --color-primary-dark: var(--color-blue-deep);
    --color-accent: var(--color-gold);
    --color-accent-light: var(--color-gold-light);
    --color-ink: #1F2937;
    --shadow-soft: 0 18px 45px rgba(0, 92, 170, 0.10);
    --shadow-card: 0 12px 30px rgba(0, 92, 170, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #ffffff 0, var(--color-background) 320px),
        var(--color-background);
    color: var(--color-text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 24px;
    width: 100%;
}

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 6px 24px rgba(0, 92, 170, 0.06);
    position: relative;
    z-index: 20;
}

.institutional-strip {
    background: var(--color-primary-dark);
    border-bottom: 3px solid var(--color-accent);
    color: #ffffff;
    font-size: 0.9rem;
}

.institutional-strip p {
    margin: 0;
    padding: 9px 0;
}

.header-main {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 88px;
    padding: 10px 0;
}

.header-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.brand-logo {
    max-width: 260px;
}

.cart-widget {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 92, 170, 0.08);
    color: var(--color-primary-dark);
    display: inline-grid;
    gap: 8px;
    grid-template-columns: 34px auto auto 28px;
    min-height: 48px;
    padding: 6px 8px 6px 7px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.cart-widget:hover {
    border-color: rgba(0, 92, 170, 0.28);
    box-shadow: 0 14px 30px rgba(0, 92, 170, 0.14);
    transform: translateY(-1px);
}

.cart-widget-icon {
    align-items: center;
    background: var(--color-soft);
    border-radius: 999px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.cart-widget-icon svg {
    fill: currentColor;
    height: 21px;
    width: 21px;
}

.cart-widget-label {
    font-size: 0.9rem;
    font-weight: 800;
}

.cart-widget-total {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.cart-widget-count {
    align-items: center;
    background: var(--color-accent);
    border-radius: 999px;
    color: var(--color-ink);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    min-width: 28px;
    padding: 0 8px;
}

.cart-widget-count.is-empty {
    background: var(--color-line);
    color: var(--color-muted);
}

.customer-widget {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 92, 170, 0.08);
    color: var(--color-primary-dark);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 8px;
    min-height: 44px;
    padding: 6px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.customer-widget.is-guest {
    background: var(--color-soft);
    color: var(--color-primary-dark);
    cursor: pointer;
}

.customer-widget:hover {
    border-color: rgba(0, 92, 170, 0.28);
    box-shadow: 0 14px 30px rgba(0, 92, 170, 0.14);
    transform: translateY(-1px);
}

.customer-widget-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.customer-widget-icon svg {
    fill: currentColor;
    height: 18px;
    width: 18px;
}

.customer-widget-copy {
    display: grid;
    gap: 1px;
    text-align: left;
}

.customer-widget-copy strong {
    font-size: 0.9rem;
}

.customer-widget-copy small {
    color: var(--color-muted);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
}

.customer-widget form {
    margin: 0;
}

.customer-widget button {
    background: transparent;
    border: 0;
    color: var(--color-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0;
}

.has-auth-modal {
    overflow: hidden;
}

.auth-modal {
    inset: 0;
    position: fixed;
    z-index: 90;
}

.auth-modal-backdrop {
    background: rgba(12, 24, 46, 0.46);
    inset: 0;
    position: absolute;
}

.auth-modal-dialog {
    background:
        radial-gradient(circle at top right, rgba(242, 201, 76, 0.16), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    border: 1px solid rgba(0, 92, 170, 0.16);
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(0, 31, 63, 0.24);
    left: 50%;
    max-width: 520px;
    padding: 28px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(100% - 32px), 520px);
}

.auth-modal-close {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: var(--color-muted);
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
}

.auth-modal-close svg {
    fill: currentColor;
    height: 18px;
    width: 18px;
}

.auth-modal-header {
    margin-bottom: 18px;
    padding-right: 44px;
}

.auth-modal-header h2 {
    margin: 4px 0 10px;
}

.auth-modal-intro {
    color: var(--color-muted);
    margin: 0;
}

.auth-modal-form {
    display: grid;
    gap: 14px;
}

.auth-modal-form label {
    display: grid;
    gap: 7px;
}

.auth-modal-form input {
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    color: var(--color-text);
    font: inherit;
    min-height: 48px;
    padding: 12px 14px;
}

.auth-modal-form input:focus {
    border-color: rgba(0, 92, 170, 0.52);
    box-shadow: 0 0 0 4px rgba(17, 135, 208, 0.12);
    outline: 0;
}

.auth-modal-form small {
    color: #b42318;
    min-height: 1.1em;
}


.nav-band {
    background: #FDFEFF;
    border-top: 1px solid var(--color-line);
    position: sticky;
    top: 0;
    z-index: 25;
}

.main-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: space-between;
}

.main-nav-toggle {
    display: none;
}

.main-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.main-nav a {
    color: var(--color-muted);
    display: inline-flex;
    font-weight: 700;
    min-height: 48px;
    padding: 13px 16px;
    position: relative;
}

.main-nav a:hover {
    color: var(--color-primary-dark);
}

.main-nav a[aria-current="page"] {
    color: var(--color-primary-dark);
}

.main-nav a::after {
    background: var(--color-accent);
    border-radius: 999px;
    bottom: 8px;
    content: "";
    height: 3px;
    left: 16px;
    opacity: 0;
    position: absolute;
    right: 16px;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.main-nav a[aria-current="page"]::after {
    opacity: 1;
    transform: translateY(0);
}

.main-nav-item {
    align-items: center;
    display: inline-flex;
}

.main-nav-dropdown {
    position: relative;
}

.main-nav-dropdown > a {
    /* flex-basis: 0 (não "auto") é essencial aqui: com "auto" o navegador decide se quebra a
       linha usando a largura NATURAL do texto (sem quebrar) antes de aplicar o encolhimento —
       e um rótulo longo como "Eduardo Carvalho Monteiro" já não cabe ao lado do botão nessa
       largura, empurrando o botão para a "linha" seguinte do flex-wrap. Com base 0, o link é
       tratado como flexível desde o início: ambos ficam na mesma linha e só o texto quebra. */
    flex: 1 1 0%;
    min-width: 0;
}

.main-nav-dropdown-toggle {
    align-items: center;
    appearance: none;
    background: none;
    border: 0;
    color: var(--color-muted);
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    min-height: 48px;
    padding: 13px 8px 13px 0;
}

.main-nav-dropdown-icon {
    border-bottom: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    display: block;
    height: 0;
    transition: transform 0.2s ease;
    width: 0;
}

/* Combinador ">" (filho direto) para não vazar para dentro de um subsubmenu aninhado — sem ele,
   este seletor também casava com o ícone/menu do nível de dentro (ex.: abrir "LIHPE" já deixava
   "ENLIHPEs" com a seta virada e a lista de edições visível, mesmo sem clicar em "ENLIHPEs"). */
.main-nav-dropdown.is-open > .main-nav-dropdown-toggle .main-nav-dropdown-icon {
    transform: rotate(180deg);
}

.main-nav-dropdown-menu {
    background: #FDFEFF;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    box-shadow: 0 18px 30px rgba(0, 92, 170, 0.12);
    display: none;
    flex-direction: column;
    left: 0;
    list-style: none;
    margin: 0;
    min-width: 240px;
    padding: 8px;
    position: absolute;
    top: 100%;
    z-index: 30;
}

/* Mesmo motivo do ícone acima: só o painel do próprio nível, não o de um subsubmenu aninhado. */
.main-nav-dropdown.is-open > .main-nav-dropdown-menu {
    display: flex;
}

.main-nav-dropdown-menu a {
    border-radius: 8px;
    display: block;
    min-height: auto;
    padding: 10px 12px;
}

.main-nav-dropdown-menu a::after {
    content: none;
}

/* Subsubmenu (ex.: ENLIHPEs dentro de LIHPE): fica recolhido dentro do mesmo painel, como uma
   sublista indentada, em vez de abrir um flyout lateral — evita estourar a tela com listas
   longas (dezenas de edições) e usa o mesmo mecanismo de abrir/fechar do primeiro nível.

   ".main-nav-item"/".main-nav-dropdown" são "inline-flex" em linha (label + seta lado a lado) —
   correto para o item do topo, mas ao ganhar um terceiro filho (a lista de edições, bem alta),
   a mesma linha ficava com o link "ENLIHPEs" centralizado verticalmente ao lado dela (por isso
   aparecia "no meio da tela"). "flex-wrap" + "flex-basis: 100%" no filho aninhado força a lista
   a quebrar para uma nova linha, abaixo do link + botão, em vez de ficar ao lado deles. */
.main-nav-dropdown-menu .main-nav-dropdown {
    flex-wrap: wrap;
}

.main-nav-dropdown-menu .main-nav-dropdown-menu {
    background: none;
    border: 0;
    box-shadow: none;
    flex: 1 1 100%;
    left: auto;
    margin: 4px 0 4px 14px;
    min-width: 0;
    padding: 0;
    position: static;
    top: auto;
}

.page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 40px 24px 64px;
}

.home-hero {
    align-items: stretch;
    background:
        radial-gradient(circle at top left, rgba(242, 201, 76, 0.28), transparent 32%),
        radial-gradient(circle at 75% 10%, rgba(17, 135, 208, 0.18), transparent 30%),
        linear-gradient(135deg, #FFFFFF 0%, #F6FBFF 55%, #EAF4FC 100%);
    border: 1px solid rgba(0, 92, 170, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    margin-bottom: 46px;
    overflow: hidden;
    position: relative;
}

.home-hero::before {
    background: var(--color-accent);
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.home-hero-content {
    padding: 58px 54px 46px;
    position: relative;
    z-index: 1;
}

.home-hero h1 {
    color: var(--color-ink);
    font-size: 3.15rem;
    letter-spacing: 0;
    line-height: 1.05;
    max-width: 720px;
}

.home-hero p:not(.eyebrow) {
    color: var(--color-muted);
    font-size: 1.12rem;
    margin-top: 20px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button-link {
    align-items: center;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.icon-button {
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-button svg {
    fill: currentColor;
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

.icon-button:hover {
    transform: translateY(-1px);
}

.icon-button.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue-light));
    border: 0;
    color: #ffffff;
}

.icon-button.primary:hover {
    box-shadow: 0 12px 24px rgba(0, 92, 170, 0.20);
}

.icon-button.danger {
    background: #FFF1F1;
    border: 1px solid #F3C5C5;
    color: #9B1C1C;
}

.icon-button.danger:hover {
    background: #FFE3E3;
    border-color: #E9A8A8;
    box-shadow: 0 10px 20px rgba(155, 28, 28, 0.10);
}

.icon-button.ghost {
    background: #ffffff;
}

.icon-button.ghost:not(.danger) {
    border: 1px solid var(--color-line);
    color: var(--color-primary-dark);
}

.icon-button.ghost:not(.danger):hover {
    border-color: rgba(0, 92, 170, 0.28);
    box-shadow: 0 10px 20px rgba(0, 92, 170, 0.10);
}

.icon-button.compact {
    min-height: 38px;
    padding: 0 12px;
}

.icon-button.full {
    width: 100%;
}

.button-link:hover {
    box-shadow: 0 12px 24px rgba(0, 92, 170, 0.20);
    transform: translateY(-1px);
}

.button-link.primary,
.button-link {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue-light));
}

.button-link.secondary,
.ghost-link {
    background: #ffffff;
    border: 1px solid var(--color-line);
    color: var(--color-primary-dark);
}

.home-hero-panel {
    align-content: center;
    background:
        radial-gradient(circle at top right, rgba(242, 201, 76, 0.28), transparent 36%),
        linear-gradient(160deg, rgba(0, 63, 122, 0.98), rgba(0, 92, 170, 0.94)),
        var(--color-primary-dark);
    color: var(--color-primary-dark);
    display: grid;
    padding: 34px;
}

.hero-panel-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    padding: 28px;
}

.hero-panel-card h2 {
    color: var(--color-ink);
    font-size: 1.45rem;
    line-height: 1.2;
}

.hero-panel-card p {
    color: var(--color-muted);
}

.panel-label,
.quick-link-tag {
    background: #FFF7D6;
    border-radius: 999px;
    color: var(--color-primary-dark);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 14px;
    padding: 6px 10px;
    text-transform: uppercase;
}

.hero-panel-list {
    color: var(--color-ink);
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding-left: 18px;
}

.hero-highlights {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 92, 170, 0.12);
    border-radius: 14px;
    padding: 16px;
}

.highlight-item span:first-child {
    color: var(--color-accent);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.highlight-item strong {
    color: var(--color-ink);
    display: block;
    margin-bottom: 4px;
}

.highlight-item span:last-child {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2,
.institutional-summary h2 {
    color: var(--color-ink);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.section-intro {
    color: var(--color-muted);
    margin-bottom: 0;
    max-width: 660px;
}

.section-heading.with-action {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.text-action {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.quick-links-section,
.featured-store-section,
.institutional-summary {
    margin-top: 46px;
}

.quick-links-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-link-card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 92, 170, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 92, 170, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    padding: 22px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-link-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.quick-link-card strong {
    color: var(--color-ink);
    display: block;
    font-size: 1.22rem;
    margin-bottom: 10px;
}

.quick-link-card p {
    color: var(--color-muted);
    margin-bottom: 0;
}

.quick-link-arrow {
    color: var(--color-primary-dark);
    font-size: 0.92rem;
    font-weight: 800;
    margin-top: 18px;
}

.featured-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.institutional-summary {
    align-items: start;
    background:
        radial-gradient(circle at top right, rgba(242, 201, 76, 0.24), transparent 34%),
        linear-gradient(135deg, var(--color-ink), var(--color-primary-dark));
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    color: #ffffff;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(260px, 0.92fr) 1fr;
    padding: 42px;
}

.institutional-summary .eyebrow,
.institutional-summary p,
.institutional-summary h2 {
    color: #ffffff;
}

.institutional-summary > p {
    margin: 0;
}

.institutional-summary-content p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.04rem;
}

.institutional-summary-points {
    display: grid;
    gap: 14px;
}

.summary-point {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    display: grid;
    gap: 3px;
    grid-template-columns: 44px 1fr;
    padding: 16px;
}

.summary-point span:first-child {
    color: rgba(255, 255, 255, 0.64);
    font-weight: 800;
    grid-row: span 2;
}

.summary-point strong {
    color: #ffffff;
}

.summary-point span:last-child {
    color: rgba(255, 255, 255, 0.76);
}

.catalog-header {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-bar {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    margin-bottom: 24px;
    padding: 18px;
}

.search-bar label {
    color: var(--color-muted);
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-row {
    display: flex;
    gap: 10px;
}

.search-row input {
    border: 1px solid var(--color-line);
    border-radius: 6px;
    color: var(--color-text);
    flex: 1;
    font: inherit;
    min-height: 44px;
    min-width: 0;
    padding: 0 12px;
}

.search-row button,
.search-row a {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
}

.search-row button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue-light));
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.search-row a {
    color: var(--color-muted);
}

.catalog-root {
    position: relative;
}

.catalog-root.is-loading {
    pointer-events: none;
}

.catalog-root.is-loading::after {
    background: rgba(247, 248, 250, 0.76);
    border-radius: 12px;
    content: "";
    inset: 0;
    position: absolute;
    z-index: 2;
}

.search-feedback {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 10px 0 0;
    min-height: 1.35em;
}

.eyebrow,
.product-category,
.sku {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: 2.1rem;
    line-height: 1.15;
    margin-bottom: 0;
}

.catalog-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: 250px 1fr;
}

.catalog-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 18px;
}

.catalog-sidebar h2 {
    font-size: 1rem;
    margin-bottom: 14px;
}

.category-link {
    align-items: center;
    border-radius: 6px;
    color: var(--color-muted);
    display: flex;
    justify-content: space-between;
    min-height: 38px;
    padding: 8px 10px;
}

.category-link small {
    color: var(--color-muted);
}

.category-link:hover,
.category-link.is-active {
    background: var(--color-soft);
    color: var(--color-primary-dark);
}

.product-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-note {
    color: var(--color-muted);
    margin-bottom: 14px;
}

.result-note.is-hidden,
.empty-state.is-hidden,
.product-card.is-hidden,
[data-catalog-clear].is-hidden {
    display: none;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 92, 170, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 92, 170, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.product-card:hover .product-link {
    color: var(--color-blue-light);
}

.product-image,
.product-detail-image {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #EAF4FC;
    color: var(--color-muted);
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img,
.product-detail-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.product-card-body {
    padding: 20px;
}

.product-card h2,
.product-card h3 {
    color: var(--color-ink);
    font-size: 1.12rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

.product-card h2 a:hover,
.product-card h3 a:hover {
    color: var(--color-primary);
}

.product-summary {
    color: var(--color-muted);
    font-size: 0.95rem;
    min-height: 44px;
}

.price-row,
.detail-price {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.price-row strong,
.detail-price strong {
    color: var(--color-accent);
    font-size: 1.25rem;
}

.detail-price strong {
    font-size: 1.8rem;
}

.old-price {
    color: var(--color-muted);
    text-decoration: line-through;
}

.product-badge {
    background: var(--color-accent-light);
    border-radius: 999px;
    color: var(--color-ink);
    font-size: 0.78rem;
    font-weight: 800;
    left: 14px;
    padding: 6px 10px;
    position: absolute;
    top: 14px;
    z-index: 1;
}

.product-link {
    align-items: center;
    border-top: 1px solid var(--color-line);
    color: var(--color-primary-dark);
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
}

.product-link::after {
    content: ">";
}

.empty-state {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 32px;
}

.empty-state p {
    color: var(--color-muted);
}

.site-footer {
    background:
        radial-gradient(circle at 18% 0, rgba(242, 201, 76, 0.18), transparent 28%),
        linear-gradient(135deg, #0B2742 0%, var(--color-primary-dark) 48%, #07243F 100%);
    color: #ffffff;
    margin-top: 16px;
    position: relative;
}

.site-footer::before {
    background: linear-gradient(90deg, var(--color-accent), var(--color-blue-light));
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.footer-main {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(180px, 1fr));
    padding-bottom: 42px;
    padding-top: 52px;
}

.site-footer h2,
.site-footer h3 {
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.site-footer h2 {
    font-size: 2rem;
}

.site-footer h3 {
    font-size: 1rem;
}

.footer-kicker {
    color: var(--color-accent-light);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-brand p,
.footer-column p {
    max-width: 460px;
}

.site-footer p,
.site-footer a,
.footer-contact {
    color: rgba(255, 255, 255, 0.76);
}

.footer-column,
.footer-brand {
    min-width: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a,
.footer-bottom a {
    display: inline-flex;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: #ffffff;
}

.footer-links a:hover {
    transform: translateX(3px);
}

.footer-contact {
    display: grid;
    font-style: normal;
    gap: 7px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.social-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 42px;
}

.social-link svg {
    fill: currentColor;
    height: 20px;
    width: 20px;
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 12px 24px rgba(224, 177, 45, 0.18);
    color: #0B2742;
    transform: translateY(-2px);
}

.social-link.is-disabled {
    opacity: 0.76;
}

.social-link.is-disabled:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.76);
    transform: none;
}

.footer-cta {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 20px;
}

.site-footer a.footer-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(11, 39, 66, 0.08);
    border-radius: 999px;
    color: var(--color-primary-dark);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    margin-top: 8px;
    min-height: 42px;
    padding: 10px 16px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.site-footer a.footer-button:hover,
.site-footer a.footer-button:focus-visible {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.12);
}

.footer-bottom .site-shell {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 58px;
}

.footer-bottom span,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.breadcrumb {
    color: var(--color-muted);
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.product-detail-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.product-gallery,
.product-info {
    min-width: 0;
}

.product-info {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 28px;
}

.product-info h1 {
    margin-bottom: 10px;
}

.lead,
.description {
    color: var(--color-muted);
    margin-top: 22px;
}

.stock-note {
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
    margin-top: 28px;
    padding-top: 18px;
}

.cart-add-form {
    border-top: 1px solid var(--color-line);
    margin-top: 22px;
    padding-top: 20px;
}

.cart-add-form label,
.cart-quantity-form label {
    color: var(--color-muted);
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-add-row {
    display: flex;
    gap: 12px;
}

.cart-add-row input,
.cart-quantity-form input {
    border: 1px solid var(--color-line);
    border-radius: 6px;
    color: var(--color-text);
    font: inherit;
    min-height: 44px;
    padding: 0 10px;
    width: 96px;
}

.cart-add-row button:not(.icon-button),
.product-card-cart-form button:not(.icon-button),
.cart-quantity-form button:not(.icon-button) {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue-light));
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-height: 44px;
    padding: 0 16px;
}

.cart-add-form.is-loading button,
.product-card-cart-form.is-loading button,
.cart-quantity-form.is-loading button {
    cursor: wait;
    opacity: 0.72;
}

.product-card-cart-form {
    margin-top: 16px;
}

.product-card-cart-form button {
    width: 100%;
}

.stock-unavailable {
    color: var(--color-muted);
    font-weight: 700;
    margin: 16px 0 0;
}

.cart-flash {
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.toast {
    background: #0B2742;
    border-radius: 8px;
    bottom: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    color: #ffffff;
    font-weight: 800;
    left: 50%;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    position: fixed;
    text-align: center;
    transform: translateX(-50%);
    /* Acima do banner de oferta especial (z-index: 60) para nunca ficar
       escondido atras dele quando os dois aparecem ao mesmo tempo. */
    z-index: 65;
}

/* Quando o banner de oferta especial esta visivel (fixo no rodape), sobe o
   toast para nao ficar coberto por ele. Reage sozinho a is-hidden sendo
   adicionada/removida pelo special-offer-banner.js, sem precisar de JS
   dedicado para o toast. */
body:has(.special-offer-banner:not(.is-hidden)) .toast {
    bottom: 136px;
}

.toast.is-success {
    background: var(--color-primary-dark);
}

.toast.is-error {
    background: #9B1C1C;
}

.toast.is-info {
    background: var(--color-blue);
}

.cart-flash.is-success {
    background: #EAF7EF;
    border: 1px solid #BFE6CD;
    color: #176B37;
}

.cart-flash.is-error {
    background: #FFF1F1;
    border: 1px solid #F3C5C5;
    color: #9B1C1C;
}

.cart-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: 112px minmax(0, 1fr) 138px 120px auto;
    padding: 16px;
}

.cart-item-image {
    align-items: center;
    aspect-ratio: 1;
    background: var(--color-soft);
    border-radius: 6px;
    color: var(--color-muted);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cart-item-info h2 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.cart-item-price,
.cart-summary p {
    color: var(--color-muted);
    margin-bottom: 0;
}

.cart-quantity-form {
    min-width: 0;
}

.cart-quantity-form button {
    margin-top: 8px;
    width: 100%;
}

.cart-item-total span {
    color: var(--color-muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cart-item-total strong {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.cart-remove-form button:not(.icon-button),
.clear-cart-button {
    background: transparent;
    border: 0;
    color: var(--color-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
}

.cart-remove-form button:not(.icon-button):hover,
.clear-cart-button:hover {
    color: var(--color-primary-dark);
}

.cart-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 22px;
    position: sticky;
    top: 18px;
}

.cart-summary h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.summary-line {
    align-items: center;
    border-top: 1px solid var(--color-line);
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
}

.summary-line strong {
    color: var(--color-ink);
}

.cart-summary .button-link {
    margin: 18px 0 14px;
    width: 100%;
}

.checkout-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.checkout-form-panel {
    display: grid;
    gap: 18px;
}

.checkout-card {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 22px;
}

.checkout-step {
    opacity: 1;
}

.checkout-step.is-disabled {
    opacity: 0.64;
}

.checkout-step-title {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: 36px 1fr;
    margin-bottom: 18px;
}

.checkout-step-title > span {
    align-items: center;
    background: var(--color-soft);
    border-radius: 999px;
    color: var(--color-primary-dark);
    display: inline-flex;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.checkout-auth-form {
    display: grid;
    gap: 14px;
    max-width: 720px;
}

.password-field {
    display: block;
    position: relative;
}

.password-field input {
    padding-right: 44px;
    width: 100%;
}

.password-toggle {
    align-items: center;
    appearance: none;
    background: none;
    border: 0;
    color: var(--color-muted);
    cursor: pointer;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
}

.password-toggle:hover {
    color: var(--color-primary-dark);
}

.password-toggle svg {
    height: 20px;
    width: 20px;
}

.checkout-auth-note {
    background: rgba(17, 135, 208, 0.08);
    border: 1px solid rgba(17, 135, 208, 0.18);
    border-radius: 10px;
    color: var(--color-primary-dark);
    font-size: 0.95rem;
    margin: 0;
    padding: 10px 12px;
}

.checkout-register-form .icon-button {
    justify-self: start;
}

.checkout-card label.checkout-consent {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.checkout-card label.checkout-consent input[type="checkbox"] {
    accent-color: var(--color-primary);
    flex: 0 0 auto;
    height: 18px;
    margin-top: 2px;
    min-height: auto;
    padding: 0;
    width: 18px;
}

.checkout-card label.checkout-consent span {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.checkout-customer-ready {
    background: #EAF7EF;
    border: 1px solid #BFE6CD;
    border-radius: 8px;
    color: #176B37;
    display: grid;
    gap: 2px;
    margin-top: 12px;
    padding: 14px;
}

.checkout-customer-ready span {
    color: #176B37;
}

.icon-button:disabled,
.checkout-card input:disabled,
.checkout-card textarea:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.checkout-card h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.checkout-card p {
    color: var(--color-muted);
}

.checkout-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-grid .span-2 {
    grid-column: 1 / -1;
}

.checkout-card label {
    display: grid;
    gap: 7px;
}

.checkout-card label span {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.checkout-card input,
.checkout-card select,
.checkout-card textarea {
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--color-text);
    font: inherit;
    min-height: 44px;
    padding: 0 12px;
    width: 100%;
}

.checkout-card select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-muted) 50%),
        linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 42px;
}

.checkout-card textarea {
    min-height: 110px;
    padding: 12px;
    resize: vertical;
}

.checkout-card small {
    color: #9B1C1C;
    font-weight: 700;
}

.checkout-summary-items {
    border-top: 1px solid var(--color-line);
    display: grid;
    gap: 12px;
    padding: 14px 0;
}

.checkout-summary-item {
    display: grid;
    gap: 4px;
}

.checkout-summary-item span {
    color: var(--color-text);
    font-weight: 700;
}

.checkout-summary-item strong {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.total-line strong {
    color: var(--color-accent);
    font-size: 1.25rem;
}

.order-info-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-info-grid div {
    border-top: 1px solid var(--color-line);
    padding-top: 12px;
}

.order-info-grid span {
    color: var(--color-muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.order-items-list {
    display: grid;
    gap: 12px;
}

.order-item-row {
    align-items: center;
    border-top: 1px solid var(--color-line);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding-top: 12px;
}

.order-item-row div span,
.order-item-row > span {
    color: var(--color-muted);
    display: block;
}

.thumbnail-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 12px;
}

.thumbnail-grid img {
    aspect-ratio: 1;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 860px) {
    .catalog-layout,
    .product-detail-grid,
    .cart-layout,
    .checkout-layout,
    .home-hero,
    .institutional-summary {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        align-items: start;
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .cart-quantity-form,
    .cart-item-total,
    .cart-remove-form {
        grid-column: 1 / -1;
    }

    .checkout-grid,
    .order-info-grid,
    .order-item-row {
        grid-template-columns: 1fr;
    }

    .header-main {
        align-items: center;
        gap: 14px;
    }

    .header-actions {
        gap: 8px;
    }

    .customer-widget {
        padding: 6px 10px;
    }

    .cart-widget {
        grid-template-columns: 34px 28px;
        padding-right: 8px;
    }

    .cart-widget-label,
    .cart-widget-total,
    .customer-widget-copy small {
        display: none;
    }

    .auth-modal-dialog {
        padding: 22px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-links-grid,
    .featured-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero-content {
        padding: 34px;
    }

    .home-hero h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 560px) {
    .page {
        padding: 24px 16px 42px;
    }

    .site-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .main-nav a {
        border-left: 0;
        border-right: 0;
        min-height: 42px;
        padding: 12px 10px;
    }

    .product-grid,
    .quick-links-grid,
    .featured-products-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-main {
        gap: 26px;
        padding-bottom: 34px;
        padding-top: 42px;
    }

    .site-footer h2 {
        font-size: 1.7rem;
    }

    .search-row {
        flex-direction: column;
    }

    .home-hero-content,
    .institutional-summary {
        padding: 24px;
    }

    h1 {
        font-size: 1.7rem;
    }

    .section-heading.with-action,
    .footer-bottom .site-shell {
        align-items: start;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        padding-bottom: 14px;
        padding-top: 14px;
    }
}

@media (max-width: 720px) {
    .institutional-strip {
        display: none;
    }

    .header-main {
        gap: 14px;
        min-height: 72px;
        padding: 8px 0;
    }

    .brand {
        flex: 1 1 auto;
    }

    .brand-logo {
        max-width: 190px;
    }

    .header-actions {
        gap: 8px;
    }

    .customer-widget {
        min-height: 40px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .customer-widget-copy {
        display: none;
    }

    .cart-widget {
        grid-template-columns: 34px auto;
        min-height: 40px;
        padding-right: 10px;
    }

    .cart-widget-total,
    .cart-widget-label {
        display: none;
    }

    .nav-band {
        box-shadow: 0 10px 18px rgba(0, 92, 170, 0.08);
    }

    .main-nav {
        align-items: stretch;
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav-toggle {
        align-items: center;
        appearance: none;
        background: var(--color-soft);
        border: 1px solid rgba(0, 92, 170, 0.12);
        border-radius: 12px;
        color: var(--color-primary-dark);
        cursor: pointer;
        display: inline-flex;
        font: inherit;
        font-weight: 800;
        justify-content: space-between;
        min-height: 46px;
        padding: 0 14px;
        width: 100%;
    }

    .main-nav-toggle-icon,
    .main-nav-toggle-icon::before,
    .main-nav-toggle-icon::after {
        background: currentColor;
        border-radius: 999px;
        content: "";
        display: block;
        height: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
        width: 18px;
    }

    .main-nav-toggle-icon {
        position: relative;
    }

    .main-nav-toggle-icon::before {
        position: absolute;
        top: -6px;
    }

    .main-nav-toggle-icon::after {
        position: absolute;
        top: 6px;
    }

    .main-nav-links {
        display: none;
        flex-direction: column;
        margin-top: 10px;
    }

    .main-nav.is-open .main-nav-links {
        display: flex;
    }

    .main-nav.is-open .main-nav-toggle-icon {
        background: transparent;
    }

    .main-nav.is-open .main-nav-toggle-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .main-nav.is-open .main-nav-toggle-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .main-nav a {
        border-left: 0;
        border-right: 0;
        min-height: 42px;
        padding: 12px 10px;
    }

    .main-nav-item {
        align-items: stretch;
        flex-direction: column;
    }

    .main-nav-dropdown {
        display: flex;
        flex-direction: column;
    }

    .main-nav-dropdown > a {
        flex: 1 1 auto;
    }

    .main-nav-dropdown-toggle {
        min-height: 42px;
        padding: 0 10px;
        position: absolute;
        right: 0;
        top: 0;
    }

    .main-nav-dropdown-menu {
        border: 0;
        box-shadow: none;
        display: none;
        margin: 0 0 4px 14px;
        min-width: 0;
        padding: 0;
        position: static;
    }

    /* Mesmo combinador ">" do desktop: só o painel do próprio nível abre, não o de um
       subsubmenu aninhado dentro dele. */
    .main-nav-dropdown.is-open > .main-nav-dropdown-menu {
        display: flex;
    }
}


.brand {
    align-items: center;
    color: var(--color-primary-dark);
    display: inline-flex;
    max-width: 100%;
    text-decoration: none;
}

.brand-logo {
    display: block;
    height: auto;
    max-width: 520px;
    width: 100%;
}

.content-section {
    padding: 8px 0 24px;
}

.section-heading {
    margin-bottom: 32px;
    max-width: 760px;
}

.section-heading h1 {
    margin: 8px 0 12px;
}

.section-heading p {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.eyebrow {
    color: var(--color-primary-dark);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rich-content,
.empty-state,
.contact-grid {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    padding: 24px;
}

.rich-content p,
.empty-state p,
.contact-grid p {
    color: var(--color-muted);
}

.rich-content h2,
.rich-content h3 {
    color: var(--color-primary-dark);
    margin: 28px 0 12px;
}

.rich-content h2:first-child,
.rich-content h3:first-child {
    margin-top: 0;
}

.rich-content ul,
.rich-content ol {
    color: var(--color-muted);
    margin: 0 0 16px;
    padding-left: 22px;
}

.rich-content li {
    margin-bottom: 6px;
}

.rich-content figure {
    margin: 0 0 20px;
}

.rich-content img {
    border-radius: 8px;
    height: auto;
    max-width: 100%;
}

.rich-content figcaption {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.empty-state h2,
.contact-grid h2 {
    margin-top: 0;
}

.contact-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-page,
.article-detail-page {
    display: grid;
    gap: 28px;
}

.article-hero {
    background:
        radial-gradient(circle at top right, rgba(242, 201, 76, 0.18), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
    border: 1px solid rgba(0, 92, 170, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    max-width: none;
    padding: 28px;
}

.article-hero a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
}

.article-hero a:hover {
    color: var(--color-primary-dark);
}

.article-search {
    display: grid;
    gap: 10px;
}

.article-search label {
    font-weight: 700;
}

.article-tags-filter {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 92, 170, 0.08);
    border-radius: 14px;
    max-height: 116px;
    overflow: auto;
    padding: 12px;
}

.article-tags-filter,
.article-tag-list,
.article-metrics,
.article-card-meta,
.article-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tag-chip,
.article-tag-list a,
.article-tag-label,
.article-tag-more {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(17, 135, 208, 0.18);
    border-radius: 999px;
    color: var(--color-primary-dark);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 700;
    gap: 8px;
    padding: 8px 12px;
}

.article-tag-chip.is-active,
.article-tag-chip:hover,
.article-tag-list a:hover,
.article-tag-label,
.article-tag-more {
    background: linear-gradient(180deg, #fff9df 0%, #fff3bd 100%);
    border-color: rgba(224, 177, 45, 0.38);
    box-shadow: 0 8px 18px rgba(224, 177, 45, 0.12);
}

.article-tag-chip small {
    color: var(--color-muted);
}

.article-results-bar {
    align-items: center;
    color: var(--color-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.94rem;
    font-weight: 800;
    gap: 12px;
    justify-content: space-between;
}

.article-featured-card,
.article-card,
.article-detail-card,
.article-comment-card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 92, 170, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.article-featured-card,
.article-detail-card {
    padding: 30px;
}

.article-featured-card h2,
.article-detail-card h1,
.article-card h2 {
    color: var(--color-ink);
    line-height: 1.2;
    margin: 0;
}

.article-featured-card h2 {
    font-size: 2rem;
    margin-top: 12px;
}

.article-featured-card p,
.article-card p,
.article-comment-card p {
    color: var(--color-muted);
}

.article-featured-card .button-link {
    margin-top: 18px;
}

.article-featured-meta,
.article-card-meta,
.article-metrics {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.article-grid,
.article-comments-list {
    display: grid;
    gap: 22px;
}

.article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
    display: grid;
    gap: 16px;
    grid-template-rows: auto auto 1fr auto auto;
    padding: 24px;
}

.article-card:hover {
    box-shadow: 0 18px 34px rgba(0, 92, 170, 0.14);
    transform: translateY(-2px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-metric-chip {
    align-items: center;
    background: #f8fbff;
    border: 1px solid rgba(17, 135, 208, 0.12);
    border-radius: 999px;
    color: var(--color-primary-dark);
    display: inline-flex;
    gap: 7px;
    padding: 8px 12px;
}

.article-metric-chip svg {
    fill: var(--color-accent);
    flex: 0 0 15px;
    height: 15px;
    width: 15px;
}

.article-read-link {
    align-items: center;
    color: var(--color-primary-dark);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 800;
    gap: 8px;
    justify-self: start;
    min-height: 42px;
    padding: 0 2px;
}

.article-read-link svg {
    fill: currentColor;
    height: 16px;
    width: 16px;
}

.article-read-link.is-featured {
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue-light));
    border-radius: 999px;
    color: #ffffff;
    padding: 11px 16px;
}

.article-card-footer {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.article-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.article-pagination a,
.article-pagination span {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(17, 135, 208, 0.18);
    border-radius: 999px;
    color: var(--color-primary-dark);
    display: inline-flex;
    font-weight: 800;
    min-height: 42px;
    padding: 0 16px;
}

.article-pagination a:hover {
    background: var(--color-soft);
}

.article-pagination .is-disabled {
    color: var(--color-muted);
    opacity: 0.56;
}

.article-back-link {
    width: fit-content;
}

.article-detail-header {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.article-content {
    color: var(--color-text);
    display: grid;
    gap: 18px;
    line-height: 1.8;
}

.article-content p {
    margin: 0;
}

.article-comment-card {
    display: grid;
    gap: 6px;
    padding: 20px;
}

.article-comment-card small {
    color: var(--color-muted);
}

.article-feedback,
.article-interactions,
.article-login-prompt {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.article-feedback {
    padding: 16px 18px;
}

.article-feedback.success {
    border-color: rgba(46, 125, 50, 0.2);
    color: #1b5e20;
}

.article-feedback.error {
    border-color: rgba(176, 0, 32, 0.18);
    color: #8e1b1b;
}

.article-interactions {
    display: grid;
    gap: 22px;
    padding: 26px;
}

.article-actions-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.article-like-button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(17, 135, 208, 0.18);
    border-radius: 999px;
    color: var(--color-primary-dark);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
}

.article-like-button svg {
    fill: var(--color-accent);
    height: 18px;
    width: 18px;
}

.article-like-button.is-liked {
    background: linear-gradient(180deg, #fff9df 0%, #fff3bd 100%);
    border-color: rgba(224, 177, 45, 0.4);
}

.article-comment-form {
    display: grid;
    gap: 12px;
}

.article-comment-form label {
    font-weight: 800;
}

.article-comment-form textarea {
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    color: var(--color-text);
    font: inherit;
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

.article-comment-form textarea:focus {
    border-color: rgba(0, 92, 170, 0.5);
    box-shadow: 0 0 0 4px rgba(17, 135, 208, 0.12);
    outline: 0;
}

.article-login-prompt {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 20px 22px;
}

.article-login-prompt p,
.form-error {
    color: var(--color-muted);
    margin: 0;
}

.special-offer-banner {
    background: #ffffff;
    border: 1px solid rgba(0, 92, 170, 0.18);
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    bottom: 0;
    box-shadow: 0 -14px 34px rgba(31, 41, 55, 0.14);
    left: 0;
    position: fixed;
    width: 100%;
    z-index: 60;
}

.special-offer-banner.is-hidden {
    display: none;
}

.special-offer-banner-link {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 68px minmax(0, 1fr) auto;
    margin: 0 auto;
    max-width: 1180px;
    min-height: 86px;
    padding: 12px 58px 12px 18px;
    width: 100%;
}

.special-offer-kicker {
    background: var(--color-accent);
    border-radius: 999px;
    color: var(--color-ink);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
    padding: 7px 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

.special-offer-media {
    align-items: center;
    background: var(--color-soft);
    border: 1px solid var(--color-line);
    border-radius: 6px;
    display: flex;
    height: 62px;
    justify-content: center;
    overflow: hidden;
    width: 62px;
}

.special-offer-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.special-offer-placeholder {
    color: var(--color-primary-dark);
    font-size: 0.72rem;
    font-weight: 900;
}

.special-offer-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.special-offer-copy strong {
    color: var(--color-primary-dark);
    font-size: 1rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.special-offer-copy span {
    color: var(--color-text);
    font-size: 1.08rem;
    font-weight: 900;
}

.special-offer-copy s {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 700;
    margin-right: 8px;
}

.special-offer-cta {
    align-items: center;
    background: var(--color-primary);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    white-space: nowrap;
}

.special-offer-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--color-muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.7rem;
    font-weight: 400;
    height: 42px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: max(8px, calc((100vw - 1180px) / 2 + 8px));
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
}

.special-offer-close:hover {
    color: var(--color-primary-dark);
}

@media (max-width: 760px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .article-featured-card,
    .article-detail-card {
        padding: 22px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-card-footer {
        align-items: start;
        flex-direction: column;
    }

    .article-actions-row,
    .article-login-prompt {
        align-items: start;
        flex-direction: column;
    }

    .special-offer-banner-link {
        gap: 10px;
        grid-template-columns: 52px minmax(0, 1fr);
        min-height: 92px;
        padding: 12px 48px 12px 12px;
    }

    .special-offer-kicker {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .special-offer-media {
        height: 52px;
        width: 52px;
    }

    .special-offer-cta {
        display: none;
    }

    .special-offer-copy strong {
        white-space: normal;
    }
}

/* Aguardando confirmacao do Pix (pagina do pedido) */
.order-payment-waiting {
    align-items: center;
    background: #fff8e6;
    border: 1px solid #f2d98c;
    border-radius: 12px;
    color: #7a5b00;
    display: flex;
    font-weight: 600;
    gap: 10px;
    padding: 12px 16px;
}

.order-payment-waiting .spinner {
    animation: order-status-spin 1s linear infinite;
    border: 3px solid #f2d98c;
    border-radius: 50%;
    border-top-color: #7a5b00;
    display: inline-block;
    flex-shrink: 0;
    height: 18px;
    width: 18px;
}

.order-payment-confirmed {
    background: #e8f7ee;
    border: 1px solid #9edcb5;
    border-radius: 12px;
    color: #14663b;
    padding: 16px;
}

.copy-field {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.copy-field label {
    flex: 1 1 260px;
}

@keyframes order-status-spin {
    to { transform: rotate(360deg); }
}
