/* Products page — Home Plus */

.products-page {
	--hp-blue-light: #88A4CC;
	--hp-blue-mid: #203E7A;
	--hp-blue-dark: #031749;
	--hp-red: #EB0928;
}


/* Header over hero — no background bar */
.site-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
	width: 100%;
	background: transparent !important;
	box-shadow: none;
}

/* —— Hero —— */
.products-hero {
	position: relative;
	min-height: clamp(420px, 72vh, 680px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--hp-blue-dark);
	color: #fff;
}

.products-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.products-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.products-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 620px;
	padding: 7.5rem 1.5rem 4rem;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: left;
	/* Physical left: clear side of splash banner */
	margin-left: max(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem));
	margin-right: auto;
}

.products-hero__badge {
	display: inline-block;
	padding: 0.35rem 0.95rem;
	border: 1.5px solid var(--hp-red);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(4px);
	font-size: 0.78rem;
	font-weight: 500;
	margin-bottom: 1.15rem;
	color: #fff;
}

.products-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 3.6vw, 2.65rem);
	font-weight: 800;
	line-height: 1.45;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.55rem;
	justify-content: flex-end;
}

.products-hero__title-accent {
	color: var(--hp-red);
}

.products-hero__title-main {
	color: #fff;
}

.products-hero__lead {
	margin: 0;
	font-size: clamp(1.05rem, 1.7vw, 1.2rem);
	font-weight: 500;
	line-height: 1.9;
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.95);
}

.products-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1.4rem;
	background: var(--hp-red);
	color: #fff;
	padding: 0.72rem 1.45rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	box-shadow: 0 8px 22px rgba(235, 9, 40, 0.35);
	text-decoration: none;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.products-hero__cta:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.products-hero__cta span,
.cat-card__link span,
.products-info__more span {
	display: inline-block;
	font-size: 1.1em;
	line-height: 1;
}

/* —— Categories —— */
.product-categories {
	background: linear-gradient(180deg, #6f8fba 0%, #88A4CC 45%, #9bb3d4 100%);
	padding: 3.2rem 1.5rem 3.8rem;
}

.product-categories__title {
	margin: 0 0 2rem;
	text-align: center;
	color: #fff;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 700;
	text-shadow: 0 2px 10px rgba(3, 23, 73, 0.18);
}

.product-categories__grid {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1.15rem;
}

.cat-card {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	min-height: 290px;
	box-shadow: 0 10px 28px rgba(3, 23, 73, 0.18);
	background-color: var(--hp-blue-mid);
	background-image: var(--cat-bg);
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
	isolation: isolate;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(3, 23, 73, 0.12) 0%,
		rgba(32, 62, 122, 0.08) 42%,
		rgba(32, 62, 122, 0) 68%
	);
	z-index: 0;
	pointer-events: none;
}

.cat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 34px rgba(3, 23, 73, 0.24);
}

.cat-card--wide {
	grid-column: span 3;
	min-height: 320px;
}

.cat-card--third {
	grid-column: span 2;
	min-height: 280px;
}

.cat-card__body {
	position: relative;
	z-index: 1;
	padding: 1.5rem 1.4rem;
	max-width: 58%;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: left;
	height: 100%;
	min-height: inherit;
	/* Physical left: negative space of product shots */
	margin-left: 0;
	margin-right: auto;
}

.cat-card__title {
	margin: 0 0 0.55rem;
	color: #fff;
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	font-weight: 800;
	line-height: 1.35;
}

.cat-card__desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.86rem;
	font-weight: 400;
	line-height: 1.7;
}

.cat-card__link {
	margin-top: 0.65rem;
	padding-top: 3px;
	color: #fff;
	font-size: 0.88rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	text-decoration: underline;
	text-decoration-color: #fff;
	text-underline-offset: 3px;
	transition: opacity 0.2s ease;
}

.cat-card__link:hover {
	opacity: 0.85;
}

/* —— Info —— */
.products-info {
	background: #fff;
	padding: 3.5rem 1.5rem 0;
	overflow-x: clip;
}

