/* ═══════════════════════════════════════════════════════════════
   vehicle_detail.css — Página de Detalhe do Veículo
   ═══════════════════════════════════════════════════════════════ */

:root {
  --muted:  #71717a;
  --border: #e4e4e7;
  --light:  #f4f4f5;
  --green:  #16a34a;
}

.vd * { font-family: 'Barlow', sans-serif; }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.vd-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; color: var(--muted); margin-bottom: 1.75rem;
  text-transform: uppercase; letter-spacing: .08em;
  animation: fadeSlideUp .6s ease both;
}
.vd-breadcrumb a { color: var(--muted); text-decoration: none; transition: color .15s; }
.vd-breadcrumb a:hover { color: var(--brand); }
.vd-breadcrumb i { font-size: .55rem; }

/* ── Main grid ───────────────────────────────────────────────── */
.vd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2rem; margin-bottom: 2rem; align-items: start; }
@media (max-width: 960px) { .vd-grid { grid-template-columns: 1fr; } }

/* ── Gallery ─────────────────────────────────────────────────── */
.vd-gallery {
  position: sticky; top: 80px; align-self: start; min-width: 0;
  animation: fadeSlideUp .7s .08s ease both;
}
.vd-main-img { width: 100%; height: 360px; object-fit: cover; background: var(--light); border-radius: 10px; display: block; cursor: zoom-in; transition: opacity .2s; }
.vd-main-ph { width: 100%; height: 360px; background: var(--light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--border); font-size: 5rem; }
.vd-thumbs-wrap { position: relative; margin-top: 6px; }
.vd-thumbs {
  display: flex; gap: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth; padding: 2px 4px;
}
.vd-thumbs::-webkit-scrollbar { display: none; }
.vd-thumbs-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; background: white; border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; font-size: .7rem; color: var(--brand);
  box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: all .15s;
}
.vd-thumbs-nav:hover { background: var(--brand); color: white; border-color: var(--brand); }
.vd-thumbs-nav.prev { left: -14px; }
.vd-thumbs-nav.next { right: -14px; }
@media (max-width: 600px) { .vd-thumbs-nav { display: none; } }
.vd-thumb { flex: 0 0 80px; width: 80px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: .65; transition: all .15s; display: block; scroll-snap-align: start; }
.vd-thumb:hover { opacity: .9; }
.vd-thumb.active { border-color: var(--brand); opacity: 1; }

/* ── Info panel ──────────────────────────────────────────────── */
.vd-info { display: flex; flex-direction: column; gap: 1.25rem; animation: fadeSlideUp .7s .16s ease both; }

.vd-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.vd-badge { font-family: 'Barlow Condensed', sans-serif; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .75rem; border-radius: 3px; }
.vd-badge-feat  { background: var(--brand); color: white; }
.vd-badge-promo { background: var(--accent); color: white; }

.vd-make { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.vd-model { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; text-transform: uppercase; color: var(--brand); line-height: 1; margin: .2rem 0 .3rem; }
.vd-version { font-size: .88rem; color: var(--muted); }

/* Price box */
.vd-price-box { background: var(--brand); border-radius: 10px; padding: 1.5rem; }
.vd-price-old { font-size: .82rem; color: rgba(255,255,255,.35); text-decoration: line-through; margin-bottom: .25rem; }
.vd-price-main { font-family: 'Barlow Condensed', sans-serif; font-size: 2.4rem; font-weight: 900; color: white; line-height: 1; }
.vd-price-inst { font-size: .78rem; color: rgba(255,255,255,.45); margin-top: .4rem; }
.vd-price-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 1rem 0; }
.vd-price-note { font-size: .72rem; color: rgba(255,255,255,.3); line-height: 1.5; }

