/* Nút Gọi / Zalo nổi */
.lpx-contact {
	position: fixed;
	right: 16px;
	bottom: 24px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: bottom 0.25s ease, transform 0.2s ease;
}
/* Khi thanh Mua ngay đáy màn hình xuất hiện, nâng nút nổi lên trên để không che nút Mua ngay */
body.lpx-sticky-active .lpx-contact {
	bottom: calc(75px + env(safe-area-inset-bottom, 0px));
}
.lpx-contact__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	color: #fff;
	font: 700 13px/1 sans-serif;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.lpx-contact__btn:hover {
	color: #fff;
	opacity: 0.9;
	transform: scale(1.05);
}
.lpx-contact__btn--call {
	background: #16a34a;
}
.lpx-contact__btn--zalo {
	background: #0068ff;
}

/* Khối chân trang thông tin pháp lý & chính sách */
.lpx-footer-bar {
	background: #1e293b;
	color: #cbd5e1;
	font-size: 14px;
	line-height: 1.6;
	padding: 64px 0 40px;
	border-top: 1px solid #334155;
}
.lpx-footer-bar a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s ease;
}
.lpx-footer-bar a:hover {
	color: #f8fafc;
}
/* Cùng độ rộng và lề với phần thân trang (theo khung của theme Blocksy) */
.lpx-footer-bar__inner {
	width: var(--theme-container-width, 90vw);
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 32px;
}
.lpx-footer-bar__title {
	color: #f8fafc;
	font-size: 15px;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.lpx-footer-bar__list,
.lpx-footer-bar__links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.lpx-footer-bar__list li,
.lpx-footer-bar__links li {
	margin-bottom: 8px;
}
.lpx-footer-bar__badge {
	margin-top: 12px;
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px dashed #475569;
	border-radius: 6px;
	font-size: 13px;
	color: #f1f5f9;
}
@media (max-width: 768px) {
	.lpx-footer-bar__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.lpx-contact {
		bottom: 20px;
		right: 12px;
	}
	body.lpx-sticky-active .lpx-contact {
		bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}
	.lpx-contact__btn {
		width: 44px;
		height: 44px;
	}
}

/* ==========================================================================
   GIAO DIỆN TRANG CHỦ TỔNG QUÁT LPX AUTO
   ========================================================================== */

/* Tràn viền và đồng bộ layout với theme Blocksy */
.home #main,
.home .site-main {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}

.lpx-home,
.lpx-home *,
.lpx-home *::before,
.lpx-home *::after {
	box-sizing: border-box;
}

.lpx-home {
	width: 100%;
	overflow-x: hidden;
	color: #1e293b;
	line-height: 1.5;
}

.lpx-home img {
	max-width: 100%;
	height: auto;
	display: block;
}

.lpx-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.lpx-section {
	padding: 60px 0;
}

.lpx-section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 40px;
}

.lpx-section-title {
	font-size: 28px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 10px;
	letter-spacing: -0.5px;
}

.lpx-section-subtitle {
	font-size: 16px;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

/* 1. Hero Section */
.lpx-hero {
	background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
	color: #ffffff;
	padding: 80px 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.lpx-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(214, 40, 40, 0.12) 0%, transparent 60%);
	pointer-events: none;
}

.lpx-hero__container {
	max-width: 900px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.lpx-hero__badge {
	display: inline-block;
	background: rgba(214, 40, 40, 0.2);
	border: 1px solid rgba(214, 40, 40, 0.4);
	color: #fca5a5;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 20px;
	letter-spacing: 0.5px;
}

.lpx-hero__title {
	font-size: 40px;
	font-weight: 800;
	line-height: 1.25;
	color: #ffffff;
	margin: 0 0 20px;
	letter-spacing: -0.5px;
}

.lpx-hero__desc {
	font-size: 18px;
	line-height: 1.6;
	color: #cbd5e1;
	margin: 0 0 35px;
}

.lpx-hero__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Nút bấm chung */
.lpx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.lpx-btn--primary {
	background: #d62828;
	color: #ffffff;
	border: 2px solid #d62828;
	box-shadow: 0 4px 14px rgba(214, 40, 40, 0.4);
}

.lpx-btn--primary:hover {
	background: #b71f1f;
	border-color: #b71f1f;
	color: #ffffff;
	transform: translateY(-2px);
}

.lpx-btn--outline {
	background: transparent;
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.lpx-btn--outline:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #ffffff;
	color: #ffffff;
}

.lpx-btn--secondary {
	background: #0f172a;
	color: #ffffff;
	border: 2px solid #0f172a;
}

.lpx-btn--secondary:hover {
	background: #1e293b;
	border-color: #1e293b;
	color: #ffffff;
	transform: translateY(-2px);
}

/* 2. Trust Bar */
.lpx-trust {
	background: #ffffff;
	padding: 24px 0;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.lpx-trust__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.lpx-trust__item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.lpx-trust__icon {
	font-size: 28px;
	flex-shrink: 0;
}

.lpx-trust__text strong {
	display: block;
	font-size: 15px;
	color: #0f172a;
	line-height: 1.3;
}

.lpx-trust__text span {
	font-size: 13px;
	color: #64748b;
}

/* 3. Danh mục ngành hàng */
.lpx-categories {
	background: #f8fafc;
}

.lpx-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.lpx-cat-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 24px;
	border: 1px solid #e2e8f0;
	text-decoration: none;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	transition: all 0.25s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.lpx-cat-card:hover {
	transform: translateY(-4px);
	border-color: #cbd5e1;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.lpx-cat-card__icon {
	font-size: 36px;
	flex-shrink: 0;
	background: #f1f5f9;
	width: 60px;
	height: 60px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lpx-cat-card__title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px;
}

.lpx-cat-card__desc {
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
	margin: 0 0 10px;
}

.lpx-cat-card__link {
	font-size: 13px;
	font-weight: 700;
	color: #d62828;
}

/* 4. Lưới sản phẩm đang bán */
.lpx-products {
	background: #ffffff;
}

.lpx-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.lpx-card {
	background: #ffffff;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
}

.lpx-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
}

.lpx-card__thumb-link {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f8fafc;
}

.lpx-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.lpx-card:hover .lpx-card__img {
	transform: scale(1.05);
}

.lpx-card__img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	color: #94a3b8;
	font-weight: bold;
}

