/* WC Ürün Carousel - stiller */

.wcpc-wrapper {
	--wcpc-columns: 5;
	position: relative;
	max-width: 100%;
	margin: 32px auto;
	padding: 0 8px;
	box-sizing: border-box;
}

.wcpc-heading {
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	color: #2b2b33;
	margin: 0 0 28px;
}

.wcpc-carousel {
	position: relative;
}

.wcpc-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding: 4px 4px 12px;
	box-sizing: border-box;
	/* Kaydırma çubuğunu gizle (görsel amaçlı, gezinme ok tuşlarıyla yapılır) */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.wcpc-track::-webkit-scrollbar {
	display: none;
}

.wcpc-slide {
	flex: 0 0 calc((100% - (var(--wcpc-columns) - 1) * 16px) / var(--wcpc-columns));
	scroll-snap-align: start;
	box-sizing: border-box;
}

.wcpc-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.wcpc-image-box {
	position: relative;
	background: #f4f4f5;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wcpc-image-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.35s ease;
}

.wcpc-card:hover .wcpc-image-box img {
	transform: scale(1.03);
}

.wcpc-color-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: #ffffff;
	border-radius: 999px;
	padding: 6px 12px 6px 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #333333;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.wcpc-discount-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	background: #e02424;
	color: #ffffff;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.2;
	box-shadow: 0 2px 6px rgba(224, 36, 36, 0.35);
	pointer-events: none;
}

.wcpc-color-dots {
	display: inline-flex;
	gap: 3px;
}

.wcpc-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.wcpc-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 12px;
}

.wcpc-sku {
	font-size: 12px;
	color: #9a9aa2;
}

.wcpc-title {
	font-size: 14px;
	font-weight: 600;
	color: #2b2b33;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wcpc-price {
	font-size: 15px;
	font-weight: 700;
	color: #1c1c22;
	margin-top: 4px;
}

.wcpc-price del {
	color: #9a9aa2;
	font-weight: 400;
	margin-right: 6px;
}

.wcpc-price ins {
	text-decoration: none;
}

/* Oklar - ürün görsellerinin üzerine bindirilmiş şekilde konumlanır */
.wcpc-arrow {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	flex: none;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	max-width: 40px;
	max-height: 40px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	background-color: #ffffff;
	background-image: none;
	border: none;
	outline: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	cursor: pointer;
	color: #2b2b33;
	z-index: 3;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.wcpc-arrow--prev {
	left: 10px;
}

.wcpc-arrow--next {
	right: 10px;
}

.wcpc-arrow:hover {
	background-color: #fbd84c;
	color: #ffffff;
	transform: translateY(-50%) scale(1.05);
}

.wcpc-arrow:active {
	transform: translateY(-50%) scale(0.94);
}

.wcpc-arrow svg {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	pointer-events: none;
}

.wcpc-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Responsive kırılımlar: kart genişliklerini ekran boyutuna göre otomatik daralt */
@media (max-width: 1200px) {
	.wcpc-slide {
		flex-basis: calc((100% - 3 * 16px) / 4);
	}
}

@media (max-width: 900px) {
	.wcpc-slide {
		flex-basis: calc((100% - 2 * 16px) / 3);
	}
	.wcpc-heading {
		font-size: 22px;
	}
}

@media (max-width: 600px) {
	.wcpc-slide {
		flex-basis: calc((100% - 16px) / 2);
	}
	.wcpc-arrow {
		width: 34px;
		height: 34px;
		min-width: 34px;
		min-height: 34px;
		max-width: 34px;
		max-height: 34px;
	}
}
