/* Trang chi tiết loại xe */

.azmb-single {
	--azmb-brand: #ff5b00;
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 15px 0px;
	margin-bottom: -50px;
	z-index: 999;
}

.azmb-single *,
.azmb-single *::before,
.azmb-single *::after { box-sizing: border-box; }

/* Phần trên: ảnh 50% - thông tin 50% */
.azmb-single__top {
	display: grid;
	grid-template-columns: minmax(0, 50fr) minmax(0, 50fr);
	align-items: start;
	gap: 30px;
}

.azmb-single__left,
.azmb-single__right { min-width: 0; }

.azmb-single__image {
	margin: 0;
	padding: 20px;
	border: 1px solid #e8e8e8;
	border-radius: 16px;
	background: #fff;
}

.azmb-single__image img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: contain;
}

/* Tên xe - giá nằm liền nhau */
.azmb-single__heading { margin-bottom: 12px; line-height: 1.35; }

.azmb-single .azmb-single__title,
.azmb-single .azmb-single__price {
	display: inline;
	margin: 0;
	font-size: 26px;
}

.azmb-single__price { white-space: nowrap; }
.azmb-single__sep { margin: 0 6px; color: #999; }
.azmb-single__price-label { display: none; }
.azmb-single__price strong { color: var(--azmb-brand); }

/* Mô tả ngắn: tối đa 3 hàng, dư thì hiện ... */
.azmb-single__short {
	margin-bottom: 16px;
	padding: 12px 16px;
	text-align: justify;
	border-left: 4px solid var(--azmb-brand);
	background: #fff6f0;
}

.azmb-single .azmb-single__short p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	margin: 0;
	line-height: 1.55;
}

/* 9 thông số: icon bên trái, tiêu đề trên, thông tin dưới */
.azmb-single .azmb-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 0;
	list-style: none;
}

.azmb-single .azmb-specs__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 12px 10px;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.03);
}

.azmb-specs__icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #fff;
	color: var(--azmb-brand);
}

.azmb-specs__icon svg { width: 20px; height: 20px; }

.azmb-specs__text { min-width: 0; line-height: 1.35; }

.azmb-specs__label {
	display: block;
	margin-bottom: 2px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: #555;
}

.azmb-specs__value {
	display: block;
	font-size: 14px;
	color: #111;
	overflow-wrap: anywhere;
}

/* 3 nút: desktop + tablet 1 hàng */
.azmb-single__actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 16px;
	container-type: inline-size;
}

.azmb-single .azmb-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 0;
	margin: 0;
	padding: 12px 4px;
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	letter-spacing: .5px;
	font-size: clamp(11px, 3.1cqi, 15px);
	font-weight: 700;
	text-transform: none;
	white-space: nowrap;
	transition: filter .2s ease;
}

.azmb-single .azmb-btn:hover { color: #fff; filter: brightness(.9); }
.azmb-btn svg { flex: none; width: 1.25em; height: 1.25em; }
.azmb-single .azmb-btn--phone { background: var(--azmb-brand); }
.azmb-single .azmb-btn--zalo { background: #0068ff; }
.azmb-single .azmb-btn--whatsapp { background: #00bb46; }

/* Nội dung dài + FAQ: 1 cột, tối đa 800px, căn giữa */
.azmb-more,
.azmb-single__faq {
	max-width: 800px;
	margin: 40px auto 0;
}

.azmb-more__inner { display: flow-root; }
.azmb-more__inner img { max-width: 100%; height: auto; }

.azmb-more.is-collapsed .azmb-more__box {
	position: relative;
	max-height: 380px;
	overflow: hidden;
}

.azmb-more.is-collapsed .azmb-more__box::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 100px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

.azmb-single .azmb-more__button {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px auto 0;
	padding: 8px 28px;
	border: 1px solid var(--azmb-brand);
	border-radius: 6px;
	background: #fff;
	color: var(--azmb-brand);
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	cursor: pointer;
}

.azmb-single .azmb-more__button[hidden] { display: none; }

.azmb-more__button::after {
	content: "";
	border: 5px solid transparent;
	border-top-color: currentColor;
	transform: translateY(3px);
}

.azmb-more__button[aria-expanded="true"]::after {
	border-top-color: transparent;
	border-bottom-color: currentColor;
	transform: translateY(-3px);
}

/* Câu hỏi thường gặp */
.azmb-single .azmb-faq > h2 { text-align: center; }

.azmb-faq__item {
	margin-bottom: 10px;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	background: #fff;
}

.azmb-faq__item summary {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.azmb-faq__item summary::-webkit-details-marker { display: none; }
.azmb-faq__item summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--azmb-brand); }
.azmb-faq__item[open] summary::after { content: "−"; }
.azmb-faq__item[open] summary { color: var(--azmb-brand); }
.azmb-faq__answer { padding: 0 16px 6px; }

/* Tablet và mobile: 1 cột */
@media (max-width: 849px) {
	.azmb-single__top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Cột phải hẹp: 2 ô mỗi hàng để icon + chữ không bị chật */
@media (min-width: 850px) and (max-width: 1099px), (max-width: 549px) {
	.azmb-single .azmb-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 549px) {
    .azmb-single {padding:15px 15px 0px;margin-bottom:-120px;}
    .azmb-single .azmb-single__short p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	font-size: 15px;
}
	/* Giá nằm dưới tên, hiện đủ "Giá chỉ từ" */
	.azmb-single .azmb-single__title,
	.azmb-single .azmb-single__price { display: block; }
	.azmb-single .azmb-single__price { margin-top: 4px; font-size: 18px; margin-bottom: 20px;}
	.azmb-single__price strong { font-size: 26px; }
	.azmb-single__price-label { display: inline; }
	.azmb-single__sep { display: none; }

	.azmb-specs__icon { width: 34px; height: 34px; }

	/* Ẩn "Lượt đánh giá" (ô thứ 8) để còn 8 ô = 4 hàng chẵn */
	.azmb-single .azmb-specs__item:nth-child(8) { display: none; }

	/* Nút gọi 1 hàng, Zalo + WhatsApp chia đôi */
	.azmb-single__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.azmb-single .azmb-btn { font-size: 14px; }
	.azmb-single .azmb-btn--phone { grid-column: 1 / -1; }
}

/* Ẩn box CTA ở footer trên trang chi tiết xe */
body.single-loai-xe .az-cta {
	display: none !important;
}