/* =============================================
   Horse Automóveis – Plugin Styles v2.0
   Fundo: BRANCO | Título: Bebas Neue | Corpo: Delight / sans-serif
   Amarelo: #F5C800 | Preto: #0D0D0D | Cinza claro: #F4F4F4
   ============================================= */

/* ── FONT: DELIGHT (adicione os arquivos em /fonts/) ── */
@font-face {
    font-family: 'Delight';
    src: url('fonts/Delight-Regular.woff2') format('woff2'),
         url('fonts/Delight-Regular.woff')  format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Delight';
    src: url('fonts/Delight-Bold.woff2') format('woff2'),
         url('fonts/Delight-Bold.woff')  format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --h-preto:    #0D0D0D;
    --h-amarelo:  #F5C800;
    --h-branco:   #FFFFFF;
    --h-cinza:    #F4F4F4;
    --h-cinza-2:  #E8E8E8;
    --h-texto:    #444444;
    --h-fonte:    'Delight', 'Inter', sans-serif;
    --h-titulo:   'Bebas Neue', sans-serif;
}

/* ── TIPOGRAFIA GLOBAL DOS COMPONENTES ── */
.horse-card,
.horse-ficha-wrap,
.horse-estoque-wrap {
    font-family: var(--h-fonte);
    color: var(--h-preto);
}

/* ═══════════════════════════════════════
   CARDS (destaques + estoque)
   ═══════════════════════════════════════ */
.horse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 0;
}
@media (max-width: 900px) { .horse-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .horse-grid { grid-template-columns: 1fr; } }

.horse-card {
    background: var(--h-branco);
    border: 1px solid var(--h-cinza-2);
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.horse-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.horse-card-link { text-decoration: none; color: inherit; display: block; }

.horse-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--h-cinza);
}
.horse-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.horse-card:hover .horse-card-img img { transform: scale(1.04); }

.horse-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--h-amarelo); color: var(--h-preto);
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; text-transform: uppercase; letter-spacing: .05em;
}

.horse-card-body { padding: 16px; }

.horse-card-ano {
    font-size: 12px; color: var(--h-texto);
    text-transform: uppercase; letter-spacing: .06em;
    display: block; margin-bottom: 4px;
}

.horse-card-nome {
    font-family: var(--h-titulo);
    font-size: 22px; font-weight: 400;
    color: var(--h-preto);
    margin: 0 0 10px; line-height: 1.15;
    letter-spacing: .02em;
}

.horse-card-specs {
    display: flex; gap: 14px;
    font-size: 13px; color: var(--h-texto);
    margin-bottom: 14px;
}
.horse-card-specs span {
    display: flex; align-items: center; gap: 5px;
}

.horse-spec-icon { width: 14px; height: 14px; flex-shrink: 0; }

.horse-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--h-cinza-2);
}
.horse-card-preco {
    font-family: var(--h-titulo);
    font-size: 22px; color: var(--h-preto); letter-spacing: .02em;
}
.horse-card-cta {
    background: var(--h-preto); color: var(--h-branco);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 7px 12px;
}

/* ═══════════════════════════════════════
   FILTROS DO ESTOQUE
   ═══════════════════════════════════════ */
.horse-estoque-wrap { max-width: 1200px; margin: 0 auto; }

.horse-filtros {
    background: var(--h-cinza); padding: 24px; margin-bottom: 24px;
}

.horse-busca-wrap { position: relative; margin-bottom: 14px; }
.horse-busca-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: #999; pointer-events: none; z-index: 1;
}
.horse-input-busca {
    width: 100%; padding: 12px 16px 12px 48px !important;
    border: 1px solid var(--h-cinza-2); background: var(--h-branco);
    font-family: var(--h-fonte); font-size: 14px; color: var(--h-preto);
    outline: none; box-sizing: border-box;
}
.horse-input-busca:focus { border-color: var(--h-amarelo); }

