/* IWT CD Gun Series page (product 1937). Loaded on that product only. Uses the .pv-titlebar / .pv-wrap shell. */

/* Picker */
.gs-picker {
	padding-block: 32px 8px;
}
.gs-picker__title {
	margin: 0 0 4px;
	color: var(--iwt-navy);
	font-size: 1.5rem;
}
.gs-picker__hint {
	margin: 0 0 16px;
	color: var(--iwt-ink);
}
.gs-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gs-cards li {
	margin: 0;
}
.gs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	padding: 10px 12px 12px;
	color: #fff;
	text-decoration: none;
	background: var(--iwt-navy);
	border: 2px solid var(--iwt-navy-line);
	border-radius: 8px;
	box-sizing: border-box;
}
.gs-card:hover,
.gs-card:focus-visible {
	color: #fff;
	border-color: var(--iwt-sky);
}
.gs-card.is-active {
	border-color: var(--iwt-sky);
	box-shadow: 0 0 0 1px var(--iwt-sky);
}
.gs-card:focus-visible {
	outline: 3px solid var(--iwt-sky);
	outline-offset: 2px;
}
.gs-card__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 72px;
	margin-bottom: 8px;
	background: #fff;
	border-radius: 4px;
}
.gs-card__img img {
	width: auto;
	max-width: 100%;
	height: 100%;
	padding: 4px;
	box-sizing: border-box;
	object-fit: contain;
}
.gs-card__name {
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
}
.gs-card__type {
	font-size: 0.875rem;
}
.gs-card__price {
	margin-top: 4px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* One gun */
.gs-guns {
	display: grid;
	gap: 0;
	padding-block: 0 24px;
}
.gs-gun {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px 48px;
	padding-block: 32px;
	scroll-margin-top: 24px;
}
.gs-gun[hidden] {
	display: none;
}
.gs-gun__media,
.gs-gun__body {
	flex: 1 1 400px;
	min-width: 0;
}
.gs-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 380px;
	background: var(--iwt-steel);
	border-radius: 8px;
	overflow: hidden;
}
.gs-view {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 380px;
	padding: 16px;
	box-sizing: border-box;
}
.gs-view[hidden] {
	display: none;
}
.gs-view img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 380px;
	height: auto;
	object-fit: contain;
}
.gs-view--3d {
	padding: 0;
	background: radial-gradient(ellipse at 50% 38%, #1d4a68 0%, #0c344e 52%, #082638 100%);
}
.gs-view--3d model-viewer {
	width: 100%;
	height: 380px;
	--poster-color: transparent;
	background: transparent;
}
.gs-view__hint {
	position: absolute;
	right: 12px;
	bottom: 10px;
	color: #9fc3dc;
	font-size: 0.75rem;
	pointer-events: none;
}
.gs-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.gs-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 2px;
	color: var(--iwt-navy);
	font-weight: 700;
	background: var(--iwt-steel);
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
}
.gs-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.gs-thumb.is-active {
	border-color: var(--iwt-navy);
}
.gs-thumb:focus-visible,
.gs-gun__add:focus-visible {
	outline: 3px solid #9fc3dc;
	outline-offset: 2px;
}

/* Copy and buy box */
.gs-gun__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.gs-gun__body > * {
	margin: 0;
}
.gs-gun__eyebrow {
	color: #1b6a9c;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.gs-gun__title {
	color: var(--iwt-navy);
}
.gs-gun__best {
	color: var(--iwt-ink);
}
.gs-gun__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}
.gs-gun__specs li {
	margin: 0;
	padding: 4px 12px;
	color: var(--iwt-navy);
	font-size: 0.875rem;
	background: var(--iwt-steel);
	border-radius: 999px;
}
.gs-gun__price {
	color: var(--iwt-navy);
	font-size: 1.5rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.gs-gun__cart {
	display: flex;
	gap: 12px;
	margin: 6px 0 0;
}
.gs-gun__cart .gs-gun__qty {
	flex: 0 0 76px;
	width: 76px;
	max-width: 76px;
	min-height: 48px;
	text-align: center;
}
.gs-gun__add {
	min-height: 48px;
	padding: 0 28px;
	white-space: nowrap;
	color: #fff;
	font-weight: 600;
	background: var(--iwt-navy);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}
.gs-gun__add:hover {
	background: var(--iwt-navy-deep);
}

/* One content width for the whole page: breadcrumb, picker, gun, tabs. The theme container adds its own gutter
   (about 42px a side) to the 1200px, and the picker/gun block simply fills it. */
body.iwt-gun-series #content > .ast-container {
	max-width: 1284px;
	margin-inline: auto;
}
.gs-page .pv-wrap {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

/* Phone: one swipeable row, so the gun itself stays near the top. */
@media (max-width: 599px) {
	.gs-cards {
		display: flex;
		gap: 10px;
		margin-inline: -16px;
		padding: 2px 16px 10px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scroll-padding-inline: 16px;
	}
	.gs-cards li {
		flex: 0 0 132px;
		scroll-snap-align: start;
	}
}
@media (min-width: 600px) {
	.gs-cards {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media (min-width: 1100px) {
	.gs-cards {
		grid-template-columns: repeat(8, 1fr);
	}
}
@media (max-width: 921px) {
	.gs-gun {
		flex-direction: column;
		align-items: stretch;
		padding-block: 28px;
	}
	.gs-stage,
	.gs-view {
		min-height: 300px;
	}
	.gs-view--3d model-viewer {
		height: 300px;
	}
}
