/* Homepage sections: hero, promo pills, marquee, banners, tiles, ribbons, product carousels. */

.gs-home {
	padding-bottom: 40px;
}

.gs-row {
	margin: 0 auto 30px;
}

/* ---------- promo pills ---------- */
.gs-pills-wrap {
	position: relative;
	margin: 30px auto 34px;
	max-width: var(--gs-content);
	padding: 0 16px;
}

.gs-pills {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 0 6px;
}

.gs-pills::-webkit-scrollbar {
	display: none;
}

.gs-pill {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.gs-pill img {
	display: block;
	width: 250px;
	height: auto;
	border-radius: 999px;
}

/* ---------- hero carousel ---------- */
.gs-hero {
	position: relative;
	max-width: var(--gs-content);
	margin: 0 auto 30px;
	padding: 0 16px;
}

.gs-hero .gs-track {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 1400 / 358;
}

.gs-hero .gs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .45s ease;
	pointer-events: none;
}

.gs-hero .gs-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.gs-hero .gs-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- arrows + dots ---------- */
.gs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: rgba(255, 255, 255, .95);
	color: #333;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.gs-arrow:hover {
	background: #fff;
	color: var(--gs-blue);
}

.gs-prev {
	left: 2px;
}

.gs-next {
	right: 2px;
}

/* carousel arrows sit outside the cards so they never cover a price */
.gs-pslider-body .gs-prev {
	left: -16px;
}

.gs-pslider-body .gs-next {
	right: -16px;
}

.gs-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 14px;
	min-height: 8px;
}

.gs-dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #cfcfcf;
	cursor: pointer;
}

.gs-dots button.is-active {
	background: var(--gs-blue);
}

/* ---------- marquee headline ---------- */
.gs-marquee {
	overflow: hidden;
	margin: 12px auto 18px;
	max-width: var(--gs-content);
	padding: 0 16px;
}

.gs-marquee span {
	display: block;
	white-space: nowrap;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: .5px;
	color: var(--gs-blue);
	text-align: center;
}

/* ---------- banner rows ---------- */
.gs-banner {
	display: block;
	overflow: hidden;
	border-radius: 10px;
}

.gs-banner img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- grids ---------- */
.gs-cols {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gs-gap);
}

.gs-cols-2 > * {
	flex: 0 0 calc((100% - var(--gs-gap)) / 2);
}

.gs-cols-3 > * {
	flex: 0 0 calc((100% - var(--gs-gap) * 2) / 3);
}

.gs-cols-4 > * {
	flex: 0 0 calc((100% - var(--gs-gap) * 3) / 4);
}

.gs-cols-5 > * {
	flex: 0 0 calc((100% - var(--gs-gap) * 4) / 5);
}

.gs-tile {
	display: block;
}

.gs-tile img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ---------- red ribbon ---------- */
.gs-ribbon {
	background: var(--gs-red);
	color: #fff;
	height: 76px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	padding: 0 24px;
}

.gs-row > a .gs-ribbon {
	transition: filter .2s ease;
}

.gs-row > a:hover .gs-ribbon {
	filter: brightness(1.06);
}

/* ---------- product carousel ---------- */
.gs-sec {
	max-width: var(--gs-content);
	margin: 0 auto 34px;
	padding: 0 16px;
	position: relative;
}

.gs-sec-head {
	margin: 0 0 16px;
}

.gs-sec-head h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--gs-ink);
	margin: 0;
}

.gs-pslider-body {
	position: relative;
}