.horse-filtros-row {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px;
}
.horse-select {
    flex: 1; min-width: 140px;
    padding: 10px 14px; border: 1px solid var(--h-cinza-2); background: var(--h-branco);
    font-family: var(--h-fonte); font-size: 14px; color: var(--h-preto); cursor: pointer;
}
.horse-select:focus { outline: none; border-color: var(--h-amarelo); }

.horse-btn-filtrar {
    background: var(--h-amarelo); color: var(--h-preto);
    border: none; padding: 10px 20px; cursor: pointer;
    font-family: var(--h-fonte); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
}
.horse-btn-limpar {
    background: transparent; color: var(--h-texto);
    border: 1px solid var(--h-cinza-2); padding: 10px 16px; cursor: pointer;
    font-family: var(--h-fonte); font-size: 13px;
}

.horse-marcas-rapidas { display: flex; gap: 8px; flex-wrap: wrap; }
.horse-marca-btn {
    padding: 6px 16px; border: 1px solid var(--h-cinza-2); background: var(--h-branco);
    color: var(--h-texto); font-size: 12px; font-weight: 700; cursor: pointer;
    text-transform: uppercase; letter-spacing: .04em; transition: all .15s;
    font-family: var(--h-fonte);
}
.horse-marca-btn:hover, .horse-marca-btn.active {
    background: var(--h-preto); border-color: var(--h-preto); color: var(--h-branco);
}

.horse-contador {
    font-size: 14px; color: var(--h-texto); margin-bottom: 16px;
}

/* ── PAGINAÇÃO ── */
.horse-paginacao {
    display: flex; justify-content: center; align-items: center;
    gap: 6px; margin-top: 32px; padding-bottom: 16px;
}
.horse-pag-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--h-cinza-2); background: var(--h-branco);
    color: var(--h-preto); font-family: var(--h-fonte); font-size: 14px;
    cursor: pointer; transition: all .15s;
}
.horse-pag-btn:hover { background: var(--h-cinza); }
.horse-pag-btn.active { background: var(--h-preto); color: var(--h-branco); border-color: var(--h-preto); }
.horse-pag-btn.arrow { font-size: 18px; }

/* ── SEM RESULTADOS ── */
.horse-sem-resultados {
    text-align: center; padding: 60px 20px; color: var(--h-preto);
}
.horse-sem-resultados h3 {
    font-family: var(--h-titulo); font-size: 28px; font-weight: 400;
    text-transform: uppercase; margin-bottom: 10px;
}

/* ═══════════════════════════════════════
   FICHA DO VEÍCULO
   ═══════════════════════════════════════ */
.horse-ficha-wrap {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    background: var(--h-branco); color: var(--h-preto);
}

/* TOPO: GALERIA + INFO */
.horse-ficha-topo {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    margin-bottom: 60px;
}
@media (max-width: 800px) { .horse-ficha-topo { grid-template-columns: 1fr; gap: 28px; } }

