/* ── Tema ─────────────────────────────────────────────────────────────── */
:root {
    /* Fundos */
    --bg:          #0f1117;
    --bg-deep:     #0a0c12;
    --bg-deep-rgb: 10,12,18;
    --bg-elevated: #12141e;
    --surface:     #1a1d27;
    --border:      #2a2a3a;

    /* Texto */
    --text:           #e0e0e0;
    --text-strong:    #fff;
    --text-secondary: #9ca3af;
    --text-muted:     #aaa;
    --text-muted-rgb: 170,170,170;

    /* Marca */
    --primary:       #e63946;
    --primary-rgb:   230,57,70;
    --primary-dark:  #c1121f;
    --primary-light: #ff7a85;

    /* Sobreposições subtis (linhas, scrollbar, fundos translúcidos) */
    --overlay-soft:   rgba(255,255,255,.07);
    --overlay-medium: rgba(255,255,255,.1);
    --overlay-strong: rgba(255,255,255,.2);

    color-scheme: dark;
}

/* ── Tema claro ───────────────────────────────────────────────────────── */
html[data-theme="light"] {
    /* Fundos */
    --bg:          #f4f4f6;
    --bg-deep:     #e7e8ec;
    --bg-deep-rgb: 231,232,236;
    --bg-elevated: #ececf0;
    --surface:     #ffffff;
    --border:      #dcdde2;

    /* Texto */
    --text:           #2b2e38;
    --text-strong:    #0f1117;
    --text-secondary: #5b6472;
    --text-muted:     #6c757d;
    --text-muted-rgb: 108,117,125;

    /* Marca — vermelho mais escuro para manter contraste sobre fundo claro */
    --primary:       #c1121f;
    --primary-rgb:   193,18,31;
    --primary-dark:  #930c16;
    --primary-light: #c1121f;

    --overlay-soft:   rgba(0,0,0,.06);
    --overlay-medium: rgba(0,0,0,.1);
    --overlay-strong: rgba(0,0,0,.2);

    color-scheme: light;
}

/* ── Faixas de marca (hero + footer) ─────────────────────────────────────
   Os logótipos (logo-dark.jpg) têm fundo escuro embutido na própria imagem
   (sem transparência). Para não aparecerem como caixas escuras sobre um
   fundo claro, estas secções mantêm sempre a paleta escura, independente
   do tema activo. ─────────────────────────────────────────────────────── */
.hero, footer {
    --bg:          #0f1117;
    --bg-deep:     #0a0c12;
    --bg-deep-rgb: 10,12,18;
    --bg-elevated: #12141e;
    --surface:     #1a1d27;
    --border:      #2a2a3a;

    --text:           #e0e0e0;
    --text-strong:    #fff;
    --text-secondary: #9ca3af;
    --text-muted:     #aaa;
    --text-muted-rgb: 170,170,170;

    --primary:       #e63946;
    --primary-rgb:   230,57,70;
    --primary-dark:  #c1121f;
    --primary-light: #ff7a85;

    --overlay-soft:   rgba(255,255,255,.07);
    --overlay-medium: rgba(255,255,255,.1);
    --overlay-strong: rgba(255,255,255,.2);

    color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Oswald', sans-serif;
}

/* ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
    background-color: rgba(var(--bg-deep-rgb),.97) !important;
    border-bottom: 1px solid var(--border);
    transition: background-color .25s ease, border-color .25s ease;
}
/* Efeito de blur/sombra ao fazer scroll, aplicado via ::before — aplicar
   backdrop-filter diretamente no #main-navbar criaria um containing block
   para o offcanvas (position:fixed), encolhendo-o à altura da navbar. */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
    transition: opacity .3s;
}
.navbar.navbar-scrolled::before { opacity: 1; }
.navbar-brand { display: flex; align-items: center; padding: 0; }
.navbar-brand .brand-logo { height: 38px; width: auto; display: block; }
.navbar-brand .brand-logo--light { display: none; }
html[data-theme="light"] .navbar-brand .brand-logo--dark { display: none; }
html[data-theme="light"] .navbar-brand .brand-logo--light { display: block; }
.nav-link {
    color: var(--text-muted) !important;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* ── Navbar toggler (hamburger → X) ──────────────────────────────────── */
.navbar-toggler {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: var(--text);
    transition: transform .25s ease, opacity .2s ease;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menu mobile (offcanvas) ──────────────────────────────────────────── */
.offcanvas {
    background-color: var(--bg-deep);
    border-left: 1px solid var(--border);
    --bs-offcanvas-width: min(320px, 85vw);
}
.offcanvas-header { border-bottom: 1px solid var(--border); }
.offcanvas .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
html[data-theme="light"] .offcanvas .btn-close { filter: none; }
@media (max-width: 991.98px) {
    .offcanvas-body .nav-link { font-size: .8rem; padding: .6rem 0; }
}
.nav-cta { width: 100%; text-align: center; }
@media (min-width: 992px) {
    .nav-cta { width: auto; }
}

/* ── Theme toggle ─────────────────────────────────────────────────────── */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    padding: .35rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
}
.theme-toggle:hover { color: var(--primary); }
.theme-toggle .bi-sun-fill   { display: none; }
.theme-toggle .bi-moon-stars-fill { display: inline; }
html[data-theme="light"] .theme-toggle .bi-sun-fill   { display: inline; }
html[data-theme="light"] .theme-toggle .bi-moon-stars-fill { display: none; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-primary {
    /* --primary-dark dá contraste AA (>=4.5:1) com texto branco; --primary não chega (~4.1:1) */
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .15em;
}
.btn-primary:hover { background-color: var(--primary); border-color: var(--primary); }
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .15em;
}
.btn-outline-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); color: var(--text-strong); }
.btn-outline-secondary { color: var(--text-muted); border-color: var(--border); }
.btn-outline-secondary:hover { background: var(--border); color: var(--text); border-color: var(--border); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-control,
.form-select {
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .15s ease;
}
.form-control:focus,
.form-select:focus {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb),.2);
}
.form-control::placeholder { color: rgba(var(--text-muted-rgb),.4); }
.form-select option { background-color: var(--surface); }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
    background-color: var(--surface);
    border-color: var(--border);
    transition: border-color .3s, background-color .25s ease, color .25s ease;
}
.card-img-top { height: 200px; object-fit: cover; }
.card-title { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .05em; }

/* Car card hover */
.car-card:hover { border-color: rgba(var(--primary-rgb),.4) !important; }
.car-card:hover img { transform: scale(1.04); }
.car-card:hover .car-card-cta { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }

/* ── Tables ───────────────────────────────────────────────────────────── */
.table { color: var(--text); }
.table-dark { --bs-table-bg: var(--surface); --bs-table-border-color: var(--border); }

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge-fuel  { background-color: rgba(var(--primary-rgb),.15); color: var(--primary-light); }
.badge-year  { background-color: var(--border); color: var(--text-muted); }

/* ── Misc overrides ───────────────────────────────────────────────────── */
.text-primary { color: var(--primary) !important; }
/* O cinzento padrão do Bootstrap (#6c757d) não tem contraste suficiente sobre o fundo escuro */
.text-secondary { color: var(--text-secondary) !important; }
/* Tornam-se theme-aware: brancas no tema escuro, escuras no tema claro */
.text-white  { color: var(--text-strong) !important; }
/* --primary-light dá contraste AA (>=4.5:1) sobre --surface/--bg; --primary não chega (~3.9:1) */
.text-danger { color: var(--primary-light) !important; }
.badge.bg-secondary { background-color: var(--border) !important; color: var(--text-muted); }
.hero { background: linear-gradient(to bottom, var(--bg-deep), var(--bg)); min-height: 100vh; }
.hero-banner-overlay { background: linear-gradient(to bottom, rgba(var(--bg-deep-rgb),.6), rgba(var(--bg-deep-rgb),.9)); }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { background-color: var(--bg-deep); border-top: 1px solid var(--border); }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--primary); }

/* ── Catalogue ────────────────────────────────────────────────────────── */
#catalog-results { transition: opacity .2s; }

/* ── Gallery (car detail) ─────────────────────────────────────────────── */
#gallery .carousel-control-prev,
#gallery .carousel-control-next {
    opacity: 0;
    transition: opacity .2s;
}
#gallery:hover .carousel-control-prev,
#gallery:hover .carousel-control-next { opacity: 1; }
#gallery .thumb-active { border-color: var(--primary) !important; }
#gallery .gallery-img-wrap {
    height: 420px;
    background-color: var(--bg-deep);
    background-size: cover;
    background-position: center;
}
#gallery .gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Contador de fotos (ex: 2 / 6) */
#gallery .gallery-counter {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 5;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    padding: .3rem .6rem;
    border-radius: 1rem;
    backdrop-filter: blur(2px);
    pointer-events: none;
}
@media (max-width: 575.98px) {
    #gallery .gallery-img-wrap { height: 280px; }
    #gallery .carousel-control-prev,
    #gallery .carousel-control-next { width: 15%; }
}
/* Mobile + tablet: sem :hover em touch — controlos ficam sempre visíveis */
@media (max-width: 991.98px) {
    #gallery .carousel-control-prev,
    #gallery .carousel-control-next {
        opacity: 1;
    }
    #gallery .carousel-control-prev-icon,
    #gallery .carousel-control-next-icon {
        width: 1.75rem;
        height: 1.75rem;
        background-color: rgba(0,0,0,.4);
        border-radius: 50%;
        padding: .35rem;
        background-size: 60%;
    }
}

