/**
 * vehicle.css — Styles spécifiques à la page produit WooCommerce
 * Complément de main.css pour les composants du template single-product.php
 */

/* ── Navbar véhicule ── */
#nav.nav-vehicle {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  padding: 0;
}
.nav-row { max-width: 1260px; margin: 0 auto; height: 60px; padding: 0 1.25rem; display: flex; align-items: center; gap: 1rem; width: 100%; }
.nav-breadcrumb { display: none; align-items: center; gap: .35rem; font-size: .72rem; color: #9CA3AF; overflow: hidden; white-space: nowrap; flex: 1; }
.nav-breadcrumb a { color: #9CA3AF; text-decoration: none; transition: color .15s; }
.nav-breadcrumb a:hover { color: #10B981; }
.nav-breadcrumb .current { color: #0F1923; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .nav-breadcrumb { display: flex; } }
.nav-actions { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; margin-left: auto; }
.nav-back { display: none; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; color: #4B5563; padding: .38rem .75rem; border-radius: 100px; border: 1.5px solid #E5E7EB; transition: border-color .2s, color .2s; white-space: nowrap; text-decoration: none; }
.nav-back:hover { border-color: #10B981; color: #10B981; }
@media (min-width: 768px) { .nav-back { display: flex; } }
.nav-cta { display: none; align-items: center; gap: .35rem; font-size: .77rem; font-weight: 700; padding: .46rem 1rem; border-radius: 8px; background: #10B981; color: #fff; border: none; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .2s, transform .15s; }
.nav-cta:hover { background: #059669; transform: translateY(-1px); }
@media (min-width: 900px) { .nav-cta { display: flex; } }

/* ── Mobile drawer extra ── */
.mob-item { display: block; padding: .62rem .5rem; font-size: .88rem; font-weight: 600; color: #4B5563; border-radius: 8px; transition: background .15s; text-decoration: none; }
.mob-item:hover { background: #F9FAFB; }

/* ── Boutons véhicule ── */
.btn-p { display: inline-flex; align-items: center; gap: .4rem; background: #10B981; color: #fff; font-weight: 700; font-size: .85rem; padding: .68rem 1.4rem; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; transition: background .2s, transform .15s, box-shadow .2s; text-decoration: none; }
.btn-p:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,.3); color: #fff; }
.btn-gh { display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: #0F1923; font-weight: 600; font-size: .85rem; padding: .68rem 1.4rem; border-radius: 8px; border: 1.5px solid #E5E7EB; cursor: pointer; font-family: inherit; transition: background .2s, border-color .2s; }
.btn-gh:hover { border-color: #10B981; color: #10B981; }

/* ── Galerie ── */
.gallery-main { position: relative; border-radius: 16px; overflow: hidden; background: #F9FAFB; aspect-ratio: 4/3; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.gallery-main:hover img { transform: scale(1.03); }

/* ── Miniatures ── */
.thumb-strip { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .15rem; }
.thumb { flex-shrink: 0; width: 70px; height: 54px; border-radius: 9px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .2s, opacity .2s; opacity: .6; }
.thumb.active, .thumb:hover { border-color: #10B981; opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) { .thumb-mob-hidden { display: none !important; } }
@media (min-width: 768px) { .thumb-mob-show   { display: none !important; } }
.thumb-more { display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 800; color: #fff; letter-spacing: -.01em; background: rgba(15,25,35,.68); backdrop-filter: blur(3px); opacity: 1 !important; }
.thumb-more:hover { background: rgba(16,185,129,.82); border-color: #10B981; }

/* ── Layout produit ── */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 360px; align-items: start; } }
@media (min-width: 900px) { .buy-panel-sticky { position: sticky; top: 76px; } }

/* ── Sélecteur couleur ── */
.color-dot { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: border-color .2s, transform .15s; flex-shrink: 0; }
.color-dot:hover, .color-dot.active { border-color: #10B981; transform: scale(1.15); }

/* ── Onglets ── */
.vtab { padding: .42rem 1rem; border-radius: 100px; font-size: .78rem; font-weight: 700; border: 1.5px solid #E5E7EB; cursor: pointer; color: #4B5563; transition: all .2s; background: #fff; font-family: inherit; }
.vtab:hover { border-color: #10B981; color: #10B981; }
.vtab.active { background: #10B981; border-color: #10B981; color: #fff; }
.tab-pane { display: none; }
.tab-pane.show { display: block; }

/* ── Tableau specs ── */
.spec-row { display: flex; align-items: flex-start; gap: .7rem; padding: .72rem 0; border-bottom: 1px solid #E5E7EB; }
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: .77rem; font-weight: 600; color: #9CA3AF; min-width: 145px; flex-shrink: 0; }
.spec-val { font-size: .81rem; font-weight: 700; color: #0F1923; }

/* ── Financement ── */
.fin-card { background: #F9FAFB; border: 1.5px solid #E5E7EB; border-radius: 13px; padding: 1.15rem; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.fin-card:hover, .fin-card.selected { border-color: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
.fin-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #E5E7EB; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.fin-card.selected .fin-radio { background: #10B981; border-color: #10B981; }
.fin-radio::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; display: block; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid #E5E7EB; }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; padding: .88rem 0; font-size: .87rem; font-weight: 700; background: none; border: none; cursor: pointer; font-family: inherit; color: #0F1923; gap: .5rem; }
.faq-icon { font-size: 1.2rem; font-weight: 400; color: #10B981; flex-shrink: 0; transition: transform .2s; }
.faq-body { display: none; padding: 0 0 .9rem; color: #4B5563; font-size: .84rem; line-height: 1.75; }

/* ── WooCommerce reviews overrides ── */
#reviews { padding: 0; }
#reviews #comments { margin: 0; }
#reviews .comment-form-rating { margin-bottom: 1rem; }
#reviews .stars a { color: #10B981; }
#reviews input[type="text"],
#reviews input[type="email"],
#reviews textarea { border: 1.5px solid #E5E7EB; border-radius: 10px; padding: .7rem 1rem; font-size: .85rem; font-family: inherit; width: 100%; outline: none; transition: border-color .2s; }
#reviews input:focus, #reviews textarea:focus { border-color: #10B981; }
#reviews input[type="submit"] { background: #10B981; color: #fff; font-weight: 700; font-size: .85rem; padding: .68rem 1.4rem; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; transition: background .2s; }
#reviews input[type="submit"]:hover { background: #059669; }

/* ── Wishlist checkbox hack ── */
#wish-ck { display: none; }
.wish-label .wish-on  { display: none; }
#wish-ck:checked ~ .gallery-main .wish-label .wish-off { display: none; }
#wish-ck:checked ~ .gallery-main .wish-label .wish-on  { display: inline; }

/* ── Zoom dialog natif ── */
#zoom-dialog { position: fixed; inset: 0; margin: auto; max-width: min(92vw, 1100px); max-height: 90vh; border: none; border-radius: 16px; padding: 0; background: #0F1923; overflow: hidden; }
#zoom-dialog::backdrop { background: rgba(0,0,0,.82); }
#zoom-dialog img { display: block; max-width: 100%; max-height: 90vh; object-fit: contain; }
.zoom-close { position: absolute; top: .65rem; right: .65rem; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18); border: none; color: #fff; font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.zoom-close:hover { background: rgba(255,255,255,.35); }

/* ── Similar product cards ── */
.similar-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 1rem; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.similar-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(0,0,0,.1); border-color: #D1D5DB; }
.similar-card-img { position: relative; background: #F9FAFB; overflow: hidden; height: 170px; }
.similar-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
