/*
Theme Name: Lopxe
Theme URI: https://gialop.vn/
Author: IMTA
Author URI: https://imta.vn/
Description: Theme độc lập cho GIALOP.VN — nền tảng tra cứu giá lốp và phụ tùng ô tô chính hãng theo thông số OEM. Không phụ thuộc Flatsome.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lopxe
Tags: custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Lopxe — style.css

   Chỉ chứa phần bổ sung cho WordPress. Toàn bộ design token, reset, header,
   footer và các khối giao diện nằm ở assets/css/core/theme.css (nạp trước tệp này).
   Không đặt selector toàn cục (a, body, h1…) ở đây để khỏi đè theme.css.
   ========================================================================== */

/* ==========================================================================
   Phần riêng của WordPress
   Bổ sung cho theme.css: hero trang trong, nội dung bài viết, phân trang.
   ========================================================================== */

/* Hero navy rút gọn cho trang/bài/lưu trữ */
.lx-pagehero {
	position: relative;
	overflow: hidden;
	padding-block: 52px 56px;
	color: var(--gl-white);
	background:
		radial-gradient(900px 400px at 88% -20%, rgba(245, 200, 66, .18), transparent 62%),
		linear-gradient(180deg, var(--gl-navy) 0%, var(--gl-navy-d) 100%);
}
.lx-pagehero__eyebrow {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 14px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .78);
}
.lx-pagehero__eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--gl-yellow); }
.lx-pagehero__title {
	margin: 0;
	font-size: clamp(28px, 4.2vw, 44px);
	font-weight: 900;
	letter-spacing: -.03em;
	line-height: 1.08;
	text-wrap: balance;
}
.lx-pagehero__lede {
	margin: 16px 0 0;
	max-width: 640px;
	font-size: 16px;
	color: rgba(255, 255, 255, .8);
	text-wrap: pretty;
}

/* Nội dung bài viết / trang */
.lx-entry {
	width: 100%;
	max-width: 1080px;
	margin-inline: auto;
}
.lx-entry > * + * { margin-top: 18px; }
.lx-entry h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.22; }
.lx-entry h2 { font-size: 27px; margin-top: 38px; }
.lx-entry h3 { font-size: 21px; margin-top: 30px; }
.lx-entry p { line-height: 1.75; }
.lx-entry a { color: var(--gl-navy); text-decoration: underline; text-underline-offset: 3px; }
.lx-entry ul, .lx-entry ol { padding-left: 22px; }
.lx-entry ul { list-style: disc; }
.lx-entry ol { list-style: decimal; }
.lx-entry li + li { margin-top: 8px; }
.lx-entry img { border-radius: var(--gl-radius); }
.lx-entry blockquote {
	margin: 0;
	padding: 18px 22px;
	border-left: 4px solid var(--gl-yellow);
	background: var(--gl-cream);
	border-radius: 0 var(--gl-radius) var(--gl-radius) 0;
}
.lx-entry table { width: 100%; border-collapse: collapse; }
.lx-entry th, .lx-entry td { padding: 12px 14px; border-bottom: 1px solid var(--gl-line); text-align: left; }
.lx-entry__thumb {
	width: 100%;
	margin: 0 0 28px;
	overflow: hidden;
	border-radius: var(--gl-radius-lg);
	aspect-ratio: 16 / 9;
}
.lx-entry__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

/* Điều hướng bài trước / sau */
.lx-postnav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: 780px;
	margin-inline: auto;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--gl-line);
	font-weight: 700;
	font-size: 14.5px;
}
.lx-postnav a { color: var(--gl-navy); }
.lx-postnav a:hover { color: var(--gl-yellow-d); }

/* Bài viết đơn: căn cùng trục giữa cho hero, nội dung và điều hướng. */
.single-post .lx-pagehero .gl-wrap {
	max-width: 820px;
}
.single-post .lx-entry {
	overflow-wrap: anywhere;
}
.single-post .lx-entry iframe,
.single-post .lx-entry video,
.single-post .lx-entry figure {
	max-width: 100%;
}

@media (max-width: 720px) {
	.single-post .lx-pagehero {
		padding-block: 34px 38px;
	}

	.single-post .lx-pagehero__eyebrow {
		margin-bottom: 11px;
		font-size: 10.5px;
	}

	.single-post .lx-pagehero__eyebrow::before {
		width: 28px;
	}

	.single-post .lx-pagehero__title {
		font-size: clamp(25px, 7.2vw, 32px);
		line-height: 1.18;
		text-wrap: pretty;
	}

	.single-post .gl-section {
		padding-block: 36px 48px;
	}

	.single-post .lx-entry {
		font-size: 15.5px;
	}

	.single-post .lx-entry > * + * {
		margin-top: 16px;
	}

	.single-post .lx-entry h1 {
		font-size: 26px;
		line-height: 1.25;
	}

	.single-post .lx-entry h2 {
		margin-top: 30px;
		font-size: 23px;
		line-height: 1.3;
	}

	.single-post .lx-entry h3 {
		margin-top: 25px;
		font-size: 19px;
		line-height: 1.35;
	}

	.single-post .lx-entry p,
	.single-post .lx-entry li {
		line-height: 1.72;
	}

	.single-post .lx-entry__thumb {
		margin-bottom: 22px;
		border-radius: 14px;
	}

	.single-post .lx-postnav {
		align-items: flex-start;
		flex-direction: column;
		margin-top: 32px;
		padding-top: 20px;
		font-size: 14px;
	}
}

/* Phân trang */
.pagination, .navigation.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 14px;
	border: 1.5px solid var(--gl-line);
	border-radius: 10px;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--gl-navy);
	background: var(--gl-white);
}
.pagination .page-numbers:hover { border-color: var(--gl-navy); }
.pagination .page-numbers.current { background: var(--gl-navy); border-color: var(--gl-navy); color: var(--gl-white); }

/* Thanh tìm kiếm trong trang kết quả / 404 */
.lx-searchbar { max-width: 620px; }

/* Ảnh đại diện đánh giá khi biên tập viên tải ảnh thật lên */
img.gl-review__avatar { width: 46px; height: 46px; }

/* Hỗ trợ tiếp cận */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
}

/* Logo dạng chữ khi chưa đặt logo ảnh */
.gl-logo__text { font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--gl-white); }

/* Form Contact Form 7 trong khối thu cũ đổi mới */
.gl-tradein__form--plugin { display: block; }
.gl-tradein__form--plugin input[type="text"],
.gl-tradein__form--plugin input[type="tel"],
.gl-tradein__form--plugin input[type="email"],
.gl-tradein__form--plugin textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1.5px solid var(--gl-line);
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
}
.gl-tradein__form--plugin .wpcf7-submit {
	width: 100%;
	padding: 14px 26px;
	border-radius: var(--gl-radius-sm);
	background: var(--gl-navy);
	color: var(--gl-white);
	font-weight: 700;
	cursor: pointer;
}
.gl-tradein__form--plugin .wpcf7-not-valid-tip { color: var(--gl-red); font-size: 13px; }