.lpx-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #15803d;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.lpx-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.lpx-card__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 38px;
}

.lpx-card__title a {
	color: #1e293b;
	text-decoration: none;
}

.lpx-card__title a:hover {
	color: #d62828;
}

.lpx-card__price-row {
	margin-bottom: 12px;
}

.lpx-card__price {
	font-size: 16px;
	font-weight: 800;
	color: #d62828;
}

.lpx-card__price del {
	font-size: 13px;
	color: #475569 !important;
	opacity: 1 !important;
	font-weight: normal;
	margin-left: 6px;
}

.lpx-card__price del .woocommerce-Price-amount,
.sale-price del,
.sale-price del .woocommerce-Price-amount,
.woocommerce .price del,
.woocommerce del .woocommerce-Price-amount {
	color: #475569 !important;
	opacity: 1 !important;
}

.lpx-card__price ins {
	text-decoration: none;
}

.lpx-card__btn-wrap {
	margin-top: auto;
}

.lpx-card__btn {
	display: block;
	text-align: center;
	background: #f1f5f9;
	color: #1e293b;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
}

.lpx-card__btn:hover {
	background: #d62828;
	color: #ffffff;
}

.lpx-view-all {
	text-align: center;
}

/* 5. Tiêu chuẩn chất lượng */
.lpx-standards {
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

.lpx-standards__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.lpx-standards__box {
	background: #ffffff;
	padding: 32px 24px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	text-align: center;
}

.lpx-standards__icon {
	font-size: 40px;
	margin-bottom: 16px;
}

.lpx-standards__box h3 {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 10px;
}

.lpx-standards__box p {
	font-size: 14px;
	color: #64748b;
	line-height: 1.6;
	margin: 0;
}

/* 6. Quy trình mua hàng */
.lpx-process {
	background: #ffffff;
}

.lpx-process__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	position: relative;
}

.lpx-process__step {
	text-align: center;
	padding: 24px;
}

.lpx-process__num {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #d62828;
	color: #ffffff;
	font-size: 20px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
}

.lpx-process__step h3,
.lpx-process__step h4 {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
}

.lpx-process__step p {
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
	margin: 0;
}

/* Khối cam kết mua hàng trên trang chi tiết sản phẩm */
.lpx-product-commit {
	margin-top: 24px;
	padding: 18px 20px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
}

.lpx-product-commit__title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: #0f172a;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.lpx-product-commit__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lpx-product-commit__list li {
	font-size: 13px;
	color: #334155;
	line-height: 1.5;
	margin-bottom: 8px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.lpx-product-commit__list li:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE CHO THIẾT BỊ DI ĐỘNG (MOBILE)
   ========================================================================== */

@media (max-width: 992px) {
	.lpx-hero__title {
		font-size: 32px;
	}
	.lpx-trust__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	.lpx-cat-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.lpx-product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.lpx-standards__grid,
	.lpx-process__steps {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (max-width: 640px) {
	.lpx-hero {
		padding: 50px 16px;
	}
	.lpx-hero__title {
		font-size: 25px;
	}
	.lpx-hero__desc {
		font-size: 15px;
	}
	.lpx-hero__actions {
		flex-direction: column;
	}
	.lpx-btn {
		width: 100%;
	}
	.lpx-trust__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.lpx-cat-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.lpx-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.lpx-card__body {
		padding: 12px;
	}
	.lpx-card__title {
		font-size: 13px;
		height: 36px;
	}
	.lpx-card__price {
		font-size: 14px;
	}
	.lpx-section {
		padding: 40px 0;
	}
	.lpx-section-title {
		font-size: 22px;
	}
}
