﻿/* =========================
   RESET / BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #f7f7f7 0%, #ededed 100%);
    color: #2f2f2f;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
}

.container-fluid {
    padding: 0;
}

/* =========================
   HEADER / NAVBAR
========================= */
header {
    background: linear-gradient(to right, #4b0000, #7a0c0c);
    height: 100px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid #e60000;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.logo-img {
    height: 90px;
}

.navbar-text {
    text-align: right;
    font-size: 15px;
    color: #fff;
}

    .navbar-text strong {
        font-size: 18px;
        font-weight: 700;
    }

/* =========================
   GALERIA
========================= */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 50px 40px;
}

.galeria {
    margin-top: 90px;
    width: 100%;
    max-width: 1150px;
}

.img-galeria {
    width: 100%;
    height: 520px;
    object-fit: contain;
    border-radius: 16px;
    background-color: transparent;
}

/* remove sombra cinza do bootstrap */
.carousel-item {
    background: transparent;
}
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    filter: brightness(0) invert(1);
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #e60000;
    transform: translateY(-50%) scale(1.1);
}
.carousel-control-prev {
    left: 14px;
}

.carousel-control-next {
    right: 14px;
}


/* =========================
   MINIATURAS
========================= */
.carousel-thumbnails {
    width: 100%;
    max-width: 1150px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 14px; /* espaço para a linha */
    position: relative; /* referência do ::after */
}

    .carousel-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .carousel-thumbnails::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 4px; /* controla o quão alta a linha fica */
        width: 100%;
        height: 1px;
        background: linear-gradient( to right, transparent, #e60000, transparent );
        pointer-events: none; /* não interfere no scroll */
    }

.thumbnail {
    flex: 0 0 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: .6;
    border: 3px solid transparent;
    transition: all .25s ease;
}

    .thumbnail:hover {
        opacity: 1;
    }

    .thumbnail.active-thumb {
        opacity: 1;
        border-color: #e60000;
        box-shadow: 0 6px 18px rgba(230,0,0,.35);
    }

/* =========================
   GRID PRINCIPAL
========================= */
.detalhes-container {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    padding: 0 50px 60px;
    margin-top: 60px;
}

/* =========================
   CARDS
========================= */
.card-info {
    background: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
    margin-bottom: 22px;
}

    .card-info h3 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 18px;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
    }

/* =========================
   ESPECIFICAÇÕES
========================= */
.specs-grid.premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.spec-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #f3f3f3);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

    .spec-box i {
        font-size: 26px;
        color: #e60000;
    }

    .spec-box small {
        display: block;
        font-size: 12px;
        color: #777;
        text-transform: uppercase;
    }

    .spec-box strong {
        font-size: 15px;
        font-weight: 600;
    }

.galeria {
    position: relative;
}
/* HIGHLIGHTS SOBRE O CARROSSEL */
/* HIGHLIGHTS SOBRE O CARROSSEL */
.carro-highlight {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    margin-top: -810px; /* 🔼 SOBE AQUI */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 20;
    pointer-events: none;
    width: max-content;
    max-width: 100%;
}


/* PILLS */
.highlight-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: auto;
}


    .highlight-pill i {
        font-size: 14px;
    }


/* =========================
   OPCIONAIS
========================= */
.opcionais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 6px 10px; /* ↓ menos espaço vertical e horizontal */
}


.opcional-item {
    display: flex;
    align-items: center;
    gap: 6px; /* ícone mais próximo do texto */
    font-size: 14px;
    line-height: 1.2; /* texto mais colado */
    color: #333;
}

    .opcional-item i {
        font-size: 14px;
        color: #2ecc71;
        margin-top: 1px; /* alinha melhor visualmente */
    }


/* =========================
   SIDEBAR
========================= */
.sidebar {
    position: sticky;
    top: 25px;
    height: fit-content;
}

.preco-box {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
    margin-bottom: 20px;
}

    .preco-box h2 {
        font-size: 34px;
        margin: 10px 0 18px;
    }

.btn-whats {
    display: block;
    background: #25d366;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

.loja-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.loja-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

    .loja-header i {
        font-size: 30px;
        color: #e60000;
    }

    .loja-header strong {
        font-size: 18px;
        font-weight: 800;
        display: block;
    }

    .loja-header span {
        font-size: 13px;
        color: #777;
    }

.loja-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #444;
}

.loja-info i {
    margin-right: 6px;
    color: #e60000;
}

.telefone {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.btn-maps {
    margin-top: 14px;
    background: #e60000;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    transition: 0.2s;
}

    .btn-maps:hover {
        background: #c50000;
        color: #fff;
    }

/* =========================
   FOOTER / WHATS
========================= */

.footer {
    margin-top: 60px;
    background: linear-gradient(120deg, #b32641, #691522 40%, #2b0710);
    color: #fff;
    padding: 50px 20px 25px;
    text-align: center;
}

/* Container principal */
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center; /* CENTRALIZA as colunas */
}

/* Coluna individual */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRALIZA tudo */
    text-align: center;
    gap: 6px;
}

/* Títulos */
.footer h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Textos e links */
.footer p,
.footer a {
    font-size: 14px;
    color: #e5e7eb;
    text-decoration: none;
}

    /* Hover */
    .footer a:hover {
        color: #fca5a5;
    }