.gs-pslider .gs-track {
	display: flex;
	gap: var(--gs-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 6px;
}

.gs-pslider .gs-track::-webkit-scrollbar {
	display: none;
}

/* ---------- product card ---------- */
.gs-pcard {
	flex: 0 0 calc((100% - var(--gs-gap) * 4) / 5);
	max-width: calc((100% - var(--gs-gap) * 4) / 5);
	min-width: 0;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background: #fff;
	padding: 6px 6px 10px;
	box-sizing: border-box;
}

.gs-pcard-media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.gs-pcard-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.gs-decals {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.gs-decal {
	position: absolute;
	font-weight: 700;
	line-height: 1;
}

.gs-decal-new {
	top: 6px;
	right: 6px;
	background: #C8102E;
	color: #fff;
	font-size: 10px;
	padding: 5px 7px;
	border-radius: 3px;
	letter-spacing: .3px;
}

.gs-decal-coupon {
	top: 6px;
	right: 6px;
	background: #C8102E;
	color: #fff;
	font-size: 10px;
	padding: 5px 7px;
	border-radius: 3px;
}

.gs-decal-percent {
	top: 6px;
	left: 6px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--gs-pink);
	color: #fff;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gs-pcard-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 6px 0;
}

.gs-pcard-price {
	font-size: 24px;
	font-weight: 700;
	color: var(--gs-ink);
	line-height: 1.15;
}

.gs-pcard-saving {
	color: #0A8A00;
	font-size: 13px;
	font-weight: 600;
}

.gs-pcard-ship {
	color: var(--gs-muted);
	font-size: 12px;
}

.gs-pcard-name {
	min-width: 0;
	font-size: 14px;
	line-height: 1.35;
	color: var(--gs-ink);
	text-decoration: none;
	min-height: 38px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 4px;
}

.gs-pcard-name:hover {
	color: var(--gs-blue);
}

.gs-pcard-rating {
	display: flex;
	align-items: center;
	gap: 2px;
	font-size: 13px;
	color: var(--gs-muted);
	margin-top: 4px;
	min-height: 18px;
}

.gs-star {
	color: #d8d8d8;
	font-size: 13px;
}

.gs-star.is-on {
	color: var(--gs-star);
}

.gs-rating-num {
	margin-left: 4px;
}

.gs-pcard .gs-pcard-buy {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: nowrap;
}

/* parent theme stretches every direct child of a form.cart to 100% */
.gs-pcard .gs-pcard-buy > .gs-qty {
	flex: 0 0 auto;
}

.gs-pcard .gs-pcard-buy > .gs-add {
	flex: 1 1 auto;
	min-width: 0;
}

.gs-qty {
	display: flex;
	align-items: center;
	border: 1px solid #c9c9c9;
	border-radius: 4px;
	height: 38px;
	overflow: hidden;
	flex: 0 0 auto;
}

.gs-qty button {
	width: 26px;
	flex: 0 0 26px;
	height: 100%;
	border: 0;
	background: #fff;
	font-size: 16px;
	line-height: 1;
	color: #444;
	cursor: pointer;
}

.gs-qty button:hover {
	background: #f3f3f3;
}

.gs-qty input {
	width: 30px;
	flex: 0 0 30px;
	height: 100%;
	border: 0;
	text-align: center;
	font-size: 14px;
	-moz-appearance: textfield;
}

.gs-qty input::-webkit-outer-spin-button,
.gs-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.gs-add {
	background: var(--gs-blue);
	color: #fff;
	border: 0;
	border-radius: 4px;
	height: 38px;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	white-space: nowrap;
}

.gs-add:hover {
	background: #00508f;
}

/* mobile */
@media (max-width: 849px) {
	.gs-marquee span {
		font-size: 26px;
	}

	.gs-ribbon {
		height: 58px;
		font-size: 17px;
		padding: 0 14px;
	}

	.gs-cols-3 > *,
	.gs-cols-4 > * {
		flex: 0 0 calc((100% - var(--gs-gap)) / 2);
	}

	.gs-pcard {
		flex: 0 0 calc((100% - var(--gs-gap)) / 2);
	}

	.gs-pcard-price {
		font-size: 19px;
	}

	.gs-sec {
		padding: 0 16px;
	}

	.gs-sec-head h2 {
		font-size: 21px;
	}

	.gs-hero .gs-track {
		aspect-ratio: 1400 / 358;
	}

	.gs-hero .gs-slide img {
		object-fit: contain;
	}

	.gs-pill img {
		width: 168px;
	}

	.gs-arrow {
		width: 32px;
		height: 32px;
		font-size: 18px;
	}
}

@media (max-width: 549px) {
	.gs-cols-2 > *,
	.gs-cols-3 > *,
	.gs-cols-4 > * {
		flex: 0 0 calc((100% - var(--gs-gap)) / 2);
	}

	.gs-row {
		margin-bottom: 18px;
	}

	.gs-ribbon {
		font-size: 15px;
		height: auto;
		min-height: 52px;
		line-height: 1.25;
		padding: 10px 12px;
	}
}

/* ---- card typography: measured on the source site ---- */
.gs-pcard {
	text-align: left;
}

.gs-pcard-saving {
	font-size: 14px;
	font-weight: 700;
	color: #0A8A00;
}

.gs-pcard-ship {
	font-size: 14px;
	color: var(--gs-muted);
}

.gs-pcard-name {
	font-size: 14px;
	min-height: 40px;
}

.gs-pcard-rating {
	font-size: 14px;
	gap: 1px;
}

.gs-star {
	font-size: 18px;
	line-height: 1;
}

.gs-rating-num {
	font-size: 14px;
	color: var(--gs-muted);
}

/* buy row: stepper and button share one baseline, centred in the card */
.gs-pcard .gs-pcard-buy {
	justify-content: space-between;
	align-items: center;
}

.gs-pcard .gs-qty {
	height: 40px;
}

.gs-pcard .gs-add {
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* carousel arrows: vertical centre of the card strip, round glyph */
.gs-arrow {
	line-height: 0;
	padding: 0;
}

.gs-arrow > * {
	line-height: 0;
}

/* keep the buy row inside the card at the larger type scale */
.gs-pcard .gs-pcard-buy {
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.gs-pcard .gs-qty {
	flex: 0 0 78px;
	height: 40px;
}

.gs-pcard .gs-qty button {
	width: 24px;
	flex: 0 0 24px;
	font-size: 15px;
}

.gs-pcard .gs-qty input {
	width: 30px;
	flex: 0 0 30px;
	font-size: 14px;
	padding: 0;
}

.gs-pcard .gs-add {
	flex: 1 1 0;
	min-width: 0;
	padding: 0 6px;
	font-size: 13px;
	height: 40px;
}

/* specificity fix: the parent-theme reset used a child selector */
.gs-pcard .gs-pcard-buy > .gs-qty {
	flex: 0 0 78px !important;
	max-width: 78px;
}

.gs-pcard .gs-pcard-buy > .gs-add {
	flex: 1 1 0 !important;
	min-width: 0;
}

/* buy row as a fixed two-column grid: identical on every card */
.gs-pcard .gs-pcard-buy {
	display: grid !important;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	align-items: center;
}

.gs-pcard .gs-pcard-buy > .gs-qty {
	width: auto !important;
	max-width: none !important;
	flex: none !important;
}

.gs-pcard .gs-pcard-buy > .gs-add {
	width: auto !important;
	min-width: 0;
	justify-self: stretch;
}

/* ---- refined stepper + add button ---- */
.gs-pcard .gs-qty {
	border: 1px solid #cfcfcf !important;
	border-radius: 6px !important;
	background: #fff;
	overflow: hidden;
}

.gs-pcard .gs-qty button {
	font-size: 17px !important;
	font-weight: 400;
	color: #4a4a4a;
	background: #fff;
}

.gs-pcard .gs-qty button:hover {
	background: #f2f2f2;
	color: var(--gs-blue);
}

.gs-pcard .gs-qty input {
	font-size: 14px;
	font-weight: 600;
	color: var(--gs-ink);
	border-left: 1px solid #ececec !important;
	border-right: 1px solid #ececec !important;
}

.gs-pcard .gs-add {
	font-size: 14px !important;
	font-weight: 600;
	letter-spacing: .2px;
	border-radius: 6px;
}

/* ---- carousel arrows: centred on the image block, softer shadow ---- */
.gs-pslider-body .gs-arrow {
	top: 26%;
	width: 42px;
	height: 42px;
	border: 1px solid #e4e4e4;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
	font-size: 20px;
	color: #555;
}

.gs-pslider-body .gs-arrow:hover {
	color: var(--gs-blue);
	border-color: var(--gs-blue);
}

.gs-pslider-body .gs-prev {
	left: -18px;
}

.gs-pslider-body .gs-next {
	right: -18px;
}

/* mobile carousel cards: 2 per view, and the rule must win over the desktop basis */
@media (max-width: 849px) {
	.gs-pslider .gs-pcard {
		flex: 0 0 calc((100% - var(--gs-gap)) / 2) !important;
		max-width: none !important;
	}

	.gs-pslider-body .gs-arrow {
		top: 22%;
		width: 34px;
		height: 34px;
		font-size: 16px;
	}

	.gs-pslider-body .gs-prev {
		left: -8px;
	}

	.gs-pslider-body .gs-next {
		right: -8px;
	}
}

@media (max-width: 549px) {
	.gs-pslider .gs-pcard {
		flex: 0 0 calc((100% - 12px) / 2) !important;
	}

	.gs-pslider .gs-track {
		gap: 12px;
	}

	.gs-pcard .gs-pcard-buy {
		grid-template-columns: 68px minmax(0, 1fr);
		gap: 6px;
	}

	.gs-pcard .gs-qty button {
		width: 20px;
		flex: 0 0 20px;
		font-size: 14px;
	}

	.gs-pcard .gs-qty input {
		width: 26px;
		flex: 0 0 26px;
		font-size: 13px;
	}

	.gs-pcard .gs-add {
		font-size: 12px !important;
		padding: 0 4px;
	}

	.gs-pcard-price {
		font-size: 19px;
	}

	.gs-pcard-saving,
	.gs-pcard-ship {
		font-size: 12px;
	}

	.gs-pcard-name {
		font-size: 12.5px;
		min-height: 34px;
	}
}

/* card width never drops below a usable minimum: narrow containers scroll instead of squeezing */
.gs-pslider .gs-pcard {
	flex: 0 0 max(198px, calc((100% - var(--gs-gap) * 4) / 5)) !important;
	max-width: none !important;
}

.gs-pcard .gs-add {
	text-transform: none !important;
	letter-spacing: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: clip;
}

@media (max-width: 849px) {
	.gs-pslider .gs-pcard {
		flex: 0 0 max(148px, calc((100% - var(--gs-gap)) / 2)) !important;
	}
}

/* the grid cell must stretch the button, not let the label define the width */
.gs-pcard .gs-pcard-buy > .gs-add {
	width: 100% !important;
	justify-self: stretch;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gs-pcard .gs-pcard-buy > .gs-qty {
	width: 78px !important;
}

/* ============ quantity selector: native Woo/Flatsome markup, pinned layout ============ */
.gs-pcard .gs-pcard-buy {
	grid-template-columns: auto minmax(0, 1fr);
}

.gs-pcard .quantity {
	display: inline-flex !important;
	align-items: stretch;
	height: 40px;
	margin: 0 !important;
	padding: 0;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	white-space: nowrap;
	vertical-align: top;
	opacity: 1 !important;
}

.gs-pcard .quantity .minus,
.gs-pcard .quantity .plus {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 28px;
	min-width: 28px;
	height: 38px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: #fff !important;
	color: #4a4a4a !important;
	font-size: 16px;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.gs-pcard .quantity .minus {
	border-right: 1px solid #ececec !important;
}

.gs-pcard .quantity .plus {
	border-left: 1px solid #ececec !important;
}

.gs-pcard .quantity .minus:hover,
.gs-pcard .quantity .plus:hover {
	background: #f4f4f4 !important;
	color: var(--gs-blue) !important;
}

.gs-pcard .quantity .qty {
	width: 34px !important;
	min-width: 34px;
	height: 38px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: #fff !important;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--gs-ink);
	-moz-appearance: textfield;
	appearance: textfield;
}

.gs-pcard .quantity .qty::-webkit-outer-spin-button,
.gs-pcard .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ============ carousel arrows: perfect circle, no inherited button padding ============ */
.gs-arrow,
.gs-pslider-body .gs-arrow {
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	max-width: 42px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: center;
	line-height: 1 !important;
	flex: 0 0 auto;
}

@media (max-width: 849px) {
	.gs-arrow,
	.gs-pslider-body .gs-arrow {
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		min-height: 34px !important;
		max-width: 34px !important;
	}
}

/* rating row keeps a fixed height so every buy row sits on the same baseline */
.gs-pcard-rating.is-empty {
	color: #b5b5b5;
	font-size: 13px;
	opacity: .9;
}

/* ================= mobile product card: stacked controls, bigger type ================= */
@media (max-width: 849px) {
	.gs-pcard-price {
		font-size: 24px;
	}

	.gs-pcard-saving {
		font-size: 15px;
	}

	.gs-pcard-ship {
		font-size: 13px;
	}

	.gs-pcard-name {
		font-size: 14px;
		min-height: 40px;
	}

	.gs-pcard-rating {
		font-size: 13px;
	}

	.gs-pcard .gs-star {
		font-size: 16px;
	}

	/* controls stack vertically like the reference site */
	.gs-pcard .gs-pcard-buy {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-top: 10px;
	}

	.gs-pcard .quantity {
		width: 100%;
		justify-content: space-between;
	}

	.gs-pcard .quantity .qty {
		flex: 1 1 auto;
		width: auto !important;
		min-width: 0;
	}

	.gs-pcard .gs-add {
		width: 100% !important;
		height: 40px;
		font-size: 15px;
	}

	/* arrows are useless on a 2-card viewport; dots do the job */
	.gs-pslider-body .gs-arrow {
		display: none !important;
	}

	.gs-pslider .gs-dots {
		margin-top: 16px;
	}

	.gs-pills-wrap .gs-arrow {
		display: none !important;
	}
}

/* ================= mobile hero: taller banner, dots instead of arrows ================= */
@media (max-width: 849px) {
	.gs-hero .gs-arrow,
	.gs-pills-wrap .gs-arrow {
		display: none !important;
	}

	.gs-hero .gs-track {
		aspect-ratio: auto;
		height: 210px;
		border-radius: 10px;
	}

	.gs-hero .gs-slide img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}

	.gs-hero .gs-dots {
		margin-top: 12px;
	}
}

@media (max-width: 549px) {
	.gs-hero .gs-track {
		height: 190px;
	}
}

/* ================= desktop dots: perfect circles, no inherited padding ================= */
.gs-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	min-height: 8px;
}

.gs-dots button {
	width: 8px !important;
	height: 8px !important;
	min-width: 8px !important;
	max-width: 8px !important;
	min-height: 8px !important;
	max-height: 8px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #cfcfcf !important;
	box-shadow: none !important;
	box-sizing: border-box;
	cursor: pointer;
}

.gs-dots button.is-active {
	background: var(--gs-blue) !important;
}

/* ================= mobile: pure swipe, no arrows, no dots ================= */
@media (max-width: 849px) {
	.gs-hero .gs-arrow,
	.gs-pslider-body .gs-arrow,
	.gs-pills-wrap .gs-arrow,
	.gs-arrow {
		display: none !important;
	}

	.gs-dots,
	.gs-pslider .gs-dots,
	.gs-hero .gs-dots,
	.gs-pills-wrap .gs-dots {
		display: none !important;
	}

	.gs-hero .gs-track,
	.gs-pills,
	.gs-pslider .gs-track {
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
	}

	.gs-pills {
		scroll-snap-type: x mandatory;
	}

	.gs-pill,
	.gs-pcard {
		scroll-snap-align: start;
	}
}
