/* ============================================
   Product Showcase Carousel - Full Width Premium
   ============================================ */

.product-showcase {
	padding: 60px 0 50px;
	background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
	position: relative;
	overflow: hidden;
}

/* ---------- Header ---------- */
.showcase-header {
	text-align: center;
	margin-bottom: 36px;
	padding: 0 24px;
}

.showcase-header h2 {
	font-size: 2rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0;
	letter-spacing: -0.5px;
	position: relative;
	display: inline-block;
}

.showcase-header h2::after {
	content: '';
	display: block;
	width: 50px;
	height: 3px;
	background: var(--gemarkt-red, #e63946);
	border-radius: 2px;
	margin: 10px auto 0;
}

/* ---------- Track Wrapper (relative for arrows) ---------- */
.showcase-track-wrapper {
	position: relative;
	padding: 0 60px;
}

/* ---------- Arrows on the sides ---------- */
.showcase-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	color: #333;
	font-size: 16px;
}

.showcase-arrow-left {
	left: 10px;
}

.showcase-arrow-right {
	right: 10px;
}

.showcase-arrow:hover {
	background: var(--gemarkt-red, #e63946);
	color: #fff;
	box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
	transform: translateY(-50%) scale(1.08);
}

.showcase-arrow:active {
	transform: translateY(-50%) scale(0.95);
}

/* ---------- Track ---------- */
.showcase-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 8px 4px 16px;
}

.showcase-track::-webkit-scrollbar {
	display: none;
}

/* During drag: instant scroll, no text selection */
.showcase-track.is-dragging {
	scroll-behavior: auto !important;
	user-select: none;
	-webkit-user-select: none;
}

/* ---------- Cards ---------- */
.showcase-card {
	flex: 0 0 220px;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	cursor: pointer;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	color: inherit;
	position: relative;
}

.showcase-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 16px;
	border: 2px solid transparent;
	transition: border-color 0.3s;
	pointer-events: none;
	z-index: 1;
}

.showcase-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.showcase-card:hover::before {
	border-color: var(--gemarkt-red, #e63946);
}

/* ---------- Card Image ---------- */
.showcase-card-img {
	width: 100%;
	height: 180px;
	object-fit: contain;
	background: #fff;
	display: block;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 10px;
}

.showcase-card:hover .showcase-card-img {
	transform: scale(1.05);
}

/* Overflow hidden for image zoom only */
.showcase-card {
	overflow: hidden;
}

/* ---------- Card Body ---------- */
.showcase-card-body {
	padding: 14px 16px 16px;
	position: relative;
	background: #fff;
	z-index: 1;
}

.showcase-card-cat {
	font-size: 0.7rem;
	color: var(--gemarkt-red, #e63946);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 600;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.showcase-card-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #222;
	line-height: 1.4;
	/* 3 lines for titles to fit kg without breaking height */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.4 * 0.9rem * 3);
	/* line-height * font-size * 3 lines */
	margin: 0 0 8px;
}

.showcase-card-price {
	font-size: 1rem;
	font-weight: 700;
	color: var(--gemarkt-red, #e63946);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.showcase-track-wrapper {
		padding: 0 50px;
	}

	.showcase-card {
		flex: 0 0 200px;
	}

	.showcase-card-img {
		height: 160px;
	}
}

@media (max-width: 768px) {
	.product-showcase {
		padding: 36px 0 28px;
	}

	.showcase-header h2 {
		font-size: 1.5rem;
	}

	.showcase-track-wrapper {
		padding: 0 16px;
	}

	.showcase-card {
		flex: 0 0 180px;
	}

	.showcase-card-img {
		height: 140px;
	}

	/* Arrows hidden on mobile - user swipes */
	.showcase-arrow {
		display: none;
	}
}

@media (max-width: 480px) {
	.showcase-card {
		flex: 0 0 160px;
	}

	.showcase-card-img {
		height: 120px;
	}

	.showcase-card-body {
		padding: 10px 12px 12px;
	}
}