.cp-upsells-heading {
	margin: 0 0 24px 0;
	font-size: 24px;
	font-weight: 600;
	color: #333;
}

.cp-upsells-grid {
	display: grid;
	gap: 20px;
}

.cp-upsell-card {
	border: 1px solid #d1d1d1;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cp-upsell-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.cp-upsell-media {
	position: relative;
	overflow: hidden;
	background: #f9f9f9;
}

.cp-upsell-media .swiper {
	position: relative;
	overflow: hidden;
	list-style: none;
	padding: 0;
	z-index: 1;
}

.cp-upsell-media .swiper-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: flex;
	transition-property: transform;
	box-sizing: content-box;
}

.cp-upsell-media .swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	position: relative;
	transition-property: transform;
}

.cp-upsell-media::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 75px;
	background-color: var(--upsell-thumb-bar-bg, transparent);
	z-index: 15;
	pointer-events: none;
	transition: background-color 0.3s ease;
}

.cp-upsell-badge {
	position: absolute;
	top: 0;
	left: 0;
	background: #ffcc00;
	color: #000;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	border-bottom-right-radius: 12px;
	z-index: 20;
}

.cp-upsell-main-swiper {
	position: relative;
	width: 100%;
}

.cp-upsell-main-swiper .swiper-slide img {
	width: 100%;
	aspect-ratio: var(--upsell-image-ratio, 4/5);
	object-fit: cover;
	display: block;
}

.cp-upsell-main-swiper .swiper-button-next,
.cp-upsell-main-swiper .swiper-button-prev {
	position: absolute;
	top: 50%;
	z-index: 10;
	color: #fff;
	font-size: 16px;
	opacity: 0;
	transition: opacity 0.3s ease;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	background: rgba(0, 0, 0, 0.3);
	width: 2em;
	height: 2em;
	border-radius: 50%;
	margin-top: -1em;
	display: flex;
	justify-content: center;
	align-items: center;
}

.cp-upsell-main-swiper .swiper-button-next i,
.cp-upsell-main-swiper .swiper-button-prev i {
	font-size: inherit;
}

.cp-upsell-main-swiper .swiper-button-next svg,
.cp-upsell-main-swiper .swiper-button-prev svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.cp-upsell-main-swiper .swiper-button-next {
	right: 10px;
	left: auto;
}

.cp-upsell-main-swiper .swiper-button-prev {
	left: 10px;
	right: auto;
}

.cp-upsell-main-swiper .swiper-button-next::after,
.cp-upsell-main-swiper .swiper-button-prev::after {
	display: none;
}

.cp-upsell-media:hover .swiper-button-next,
.cp-upsell-media:hover .swiper-button-prev {
	opacity: 0.8;
}

.cp-upsell-media:hover .swiper-button-next:hover,
.cp-upsell-media:hover .swiper-button-prev:hover {
	opacity: 1;
}

.cp-upsell-media .cp-upsell-thumb-swiper {
	position: absolute;
	bottom: 8px;
	left: 8px;
	right: 8px;
	z-index: 20;
	padding: 0;
}

.cp-upsell-media .cp-upsell-thumb-swiper .swiper-slide {
	border-radius: 6px;
	border: 2px solid transparent;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.3s ease, background-color 0.3s ease;
	margin-right: var(--upsell-thumb-gap, 8px);
}

.cp-upsell-media .cp-upsell-thumb-swiper .swiper-slide-thumb-active {
	border-color: #fff;
}

.cp-upsell-media .cp-upsell-thumb-swiper .swiper-slide img {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	display: block;
	opacity: 0.5;
	transition: opacity 0.3s ease;
}

.cp-upsell-media .cp-upsell-thumb-swiper .swiper-slide-thumb-active img,
.cp-upsell-media .cp-upsell-thumb-swiper .swiper-slide:hover img {
	opacity: 1;
}

.cp-upsell-info {
	padding: 20px 15px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.cp-upsell-cat {
	font-size: 12px;
	color: #777;
	text-align: center;
	margin-bottom: 6px;
}

.cp-upsell-title {
	font-size: 16px;
	font-weight: 600;
	color: #222;
	text-align: center;
	margin: 0 0 12px 0;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.cp-upsell-card:hover .cp-upsell-title {
	color: #0073aa;
}

.cp-upsell-rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 12px;
	color: #f5c542;
	margin-bottom: 12px;
}

.cp-upsell-rating span {
	color: #999;
	font-size: 11px;
}

.cp-upsell-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
}

.cp-upsell-price {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cp-upsell-regular-price {
	font-size: 13px;
	color: #999;
	display: block;
}

.cp-upsell-regular-price del {
	text-decoration: line-through;
	color: #999;
}

.cp-upsell-sale-price {
	font-size: 18px;
	font-weight: 600;
	color: #e74c3c;
}

.cp-upsell-price-item {
	font-size: 18px;
	font-weight: 600;
	color: #000;
}

.cp-upsell-actions {
	display: flex;
	gap: 15px;
	align-items: center;
}

.cp-upsell-actions a {
	color: #000;
	font-size: 20px;
	text-decoration: none;
	transition: 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cp-upsell-actions a:hover {
	color: #ffcc00;
}

.cp-upsell-actions a i {
	font-size: inherit;
}

.cp-upsell-actions a svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

@media (max-width: 767px) {
	.cp-upsells-grid {
		gap: 15px;
	}

	.cp-upsell-info {
		padding: 15px 12px;
	}

	.cp-upsell-title {
		font-size: 14px;
	}

	.cp-upsell-sale-price {
		font-size: 16px;
	}

	.cp-upsell-actions a {
		font-size: 18px;
	}
}
