/* ==========================================================================
   LAYOUT DA VITRINE DE BOARDS E SISTEMA DE GRID (boards.css)
   ========================================================================== */

/* --- SISTEMA DE GRID SEGURO --- */
.container, .row, [class^="col-"] {
    box-sizing: border-box;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Força espaçamento vertical entre as linhas para que os cards nunca colem */
#grid-boards {
    row-gap: 2.5rem;
}

[class^="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

/* Utilitários de Margem e Alinhamento */
.align-items-center { align-items: center; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.text-center { text-align: center !important; }

/* Form Controls Padrão (Filtros) - CORRIGIDO */
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: inherit; /* Força os campos a usarem a fonte Montserrat do site */
    line-height: 1.5;
    color: #444;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.4rem;
    box-sizing: border-box; /* Garante que o padding não engorde um campo mais que o outro */
    height: 48px; /* Trava uma altura exata para input e select ficarem milimetricamente iguais */
    transition: all 0.2s ease;
    appearance: none; /* Remove o estilo padrão nativo do select em iPhones/Macs */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Adiciona um ícone de seta customizado no select já que removemos o nativo acima */
select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* Estado de foco elegante na cor da marca */
.form-control:focus {
    outline: none;
    border-color: var(--vit-accent, #cc5500);
    box-shadow: 0 0 0 3px rgba(204, 85, 0, 0.15);
}

/* --- BARRA DE FILTROS --- */
.vit-filter-bar {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--vit-border, #eee);
}

.vit-filter-label {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--vit-title, #111);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- BLOCO E-BRANDS INFO --- */
.vit-brand-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    border-left: 5px solid var(--vit-accent, #cc5500);
}

.vit-brand-logo {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

.vit-brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
}

.vit-brand-meta {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.vit-brand-meta i { color: var(--vit-accent, #cc5500); margin-right: 4px; }
.vit-brand-meta a { color: var(--vit-accent, #cc5500); text-decoration: none; font-weight: bold; }
.status-ativa { color: green; font-weight: bold; }
.status-extinta { color: red; font-weight: bold; }

.vit-brand-desc {
    background: #fafafa;
    padding: 15px;
    border-radius: 6px;
}

.brand-history-text {
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.vit-history-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vit-btn-more {
    display: none;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--vit-accent, #cc5500);
    text-decoration: none;
}

.vit-btn-more i { font-size: 0.75rem; margin-left: 4px; }

/* --- BARRA DE AÇÕES (E-Brands ←→ Filtros) --- */
.vit-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.vit-actions-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
}

/* Resumo de filtros ativos — linha independente, não afeta a altura da barra */
.vit-filter-resumo-wrap {
    min-height: 1.2rem; /* reserva espaço fixo evitando layout shift */
    display: flex;
    align-items: center;
    padding-left: 0.1rem;
}

/* Chevron do botão E-Brands */
.vit-ebrands-chev {
    font-size: 0.7em;
    margin-left: 0.1rem;
    transition: transform 0.25s ease;
}

.vit-ebrands-trigger.is-open .vit-ebrands-chev {
    transform: rotate(180deg);
}

/* Painel expansível E-Brands */
.boards-ebrands-panel {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0 0 1rem;
    text-align: left;
}

.boards-ebrands-panel--collapsed { display: none !important; }

.boards-ebrands-panel:not(.boards-ebrands-panel--collapsed) {
    display: block;
    border-bottom: 1px solid var(--vit-border, #eee);
    margin-bottom: 0.5rem;
}

.boards-ebrands-panel .boards-ebrands-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* --- CARDS DE BOARDS --- */
.board-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    padding: 1rem;
    border-radius: 0.6rem;
    box-shadow: 0 0.25rem 0.6rem rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid #f0f0f0;
}

.board-card:hover {
    transform: translateY(-0.3rem);
    box-shadow: var(--vit-shadow-hover, 0 10px 25px rgba(0,0,0,0.1));
    border-color: #e0e0e0;
}

/* Badge de Esgotado */
.vit-badge-soldout {
    position: absolute;
    top: 30px;            /* Desce um pouquinho para afastar da borda superior */
    right: -35px;         /* Ajuste fino da distância da borda direita */
    width: 160px;         /* Uma largura fixa garante espaço para o texto todo */
    text-align: center;   /* Centraliza o texto perfeitamente na faixa */
    background: #d9534f;
    color: #fff;
    padding: 5px 0;       /* Mantém o padding vertical, remove o lateral */
    font-size: 0.65rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.board-img-container {
    width: 100%;
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: #f4f4f4; 
}

.board-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}

.board-card .media__title {
    font-size: 1.1rem !important;
    font-weight: bold;
    margin-bottom: 0.3rem !important;
    line-height: 1.2 !important;
}

.board-card .media__text {
    font-size: 0.85rem !important;
    color: #555;
    flex-grow: 1; /* Ocupa o espaço livre e empurra o footer para baixo */
}

.board-text-resumo {
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
    margin-top: 0.3rem;
    min-height: 3.8em; 
}

/* --- RODAPÉ DO CARD --- */
.board-card .media__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
    gap: 10px;
}

.media__footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

/* "Ver detalhes" — mesmo visual de "Sem avaliação" */
.media__ver-detalhes {
    color: #ccc !important;
    font-size: 0.75rem;
    font-weight: 400;
    font-style: italic;
    white-space: nowrap;
}

/* Preço do board — laranja bold, lado direito */
.board-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--vit-accent, #cc5500) !important;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

.board-price--empty {
    font-size: 0.75rem;
    font-weight: 400;
    color: #ccc !important;
    font-style: italic;
    flex-shrink: 0;
}

/* Avaliação (Estrelas) */
.vit-star-rating {
    display: flex;
    align-items: center;
    color: #FFD700;
    font-size: 0.85rem;
    white-space: nowrap; /* Impede a quebra de linha das estrelas */
}

.vit-star-rating .rating-value {
    color: #666;
    font-size: 0.75rem;
    margin-left: 4px;
    font-weight: bold;
}

.rating-empty {
    color: #ccc;
    font-size: 0.75rem;
    font-style: italic;
    white-space: nowrap;
}

/* Wrapper "Avaliação: ★★★★☆ 4,0" na meta da marca */
.vit-brand-avaliacao {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* Estrelas no card da marca (nota_estrelas da tabela marcas) */
.vit-brand-stars {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.vit-brand-stars .rating-value {
    font-size: 0.85rem;
}

/* .media__continue removido — substituído por .media__ver-detalhes + .board-price */

/* ==========================================================================
   BOTÃO "COMPARAR" NOS CARDS
   ========================================================================== */

.comp-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.38rem 0.6rem;
    border: 1px dashed var(--vit-accent, #cc5500);
    border-radius: 0.4rem;
    background: transparent;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vit-accent, #cc5500);
    cursor: pointer;
    transition: all 0.18s ease;
    letter-spacing: 0.03em;
    -webkit-appearance: none;
    appearance: none;
}

.comp-card-btn i { font-size: 0.7rem; }

.comp-card-btn:hover {
    border-color: var(--vit-accent, #cc5500);
    border-style: solid;
    color: var(--vit-accent, #cc5500);
    background: #fff5f0;
}

.comp-card-btn.is-selected {
    border-color: var(--vit-accent, #cc5500) !important;
    border-style: solid !important;
    background: var(--vit-accent, #cc5500) !important;
    color: #fff !important;
}

.comp-card-btn.is-selected .comp-card-btn__label::before {
    content: '✓ ';
}

/* ==========================================================================
   BARRA FLUTUANTE DE COMPARAÇÃO
   ========================================================================== */

.comp-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #1a1a1a;
    color: #fff;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    animation: comp-bar-in 0.25s ease;
    flex-wrap: wrap;
}

.comp-bar[hidden] { display: none !important; }

@keyframes comp-bar-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* Slots de thumbs */
.comp-bar__slots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

.comp-bar__slot {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #333;
    border-radius: 0.4rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    max-width: 160px;
    position: relative;
}

.comp-bar__slot img {
    width: 2rem;
    height: 1.5rem;
    object-fit: cover;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.comp-bar__slot-placeholder {
    width: 2rem;
    height: 1.5rem;
    background: #444;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.comp-bar__slot-nome {
    font-size: 0.72rem;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.comp-bar__slot-remove {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.1rem 0.2rem;
    font-size: 0.6rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}

.comp-bar__slot-remove:hover { color: #ff5555; }

/* Ações */
.comp-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.comp-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.2rem;
    background: var(--vit-accent, #cc5500);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.comp-bar__btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.comp-bar__btn:not(:disabled):hover { background: #b34a00; }

.comp-bar__clear {
    background: none;
    border: 1px solid #555;
    color: #aaa;
    border-radius: 0.4rem;
    padding: 0.5rem 0.8rem;
    font-family: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.comp-bar__clear:hover { color: #fff; border-color: #888; }

@media (max-width: 600px) {
    .comp-bar { padding: 0.6rem 1rem; }
    .comp-bar__slot-nome { max-width: 60px; }
    .comp-bar__btn { font-size: 0.8rem; padding: 0.5rem 0.9rem; }
}

/* --- BOTÃO VOLTAR --- */
.vit-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--vit-accent, #cc5500);
    color: var(--vit-title, #111);
    font-weight: bold;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.vit-btn-outline:hover {
    background-color: var(--vit-accent, #cc5500);
    color: #fff;
    text-decoration: none;
}

/* --- CARREGAMENTO PROGRESSIVO (scroll infinito) --- */
.boards-load-sentinel {
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.boards-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.5rem 1rem 2rem;
    color: #666;
    font-size: 0.9rem;
}

.boards-loading-more[hidden] {
    display: none !important;
}

.boards-loading-more__spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e0e0e0;
    border-top-color: var(--vit-accent, #cc5500);
    border-radius: 50%;
    animation: boards-spin 0.7s linear infinite;
}

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

.boards-empty[hidden] {
    display: none !important;
}

.board-img-container img[loading="lazy"] {
    background-color: #f4f4f4;
}

/* ==========================================================================
   BOTÃO DE FILTROS
   ========================================================================== */

/* .vit-filter-trigger-wrap substituído por .vit-actions-bar */

.vit-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
    height: 2.6rem; /* altura fixa: o badge não pode deixar o botão Filtros mais alto */
    line-height: 1;
    padding: 0 1.1rem;
    border: 1.5px solid var(--vit-accent, #cc5500);
    background: transparent;
    color: var(--vit-title, #111);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;  /* impede quebra de linha no texto */
    flex-shrink: 0;       /* não comprime na barra */
}

.vit-filter-trigger:hover,
.vit-filter-trigger:focus-visible {
    background: var(--vit-accent, #cc5500);
    color: #fff;
    outline: none;
}

.vit-filter-trigger i {
    font-size: 0.9rem;
}

.vit-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--vit-accent, #cc5500);
    color: #fff;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.2rem;
    line-height: 1;
    transition: background 0.2s;
}

.vit-filter-badge[hidden] { display: none; }

.vit-filter-trigger:hover .vit-filter-badge {
    background: #fff;
    color: var(--vit-accent, #cc5500);
}

.vit-filter-resumo {
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
}

/* Mobile: os 3 botões dividem a largura igualmente, sem rolagem lateral */
@media (max-width: 600px) {
    .vit-actions-bar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .vit-filter-trigger {
        justify-content: center;
        min-width: 0;
        gap: 0.3rem;
        padding: 0 0.4rem;
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    .vit-filter-trigger i {
        font-size: 0.75rem;
    }

    .vit-filter-trigger > span:not(.vit-filter-badge) {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vit-ebrands-chev {
        display: none;
    }
}

/* ==========================================================================
   SLIDER DE PREÇO (range duplo)
   ========================================================================== */

.vit-price-range {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Trilha do slider duplo */
.vit-price-range__track-wrap {
    position: relative;
    height: 2.2rem; /* altura suficiente para os dois thumbs se sobreporem sem corte */
}

/* Base cinza da trilha */
.vit-price-range__track-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    transform: translateY(-50%);
    background: #e0e0e0;
    border-radius: 2px;
    pointer-events: none;
    z-index: 0;
}

/* Faixa colorida entre os dois thumbs */
.vit-price-range__track {
    position: absolute;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: var(--vit-accent, #cc5500);
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
}

/* Inputs range sobrepostos */
.vit-price-range__slider {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
    outline: none;
}

.vit-price-range__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--vit-accent, #cc5500);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vit-price-range__slider::-moz-range-thumb {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--vit-accent, #cc5500);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vit-price-range__slider::-webkit-slider-thumb:hover,
.vit-price-range__slider:focus::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(204,85,0,0.18);
}

.vit-price-range__slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(204,85,0,0.18);
}

/* O slider mínimo fica por baixo do máximo quando os valores se cruzam */
.vit-price-range__slider--min { z-index: 3; }
.vit-price-range__slider--max { z-index: 3; }

/* Campos numéricos min/max */
.vit-price-range__inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vit-price-range__field {
    display: flex;
    align-items: center;
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    overflow: hidden;
    background: #fafafa;
    transition: border-color 0.15s;
}

.vit-price-range__field:focus-within {
    border-color: var(--vit-accent, #cc5500);
    box-shadow: 0 0 0 2px rgba(204,85,0,0.12);
}

.vit-price-range__symbol {
    padding: 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vit-accent, #cc5500);
    background: #f0f0f0;
    border-right: 1px solid #ddd;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.vit-price-range__number {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.45rem 0.5rem;
    font-family: inherit;
    font-size: 0.88rem;
    color: #333;
    width: 0; /* flex faz o resto */
    outline: none;
    -moz-appearance: textfield;
}

.vit-price-range__number::-webkit-inner-spin-button,
.vit-price-range__number::-webkit-outer-spin-button { -webkit-appearance: none; }

.vit-price-range__sep {
    font-size: 0.85rem;
    color: #aaa;
    flex-shrink: 0;
}

.vit-price-range__hint {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.4;
}

.vit-price-range__hint i {
    color: var(--vit-accent, #cc5500);
    margin-top: 0.05rem;
    flex-shrink: 0;
}

.vit-price-range__hint[hidden] { display: none !important; }

/* Botões de ordenação por preço */
.vit-price-sort {
    display: flex;
    gap: 0.5rem;
}

.vit-price-sort__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.42rem 0.6rem;
    border: 1.5px solid #ddd;
    border-radius: 0.4rem;
    background: #fafafa;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.vit-price-sort__btn i {
    font-size: 0.68rem;
}

.vit-price-sort__btn:hover {
    border-color: var(--vit-accent, #cc5500);
    color: var(--vit-accent, #cc5500);
    background: #fff5f0;
}

.vit-price-sort__btn.is-active {
    background: var(--vit-accent, #cc5500) !important;
    border-color: var(--vit-accent, #cc5500) !important;
    color: #fff !important;
}

/* ==========================================================================
   TOGGLE "VER MAIS ANOS"
   ========================================================================== */

.vit-anos-extra[hidden] { display: none !important; }

.vit-anos-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
    padding: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--vit-accent, #cc5500) !important;
    cursor: pointer;
    letter-spacing: 0.03em;
    line-height: 1.4;
    text-decoration: none;
    transition: opacity 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.vit-anos-toggle:hover,
.vit-anos-toggle:focus-visible { opacity: 0.75; }

.vit-anos-toggle i {
    font-size: 0.68rem;
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.vit-anos-toggle.is-open i { transform: rotate(180deg); }

/* ==========================================================================
   MODAL / DRAWER DE FILTROS
   ========================================================================== */

.vit-fmodal {
    position: fixed;
    inset: 0;
    z-index: 10100; /* Acima do header fixo (z-index: 9999) */
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.vit-fmodal[hidden] { display: none !important; }

.vit-fmodal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    animation: fmodal-fade-in 0.22s ease;
}

@keyframes fmodal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.vit-fmodal__panel {
    position: relative;
    z-index: 1;
    width: 380px;
    max-width: 92vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.14);
    animation: fmodal-slide-in 0.25s ease;
}

@keyframes fmodal-slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

/* Cabeçalho */
.vit-fmodal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--vit-border, #eee);
    flex-shrink: 0;
    background: #fff;
}

.vit-fmodal__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

.vit-fmodal__title i {
    color: var(--vit-accent, #cc5500);
    font-size: 1rem;
}

.vit-fmodal__close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #888;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 0.35rem;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
}

.vit-fmodal__close:hover {
    color: var(--vit-accent, #cc5500);
    background: #fff5f0;
}

/* Corpo */
.vit-fmodal__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem 1.4rem;
    scrollbar-width: thin;
    scrollbar-color: #ddd #fafafa;
}

.vit-fmodal__body::-webkit-scrollbar        { width: 5px; }
.vit-fmodal__body::-webkit-scrollbar-track  { background: #fafafa; }
.vit-fmodal__body::-webkit-scrollbar-thumb  { background: #ddd; border-radius: 3px; }

/* Seções dentro do modal */
.vit-fmodal__section {
    margin-bottom: 1.25rem;
}

.vit-fmodal__section + .vit-fmodal__section {
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f0;
}

.vit-fmodal__section:last-child {
    margin-bottom: 0;
}

.vit-fmodal__section-title {
    font-weight: 700;
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 0.7rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Lista de checkboxes (marcas - coluna única com scroll) */
.vit-fmodal__checks {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 210px;
    overflow-y: auto;
    padding-right: 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: #ddd #fafafa;
}

.vit-fmodal__checks::-webkit-scrollbar       { width: 4px; }
.vit-fmodal__checks::-webkit-scrollbar-track { background: #fafafa; }
.vit-fmodal__checks::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* Grid de checkboxes (anos - múltiplas colunas) */
.vit-fmodal__checks--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    max-height: none;
    overflow-y: visible;
}

/* Cada item checkbox */
.vit-fcheck {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.38rem 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    transition: border-color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.vit-fcheck:hover {
    border-color: var(--vit-accent, #cc5500);
    background: #fff5f0;
}

.vit-fcheck:has(.vit-fcheck__input:checked) {
    border-color: var(--vit-accent, #cc5500);
    background: #fff5f0;
}

.vit-fcheck__input {
    accent-color: var(--vit-accent, #cc5500);
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    cursor: pointer;
}

.vit-fcheck__label {
    font-size: 0.88rem;
    color: #333;
    cursor: pointer;
    line-height: 1.2;
}

.vit-fcheck:has(.vit-fcheck__input:checked) .vit-fcheck__label {
    color: var(--vit-accent, #cc5500);
    font-weight: 700;
}

/* Rodapé com botões */
.vit-fmodal__footer {
    display: flex;
    gap: 0.65rem;
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--vit-border, #eee);
    flex-shrink: 0;
    background: #fff;
}

.vit-fmodal__btn {
    flex: 1;
    padding: 0.65rem 0.8rem;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.2;
    text-align: center;
}

.vit-fmodal__btn--primary {
    background: var(--vit-accent, #cc5500);
    color: #fff;
    border-color: var(--vit-accent, #cc5500);
    flex: 2;
}

.vit-fmodal__btn--primary:hover {
    background: #b34a00;
    border-color: #b34a00;
}

.vit-fmodal__btn--ghost {
    background: transparent;
    color: #555;
    border-color: #ccc;
    flex: 1;
}

.vit-fmodal__btn--ghost:hover {
    border-color: var(--vit-accent, #cc5500);
    color: var(--vit-accent, #cc5500);
    background: #fff5f0;
}

/* @keyframes de entrada mobile — deve ficar fora do @media para ser válido */
@keyframes fmodal-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* --- Responsividade: Mobile (slide de baixo para cima) --- */
@media (max-width: 600px) {
    .vit-fmodal {
        align-items: flex-end;
        justify-content: stretch;
    }

    .vit-fmodal__panel {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 90dvh;
        border-radius: 1.1rem 1.1rem 0 0;
        animation: fmodal-slide-up 0.25s ease;
    }

    .vit-fmodal__checks--grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Botões de Categoria (filtro modal) ---- */
.vit-cat-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.vit-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border: 1.5px solid #ddd;
    border-radius: 2rem;
    background: #fafafa;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.vit-cat-btn i {
    font-size: 0.75rem;
    color: inherit;
}

.vit-cat-btn:hover {
    border-color: var(--vit-accent, #cc5500);
    color: var(--vit-accent, #cc5500);
    background: #fff5f0;
}

.vit-cat-btn.is-active {
    background: var(--vit-accent, #cc5500);
    border-color: var(--vit-accent, #cc5500);
    color: #fff;
}
/* ==========================================================================
   BOARD DETALHES — Estilos Específicos e Layout em Grid
   ========================================================================== */

/* --- SISTEMA DE GRID SEGURO --- */
.container, .row, [class^="col-"] {
    box-sizing: border-box;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class^="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    
    /* Controladores de Espaço e Ordem para alternância de fotos */
    .order-md-0 { order: 0; }
    .order-md-1 { order: 1; }
    .vit-pl-custom { padding-left: 3rem !important; }
    .vit-pr-custom { padding-right: 3rem !important; }
}

/* Utilitários Gerais */
.align-items-center { align-items: center; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }
.d-inline-flex { display: inline-flex; align-items: center; }

/* --- CABEÇALHO DO BOARD --- */
.vit-board-hero-img {
    width: 100%;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.vit-img-placeholder {
    width: 100%;
    height: 350px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Badges e Links do Topo */
.vit-year-badge {
    color: #666;
    font-weight: 800;
}

.vit-brand-link {
    color: #666;
    font-weight: 800;
    border-bottom: 2px solid #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vit-brand-link:hover {
    color: var(--vit-accent, #cc5500);
    border-color: var(--vit-accent, #cc5500);
}

.vit-star-align {
    display: inline-flex;
    align-items: center;
}

.vit-rating-num {
    color: #666;
    font-size: 1.1rem;
    margin-left: 8px;
    font-weight: 800;
}

/* --- BOTÃO COMPARTILHAR --- */
.board-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-share-board {
    background: #fdfdfd;
    border: 1px solid #ddd;
    color: #444;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto; /* Joga para a direita */
}

.btn-share-board:hover {
    background: var(--vit-accent, #cc5500);
    color: #fff;
    border-color: var(--vit-accent, #cc5500);
}

/* --- LISTA DE PERFORMANCE (Ícones Customizados) --- */
.vit-perf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vit-perf-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    color: var(--vit-text, #444);
    background: #fdfdfd;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.vit-perf-list li img {
    width: 24px;
    height: auto;
    margin-right: 15px;
}

.vit-perf-list li strong {
    color: var(--vit-title, #111);
    margin-right: 5px;
}

.vit-perf-alert {
    background: #fff3cd !important;
    border-color: #ffeeba !important;
    font-size: 0.95rem !important;
}

/* --- FICHA TÉCNICA (Specs Grid Substituta) --- */
.spec-item {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.spec-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.badge-rating-text {
    color: #ddd;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    font-weight: bold;
}

/* --- BOTÃO DE VOLTAR --- */
.vit-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--vit-accent, #cc5500);
    color: var(--vit-title, #111);
    font-weight: bold;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.vit-btn-outline i { margin-right: 0.5rem; }

.vit-btn-outline:hover {
    background-color: var(--vit-accent, #cc5500);
    color: #fff;
    text-decoration: none;
}

/* --- REDUÇÃO DE ESPAÇAMENTO NOS TEXTOS (CORRIGIDO) --- */
.modern-text {
    line-height: 1.6 !important; 
}

.modern-text p {
    margin-bottom: 0.5rem !important; 
}

/* --- VÍDEO DEMONSTRATIVO --- */
.videoWrapper-modern {
    position: relative;
    width: 100%;
    max-width: 900px; /* Impede que o vídeo fique gigantesco em telas muito largas */
    margin: 0 auto; /* Centraliza o vídeo na tela */
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background-color: #000; /* Fundo escuro enquanto o vídeo carrega */
    aspect-ratio: 16 / 9; /* Garante a proporção perfeita do YouTube em qualquer tela */
}

.videoWrapper-modern iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Sobrescreve animações pesadas do esk8: sem painéis amarelos / full-screen */

.site__loader,
.overlay__loader {
    display: none !important;
}

/* Menu mobile / overlay / hamburger: ver novo/css/header.css */
/* ==========================================================================
   ESTILOS DO RODAPÉ (footer.css) — ATUALIZADO (Fonte Lema e Sticky Footer)
   ========================================================================== */

/* 1. Importação da fonte original (Garante o funcionamento em todas as páginas) */
@font-face {
    font-family: 'Lema';
    src: url('/fonts/lema.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* 2. Resets Críticos: Elimina frestas e contornos brancos do navegador */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Mecanismo Sticky Footer: Força o footer a ficar colado embaixo */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Faz o bloco de conteúdo principal crescer e empurrar o footer para o final da tela */
.site-main {
    flex: 1 0 auto;
}

/* Garante que o footer não encolha e permaneça vedado contra frestas */
.site__footer.footer {
    flex-shrink: 0;
    padding: 1.2rem 0 !important; 
    background: #000000 !important;
    border-top: 1px solid #1a1a1a; 
    margin: 0 !important;
    box-shadow: none !important;
}

/* Container Flexbox para organizar as 3 colunas */
.vit-footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================== COLUNA ESQUERDA ================== */
.site__footer.footer .footer__left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site__footer.footer .footer__logo {
    display: flex;
    align-items: center;
    width: auto;
    max-width: 140px;
    margin: 0;
    line-height: 0;
}

.site__footer.footer .footer__logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================== COLUNA CENTRAL ================== */
.site__footer.footer .footer__center {
    flex: 1;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 6px; 
}

/* ATUALIZADO: Agora aplicando a fonte Lema corretamente */
.site__footer.footer .footer__center .lema {
    font-family: 'Lema', cursive, sans-serif;
    font-size: 1.4rem; /* Aumentado ligeiramente pois fontes cursivas costumam ser menores */
    color: #ffe20a; 
    text-transform: none; /* Removido o lowercase para manter o desenho original da fonte */
    letter-spacing: 1px;
    font-weight: normal;
    margin: 0;
    line-height: 1;
}

.site__footer.footer .footer__address strong {
    font-size: 0.75rem;
    color: hsla(0,0%,100%,.5);
    font-weight: normal;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
}

/* ================== COLUNA DIREITA ================== */
.site__footer.footer .footer__right {
    flex: 1;
    display: flex;
    align-items: center; 
    justify-content: flex-end;
}

.site__footer.footer .footer__socials {
    display: flex;
    align-items: center;
    gap: 20px; 
}

.site__footer.footer .footer__socials a {
    color: #fff;
    font-size: 1.6rem; 
    transition: all 0.3s ease;
    opacity: 0.7;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site__footer.footer .footer__socials a:hover {
    color: #CC5500; 
    opacity: 1;
    transform: translateY(-3px);
}

/* ================== RESPONSIVIDADE (MOBILE) ================== */
@media (max-width: 768px) {
    .vit-footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .site__footer.footer .footer__left,
    .site__footer.footer .footer__center,
    .site__footer.footer .footer__right {
        flex: unset;
        width: 100%;
        justify-content: center;
    }
}