
/* ═══════════════════════════════════════════════════════════════
   CAR DETAIL PAGE STYLES — promodaihatsu.web.id sub-pages
   Reuses :root vars from style.css
   ═══════════════════════════════════════════════════════════════ */

/* ========== CAR HERO ========== */
.car-hero {
    padding: 130px 0 40px;
    background: linear-gradient(135deg, #fff 0%, var(--gray-bg) 100%);
}
.car-hero .back-to-list {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-gray); font-weight: 600; font-size: 14px;
    margin-bottom: 22px; transition: color .2s;
}
.car-hero .back-to-list:hover { color: var(--primary); }
.car-hero .back-to-list i { font-size: 18px; }
.car-breadcrumb {
    font-size: 13px; color: var(--text-faint); margin-bottom: 12px;
}
.car-breadcrumb a { color: var(--text-gray); }
.car-breadcrumb a:hover { color: var(--primary); }
.car-breadcrumb .sep { margin: 0 6px; color: var(--border-light); }
.car-hero h1 {
    font-size: 38px; font-weight: 800; color: var(--secondary);
    letter-spacing: -0.5px; margin-bottom: 6px;
}
.car-hero .car-subtitle {
    font-size: 17px; color: var(--text-gray); margin-bottom: 18px;
}
.car-price-big {
    display: inline-block; background: var(--white);
    border: 2px solid var(--primary); border-radius: 14px;
    padding: 14px 26px; margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(223, 14, 44, 0.10);
}
.car-price-big .price-label { font-size: 13px; color: var(--text-gray); margin: 0; font-weight: 500; }
.car-price-big .price-value { font-size: 26px; font-weight: 800; color: var(--primary); margin: 0; line-height: 1.2; }
.car-price-big .price-range { font-size: 14px; color: var(--text-light); margin: 2px 0 0; }
.car-features-inline { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.car-features-inline span {
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: 30px; padding: 7px 16px; font-size: 13.5px;
    font-weight: 600; color: var(--text-body);
}
.car-features-inline span i { color: var(--primary); margin-right: 5px; }
.car-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.btn-wa-big {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--wa-green); color: #fff !important;
    padding: 13px 30px; border-radius: 50px; font-weight: 700;
    font-size: 15.5px; transition: all .25s; box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
}
.btn-wa-big:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37, 211, 102, .45); color: #fff; }
.btn-wa-big i { font-size: 20px; }
.btn-call-big {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--primary); color: #fff !important;
    padding: 13px 30px; border-radius: 50px; font-weight: 700;
    font-size: 15.5px; transition: all .25s; box-shadow: 0 4px 14px rgba(223, 14, 44, .3);
}
.btn-call-big:hover { transform: translateY(-2px); background: var(--primary-dark); color: #fff; }
.btn-call-big i { font-size: 20px; }
.car-hero-img-wrap { text-align: center; position: relative; }
.car-hero-img-wrap::before {
    content: ''; position: absolute; inset: 8%;
    background: radial-gradient(circle, rgba(223,14,44,.07) 0%, transparent 70%);
    border-radius: 50%;
}
.car-hero-img {
    max-width: 100%; height: auto; position: relative;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,.16));
}

/* ========== VARIANT CAROUSEL (horizontal scroll-snap) ========== */
.variant-section { padding: 56px 0; background: var(--white); }
.variant-section h2, .color-section h2, .spec-section h2, .faq-section h2 {
    font-size: 26px; font-weight: 800; color: var(--secondary);
    text-align: center; margin-bottom: 6px;
}
.section-eyebrow {
    text-align: center; font-size: 13px; font-weight: 700;
    letter-spacing: 2px; color: var(--primary); text-transform: uppercase; margin-bottom: 4px;
}
.section-sub { text-align: center; color: var(--text-gray); font-size: 15px; margin-bottom: 34px; }
.hscroll {
    display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 22px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: var(--border-light) transparent;
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-track { background: var(--gray-bg); border-radius: 3px; }
.hscroll::-webkit-scrollbar-thumb { background: #c9c9c9; border-radius: 3px; }
.variant-card-snap {
    flex: 0 0 240px; scroll-snap-align: start;
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: 14px; overflow: hidden; text-align: center;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    cursor: pointer;
}
.variant-card-snap:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.10); border-color: var(--primary-light); }
.variant-card-snap.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary), 0 10px 24px rgba(223,14,44,.14); }
.variant-card-snap img { width: 100%; height: 150px; object-fit: contain; background: var(--gray-bg); padding: 10px; }
.variant-card-snap .vname { font-size: 14.5px; font-weight: 700; color: var(--text-body); padding: 12px 10px 4px; }
.variant-card-snap .vselect {
    display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary);
    padding: 2px 12px 14px; letter-spacing: .3px;
}
.variant-hint { text-align: center; font-size: 13px; color: var(--text-faint); margin-top: 2px; }
.variant-hint i { vertical-align: middle; }

