/*
 * Product list on category archives (template-parts/product-groups.php).
 * Measurements from Figma 33:22 at 1920px: 1240px column, two 582px halves with a 76px gap,
 * product images 592×627.
 */

.gx-plist {
	--gx-plist-gap: clamp(32px, 4vw, 76px);
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(64px, 7vw, 140px) 0 clamp(80px, 8vw, 160px);
	font-family: "Raleway", sans-serif;
	color: #282A44;
}

@media (max-width: 1288px) {
	.gx-plist {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 767px) {
	.gx-plist {
		padding-left: 16px;
		padding-right: 16px;
	}
}

.gx-plist__group + .gx-plist__group {
	margin-top: clamp(96px, 12vw, 240px);
}

.gx-plist__group-title {
	margin: 0 0 clamp(48px, 7vw, 140px);
	font-family: inherit;
	font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
}

.gx-plist__empty {
	font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.5rem);
}

/* ---------- Product ---------- */

.gx-product__intro,
.gx-product__detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: var(--gx-plist-gap);
	align-items: center;
}

.gx-product__detail {
	margin-top: clamp(40px, 4vw, 80px);
	align-items: start;
}

.gx-product__name {
	margin: 0;
	font-family: inherit;
	font-size: clamp(2.5rem, 1.6rem + 2.8vw, 4rem);
	font-weight: 600;
	line-height: 1.15;
	color: inherit;
}

.gx-product__name a {
	color: inherit;
	text-decoration: none;
}

.gx-product__name a:hover {
	color: #FF0033;
}

.gx-product__subtitle,
.gx-product__desc {
	font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.5rem);
	line-height: 1.4;
}

.gx-product__subtitle {
	margin: clamp(24px, 3vw, 50px) 0 0;
	max-width: 575px;
}

.gx-product__subtitle p,
.gx-product__desc p {
	margin: 0 0 1em;
}

.gx-product__subtitle > :last-child,
.gx-product__desc > :last-child {
	margin-bottom: 0;
}

.gx-product__desc strong,
.gx-product__desc b {
	font-weight: 700;
}

.gx-product__media {
	margin: 0;
	aspect-ratio: 592 / 627;
	overflow: hidden;
}

.gx-product__img {
	display: block;
	width: 100%;
	height: 100%;
}

.gx-product__media--cover .gx-product__img {
	object-fit: cover;
}

.gx-product__media--contain .gx-product__img {
	object-fit: contain;
}

.gx-product__body {
	padding-top: clamp(0px, 3vw, 67px);
}

/* Key features: 35px lines with the red brand corner as marker */
.gx-product__features {
	list-style: none;
	margin: clamp(24px, 2.5vw, 34px) 0 0;
	padding: 0;
}

.gx-product__features li {
	position: relative;
	padding-left: 46px;
	font-size: clamp(1.25rem, 0.9rem + 1vw, 2.1875rem);
	line-height: 1.17;
}

.gx-product__features li + li {
	margin-top: clamp(20px, 2.7vw, 52px);
}

.gx-product__features li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 0.35em;
	width: 16px;
	height: 16px;
	border-top: 6px solid #FF0033;
	border-left: 6px solid #FF0033;
	box-sizing: border-box;
}

/* ---------- Separators + CTA ---------- */

.gx-plist__sep {
	height: 0;
	margin: clamp(64px, 7vw, 139px) 0 clamp(72px, 9vw, 174px);
	border: 0;
	border-top: 1px solid #000000;
}

.gx-plist__group .gx-plist__sep:last-of-type {
	margin-bottom: 64px;
}

.gx-plist__cta {
	margin: 0;
	text-align: center;
}

/* Navy button with the red brand corner (same look as the V4 class gx-cta).
   The parent in the selector beats the Kit's link colour (.elementor-kit-N a). */
:is(.gx-plist, .gx-cat, .gx-single) a.gx-btn {
	position: relative;
	display: inline-block;
	padding: 12px 20px 12px 19px;
	font-family: "Raleway", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #FFFFFF;
	background-color: #282A44;
	text-decoration: none;
	transition: background-color 0.2s;
}

:is(.gx-plist, .gx-cat, .gx-single) a.gx-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	border-top: 6px solid #FF0033;
	border-left: 6px solid #FF0033;
	box-sizing: border-box;
}

:is(.gx-plist, .gx-cat, .gx-single) a.gx-btn:hover,
:is(.gx-plist, .gx-cat, .gx-single) a.gx-btn:focus-visible {
	color: #FFFFFF;
	background-color: #41435A;
}

/* ---------- Tablet / mobile: stack, image first ---------- */

