/* [stgcp_products_slider] shortcode — equal-size cards, no external
   slider library required (native horizontal scroll + scroll-snap, with
   two small JS-driven arrow buttons layered on top). */

.stgcp-products-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
}

.stgcp-slider-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 4px 16px;
	flex: 1;
	-webkit-overflow-scrolling: touch;
}

.stgcp-slider-track::-webkit-scrollbar {
	height: 6px;
}

.stgcp-slider-track::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 3px;
}

/* Every card is a fixed width, so all boxes in the row are identical. */
.stgcp-slider-card {
	flex: 0 0 260px;
	scroll-snap-align: start;
	text-decoration: none;
	display: block;
}

.stgcp-slider-thumb {
	position: relative;
	height: 260px;
	background: #fff;
	border: 1px solid #eee;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-sizing: border-box;
}

.stgcp-slider-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Ribbon-style product name label, overlapping the bottom-left of the
   photo. Swap the background color for your exact brand maroon. */
.stgcp-slider-label {
	position: absolute;
	left: 0;
	bottom: 18px;
	background: #a85a60;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	padding: 10px 28px 10px 16px;
	clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
	max-width: 90%;
}

.stgcp-slider-arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.stgcp-slider-arrow:hover {
	background: #8a3439;
	color: #fff;
	border-color: #8a3439;
}

.stgcp-slider-cta {
	text-align: center;
	margin-top: 30px;
}

.stgcp-slider-btn {
	display: inline-block;
	background: #1f3d3c;
	color: #fff;
	padding: 14px 32px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .5px;
	text-decoration: none;
	transition: background-color .2s ease;
}

.stgcp-slider-btn:hover {
	background: #16302f;
	color: #fff;
}

@media (max-width: 640px) {
	.stgcp-slider-arrow {
		display: none;
	}

	.stgcp-slider-card {
		flex-basis: 220px;
	}

	.stgcp-slider-thumb {
		height: 220px;
	}
}