/* Specs */
.vd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.vd-spec { background: white; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.vd-spec-lbl { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.vd-spec-val { font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--brand); }

/* CTAs */
.vd-ctas { display: flex; flex-direction: column; gap: .5rem; }
.vd-cta { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem; border-radius: 6px; text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: all .15s; }
.vd-cta-wa    { background: var(--green); color: white; }
.vd-cta-wa:hover { background: #15803d; }
.vd-cta-sched { background: var(--brand); color: white; }
.vd-cta-sched:hover { background: #0f0f1e; }
.vd-cta-share { background: rgba(99,102,241,.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,.3); cursor: pointer; }
.vd-cta-share:hover { background: rgba(99,102,241,.25); }
.vd-cta-fin   { background: white; color: var(--brand); border: 1.5px solid var(--brand); }
.vd-cta-fin:hover { background: var(--brand); color: white; }
.vd-cta i { font-size: 1rem; }

/* ── Content blocks ──────────────────────────────────────────── */
.vd-block { background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 1.5rem; }
.vd-block-hdr { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .6rem; }
.vd-block-hdr-icon { width: 28px; height: 28px; background: var(--brand); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: white; font-size: .72rem; flex-shrink: 0; }
.vd-block-title { font-family: 'Barlow Condensed', sans-serif; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.vd-block-body { padding: 1.25rem; }
.vd-description { font-size: .9rem; color: #374151; line-height: 1.8; white-space: pre-line; }

.vd-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (max-width: 700px) { .vd-features { grid-template-columns: 1fr 1fr; } }
.vd-feature { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--brand); padding: .5rem .65rem; background: var(--light); border-radius: 5px; }
.vd-feature i { color: var(--green); font-size: .65rem; flex-shrink: 0; }

/* ── Bottom CTA ──────────────────────────────────────────────── */
.vd-bottom-cta { background: var(--brand); border-radius: 10px; padding: 3rem 2rem; text-align: center; margin-bottom: 1.5rem; }
.vd-bottom-cta-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 900; text-transform: uppercase; color: white; margin-bottom: .5rem; }
.vd-bottom-cta-sub { font-size: .88rem; color: rgba(255,255,255,.38); margin-bottom: 1.5rem; }
.vd-bottom-ctas { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.vd-bottom-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.75rem; border-radius: 4px; text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-size: .88rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: all .15s; }
.vd-bottom-btn-wa  { background: var(--green); color: white; }
.vd-bottom-btn-wa:hover { background: #15803d; }
.vd-bottom-btn-tel { border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.7); }
.vd-bottom-btn-tel:hover { border-color: rgba(255,255,255,.6); color: white; }
.vd-bottom-btn-share { background: rgba(99,102,241,.2); color: #a5b4fc; border: none; cursor: pointer; }
.vd-bottom-btn-share:hover { background: rgba(99,102,241,.35); }

.vd-back { display: inline-flex; align-items: center; gap: .4rem; font-family: 'Barlow Condensed', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: .1rem; transition: color .15s; }
.vd-back:hover { color: var(--brand); border-color: var(--brand); }

/* ── Lightbox ────────────────────────────────────────────────── */
#vd-lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.92); align-items: center; justify-content: center; padding: 1.5rem; }
#vd-lightbox.open { display: flex; }
#vd-lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 6px; }
#vd-lightbox-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; color: rgba(255,255,255,.5); font-size: 1.5rem; cursor: pointer; transition: color .15s; line-height: 1; }
#vd-lightbox-close:hover { color: white; }
#vd-lightbox-prev, #vd-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .9rem; transition: all .15s; }
#vd-lightbox-prev:hover, #vd-lightbox-next:hover { background: rgba(255,255,255,.18); color: white; }
#vd-lightbox-prev { left: 1rem; }
#vd-lightbox-next { right: 1rem; }
/* ── Mobile fixes ────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* galeria sem sticky em mobile — evita ficar sobreposta ao conteúdo */
  .vd-gallery { position: static; top: auto; }

  /* gallery */
  .vd-main-img, .vd-main-ph { height: 240px; border-radius: 8px; }

  /* grid empilha */
  .vd-grid { gap: 1rem; margin-bottom: 1rem; }

  /* price box compacto */
  .vd-price-box { padding: 1.1rem; border-radius: 8px; }
  .vd-price-main { font-size: 1.8rem; }

  /* specs 2 colunas menores */
  .vd-specs { grid-template-columns: 1fr 1fr; }
  .vd-spec { padding: .65rem .75rem; }
  .vd-spec-val { font-size: .9rem; }

  /* ctas empilhados */
  .vd-cta { padding: .75rem; font-size: .82rem; }

  /* features 2 col */
  .vd-features { grid-template-columns: 1fr 1fr; }

  /* bottom cta */
  .vd-bottom-cta { padding: 2rem 1.25rem; border-radius: 8px; }
  .vd-bottom-ctas { flex-direction: column; align-items: stretch; gap: .5rem; }
  .vd-bottom-btn { justify-content: center; padding: .75rem 1rem; }

  /* breadcrumb menor */
  .vd-breadcrumb { font-size: .68rem; margin-bottom: 1rem; gap: .35rem; }

  /* blocos */
  .vd-block { border-radius: 8px; margin-bottom: 1rem; }
  .vd-block-body { padding: 1rem; }
}

/* ── Zoom hint ───────────────────────────────────────────────── */
.vd-main-wrap {
  position: relative; cursor: zoom-in; border-radius: 10px; overflow: hidden;
}
.vd-zoom-hint {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .85rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
  color: rgba(255,255,255,.85);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: .4rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s ease;
}
.vd-zoom-hint.hidden { opacity: 0; }
@media (max-width: 640px) { .vd-zoom-hint { font-size: .75rem; } }