/* ── Cookie banner ────────────────────────────────────────────────────── */
#cookie-banner { display: none; transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }

/* ── Car Card — componente ────────────────────────────────────────────── */
.car-card-img-wrap {
    aspect-ratio: 4/3;
    background: var(--bg-deep);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}
.car-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.car-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: rgba(var(--text-muted-rgb),.4);
    font-size: 3rem;
}
.car-card-badge-wrap {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 2;
}
.car-card-badge {
    font-size: .55rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    background: rgba(var(--primary-rgb),.9);
    color: #fff;
    padding: .2rem .5rem;
    border-radius: .25rem;
    font-weight: 700;
}
.car-card-title {
    font-size: 1.3rem;
    letter-spacing: .03em;
    line-height: 1.1;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: .25rem;
}
.car-card-model { font-size: 1rem; line-height: 1; }
.car-card-price {
    font-size: 1.1rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    color: var(--text-strong);
}
.car-card-year {
    font-size: .55rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: .2rem;
}
.car-card-specs {
    border-top: 1px solid var(--overlay-soft);
}
.car-card-spec-label {
    font-size: .5rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: .2rem;
}
.car-card-spec-value {
    font-size: .7rem;
    font-weight: 500;
    color: var(--text-strong);
}
.car-card-cta {
    font-size: .65rem;
    letter-spacing: .2em;
    font-family: 'Oswald', sans-serif;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: background .2s, border-color .2s, color .2s;
}

/* ── Favorites ────────────────────────────────────────────────────────── */
.fav-btn {
    position: absolute;
    top: .6rem; right: .6rem;
    z-index: 3;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(var(--bg-deep-rgb),.72);
    backdrop-filter: blur(4px);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
    font-size: .9rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.fav-btn:hover { background: rgba(var(--bg-deep-rgb),.92); color: var(--primary); transform: scale(1.1); }
.fav-btn--active { color: var(--primary) !important; }
.fav-btn--active:hover { color: var(--primary-dark) !important; }

/* Badge do navbar */
.fav-nav-link .fav-count {
    font-family: 'Inter', sans-serif;
}

/* ── Show page ────────────────────────────────────────────────────────── */

/* Título da viatura (h1 coluna direita) */
.car-show-title {
    font-size: 1.8rem;
    line-height: 1.1;
    letter-spacing: .03em;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-strong);
    margin-bottom: .75rem;
}

/* Cabeçalho de secção dos cards de detalhes */
.card-section-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--primary);
    margin-bottom: .75rem;
}

/* Label de spec (Ano, Km, etc.) */
.spec-label {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: .25rem;
}

/* Caixa de preço */
.price-box {
    background: var(--bg);
    border-radius: .375rem;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}
.price-box .price-label {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: .25rem;
}
.price-box .price-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-strong);
    font-family: monospace;
    margin-bottom: .2rem;
}
.price-box .price-note { font-size: .65rem; color: var(--text-secondary); margin: 0; }

/* Trust icons (garantia / financiamento) */
.trust-icon-wrap {
    padding: .5rem;
    border-radius: .375rem;
    background: rgba(var(--primary-rgb),.1);
    color: var(--primary);
    flex-shrink: 0;
}

/* Feature list bullet */
.feature-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

/* Gallery thumbs bar */
.gallery-thumbs {
    background: var(--bg-elevated);
    overflow-x: auto;
}
.gallery-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color .2s;
}

/* Back to catalogue link */
.back-link {
    letter-spacing: .08em;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ── WhatsApp Floating Button ─────────────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10500;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: .75rem 1.25rem .75rem .9rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,.3);
    transition: background .2s, box-shadow .2s, bottom .3s ease, transform .2s;
    animation: wa-enter .45s cubic-bezier(.34,1.56,.64,1) both;
    animation-delay: .6s; /* espera que a página carregue antes de entrar */
    opacity: 0;           /* começa invisível — a animação faz o fade-in */
}
.wa-float:hover, .wa-float:focus-visible {
    background: #1ebe5d;
    box-shadow: 0 6px 28px rgba(37,211,102,.45);
    color: #fff;
    transform: translateY(-3px);
    outline: none;
}
.wa-float__label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-family: 'Oswald', sans-serif;
    white-space: nowrap;
}
/* Move acima do cookie banner quando este está visível */
.wa-float--lifted { bottom: 6.5rem; }

/* Mobile: apenas ícone circular */
@media (max-width: 575px) {
    .wa-float { padding: .85rem; border-radius: 50%; }
    .wa-float__label { display: none; }
}