@media (max-width: 1024px) {
	.gx-product__intro,
	.gx-product__detail {
		grid-template-columns: 1fr;
		row-gap: 32px;
	}

	.gx-product__intro .gx-product__media {
		order: -1;
	}

	.gx-product__media {
		max-width: 592px;
		width: 100%;
		margin: 0 auto;
	}

	.gx-product__body {
		padding-top: 0;
	}

	.gx-product__features li {
		padding-left: 36px;
	}
}

/* =========================================================================
 * Category pages (template-parts/category-sections.php, Figma 49:1555):
 * alternating 575×321 image / text blocks, highlight grid, closing CTA.
 * ========================================================================= */

.gx-cat {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(64px, 6.6vw, 127px) 0 clamp(80px, 8vw, 160px);
	font-family: "Raleway", sans-serif;
	color: #282A44;
}

@media (max-width: 1288px) {
	.gx-cat {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 767px) {
	.gx-cat {
		padding-left: 16px;
		padding-right: 16px;
	}
}

.gx-cat__block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: clamp(32px, 4.7vw, 91px);
	align-items: center;
}

.gx-cat__block + .gx-cat__block {
	margin-top: clamp(72px, 10.8vw, 208px);
}

/* Even blocks: text left, image right */
.gx-cat__block:nth-of-type(even) .gx-cat__media {
	order: 2;
}

.gx-cat__block--no-media .gx-cat__body {
	grid-column: 1 / -1;
	max-width: 575px;
}

.gx-cat__media {
	display: block;
	aspect-ratio: 575 / 321;
	overflow: hidden;
}

.gx-cat__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gx-cat__media:hover .gx-cat__img {
	transform: scale(1.03);
}

.gx-cat__title {
	margin: 0;
	font-family: inherit;
	font-size: clamp(2.5rem, 1.6rem + 2.8vw, 4rem);
	font-weight: 600;
	line-height: 1.15;
}

.gx-cat .gx-cat__title a {
	color: inherit;
	text-decoration: none;
}

.gx-cat .gx-cat__title a:hover {
	color: #FF0033;
}

.gx-cat__text {
	margin: clamp(20px, 1.7vw, 33px) 0 0;
	font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.5rem);
	line-height: 1.4;
}

.gx-cat__text strong {
	font-weight: 700;
}

/* "Learn more": black bold text with the red brand corner */
.gx-cat a.gx-link {
	position: relative;
	display: inline-block;
	margin-top: 19px;
	padding: 12px 0 0 19px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #000000;
	text-decoration: none;
}

.gx-cat a.gx-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	border-top: 6px solid #FF0033;
	border-left: 6px solid #FF0033;
	box-sizing: border-box;
}

.gx-cat a.gx-link:hover,
.gx-cat a.gx-link:focus-visible {
	color: #FF0033;
}

/* Highlights ("Built for Precision") */
.gx-cat__highlights {
	margin-top: clamp(96px, 13.4vw, 257px);
}

.gx-cat__highlights-title {
	margin: 0 0 clamp(48px, 5.6vw, 108px);
	font-family: inherit;
	font-size: clamp(2.5rem, 1.6rem + 2.8vw, 4rem);
	font-weight: 400;
	line-height: 1.15;
}

.gx-highlights {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: clamp(32px, 4.7vw, 91px);
	row-gap: clamp(40px, 3.3vw, 64px);
	margin: 0;
	padding: 0 0 0 31px;
	list-style: none;
}

.gx-highlights__item {
	position: relative;
	padding-left: 46px;
}

.gx-highlights__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.37em;
	width: 16px;
	height: 16px;
	border-top: 6px solid #FF0033;
	border-left: 6px solid #FF0033;
	box-sizing: border-box;
}

.gx-highlights__title {
	margin: 0;
	font-family: inherit;
	font-size: clamp(1.25rem, 0.9rem + 1vw, 2.1875rem);
	font-weight: 400;
	line-height: 1.17;
	color: inherit;
}

.gx-highlights__text {
	margin: clamp(12px, 1.35vw, 26px) 0 0;
	max-width: 467px;
	font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.5rem);
	line-height: 1.3;
}

.gx-cat__sep {
	margin-top: clamp(64px, 7vw, 139px);
}

.gx-cat .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.gx-cat__block {
		grid-template-columns: 1fr;
		row-gap: 28px;
	}

	.gx-cat__block:nth-of-type(even) .gx-cat__media {
		order: 0;
	}

	.gx-highlights {
		grid-template-columns: 1fr;
		padding-left: 0;
	}

	.gx-highlights__item {
		padding-left: 36px;
	}
}


/* =========================================================================
 * Accessories pages (template-parts/accessories.php, Figma 68:4576).
 * Wrapper also has .gx-cat, so container, highlights, "Learn more" and CTA styles are shared.
 * ========================================================================= */

