/* Trang chi tiết xe — dùng chung ô tô điện & xe máy điện */
.vd { max-width: 1200px; margin: 24px auto 60px; padding: 0 16px; color: #111; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.vd a { color: #004bb5; }
.vd-breadcrumb { font-size: .85rem; color: #666; margin-bottom: 20px; }
.vd-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.vd-breadcrumb li + li::before { content: '›'; margin-right: 6px; color: #999; }
.vd-breadcrumb a { color: inherit; text-decoration: none; }
.vd-breadcrumb [aria-current] { color: #111; font-weight: 600; }

.vd-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 991px) { .vd-hero { grid-template-columns: 1fr; gap: 24px; } }

.vd-media { background: #f6f8fb; border: 1px solid #eef1f5; border-radius: 16px; padding: 24px; }
.vd-media-main { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.vd-media-main img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .25s; }
.vd-colors { margin-top: 18px; text-align: center; }
.vd-colors-title { font-size: .85rem; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.vd-colors ul { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.vd-color { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9ced6; cursor: pointer; padding: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.vd-color-group { font-size: .8rem; color: #555; margin: 10px 0 6px; }
.vd-color.active, .vd-color:hover, .vd-color:focus-visible { box-shadow: 0 0 0 2px #004bb5; outline: none; }
.vd-color-name { min-height: 1.2em; font-size: .85rem; color: #555; margin-top: 8px; }

.vd-badge { display: inline-block; background: #e8f0fe; color: #1a56c4; font-weight: 700; padding: 5px 12px; border-radius: 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .4px; }
.vd-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin: 12px 0 8px; line-height: 1.2; }
.vd-lead { color: #444; font-size: 1rem; line-height: 1.6; margin: 0 0 18px; }
.vd-price { background: linear-gradient(135deg, #f0f4ff, #e8f0fe); border: 1px solid #d2e3fc; border-radius: 12px; padding: 14px 20px; margin-bottom: 16px; }
.vd-price-label { display: block; font-size: .8rem; color: #555; }
.vd-price-value { font-size: 1.8rem; font-weight: 800; color: #004bb5; }
.vd-price-meta { display: block; font-size: .78rem; color: #666; margin-top: 4px; }
.vd-highlights { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.vd-highlights li { padding-left: 26px; position: relative; font-size: .95rem; }
.vd-highlights li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: #fff; background: #1f9d55; width: 18px; height: 18px; border-radius: 50%; font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.vd-promo { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 16px; }

.vd-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 30px; font-weight: 700; font-size: .95rem; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; transition: background .2s, box-shadow .2s; text-align: center; }
.vd-btn-primary { background: #004bb5; color: #fff !important; box-shadow: 0 4px 14px rgba(0, 75, 181, .25); grid-column: 1 / -1; font-size: 1.02rem; }
.vd-btn-primary:hover { background: #00368c; }
.vd-btn-secondary { background: #fff; color: #004bb5 !important; border-color: #004bb5; }
.vd-btn-secondary:hover { background: #f0f5ff; }
.vd-btn-ghost { background: #f4f6f9; color: #333 !important; }
.vd-btn:focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; }

.vd-section { margin-top: 48px; }
.vd-section h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 16px; padding-left: 12px; border-left: 4px solid #004bb5; }
.vd-prose { font-size: 1rem; line-height: 1.75; color: #333; max-width: 860px; }
.vd-prose p { margin: 0 0 12px; }
.vd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vd-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.vd-table caption { caption-side: bottom; text-align: left; font-size: .8rem; color: #666; padding-top: 8px; }
.vd-table th, .vd-table td { padding: 12px 14px; border-bottom: 1px solid #eceff3; text-align: left; vertical-align: top; }
.vd-table thead th { background: #f4f6f9; font-weight: 700; color: #333; }
.vd-table td.vd-num { font-weight: 700; color: #004bb5; white-space: nowrap; }
.vd-specs th { width: 38%; font-weight: 600; color: #555; background: #fafbfc; }
.vd-specs { min-width: 0; }
.vd-note { font-size: .82rem; color: #666; margin-top: 10px; line-height: 1.6; }

.vd-fit { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.vd-fit li { background: #f8fafc; border: 1px solid #e6ebf2; border-radius: 12px; padding: 14px 16px; line-height: 1.55; }

.vd-faq details { border: 1px solid #e6ebf2; border-radius: 10px; margin-bottom: 10px; background: #fff; }
.vd-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
.vd-faq summary::-webkit-details-marker { display: none; }
.vd-faq summary::after { content: '+'; position: absolute; right: 16px; top: 10px; font-size: 1.3rem; color: #004bb5; }
.vd-faq details[open] summary::after { content: '−'; }
.vd-faq .vd-faq-a { padding: 0 16px 14px; color: #333; line-height: 1.7; }

.vd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.vd-card { border: 1px solid #e6ebf2; border-radius: 12px; overflow: hidden; background: #fff; text-decoration: none !important; color: #111 !important; display: flex; flex-direction: column; }
.vd-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f4f6f9; }
.vd-card-body { padding: 12px 14px; }
.vd-card-title { font-weight: 700; font-size: .95rem; line-height: 1.4; margin: 0 0 6px; }
.vd-card-meta { font-size: .8rem; color: #666; }
.vd-card.vd-card-vehicle img { object-fit: contain; padding: 10px; }

.vd-form-section { background: #f6f8fb; border: 1px solid #e6ebf2; border-radius: 16px; padding: 32px; }
@media (max-width: 767px) { .vd-form-section { padding: 22px 16px; } }
.vd-form-head { text-align: center; margin-bottom: 20px; }
.vd-form-head h2 { border: 0; padding: 0; margin-bottom: 6px; }
.vd-form-head p { color: #555; margin: 0; }
.vd-form { max-width: 720px; margin: 0 auto; }
.vd-intent { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.vd-intent label { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #d5dbe5; border-radius: 30px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.vd-intent input:checked + span { color: #004bb5; }
.vd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 640px) { .vd-grid { grid-template-columns: 1fr; } }
.vd-field { display: flex; flex-direction: column; gap: 6px; }
.vd-field label { font-size: .85rem; font-weight: 600; color: #444; }
.vd-input { padding: 12px 14px; border: 1px solid #d5dbe5; border-radius: 8px; font-size: .95rem; background: #fff; width: 100%; box-sizing: border-box; }
.vd-input:focus { border-color: #004bb5; outline: none; box-shadow: 0 0 0 3px rgba(0, 75, 181, .12); }
.vd-consent { display: flex; gap: 10px; font-size: .85rem; color: #555; margin: 6px 0 16px; align-items: flex-start; }
.vd-consent input { margin-top: 3px; }
.vd-submit { display: block; width: 100%; max-width: 320px; margin: 0 auto; }
.vd-submit[disabled] { opacity: .6; cursor: wait; }
.vd-form-msg { margin-top: 14px; text-align: center; font-weight: 600; display: none; padding: 12px; border-radius: 10px; }
.vd-form-msg.ok { display: block; background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.vd-form-msg.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.vd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Thanh CTA dính đáy trên di động */
.vd-sticky { display: none; }
@media (max-width: 767px) {
    .vd-sticky { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
    .vd-sticky .vd-btn { padding: 11px 10px; font-size: .9rem; }
    body.has-vd-sticky { padding-bottom: 70px; }
}