/* Redes sociais */
.footer-redes {
    display: flex;
    flex-direction: column; /* ícones em coluna */
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

    .footer-redes a {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }

/* Rodapé inferior */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #9ca3af;
}



.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 992px) {
    .detalhes-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }


    .img-galeria {
        height: 380px;
    }
}
/* =========================
   NAVBAR MOBILE AJUSTADA
========================= */
@media (max-width: 576px) {


    .carro-highlight {
        position: static;
        transform: none;
        margin: 50px auto 0;
        padding: 0 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .highlight-pill {
        font-size: 11px;
        padding: 5px 10px;
    }

        .highlight-pill i {
            font-size: 13px;
        }

    /* FAIXA VERMELHA */
    header.navbar {
        background-color: #b80000;
        padding: 14px 16px;
        min-height: auto;
    }

    /* CONTEÚDO DENTRO DA NAVBAR */
    header.navbar .container-fluid {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        gap: 2px;
    }

    /* LOGO */
    .navbar-brand {
        margin: 0;
        padding: 0;
        margin-right: auto;
        
    }

    .navbar-brand img {
        max-height: 48px;
        width: auto;
        display: block;
    }

    /* TEXTO */
    .navbar-text {
        margin: 0;
        transform: translateY(-50px);
        padding: 0;
        font-size: 13px;
        line-height: 1.4;
        color: #eaeaea;
        width: 100%;
        word-break: break-word; /* NÃO VAZA */
    }

    .navbar-text strong {
        display: block;
        font-size: 14px;
        color: #ffffff;
    }
    .specs-grid.premium {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 🔥 2 lado a lado */
        gap: 12px;
    }
    #carouselDetalhes {
        margin-top: -100px; /* sobe */
    }
    /* CAIXAS MAIS COMPACTAS */
    .spec-box {
        padding: 12px;
        gap: 10px;
    }

        .spec-box i {
            font-size: 22px;
        }

        .spec-box small {
            font-size: 11px;
        }

        .spec-box strong {
            font-size: 13px;
            line-height: 1.2;
        }
}

/* =========================
   RESPONSIVO – CELULAR PEQUENO
========================= */
/* =========================
   RESPONSIVO – CELULAR PEQUENO
========================= */
@media (max-width: 390px) {


    .carro-highlight {
        gap: 6px;
        margin-top: 8px;
    }

    .highlight-pill {
        font-size: 10.5px;
        padding: 5px 9px;
    }

    /* GALERIA */
    .img-galeria {
        height: 230px;
        margin: 0 auto;
        display: block;
    }

    /* WRAPPER GERAL */
    .content-wrapper {
        padding-left: 14px;
        padding-right: 14px;
        align-items: center;
    }

    /* CONTAINER PRINCIPAL */
    .detalhes-container {
        padding-left: 14px;
        padding-right: 14px;
        margin-left: auto;
        margin-right: auto;
    }

    /* CARDS */
    .card-info {
        padding: 18px;
        margin-left: auto;
        margin-right: auto;
    }

    /* ESPECIFICAÇÕES */
    .specs-grid.premium {
        grid-template-columns: 1fr 1fr;
        justify-items: center; /* 🔥 centraliza conteúdo */
    }

    .spec-box {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

        .spec-box strong {
            font-size: 12px;
            text-align: center;
        }

        .spec-box small {
            text-align: center;
        }

    /* OPCIONAIS */
    .opcionais-grid {
        justify-items: center;
    }

    .opcional-item {
        justify-content: center;
        text-align: center;
    }

    /* SIDEBAR / PREÇO */
    .preco-box,
    .loja-box {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* FOOTER */
    .footer-container {
        justify-items: center;
        text-align: center;
    }

    /* WHATS FLOAT */
    .whatsapp-float {
        right: 14px;
        bottom: 14px;
    }
}
/* =========================
   RESPONSIVO – iPAD / TABLET
========================= */
@media (max-width: 768px) {


    .carro-highlight {
        position: static;
        transform: none;
        margin: 14px auto 0;
        padding: 0 24px;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .highlight-pill {
        font-size: 12px;
        padding: 6px 12px;
    }
    /* GALERIA */
    .img-galeria {
        height: 360px;
        margin: 0 auto;
        display: block;
    }

    /* CONTEÚDO */
    .content-wrapper {
        padding-left: 24px;
        padding-right: 24px;
        align-items: center;
    }

    /* GRID PRINCIPAL */
    .detalhes-container {
        padding-left: 24px;
        padding-right: 24px;
        margin-left: auto;
        margin-right: auto;
    }

    /* ESPECIFICAÇÕES */
    .specs-grid.premium {
        justify-items: center; /* evita drift lateral */
    }

    .spec-box {
        width: 100%;
        max-width: 100%;
    }

    /* SIDEBAR */
    .sidebar {
        position: static;
        width: 100%;
    }
}
/* =========================
   RESPONSIVO – 1024px
========================= */
@media (max-width: 1024px) {



    /* GALERIA */
    .img-galeria {
        height: 420px;
        margin: 0 auto;
        display: block;
    }

    /* CONTAINER GERAL */
    .content-wrapper {
        padding-left: 28px;
        padding-right: 28px;
    }

    /* GRID PRINCIPAL */
    .detalhes-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    /* SIDEBAR */
    .sidebar {
        width: 100%;
        max-width: 420px; /* não “puxa” */
    }
}