.gx-acc__intro-title {
	margin: clamp(48px, 7vw, 135px) 0 0;
	max-width: 676px;
	font-family: inherit;
	font-size: clamp(2.5rem, 1.6rem + 2.8vw, 4rem);
	font-weight: 600;
	line-height: 1.15;
	color: inherit;
}

.gx-acc__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: clamp(32px, 4.7vw, 91px);
	row-gap: 1em;
	font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.5rem);
	line-height: 1.4;
}

.gx-acc__cols p {
	margin: 0;
	max-width: 575px;
}

.gx-acc__cols strong {
	font-weight: 700;
}

.gx-acc__intro {
	margin-top: clamp(24px, 2.6vw, 50px);
}

/* Full-bleed strip of square photos, 13px apart. 100vw includes the scrollbar, so clip the overflow. */
body:has(.gx-acc__strip) {
	overflow-x: clip;
}

.gx-acc__strip {
	display: grid;
	grid-template-columns: repeat(var(--gx-strip-count, 6), 1fr);
	gap: 13px;
	width: 100vw;
	margin: clamp(48px, 5vw, 96px) 0 0 calc(50% - 50vw);
}

.gx-acc__strip-item {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #D9D9D9;
}

.gx-acc__strip-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gx-acc__range {
	margin-top: clamp(64px, 6.6vw, 126px);
}

.gx-acc__range-label {
	margin: 0 0 clamp(40px, 5vw, 97px);
	font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.5rem);
	font-weight: 700;
}

.gx-acc__outro {
	margin-top: clamp(56px, 4.2vw, 80px);
}

@media (max-width: 1024px) {
	.gx-acc__cols {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.gx-acc__strip {
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
	}
}

/* =========================================================================
 * Single product (template-parts/product-single.php). No Figma design:
 * reuses the product-list pieces (.gx-product__*) inside a 1240px column.
 * ========================================================================= */

.gx-single {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(32px, 3.5vw, 64px) 0 clamp(80px, 8vw, 160px);
	font-family: "Raleway", sans-serif;
	color: #282A44;
}

@media (max-width: 1288px) {
	.gx-single {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 767px) {
	.gx-single {
		padding-left: 16px;
		padding-right: 16px;
	}
}

.gx-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: clamp(32px, 3.5vw, 64px);
	font-size: 15px;
	color: #41435A;
}

.gx-single .gx-crumbs a {
	color: inherit;
	text-decoration: none;
}

.gx-single .gx-crumbs a:hover {
	color: #FF0033;
}

.gx-single__main {
	margin-top: 0;
}

.gx-single__lead {
	margin: 0 0 1em;
	font-size: clamp(1.25rem, 1rem + 0.7vw, 1.75rem);
	line-height: 1.35;
}

.gx-single__subtitle {
	margin: clamp(32px, 3vw, 56px) 0 0;
	font-family: inherit;
	font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem);
	font-weight: 700;
	color: inherit;
}

.gx-single .gx-product__features {
	margin-top: 20px;
}

.gx-single__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin: clamp(32px, 3vw, 56px) 0 0;
}

/* "Learn more"-style links (same as category pages) */
.gx-single a.gx-link {
	position: relative;
	display: inline-block;
	padding: 12px 0 0 19px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #000000;
	text-decoration: none;
}

.gx-single a.gx-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	border-top: 6px solid #FF0033;
	border-left: 6px solid #FF0033;
	box-sizing: border-box;
}

.gx-single a.gx-link:hover {
	color: #FF0033;
}

.gx-single__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 13px;
	margin-top: clamp(48px, 5vw, 96px);
}

.gx-single__thumb {
	display: block;
	aspect-ratio: 1 / 1;
	background: #F4F4F6;
	overflow: hidden;
}

.gx-single__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.gx-single__thumb:hover .gx-single__thumb-img {
	transform: scale(1.04);
}

.gx-single__video {
	margin-top: clamp(48px, 5vw, 96px);
}

.gx-single__video iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.gx-single__related {
	margin-top: clamp(72px, 7vw, 140px);
}

.gx-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 2.5vw, 48px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gx-single .gx-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.gx-card__media {
	display: block;
	aspect-ratio: 592 / 627;
	background: #FFFFFF;
	overflow: hidden;
}

.gx-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gx-card__name {
	display: block;
	margin-top: 16px;
	font-size: clamp(1.25rem, 1rem + 0.7vw, 1.75rem);
	font-weight: 600;
	line-height: 1.2;
}

.gx-single .gx-card__link:hover .gx-card__name {
	color: #FF0033;
}

@media (max-width: 767px) {
	.gx-cards {
		grid-template-columns: 1fr 1fr;
	}
}