/* ========== COLOR SWATCHES ========== */
.color-section { padding: 56px 0; background: var(--gray-bg); }
.color-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 18px; }
.color-dot {
    width: 52px; height: 52px; border-radius: 50%;
    border: 3px solid var(--white); outline: 2px solid var(--border-light);
    outline-offset: 2px; cursor: pointer; overflow: hidden; padding: 0;
    transition: transform .2s, outline-color .2s; background: var(--white);
    display: flex; align-items: center; justify-content: center;
}
.color-dot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.color-dot:hover { transform: scale(1.12); }
.color-dot.selected { outline-color: var(--primary); transform: scale(1.12); box-shadow: 0 4px 14px rgba(223,14,44,.25); }
.color-selected-name {
    text-align: center; font-size: 16px; font-weight: 700; color: var(--secondary); min-height: 24px;
}
.color-preview { text-align: center; margin-top: 16px; }
.color-preview img {
    height: 170px; object-fit: contain; border-radius: 14px;
    background: var(--white); padding: 12px 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* ========== SPEC / DESCRIPTION ========== */
.spec-section { padding: 56px 0; background: var(--white); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.spec-box {
    background: var(--gray-bg); border-radius: 14px; padding: 22px;
    transition: transform .25s, box-shadow .25s;
}
.spec-box:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.07); }
.spec-box i { font-size: 30px; color: var(--primary); margin-bottom: 10px; display: block; }
.spec-box h4 { font-size: 15.5px; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.spec-box p { font-size: 13.5px; color: var(--text-gray); margin: 0; }

/* ========== FAQ ========== */
.faq-section { padding: 56px 0; background: var(--gray-bg); }
.faq-item {
    background: var(--white); border-radius: 12px; margin-bottom: 12px;
    border: 1px solid var(--border-light); overflow: hidden;
}
.faq-q {
    width: 100%; text-align: left; background: none; border: none;
    padding: 17px 22px; font-size: 15px; font-weight: 700; color: var(--text-body);
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    cursor: pointer; font-family: inherit;
}
.faq-q i { color: var(--primary); font-size: 20px; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 18px; font-size: 14.5px; color: var(--text-gray); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 300px; }

/* ========== OTHER CARS ========== */
.other-cars-section { padding: 56px 0; background: var(--white); }
.other-cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.other-car-card {
    background: var(--white); border: 1px solid var(--border-light); border-radius: 14px;
    overflow: hidden; text-align: center; transition: transform .25s, box-shadow .25s;
    display: block;
}
.other-car-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.other-car-card img { width: 100%; height: 130px; object-fit: contain; background: var(--gray-bg); padding: 10px; }
.other-car-card .oc-name { font-size: 14.5px; font-weight: 700; color: var(--text-body); padding: 12px 8px 2px; }
.other-car-card .oc-price { font-size: 13px; color: var(--primary); font-weight: 700; padding-bottom: 14px; }

/* ========== CTA BOTTOM ========== */
.cta-bottom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 54px 0; text-align: center; color: #fff;
}
.cta-bottom h2 { color: #fff; font-size: 27px; font-weight: 800; margin-bottom: 8px; }
.cta-bottom p { color: rgba(255,255,255,.92); font-size: 16px; margin-bottom: 26px; }
.cta-bottom .btn-wa-big { background: #fff; color: var(--wa-green) !important; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.cta-bottom .btn-wa-big:hover { color: #128C4B !important; }
.cta-bottom .btn-call-big { background: rgba(255,255,255,.14); box-shadow: none; border: 1.5px solid rgba(255,255,255,.55); }
.cta-bottom .btn-call-big:hover { background: rgba(255,255,255,.25); }

/* ========== STICKY CTA (car pages, mobile) ========== */
.car-sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
    display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); box-shadow: 0 -4px 18px rgba(0,0,0,.12);
    transform: translateY(110%); transition: transform .35s ease;
}
.car-sticky-cta.show { transform: translateY(0); }
.car-sticky-cta a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 8px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
}
.car-sticky-cta .cs-wa { background: var(--wa-green); color: #fff; }
.car-sticky-cta .cs-call { background: var(--primary); color: #fff; }

/* ========== SELECTION SUMMARY (varian+warna terpilih) ========== */
.selection-bar {
    background: var(--white); border: 2px dashed var(--primary-light);
    border-radius: 14px; padding: 14px 20px; margin: 0 auto 26px; max-width: 760px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
    font-size: 14.5px; color: var(--text-body);
}
.selection-bar .sel-item strong { color: var(--primary); }
.selection-bar .sel-empty { color: var(--text-faint); }

@media (max-width: 768px) {
    .car-hero { padding: 110px 0 30px; }
    .car-hero h1 { font-size: 29px; }
    .car-price-big { padding: 11px 20px; }
    .car-price-big .price-value { font-size: 22px; }
    .car-hero-cta .btn-wa-big, .car-hero-cta .btn-call-big { flex: 1 1 100%; justify-content: center; }
    .variant-card-snap { flex-basis: 200px; }
    .variant-card-snap img { height: 125px; }
    .color-preview img { height: 140px; }
    .car-sticky-cta { display: flex; }
    body.has-sticky-cta { padding-bottom: 74px; }
}
@media (max-width: 480px) {
    .car-hero h1 { font-size: 26px; }
    .color-dot { width: 46px; height: 46px; }
    .other-cars-grid { grid-template-columns: repeat(2, 1fr); }
}
