/**
 * Frontend catalog Phụ Kiện VinFast.
 * Tất cả selector đều nằm trong namespace pkv- để không ảnh hưởng theme.
 */

.pkv-page,
.pkv-product-search,
.pkv-banner,
.pkv-category-grid,
.pkv-product-grid,
.pkv-site-footer {
	box-sizing: border-box;
	font-family: "Be Vietnam Pro", Arial, sans-serif;
	font-weight: 400;
}

.pkv-page *,
.pkv-product-search *,
.pkv-banner *,
.pkv-category-grid *,
.pkv-product-grid *,
.pkv-site-footer * {
	box-sizing: border-box;
}

.pkv-page {
	padding: 28px 16px 48px;
	color: #202124;
	background: #f7f8fa;
}

.pkv-container {
	width: min(100%, 1280px);
	margin: 0 auto;
}

.pkv-section-title,
.pkv-archive-title {
	margin: 0;
	color: #182230;
	font-weight: 700;
	line-height: 1.25;
}

.pkv-section-title {
	margin-bottom: 18px;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.pkv-archive-header {
	margin: 28px 0;
}

.pkv-archive-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.pkv-archive-description {
	max-width: 820px;
	margin-top: 12px;
	color: #5f6670;
	font-size: 1rem;
	line-height: 1.7;
}

.pkv-archive-description p:last-child {
	margin-bottom: 0;
}

.pkv-archive-categories,
.pkv-archive-products,
.pkv-related-products {
	margin-top: 38px;
}

.pkv-product-grid {
	display: grid;
	grid-template-columns: repeat(var(--pkv-columns, 5), minmax(0, 1fr));
	gap: 18px;
}

.pkv-product-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pkv-product-card:hover {
	transform: translateY(-3px);
	border-color: #dfe2e7;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.pkv-product-card__media {
	position: relative;
	margin: 10px 10px 0;
	overflow: hidden;
	border: 1px solid #f0f0f0;
	border-radius: 10px;
	background: #f7f8fa;
}

.pkv-product-image-link {
	display: flex;
	width: 100%;
	aspect-ratio: 1 / 1;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.pkv-product-card__image,
.pkv-single-product__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 220ms ease;
}

a.pkv-product-image-link:hover .pkv-product-card__image {
	transform: scale(1.025);
}

.pkv-product-image-placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: #7a828d;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
}

.pkv-product-card__body {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: 14px;
}

.pkv-product-card__title {
	display: -webkit-box;
	height: 2.8em;
	margin: 0 0 11px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: #20242a;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.4;
}

.pkv-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.pkv-product-card__title a:hover,
.pkv-product-card__title a:focus-visible {
	color: #c9342c;
	text-decoration: underline;
}

.pkv-product-card__vehicle {
	min-height: 1.45em;
	margin: 0 0 10px;
	overflow: hidden;
	color: #6b7280;
	font-size: 0.84rem;
	font-weight: 400;
	line-height: 1.45;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pkv-product-card__price,
.pkv-single-product__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 9px;
}

.pkv-product-card__price-slot {
	display: flex;
	min-height: 34px;
	align-items: flex-start;
}

.pkv-product-card__price {
	width: 100%;
}

.pkv-price-current {
	color: #ee4d2d;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.pkv-price-original {
	color: #89909a;
	font-size: 0.82rem;
}

.pkv-price-discount {
	color: #b62e25;
	font-size: 0.78rem;
	font-weight: 700;
}

.pkv-price-contact {
	color: #c9342c;
	font-size: 0.92rem;
	font-weight: 700;
}

.pkv-sold-count {
	margin: 8px 0 12px;
	color: #707782;
	font-size: 0.8rem;
}

.pkv-shopee-cta,
.pkv-product-card__cta,
.pkv-single-product__cta {
	background: #fff;
	color: #ee4d2d;
	border: 1px solid #ee4d2d;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-family: "Be Vietnam Pro", Arial, sans-serif;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background 150ms ease, border-color 150ms ease;
}

.pkv-product-card__cta {
	width: 100%;
	min-height: 40px;
	margin-top: auto;
	padding: 9px 8px;
	font-size: 0.76rem;
}

.pkv-shopee-cta {
	width: 100%;
	min-height: 42px;
	padding: 9px 14px;
	font-size: 0.84rem;
}

.pkv-single-product__cta {
	min-height: 50px;
	margin-top: 22px;
	padding: 13px 22px;
	font-size: 0.95rem;
}

.pkv-shopee-cta:hover,
.pkv-shopee-cta:focus-visible,
.pkv-product-card__cta:hover,
.pkv-product-card__cta:focus-visible,
.pkv-single-product__cta:hover,
.pkv-single-product__cta:focus-visible {
	background: #ee4d2d;
	color: #fff;
	border-color: #ee4d2d;
	text-decoration: none;
}

.pkv-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.pkv-category-card {
	display: flex;
	min-height: 94px;
	flex-direction: column;
	justify-content: center;
	padding: 17px;
	border: 1px solid #e1e5ea;
	border-radius: 11px;
	color: #222a34;
	background: #fff;
	box-shadow: 0 2px 10px rgba(24, 34, 48, 0.04);
	text-decoration: none;
}

