/* ==========================================================================
   GIALOP.VN — Lốp xe theo dòng xe (template-tire-vehicles.php)
   Breadcrumb .gl-crumb khai báo lại ở đây vì trang không nạp category.css.
   ========================================================================== */

.gl-crumb {
	background: #fff;
	border-bottom: 1px solid var(--gl-line);
}

.gl-crumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--gl-muted);
}

.gl-crumb__list a {
	color: inherit;
	text-decoration: none;
}

.gl-crumb__list a:hover {
	color: var(--gl-navy);
	text-decoration: underline;
}

.gl-crumb__sep {
	opacity: .45;
}

.gl-crumb__list [aria-current] {
	font-weight: 700;
	color: var(--gl-navy);
}

.tv-page {
	overflow: clip;
	background: var(--gl-white);
	color: var(--gl-text);
}

.tv-page *,
.tv-page *::before,
.tv-page *::after {
	box-sizing: border-box;
}

.tv-section {
	padding-block: clamp(50px, 6vw, 70px);
}

.tv-section--soft {
	background: #f4f7fb;
}

/* Tiêu đề section */
.tv-heading {
	max-width: 760px;
	margin-bottom: 28px;
}

.tv-heading--center {
	margin-inline: auto;
	text-align: center;
}

.tv-eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #e79900;
}

.tv-eyebrow--light {
	color: #ffca31;
}

.tv-title {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--gl-navy);
	text-wrap: balance;
}

.tv-lede {
	max-width: 760px;
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--gl-muted);
}

.tv-heading--center .tv-lede {
	margin-inline: auto;
}

.tv-link {
	font-size: 13px;
	font-weight: 800;
	color: #063a73;
	text-decoration: none;
}

.tv-link:hover {
	text-decoration: underline;
}

/* Hero */
.tv-hero {
	color: #fff;
	background:
		radial-gradient(640px 320px at 80% 45%, rgba(70, 118, 168, .55), transparent 72%),
		linear-gradient(110deg, #0c2f57 0%, #143f70 55%, #1f4f84 100%);
}

.tv-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(240px, .8fr);
	align-items: center;
	gap: 40px;
	min-height: 300px;
	padding-top: 40px;
	padding-bottom: 76px;
}

.tv-hero__title {
	margin: 0 0 14px;
	font-size: clamp(34px, 4.3vw, 52px);
	font-weight: 800;
	line-height: 1.08;
	color: #fff;
}

.tv-hero__desc {
	max-width: 680px;
	margin: 0;
	font-size: 15px;
	line-height: 1.75;
	color: rgba(255, 255, 255, .9);
}

.tv-hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .28);
}

.tv-hero__visual img {
	display: block;
	max-width: 100%;
	max-height: 240px;
	object-fit: contain;
	filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .3));
}

/* Bộ tìm xe */
.tv-finder-wrap {
	position: relative;
	z-index: 2;
	margin-top: -48px;
	scroll-margin-top: 110px;
}

.tv-finder {
	padding: 22px 24px;
	border: 1px solid #d7e0ea;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 32px rgba(17, 50, 85, .12);
}

.tv-finder__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 20px;
	margin-bottom: 14px;
}

.tv-finder__head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--gl-navy);
}

.tv-finder__head p {
	margin: 0;
	font-size: 13px;
	color: var(--gl-muted);
}

.tv-finder__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	align-items: end;
	gap: 12px;
}

.tv-finder__field span {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #45607e;
}

.tv-finder select,
.tv-finder__submit {
	width: 100%;
	height: 46px;
	border-radius: 8px;
	font: 600 14px var(--gl-font);
}

.tv-finder select {
	padding: 0 36px 0 14px;
	border: 1px solid #d7e0ea;
	background-color: #fff;
	color: var(--gl-navy);
}

.tv-finder select:disabled {
	background-color: #f4f7fb;
	color: #9aa8b8;
	cursor: not-allowed;
}

.tv-finder__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: #214e82;
	color: #fff;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
}

.tv-finder__submit:hover:not(:disabled) {
	background: var(--gl-navy);
}

.tv-finder__submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.tv-finder__sizes,
.tv-finder__alt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--gl-muted);
}

.tv-finder__sizes[hidden] {
	display: none;
}

.tv-finder__sizes a {
	padding: 6px 12px;
	border: 1px solid #a8c7e8;
	border-radius: 999px;
	background: #eff6ff;
	color: #0c4b88;
	font-weight: 700;
	text-decoration: none;
}

.tv-finder__alt a {
	font-weight: 800;
	color: #063a73;
	text-decoration: none;
}

.tv-finder__alt a:hover,
.tv-finder__sizes a:hover {
	text-decoration: underline;
}

/* Dòng xe phổ biến */
.tv-cars {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.tv-car {
	overflow: hidden;
	border: 1px solid #d7e0ea;
	border-radius: 12px;
	background: #fff;
	transition: transform .2s ease, box-shadow .2s ease;
}

.tv-car:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(17, 50, 85, .1);
}

.tv-car__media {
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	place-items: center;
	height: 160px;
	padding: 16px;
	overflow: hidden;
	background: linear-gradient(180deg, #eaf0f7, #dfe7f1);
	color: #7d93ad;
}

.tv-car__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tv-car__body {
	padding: 18px;
}

.tv-car__brand {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #d49300;
}

.tv-car__title {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.35;
}

.tv-car__title a {
	color: var(--gl-navy);
	text-decoration: none;
}

.tv-car__note {
	min-height: 40px;
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--gl-muted);
}

