.site-header .nav-item.is-active > .nav-link::after,
.site-header .nav-item.is-active > .nav-link::before {
	transform: scaleX(1);
}

.site-header .nav-item.is-active > .nav-link::before {
	transform: translateY(-22%) rotate(225deg);
}

.products-hero {
	position: relative;
	min-height: 420px;
	background: url('../images/banner 1.png') center/cover no-repeat;
	overflow: hidden;
}

.products-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(7, 32, 71, 0.72) 0%, rgba(17, 84, 170, 0.36) 55%, rgba(255, 255, 255, 0) 100%);
}

.products-hero-content {
	position: relative;
	z-index: 1;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 88px 0 56px;
	color: #fff;
}

.products-hero-content h1 {
	margin: 0 0 12px;
	font-size: clamp(52px, 8vw, 86px);
	line-height: 0.96;
	font-weight: 700;
}

.products-hero-content p {
	margin: 0 0 28px;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.product-listing {
	background: linear-gradient(rgba(255, 255, 255, 0.985), rgba(255, 255, 255, 0.985)), url('/public/static/img/b1.png') center/cover no-repeat;
	padding-top: 44px;
}

.product-heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-bottom: 34px;
}

.product-heading h2 {
	margin: 0;
	font-size: clamp(38px, 5vw, 58px);
	line-height: 1;
	font-weight: 700;
	color: #3578d5;
}

.product-heading-line {
	width: 56px;
	height: 3px;
	border-radius: 999px;
	background: #7eaaf0;
}

.product-category-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 0;
	position: sticky;
	top: var(--site-header-height, 0px);
	z-index: 10;
	padding: 12px 0;
	background: #fff;
}

.product-load-state {
	min-height: 24px;
	margin-top: 36px;
	color: #777;
	font-size: 14px;
	text-align: center;
}

.category-tab,
.subcategory-tab,
.pagination-button,
.pagination-number {
	font: inherit;
	cursor: pointer;
}

.category-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid rgba(98, 115, 145, 0.48);
	border-radius: 16px;
	background: #fff;
	color: #6a768c;
	font-size: 16px;
	text-decoration: none;
	transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.category-tab.is-active {
	background: #3f7fd4;
	border-color: #3f7fd4;
	border-radius: 16px 16px 0 0;
	color: #fff;
	box-shadow: none;
}

.product-subcategory-panel {
	display: none;
	margin-bottom: 28px;
	padding: 12px 16px;
	border-radius: 0 16px 16px 16px;
	background: #3f7fd4;
	box-shadow: 0 18px 34px rgba(63, 127, 212, 0.18);
}

.product-subcategory-panel.is-open {
	display: block;
	position: sticky;
	top: calc(var(--site-header-height, 0px) + var(--product-category-tabs-height, 0px));
	z-index: 9;
}

.product-subcategory-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px 16px;
}

.subcategory-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: rgba(255, 255, 255, 0.84);
	font-size: 15px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: background 0.22s ease, color 0.22s ease;
}

.subcategory-tab.is-active {
	position: relative;
	background: transparent;
	color: #fff;
}

.subcategory-tab.is-active::after {
	content: "";
	position: absolute;
	bottom: 6px;
	left: 50%;
	width: min(calc(100% - 20px), 280px);
	height: 2px;
	background: #fff;
	transform: translateX(-50%);
}

.product-list-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 18px;
}

.listing-card {
	border: 1px solid rgba(29, 84, 169, 0.16);
	border-radius: 8px;
	background: #fff;
	padding: 10px 10px 8px;
	box-shadow: 0 10px 24px rgba(29, 84, 169, 0.06);
	min-width: 0;
}

.listing-card-media {
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	background: #fff;
	display: grid;
	place-items: center;
	overflow: hidden;
	margin-bottom: 10px;
}

.listing-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.listing-card-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #eb6a1f;
	letter-spacing: 0;
	text-transform: uppercase;
}

.listing-card-brand::before {
	/* content: attr(data-mark);
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid currentColor;
	font-size: 9px;
	line-height: 1;
	text-transform: uppercase; */
}

.listing-card h3 {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 500;
	color: #253850;
}

.listing-card p {
	margin: 0;
	font-size: 12px;
	line-height: 1.55;
	color: #8f9aad;
	word-break: break-word;
}

.product-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 38px;
	flex-wrap: wrap;
}

.pagination-button,
.pagination-number,
.pagination-ellipsis {
	min-width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
	color: #4f5f7b;
}

.pagination-button,
.pagination-number {
	border: 1px solid rgba(58, 104, 187, 0.35);
	background: #fff;
	padding: 0;
}

.pagination-button:hover,
.pagination-number:hover,
.pagination-number.is-active {
	border-color: #3776d2;
	color: #3776d2;
	background: rgba(55, 118, 210, 0.06);
}

.pagination-button[disabled] {
	opacity: 0.38;
	cursor: default;
}

.pagination-button::before {
	content: '';
	width: 9px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.pagination-prev::before {
	transform: rotate(-135deg);
}

.pagination-next::before {
	transform: rotate(45deg);
}

.pagination-ellipsis {
	min-width: auto;
	height: auto;
	border-radius: 0;
}

@media (max-width: 1100px) {
	.product-category-tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-subcategory-tabs,
	.product-list-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.products-hero,
	.products-hero-content {
		min-height: 360px;
	}

	.products-hero-content {
		padding: 76px 0 48px;
	}

	.products-hero-content h1 {
		font-size: clamp(42px, 9vw, 64px);
	}

	.product-category-tabs,
	.product-subcategory-tabs,
	.product-list-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-category-tabs .product-subcategory-panel {
		grid-column: 1 / -1;
		margin-bottom: 0;
	}

	.product-list-grid {
		gap: 22px 16px;
	}
}

@media (max-width: 560px) {
	.product-listing {
		padding-top: 34px;
	}

	.product-heading {
		gap: 10px;
		margin-bottom: 26px;
	}

	.product-heading h2 {
		font-size: 34px;
	}

	.product-category-tabs {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.category-tab {
		min-height: 44px;
		font-size: 15px;
	}

	.product-subcategory-panel {
		padding: 12px;
		margin-bottom: 22px;
	}

	.product-subcategory-tabs,
	.product-list-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.subcategory-tab {
		min-height: 40px;
		font-size: 14px;
		padding: 8px;
	}

	.listing-card {
		padding: 8px 8px 10px;
	}

	.listing-card-brand {
		font-size: 12px;
		gap: 6px;
	}

	.listing-card-brand::before {
		width: 24px;
		height: 24px;
		font-size: 8px;
	}

	.listing-card h3 {
		font-size: 14px;
	}

	.listing-card p {
		font-size: 11px;
	}

	.product-pagination {
		gap: 8px;
		margin-top: 28px;
	}

	.pagination-button,
	.pagination-number {
		min-width: 32px;
		height: 32px;
		font-size: 13px;
	}
}

@media (max-width: 420px) {
	.products-hero,
	.products-hero-content {
		min-height: 320px;
	}

	.products-hero-content h1 {
		font-size: 34px;
	}

	.products-hero-content p {
		font-size: 15px;
		margin-bottom: 22px;
	}

	.product-subcategory-tabs,
	.product-list-grid {
		grid-template-columns: 1fr;
	}
}