.pkv-category-card:hover,
.pkv-category-card:focus-visible {
	border-color: #d93d31;
	color: #b92e25;
	text-decoration: none;
}

.pkv-category-card__name {
	font-size: 0.98rem;
	font-weight: 700;
}

.pkv-category-card__count {
	margin-top: 5px;
	color: #7a828d;
	font-size: 0.78rem;
}

.pkv-banner {
	width: 100%;
	margin: 0 auto 26px;
	overflow: hidden;
	border-radius: 12px;
}

.pkv-banner__link,
.pkv-banner__image {
	display: block;
	width: 100%;
}

.pkv-banner__image {
	height: auto;
}

.pkv-single-product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	gap: clamp(28px, 5vw, 64px);
	padding: clamp(18px, 3vw, 38px);
	border: 1px solid #e1e5ea;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 5px 22px rgba(24, 34, 48, 0.065);
}

.pkv-single-product__media {
	min-width: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #f1f3f5;
}

.pkv-single-product__media .pkv-product-image-link {
	aspect-ratio: 1 / 1;
}

.pkv-single-product__summary {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
}

.pkv-single-product__title {
	margin: 0 0 18px;
	color: #182230;
	font-size: clamp(1.55rem, 3vw, 2.3rem);
	font-weight: 700;
	line-height: 1.25;
}

.pkv-single-product__price .pkv-price-current {
	font-size: clamp(1.45rem, 3vw, 2rem);
}

.pkv-single-product__description {
	margin: 12px 0 18px;
	color: #515862;
	font-size: 1rem;
	line-height: 1.65;
}

.pkv-product-terms {
	margin-top: 9px;
	color: #58606b;
	font-size: 0.92rem;
	line-height: 1.55;
}

.pkv-product-terms a {
	color: #303b48;
	text-decoration: underline;
	text-decoration-color: #c4c9cf;
	text-underline-offset: 3px;
}

.pkv-product-search {
	width: 100%;
}

.pkv-product-search__form {
	display: flex;
	width: 100%;
	gap: 10px;
}

.pkv-product-search__input {
	min-width: 0;
	min-height: 46px;
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #cfd4da;
	border-radius: 8px;
	color: #20242a;
	background: #fff;
	font: inherit;
}

.pkv-product-search__input:focus {
	border-color: #d93d31;
	outline: 2px solid rgba(217, 61, 49, 0.18);
	outline-offset: 1px;
}

.pkv-product-search__button {
	min-height: 46px;
	padding: 10px 20px;
	border: 0;
	border-radius: 8px;
	color: #fff;
	background: #303b48;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.pkv-product-search__button:hover,
.pkv-product-search__button:focus-visible {
	background: #182230;
}

.pkv-product-search__title {
	margin: 28px 0 18px;
	color: #182230;
	font-size: 1.35rem;
}

.pkv-empty-state {
	margin: 18px 0;
	padding: 22px;
	border: 1px solid #e1e5ea;
	border-radius: 10px;
	color: #646c76;
	background: #fff;
	text-align: center;
}

.pkv-pagination {
	display: flex;
	justify-content: center;
	margin-top: 30px;
	gap: 6px;
}

.pkv-pagination .page-numbers {
	display: inline-flex;
	min-width: 38px;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	padding: 7px 10px;
	border: 1px solid #d7dbe0;
	border-radius: 7px;
	color: #303b48;
	background: #fff;
	text-decoration: none;
}

.pkv-pagination .page-numbers.current,
.pkv-pagination a.page-numbers:hover {
	border-color: #d93d31;
	color: #fff;
	background: #d93d31;
}

.pkv-site-footer {
	width: 100%;
	padding: 22px 16px;
	color: #dfe3e8;
	background: #182230;
	font-size: 0.9rem;
	text-align: center;
}

.pkv-site-footer__inner {
	width: min(100%, 1280px);
	margin: 0 auto;
}

.pkv-site-footer a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1279px) {
	.pkv-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.pkv-category-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.pkv-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

@media (max-width: 767px) {
	.pkv-page {
		padding: 20px 10px 36px;
	}

	.pkv-product-grid,
	.pkv-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.pkv-product-card {
		border-radius: 12px;
	}

	.pkv-product-card__body {
		padding: 11px;
	}

	.pkv-product-card__title {
		font-size: 0.9375rem;
	}

	.pkv-price-current {
		font-size: 16px;
	}

	.pkv-product-card__cta {
		min-height: 40px;
		font-size: 0.8rem;
	}

	.pkv-category-card {
		min-height: 82px;
		padding: 13px;
	}

	.pkv-single-product {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 14px;
	}

	.pkv-product-search__form {
		gap: 7px;
	}

	.pkv-product-search__button {
		padding-inline: 13px;
	}
}

@media (max-width: 479px) {
	.pkv-product-grid,
	.pkv-category-grid {
		grid-template-columns: 1fr;
	}

	.pkv-product-card__cta {
		padding-inline: 8px;
		font-size: 0.8rem;
	}

	.pkv-product-search__form {
		flex-direction: column;
	}
}