@keyframes wa-enter {
    from { opacity: 0; transform: scale(.5) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Price Range Slider ───────────────────────────────────────────────── */
.price-range-widget { user-select: none; }

.price-slider-wrap {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
}
.price-slider-track {
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    pointer-events: none;
}
.price-slider-fill {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}
.price-slider-wrap input[type="range"] {
    position: absolute;
    width: 100%; left: 0;
    top: 50%; transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    height: 28px;
    outline: none;
}
.price-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--text-strong);
    border: 2.5px solid var(--primary);
    cursor: pointer;
    pointer-events: auto;
    position: relative; z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
    transition: transform .15s, box-shadow .15s;
}
.price-slider-wrap input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb),.4);
}
.price-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--text-strong);
    border: 2.5px solid var(--primary);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.price-slider-wrap input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.price-slider-wrap input[type="range"]::-moz-range-track { background: transparent; }

/* ── Scrollbar ────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--overlay-medium); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--overlay-strong); }

/* ── Toast notifications ──────────────────────────────────────────────── */
.app-toast {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: .5rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    pointer-events: all;
    animation: toast-in .3s cubic-bezier(.21,1.02,.73,1) forwards;
    border-left-width: 4px;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.app-toast.toast-success { border-left-color: #22c55e; }
.app-toast.toast-warning { border-left-color: #f59e0b; }
.app-toast.toast-error   { border-left-color: #ef4444; }
.app-toast.toast-out     { animation: toast-out .25s ease-in forwards; }
.app-toast .toast-icon   { font-size: 1.15rem; flex-shrink: 0; margin-top: .05rem; }
.app-toast.toast-success .toast-icon { color: #22c55e; }
.app-toast.toast-warning .toast-icon { color: #f59e0b; }
.app-toast.toast-error   .toast-icon { color: #ef4444; }
.app-toast .toast-body   { flex: 1; }
.app-toast .toast-title  { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .2rem; }
.app-toast.toast-success .toast-title { color: #22c55e; }
.app-toast.toast-warning .toast-title { color: #f59e0b; }
.app-toast.toast-error   .toast-title { color: #ef4444; }
.app-toast .toast-msg    { font-size: .8rem; color: var(--text); line-height: 1.5; margin: 0; }
.app-toast .toast-close  { background: none; border: none; color: var(--text-muted); font-size: .9rem; cursor: pointer; padding: 0; flex-shrink: 0; line-height: 1; transition: color .15s; }
.app-toast .toast-close:hover { color: var(--text); }
@keyframes toast-in  { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(8px) scale(.96); } }

/* ── Descrição Quill — conteúdo HTML renderizado no site público ──────── */
.car-description {
    font-size: .9rem;
    line-height: 1.75;
}
.car-description p  { margin-bottom: .6rem; }
.car-description strong { color: var(--text); font-weight: 700; }
.car-description em     { font-style: italic; }
.car-description s      { text-decoration: line-through; opacity: .75; }
.car-description u      { text-decoration: underline; }
.car-description ul,
.car-description ol {
    padding-left: 1.4rem;
    margin-bottom: .6rem;
}
.car-description li { margin-bottom: .25rem; }

/* ── Share bar — página de detalhe do carro ───────────────────────────── */
.share-bar {
    border-top: 1px solid var(--border);
    padding-top: .75rem;
}
.share-bar-label {
    font-size: .55rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: .5rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: 1;
    justify-content: center;
    padding: .45rem .5rem;
    border-radius: .375rem;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.share-btn-facebook {
    background: rgba(24,119,242,.1);
    border-color: rgba(24,119,242,.25);
    color: #4a90d9;
}
.share-btn-facebook:hover {
    background: rgba(24,119,242,.2);
    border-color: rgba(24,119,242,.5);
    color: #4a90d9;
}
.share-btn-whatsapp {
    background: rgba(37,211,102,.1);
    border-color: rgba(37,211,102,.25);
    color: #25d366;
}
.share-btn-whatsapp:hover {
    background: rgba(37,211,102,.2);
    border-color: rgba(37,211,102,.5);
    color: #25d366;
}
.share-btn-copy {
    background: var(--overlay-soft);
    border-color: var(--overlay-medium);
    color: var(--text-secondary);
}
.share-btn-copy:hover {
    background: var(--overlay-medium);
    border-color: var(--overlay-strong);
    color: var(--text-strong);
}
.share-btn-copy.copied {
    background: rgba(37,211,102,.1);
    border-color: rgba(37,211,102,.3);
    color: #25d366;
}

/* ── Share bar — responsive ──────────────────────────────────────────── */
@media (max-width: 575px) {
    /* Mobile: botões com só ícone + label curto */
    .share-btn span { display: none; }
    .share-btn { padding: .5rem; flex: 1; }
}
@media (min-width: 576px) and (max-width: 991px) {
    /* Tablet: reduz padding para caber os 3 botões */
    .share-btn { padding: .4rem .4rem; font-size: .6rem; }
}