.products-info__inner {
	max-width: 1140px;
	margin: 0 auto;
	text-align: center;
}

.products-info__title {
	margin: 0 0 1.2rem;
	color: var(--hp-blue-dark);
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 800;
	line-height: 1.5;
}

.products-info__text {
	margin: 0 0 1.6rem;
	color: var(--hp-blue-dark);
	font-size: 0.98rem;
	font-weight: 400;
	line-height: 2;
	max-width: none;
	width: 100%;
	opacity: 0.92;
}

.products-info__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100vw;
	max-width: 100vw;
	margin: 0 calc(50% - 50vw);
	padding: 2rem 1.5rem 1rem;
	background: var(--hp-blue-light);
	color: #fff;
	border-radius: 0;
	font-weight: 700;
	font-size: 0.98rem;
	transition: opacity 0.2s ease;
	box-sizing: border-box;
}

.products-info__more:hover {
	opacity: 0.9;
	background: var(--hp-blue-light);
	color: #fff;
}

.products-info__box {
	width: 100vw;
	max-width: 100vw;
	margin: 0 calc(50% - 50vw);
	padding: 0 max(1.5rem, calc(50vw - 570px)) 2.5rem;
	background: var(--hp-blue-light);
	border-radius: 0;
	box-shadow: none;
	border: none;
	box-sizing: border-box;
}

.products-info__box p {
	margin: 0;
	padding: 1.5rem 1.75rem;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	color: var(--hp-blue-dark);
	font-size: 0.94rem;
	line-height: 2;
	text-align: right;
	opacity: 1;
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
	.products-hero__badge {
		animation: hp-fade-up 0.7s ease both;
	}

	.products-hero__title {
		animation: hp-fade-up 0.8s ease 0.08s both;
	}

	.products-hero__lead {
		animation: hp-fade-up 0.8s ease 0.16s both;
	}

	.products-hero__cta {
		animation: hp-fade-up 0.8s ease 0.24s both;
	}

	.cat-card {
		animation: hp-fade-up 0.65s ease both;
	}

	.cat-card:nth-child(1) { animation-delay: 0.05s; }
	.cat-card:nth-child(2) { animation-delay: 0.12s; }
	.cat-card:nth-child(3) { animation-delay: 0.18s; }
	.cat-card:nth-child(4) { animation-delay: 0.24s; }
	.cat-card:nth-child(5) { animation-delay: 0.3s; }
}

@keyframes hp-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* —— Responsive —— */
@media (max-width: 900px) {
	.product-categories__grid {
		grid-template-columns: 1fr 1fr;
	}

	.cat-card--wide,
	.cat-card--third {
		grid-column: span 1;
		min-height: 260px;
	}

	.cat-card__body {
		max-width: 62%;
	}
}

@media (max-width: 768px) {
	.products-hero {
		min-height: 560px;
		align-items: flex-end;
	}

	.products-hero__media img {
		object-position: center top;
	}

	.products-hero__content {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		padding: 6.5rem 1.25rem 2.5rem;
		background: linear-gradient(
			180deg,
			rgba(3, 23, 73, 0) 0%,
			rgba(3, 23, 73, 0.55) 35%,
			rgba(3, 23, 73, 0.82) 100%
		);
		width: 100%;
	}

	.products-hero__title {
		font-size: 1.55rem;
	}

	.product-categories {
		padding: 2.4rem 1rem 2.8rem;
	}
}

@media (max-width: 560px) {
	.product-categories__grid {
		grid-template-columns: 1fr;
	}

	.cat-card,
	.cat-card--wide,
	.cat-card--third {
		min-height: 240px;
	}

	.cat-card__body {
		max-width: 70%;
		padding: 1.2rem 1.1rem;
	}

	.products-info {
		padding: 2.5rem 1rem 0;
	}

	.products-info__more {
		padding: 1.6rem 1rem 0.85rem;
	}

	.products-info__box {
		padding: 0 1rem 2rem;
	}

	.products-info__box p {
		padding: 1.15rem 1rem;
	}
}