/* Theo hãng xe */
.tv-brands {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.tv-brand {
	padding: 20px 22px;
	border: 1px solid #d7e0ea;
	border-radius: 12px;
	background: #fff;
}

.tv-brand__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid #e6ecf2;
}

.tv-brand__head h3 {
	margin: 0;
	font-size: 17px;
	color: var(--gl-navy);
}

.tv-brand__head a {
	font-size: 12px;
	font-weight: 800;
	color: #063a73;
	text-decoration: none;
	white-space: nowrap;
}

/* Ảnh hãng xe trải hết chiều ngang thẻ. */
.tv-brand__logo {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: #f5f8fb;
}

.tv-brand__logo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: contain;
}

.tv-brand__models {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tv-brand__models a {
	font-size: 14px;
	color: #3a4c62;
	text-decoration: none;
}

.tv-brand__head a:hover,
.tv-brand__models a:hover {
	color: var(--gl-navy);
	text-decoration: underline;
}

/* Hướng dẫn */
.tv-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Số thứ tự và tiêu đề cùng một hàng, ảnh và mô tả bên dưới. */
.tv-step {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-content: start;
	align-items: center;
	column-gap: 12px;
	padding: 22px;
	border: 1px solid #d7e0ea;
	border-radius: 12px;
	background: #fff;
}

.tv-step__num {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #eff6ff;
	color: #0c4b88;
	font-size: 14px;
	font-weight: 800;
}

.tv-step h3 {
	margin: 0;
	font-size: 15px;
	color: var(--gl-navy);
}

.tv-step p {
	grid-column: 1 / -1;
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--gl-muted);
}

/* Ảnh minh hoạ nằm giữa tiêu đề và mô tả */
.tv-step__media {
	display: block;
	width: 100%;
	height: auto;
	grid-column: 1 / -1;
	aspect-ratio: 4 / 3;
	margin: 14px 0 2px;
	object-fit: cover;
	border-radius: 10px;
}

/* Cách tìm khác */
.tv-ways {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.tv-way {
	display: flex;
	gap: 14px;
	padding: 20px;
	border: 1px solid #d7e0ea;
	border-radius: 12px;
	background: #fff;
	color: var(--gl-navy);
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.tv-way:hover {
	border-color: #a8c7e8;
	box-shadow: 0 10px 26px rgba(17, 50, 85, .08);
}

.tv-way__body {
	flex: 1;
	min-width: 0;
}

/* Ảnh minh hoạ nằm giữa tiêu đề và mô tả */
.tv-way__media {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 6px 0 10px;
	object-fit: cover;
	border-radius: 10px;
}

.tv-way__body strong,
.tv-way__body small,
.tv-way__body em {
	display: block;
}

.tv-way__body strong {
	margin-bottom: 4px;
	font-size: 15px;
}

.tv-way__body small {
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--gl-muted);
}

.tv-way__body em {
	font-size: 13px;
	font-style: normal;
	font-weight: 800;
	color: #063a73;
}

/* Bài viết */
.tv-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.tv-post {
	overflow: hidden;
	border: 1px solid #d7e0ea;
	border-radius: 12px;
	background: #fff;
}

.tv-post__media {
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	place-items: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e8eef6;
	color: #8495a8;
}

.tv-post__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tv-post__body {
	padding: 18px;
}

.tv-post__label {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #d49300;
}

.tv-post__title {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.4;
}

.tv-post__title a {
	color: var(--gl-navy);
	text-decoration: none;
}

.tv-post__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--gl-muted);
}

/* FAQ */
.tv-faq {
	max-width: 820px;
	margin: 0 auto;
}

.tv-faq__item {
	border-bottom: 1px solid #d7e0ea;
}

.tv-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--gl-navy);
	list-style: none;
	cursor: pointer;
}

.tv-faq__item summary::-webkit-details-marker {
	display: none;
}

.tv-faq__icon {
	display: inline-flex;
	transition: transform .2s ease;
}

.tv-faq__item[open] .tv-faq__icon {
	transform: rotate(45deg);
}

.tv-faq__item p {
	margin: 0;
	padding: 0 34px 18px 4px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--gl-muted);
}

/* CTA */
.tv-cta {
	padding-block: 44px;
	background: linear-gradient(110deg, #123b68, #1e4d7c);
	color: #fff;
}

.tv-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.tv-cta__title {
	margin: 0 0 8px;
	font-size: 30px;
	color: #fff;
}

.tv-cta__desc {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, .85);
}

.tv-cta__actions {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

.tv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.tv-btn--primary {
	border-color: #ffbd18;
	background: #ffbd18;
	color: #10365f;
}

.tv-btn:hover {
	filter: brightness(1.05);
}

.tv-page a:focus-visible,
.tv-page button:focus-visible,
.tv-page select:focus-visible,
.tv-page summary:focus-visible {
	outline: 3px solid #ffca31;
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.tv-cars,
	.tv-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tv-brands,
	.tv-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tv-finder__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tv-finder__submit {
		grid-column: 1 / -1;
	}
}

@media (max-width: 700px) {
	.tv-hero__inner {
		grid-template-columns: 1fr;
		padding-bottom: 70px;
	}

	.tv-hero__visual {
		display: none;
	}

	.tv-hero__title {
		font-size: 35px;
	}

	.tv-finder {
		padding: 18px;
	}

	.tv-finder__grid,
	.tv-cars,
	.tv-brands,
	.tv-steps,
	.tv-ways,
	.tv-posts {
		grid-template-columns: 1fr;
	}

	.tv-cta__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.tv-cta__actions {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tv-page * {
		transition: none !important;
	}
}
