/* Header */
.site-header {
    background: var(--navy);
    border-bottom: 4px solid var(--gold);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.brand img {
    height: 64px;
    display: block;
}

.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-weight: 600;
    font-size: var(--fs-md);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.2rem 0.3rem;
    color: #EFF3F8;
    font-size: var(--fs-xl);
    line-height: 1;
    cursor: pointer;
}

.nav-toggle:hover {
    color: var(--gold);
    opacity: 1;
}

/* "Pular para o conteúdo": invisível até receber o foco pelo teclado. */
.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3rem;
    z-index: 1000;
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
}

main:focus {
    outline: none;
}

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

.site-header nav a {
    text-decoration: none;
    color: #EFF3F8;
    transition: color 0.15s ease;
}

.site-header nav a:hover {
    color: var(--gold);
}

.nav-greeting {
    color: #B9C6D6;
    font-weight: 500;
}

.nav-logout-form {
    display: inline-flex;
    margin: 0;
}

.nav-logout {
    background: none;
    border: none;
    padding: 0;
    color: #EFF3F8;
    font-weight: 600;
    font-size: var(--fs-md);
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
}

.nav-logout:hover {
    color: var(--gold);
    opacity: 1;
}

/* "Comprar" e "Alugar": as duas vitrines, sempre na barra (fora do ☰), para equipe e cliente. */
.site-header nav a.nav-showcase,
.site-header nav button.nav-showcase {
    font-weight: 700;
    padding: 0.15rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.site-header nav a.nav-showcase[aria-current="page"],
.site-header nav button.nav-showcase[aria-current="page"] {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Equipe: "Comprar" e "Alugar" abrem, ao toque/clique no título, o submenu daquele lado; o primeiro
   item (destacado) é a vitrine. Sem hover: no celular ele atrapalhava. */
.nav-split {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-split-toggle {
    background: none;
    border: none;
    padding: 0.15rem 0.25rem;
    color: #EFF3F8;
    font: inherit;
    cursor: pointer;
}

.nav-split-toggle:hover,
.nav-split.is-open .nav-split-toggle {
    color: var(--gold);
}

.nav-split-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    min-width: 220px;
    padding-top: 0.6rem;  /* ponte invisível: o mouse não perde o :hover ao descer até o menu */
    z-index: 20;
}

.site-header .nav-split-menu a {
    color: var(--navy);
    background: var(--paper);
    font-weight: 600;
    font-size: var(--fs-md);
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.site-header .nav-split-menu a:first-child {
    border-top: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.site-header .nav-split-menu a:last-child {
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.site-header .nav-split-menu a:hover {
    background: var(--cream);
    color: var(--navy);
}

.nav-split.is-open .nav-split-menu {
    display: flex;
}

.site-header .nav-split-menu a.nav-split-showcase {
    background: var(--cream);
    color: var(--navy);
    font-weight: 800;
    border-bottom: 2px solid var(--gold);
}

.nav-cart {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.cart-count {
    background: var(--red);
    color: white;
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
}

.nav-orders {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-badge {
    font-size: var(--fs-xs);
    font-weight: 700;
    line-height: 1;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-pill);
}

.nav-badge--red {
    background: var(--red);
    color: #fff;
}

.nav-badge--muted {
    background: rgba(239, 243, 248, 0.18);
    color: #DDE5EF;
    font-weight: 600;
}

.nav-dropdown-menu .nav-badge--muted {
    background: #E6E9EE;
    color: #4A5566;
}

/* Busca do cabeçalho: lupa que abre um campo (no celular fica ao lado do carrinho). */
.header-inner {
    position: relative;
}

.nav-search > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: #EFF3F8;
    font-size: var(--fs-base);
    padding: 0.2rem 0.1rem;
}

.nav-search > summary::-webkit-details-marker {
    display: none;
}

.nav-search > summary .icon {
    font-size: var(--fs-lg);
}

.nav-search > summary:hover,
.nav-search[open] > summary {
    color: var(--gold);
}

.nav-search-form {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    z-index: 60;
    width: min(26rem, calc(100% - 2rem));
    display: flex;
    gap: var(--space-2);
    padding: 0.75rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 28px rgba(15, 30, 50, 0.22);
}

.nav-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.nav-search-form button {
    margin: 0;
    white-space: nowrap;
}

.nav-badge--yellow {
    background: var(--gold);
    color: var(--navy-dark);
}

.nav-signup {
    background: var(--gold);
    color: var(--navy-dark);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
}

.nav-signup:hover {
    color: var(--navy-dark);
    opacity: 0.9;
}

/* Main */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 245px;
    padding: 2.5rem 2.5rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    color: white;
    text-decoration: none;
}

.hero-slide[hidden] {
    display: none;
}

.hero-slide--rental {
    background: linear-gradient(125deg, #173654 0%, #245F50 100%);
}

.hero-slide--instagram {
    background: linear-gradient(125deg, #3A245F 0%, #9B315B 58%, #C7782A 100%);
}

.hero-slide--notice {
    background: linear-gradient(125deg, #4D3920 0%, #7B5723 100%);
}

.hero-text h2 {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    margin: 0 0 0.5rem;
    color: var(--gold);
}

.hero-text p {
    max-width: 34rem;
    color: #DCE4EE;
    margin: 0;
    font-size: var(--fs-base);
}

.hero-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: #F4D06F;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: 1.15rem;
    color: white;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.hero-slide[href]:hover .hero-action,
.hero-slide[href]:focus .hero-action {
    color: var(--gold);
}

.hero-controls {
    position: absolute;
    right: 1.15rem;
    bottom: 0.85rem;
    left: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    z-index: 2;
}

.hero-arrow {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 0.5);
    border-radius: var(--radius-round);
    background: rgb(0 0 0 / 0.18);
    color: white;
    font-size: var(--fs-xl);
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-dot {
    width: 0.65rem;
    height: 0.65rem;
    padding: 0;
    border: 1px solid white;
    border-radius: var(--radius-round);
    background: transparent;
}

.hero-dot--active {
    background: white;
}

.hero-toggle {
    padding: 0.25rem 0.55rem;
    border: 1px solid rgb(255 255 255 / 0.5);
    border-radius: var(--radius-pill);
    background: rgb(0 0 0 / 0.18);
    color: white;
    font-size: var(--fs-xs);
}

/* Cabeçalho compacto mostrado no lugar do .hero sempre que a listagem está
   filtrada por tipo ou categoria — mesma família visual do hero (mesmo
   fundo em degradê), só mais baixo, pra nunca deixar o topo da página
   simplesmente vazio quando o hero de marketing não faz mais sentido. */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem 2rem;
    margin: 2rem 0;
}

.page-header h1,
.page-header h2 {
    font-family: var(--font-display);
    color: var(--gold);
    margin: 0;
}

/* Quando o page-header mostra uma categoria, o tipo (nível acima, ex:
   "Livros") vira um link clicável de volta pra esse nível — trilha de
   navegação completa, não só o nome da categoria isolado. */
.page-header-parent {
    color: #DCE4EE;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.page-header-parent:hover {
    color: white;
    border-bottom-color: var(--gold);
}

.page-header-sep {
    color: #8A93A6;
    margin: 0 0.4rem;
}

/* Categories */
.categories {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.categories a {
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 2px solid var(--border);
    background: var(--paper);
    color: var(--navy);
    font-weight: 600;
    font-size: var(--fs-md);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.categories a:hover {
    border-color: var(--gold);
}

.categories a.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* No nível "Todas" os pills são os tipos de produto; no nível seguinte
   (dentro de um tipo) são as categorias daquele tipo — em ambos os casos a
   cor do texto acompanha a cor de identidade do tipo (ver .badge--<tipo>
   acima), pra reforçar visualmente qual é qual antes mesmo de clicar. Só a
   cor do texto muda; fundo/borda continuam iguais aos outros pills, e o
   estado ativo (fundo navy) já ganha de qualquer uma dessas por ter mais
   classes na seletor. */
.categories .type-pill--board_game,
.categories .category-pill--board_game {
    color: #4F7942;
}

.categories .type-pill--book,
.categories .category-pill--book {
    color: #2D6A9F;
}

.categories .type-pill--food,
.categories .category-pill--food {
    color: #8A6D1F;
}

/* Busca e filtro de produtos */
.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: 0.75rem;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--navy);
    color: white;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
}

.search-chip span {
    font-weight: 700;
    opacity: 0.8;
}

.search-chip:hover {
    background: var(--red);
}

.search-chip:hover span {
    opacity: 1;
}

.search-form {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
}

/* Só o max-width (sem width:auto — ver comentário mais abaixo, no bloco de
   forms, sobre por que width:auto quebra isso). */
.search-form select {
    max-width: 220px;
}

/* Botões de ordenação — cada um é um toggle de 2 estados (crescente <->
   decrescente) pro próprio campo, não um <select>: clicar de novo no mesmo
   botão já ativo inverte a direção (ver store.views._sort_links). */
.sort-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.sort-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.sort-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--navy);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sort-button:hover {
    border-color: var(--navy);
}

.sort-button.active {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

.search-form button {
    flex-shrink: 0;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-5);
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    padding-top: 1.75rem;
}

.product-card-type {
    position: absolute;
    inset: 0 0 auto;
    min-height: 1.75rem;
    padding: 0.28rem 0.75rem 0.22rem;
    border-top: 4px solid var(--gold);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.product-card-type--board_game {
    border-top-color: #4F7942;
    background: #E3EFDA;
    color: #31572C;
}

.product-card-type--book {
    border-top-color: #2D6A9F;
    background: #DCEBF7;
    color: #24577F;
}

.product-card-type--food {
    border-top-color: #8A6D1F;
    background: #FFF3C4;
    color: #705816;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(27, 59, 99, 0.12);
}

/* Estilo "Amazon": imagem quadrada e inteira (object-fit: contain, nunca
   cover) — antes o corte tipo cover deixava metade da capa/caixa fora do
   quadro, dificultando reconhecer o produto de relance na grade. No
   desktop a foto em si fica um pouco menor que o card (max-width: 70%,
   centralizada) em vez de ocupar a largura toda — mais parecido com o
   card de produto da Amazon. No mobile (media query lá embaixo) a imagem
   vira um thumbnail pequeno de tamanho fixo, então esse max-width é
   resetado lá pra não interferir. */
.product-card-image {
    aspect-ratio: 1 / 1;
    width: 70%;
    max-width: 70%;
    margin: 0 auto;
    background: #F5F2E9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.75rem;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.placeholder-icon {
    font-size: var(--fs-2xl);
    opacity: 0.5;
    display: inline-flex;
}

/* Ícones SVG (templates/_icon.html): seguem o tamanho e a cor do texto. */
.icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: -0.15em;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.1rem 1.25rem;
}

/* Ação do card (adicionar ao carrinho / no carrinho / esgotado / editar) sempre
   encostada na borda inferior, qualquer que seja a altura do texto acima — os
   cards da mesma linha da grade têm a mesma altura e os botões ficam alinhados. */
.product-card-actions {
    margin-top: auto;
}

.card-installments-note {
    display: block;
    margin-top: 0.35rem;
    color: #6B6357;
}

/* Cada tipo de produto tem sua própria cor de identidade — usada aqui, na
   faixa superior do card (.product-card-type--<tipo>, acima), na cor do texto
   dos pills de tipo/categoria na faixa de filtro (.type-pill--<tipo> e
   .category-pill--<tipo>, mais abaixo) — sempre juntas. Vermelho foi
   evitado de propósito em qualquer tipo por parecer aviso de erro, não
   uma categoria normal. */
.badge {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #F0EDE4;
    color: #6B6357;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

/* Badge secundário (estado de conservação do livro usado) — ao lado do
   badge de tipo. Aqui a cor é proposital um "semáforo" pro cliente, não
   uma identidade visual: verde (novo/como novo/excelente) tranquiliza,
   cinza (bom estado/conservado) é neutro, vermelho (com marcas de uso) é
   um alerta real — diferente do badge de tipo, onde vermelho foi evitado
   de propósito por não significar nada de errado. */
.badge--condition {
    margin-left: 0.4rem;
}

.badge--condition-sealed,
.badge--condition-new,
.badge--condition-like_new,
.badge--condition-excellent {
    background: #E3EFDA;
    color: #4F7942;
}

.badge--condition-good {
    background: #EDEBE6;
    color: #6B6357;
}

.badge--condition-worn,
.badge--condition-mold_treated,
.badge--damage {
    background: #FBE1DF;
    color: var(--red);
}

.badge--feature {
    margin-left: 0.4rem;
}

.badge--additions {
    background: #EEE6F7;
    color: #68428A;
}

.badge--english {
    background: #DCEBF7;
    color: #2D6A9F;
}

.product-card h3 {
    margin: 0 0 0.3rem;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
}

.product-card h3 a {
    text-decoration: none;
}

.product-price {
    margin: 0.25rem 0 0.9rem;
}

.product-price-line {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.product-price-main {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.product-price-main .price-current,
.pix-discount-label {
    color: #31572C;
}

.pix-discount-label {
    font-size: var(--fs-xs);
    font-weight: 700;
}

.card-price-reference {
    display: block;
    margin-top: 0.1rem;
    color: #6B6357;
}

.product-offer-reference {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 0.15rem;
}

.price-by {
    color: #6B6357;
    font-size: var(--fs-sm);
    font-weight: 700;
}

.price-current {
    font-weight: 800;
    color: var(--navy);
    font-size: var(--fs-base);
}

.product-price--offer .price-current {
    color: var(--red);
    font-size: var(--fs-lg);
}

.product-price--offer .product-price-main .price-current {
    color: #31572C;
}

.price-old {
    color: #777065;
    font-size: var(--fs-md);
    text-decoration: line-through;
}

.discount-badge,
.badge--offer {
    background: #FDE5E1;
    color: #A62A1E;
    font-weight: 800;
}

.discount-badge {
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
}

.offer-deadline {
    display: block;
    margin-top: 0.3rem;
    color: #6B6357;
    font-weight: 600;
}

.offers-section {
    margin: 0 0 2.5rem;
    padding: 1.4rem;
    background: #FFF8DF;
    border: 1px solid #E7D18A;
    border-radius: var(--radius-md);
}

.offers-heading {
    margin-bottom: 1rem;
}

.offers-heading h2,
.catalog-title {
    margin: 0;
}

.offers-kicker {
    color: #8A6D1F;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Produto em oferta: fundo quente (pêssego) e borda alaranjada para se
   destacar dos demais, inclusive dentro da faixa amarela de ofertas. */
.product-card--offer {
    background: linear-gradient(180deg, #FFF3E4 0%, #FFE2C2 100%);
    border-color: #F2A65A;
    box-shadow: 0 7px 18px rgba(217, 120, 30, 0.2);
}

/* Selo da oferta no cartão: "🔥 Oferta · termina hoje às 18:00" num selo só,
   escuro para vencer os demais (o fundo pêssego do cartão continua). */
.badge--offer-timer {
    background: #A62A1E;
    color: #fff;
    font-weight: 700;
}

/* Selos do cartão (máximo 3, Product.card_badges): uma linha que quebra
   sozinha no celular, logo abaixo do preço. */
.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin: 0 0 0.6rem;
}

.product-card-tags .badge {
    margin: 0;
}

.hot-icon {
    font-size: var(--fs-lg);
    line-height: 1;
}

.catalog-title {
    margin-bottom: 1rem;
}

.bulk-offer-form {
    margin-top: 1.25rem;
}

.pricing-offer-panel {
    margin: 1rem 0;
    padding: 0.8rem 1rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #FAF8F1;
}

.pricing-offer-panel summary {
    margin-bottom: 0.8rem;
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
}

.offer-period-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 24rem));
    gap: var(--space-4);
    margin-bottom: 1rem;
}

.offer-period-card {
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.offer-period-card label {
    margin-top: 0.15rem;
    font-size: var(--fs-base);
}

.offer-period-kicker {
    color: #8A6D1F;
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.offer-datetime-control {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
}

.offer-date-input {
    flex: 1 1 12rem;
    min-width: 9.5rem;
}

.offer-hour-select,
.offer-minute-select {
    flex: 0 0 5rem;
    width: 5rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    text-align: center;
}

.product-form .offer-datetime-control {
    max-width: 29rem;
}

.offer-select-tools,
.offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: 1rem 0;
}

.offer-table small {
    display: block;
    color: #6B6357;
}

.offer-select-cell {
    text-align: center;
}

.offer-select-cell input {
    width: 1.15rem;
    height: 1.15rem;
}

.offer-product-label {
    margin: 0;
    cursor: pointer;
}

.pricing-price-input {
    min-width: 8rem;
    max-width: 10rem;
}

.offer-status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    background: #E8E4D8;
    color: #5C574E;
    font-size: var(--fs-xs);
    font-weight: 700;
}

.offer-status--active {
    background: #E2F0DE;
    color: #31572C;
}

.offer-status--scheduled {
    background: #E2EDF7;
    color: #2D6A9F;
}

.offer-status--ended {
    background: #FDE5E1;
    color: #A62A1E;
}

.offer-current-details {
    margin-top: 0.35rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .offer-period-fields {
        grid-template-columns: 1fr;
    }

    .offer-datetime-control {
        flex-wrap: wrap;
    }

    .offer-date-input {
        flex-basis: 100%;
    }
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-top: 2rem;
}

.pagination a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: var(--fs-md);
}

.pagination a:hover {
    color: var(--gold-dark);
}

.pagination-current {
    color: var(--text-muted);
    font-size: var(--fs-md);
}

/* Rolagem infinita ligada (static/js/infinite-scroll.js): os links somem e o
   <nav> vira só o sentinela com o aviso de carregamento. Sem JS ou depois de
   um erro de rede a classe --infinite sai e a paginação normal volta. */
.pagination--infinite a,
.pagination--infinite .pagination-current {
    display: none;
}

.pagination--infinite .pagination-status {
    color: var(--text-muted);
    font-size: var(--fs-md);
    min-height: 1.4rem;
}

.pagination--done {
    display: none;
}

/* Painel do staff */
.dashboard-cards {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 220px;
}

.dashboard-card-label {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: 600;
}

.dashboard-card-value {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    color: var(--navy);
}