/* GALERIA */
.horse-img-principal-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--h-cinza); }
.horse-img-principal-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.horse-thumbs-nav {
    display: flex; align-items: center; gap: 8px; margin-top: 10px;
}
.horse-thumb-arrow {
    width: 40px; height: 40px; flex-shrink: 0;
    background: #0D0D0D !important; color: #fff !important; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s; outline: none;
    font-size: 22px; line-height: 1; font-family: Arial, sans-serif;
    text-decoration: none !important;
}
.horse-thumb-arrow:hover { background: #F5C800 !important; color: #0D0D0D !important; }
.horse-thumb-arrow svg {
    width: 20px; height: 20px; display: block;
    stroke: #fff !important; fill: none;
}
.horse-thumb-arrow:hover svg { stroke: #0D0D0D !important; }

.horse-thumbs-viewport {
    flex: 1; overflow: hidden;
}
.horse-thumbs-track {
    display: flex; gap: 8px; transition: transform .3s ease;
}
.horse-thumb {
    width: calc((100% - 16px) / 3); flex-shrink: 0;
    aspect-ratio: 4/3; object-fit: cover; cursor: pointer;
    border: 2px solid transparent; transition: border-color .15s; display: block;
}
.horse-thumb.ativa { border-color: var(--h-amarelo); }
.horse-thumb:hover  { border-color: var(--h-preto); }

/* INFORMAÇÕES */
.horse-ficha-ano-marca {
    display: block; font-size: 13px; color: var(--h-texto);
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.horse-ficha-nome {
    font-family: var(--h-titulo); font-size: 40px; font-weight: 400;
    color: var(--h-preto); text-transform: uppercase;
    line-height: 1.05; margin: 0 0 24px; letter-spacing: .02em;
}

/* PREÇO */
.horse-preco-box {
    background: var(--h-preto); padding: 20px 24px;
    margin-bottom: 20px; border-radius: 0;
}
.horse-preco-label {
    display: block; font-size: 11px; text-transform: uppercase;
    letter-spacing: .12em; color: rgba(255,255,255,.6); margin-bottom: 4px;
}
.horse-preco-valor {
    font-family: var(--h-titulo); font-size: 44px; color: var(--h-amarelo);
    letter-spacing: .02em; line-height: 1;
}

/* SPECS GRID */
.horse-specs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px;
}
@media (max-width: 600px) {
    .horse-specs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
    .horse-specs-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .horse-spec-label { font-size: 9px; }
    .horse-spec-valor { font-size: 12px; }
}
.horse-spec-item {
    background: var(--h-cinza); padding: 12px 10px;
    display: flex; align-items: center; gap: 10px;
}
.horse-spec-icon-wrap {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--h-amarelo); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.horse-spec-icon-wrap svg { width: 18px; height: 18px; color: var(--h-preto); }
.horse-spec-label {
    display: block; font-size: 10px; text-transform: uppercase;
    letter-spacing: .06em; color: var(--h-texto); margin-bottom: 2px;
}
.horse-spec-valor {
    display: block; font-size: 13px; font-weight: 700; color: var(--h-preto);
}

/* CTAs */
.horse-ctas { display: flex; gap: 10px; }
.horse-btn-wa {
    flex: 1; background: #25D366; color: #fff !important;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 16px; font-family: var(--h-fonte); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; text-decoration: none !important;
    border-radius: 0; border: none; cursor: pointer; transition: background .15s;
    outline: none; -webkit-tap-highlight-color: transparent;
}
.horse-btn-wa:hover,
.horse-btn-wa:focus,
.horse-btn-wa:active,
.horse-btn-wa:visited { background: #1da851 !important; color: #fff !important; text-decoration: none !important; }
.horse-btn-wa * { color: #fff !important; }
.horse-btn-wa svg { width: 18px; height: 18px; flex-shrink: 0; fill: #fff; stroke: none; }

.horse-btn-phone {
    flex: 1; background: #0D0D0D; color: #fff !important;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 16px; font-family: var(--h-fonte); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; text-decoration: none !important;
    border-radius: 0; transition: background .15s;
    outline: none; -webkit-tap-highlight-color: transparent;
}
.horse-btn-phone:hover,
.horse-btn-phone:focus,
.horse-btn-phone:active,
.horse-btn-phone:visited { background: #333 !important; color: #fff !important; text-decoration: none !important; }
.horse-btn-phone * { color: #fff !important; }
.horse-btn-phone svg { width: 18px; height: 18px; flex-shrink: 0; stroke: #fff !important; fill: none; }

/* ═══════════════════════════════════════
   SEÇÕES DA FICHA (Ficha Técnica, Opcionais, Similares)
   ═══════════════════════════════════════ */
.horse-secao {
    padding: 40px 0;
    border-top: 1px solid var(--h-cinza-2);
}
.horse-secao-label {
    display: block; font-size: 12px; text-transform: uppercase;
    letter-spacing: .1em; color: var(--h-amarelo); font-weight: 700; margin-bottom: 6px;
}
.horse-secao-titulo {
    font-family: var(--h-titulo); font-size: 36px; font-weight: 400;
    color: var(--h-preto); text-transform: uppercase;
    margin: 0 0 28px; letter-spacing: .02em;
}

/* FICHA TÉCNICA */
.horse-ficha-tecnica-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 600px) { .horse-ficha-tecnica-grid { grid-template-columns: repeat(2, 1fr); } }

.horse-ft-item {
    padding: 14px 0; border-bottom: 2px solid #C8C8C8;
    padding-right: 20px;
}
.horse-ft-item span {
    display: block; font-size: 11px; text-transform: uppercase;
    letter-spacing: .06em; color: var(--h-texto); margin-bottom: 3px;
}
.horse-ft-item strong {
    font-size: 15px; font-weight: 700; color: var(--h-preto);
}

/* DESCRIÇÃO */
.horse-descricao {
    font-size: 15px; line-height: 1.7; color: var(--h-texto); max-width: 760px;
}

/* OPCIONAIS */
.horse-opcionais-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
@media (max-width: 768px) { .horse-opcionais-grid { grid-template-columns: repeat(2, 1fr); } }

.horse-opcional {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; font-size: 14px; color: var(--h-preto);
}
.horse-opcional-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--h-amarelo); flex-shrink: 0;
}

/* SIMILARES */
.horse-similares-grid { grid-template-columns: repeat(3, 1fr); }

/* ── RESPONSIVO GERAL MOBILE ── */
@media (max-width: 600px) {

    /* Ficha topo já vai pra 1 coluna em <800px, mas ajustes finos */
    .horse-ficha-nome { font-size: 28px; }
    .horse-preco-valor { font-size: 34px; }

    /* Spec icon menor no mobile */
    .horse-spec-icon-wrap { width: 30px; height: 30px; }
    .horse-spec-icon-wrap svg { width: 15px; height: 15px; }

    /* CTAs empilham no mobile muito pequeno */
    .horse-ctas { flex-direction: column; }

    /* Ficha técnica 2 colunas */
    .horse-ficha-tecnica-grid { grid-template-columns: repeat(2, 1fr); }

    /* Opcionais 2 colunas */
    .horse-opcionais-grid { grid-template-columns: repeat(2, 1fr); }

    /* Similares 1 coluna */
    .horse-similares-grid { grid-template-columns: 1fr; }

    /* Cards do estoque/destaques */
    .horse-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Thumbs menores */
    .horse-thumb-arrow { width: 32px; height: 32px; }

    /* Filtros select empilham */
    .horse-filtros-row { flex-direction: column; }
    .horse-select { width: 100%; }
    .horse-btn-filtrar,
    .horse-btn-limpar { width: 100%; }
}

/* UTILITÁRIOS */
.horse-msg { color: var(--h-texto); text-align: center; padding: 40px; }

/* ── BOTÃO WA ESTOQUE SEM RESULTADOS ── */
.horse-sem-resultados .horse-btn-wa {
    display: inline-flex; margin-top: 20px;
    padding: 14px 28px;
}
/* ── STATS ── */
.horse-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.horse-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.horse-stat-numero {
    font-family: var(--h-titulo);
    font-size: 52px;
    line-height: 1;
    color: #F5C800;
    letter-spacing: .02em;
}
.horse-stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--h-preto);
    margin-top: 4px;
}
.horse-stat-divisor {
    width: 1px;
    height: 48px;
    background: #CCCCCC;
}
@media (max-width: 480px) {
    .horse-stats { gap: 20px; }
    .horse-stat-numero { font-size: 40px; }
    .horse-stat-divisor { height: 36px; }
}
