.wpscd-wrapper {
	margin: 24px 0;
}

/* Force Slick to stretch every slide to match the tallest one in the row,
   so all cards in a slider always render at the same height. */
.wpscd-slider.slick-slider {
	display: block;
}

.wpscd-slider .slick-track {
	display: flex !important;
	align-items: stretch;
}

.wpscd-slider .slick-slide {
	height: auto !important;
	display: flex !important;
}

.wpscd-slider .slick-slide > div {
	width: 100%;
	display: flex;
}

.wpscd-slider .wpscd-slide {
	padding: 0 10px;
	box-sizing: border-box;
	width: 100%;
	display: flex;
}

.wpscd-product-card {
	width: 100%;
	display: flex;
	flex-direction: column;
	text-align: center;
	border: 1px solid #eaeaea;
	padding: 18px 14px 20px;
	border-radius: 8px;
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wpscd-product-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* Fixed-height image area: every product thumbnail displays at the same
   size regardless of the original image's dimensions or aspect ratio. */
.wpscd-product-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	margin-bottom: 14px;
	overflow: hidden;
	border-radius: 4px;
	background: #fafafa;
}

.wpscd-product-thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	object-position: center;
}

/* Text/body area stretches to fill remaining space, and pushes the
   Add to Cart button to the same bottom position on every card. */
.wpscd-product-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.wpscd-product-title {
	font-size: 15px;
	line-height: 1.4;
	margin: 8px 0 6px;
	/* Clamp to 2 lines so long titles never change card height */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}

.wpscd-product-title a {
	color: #333;
	text-decoration: none;
}

.wpscd-product-title a:hover {
	color: #000;
	text-decoration: underline;
}

.wpscd-product-price {
	font-size: 14px;
	color: #666;
	margin-bottom: 14px;
}

.wpscd-product-price ins {
	text-decoration: none;
	color: #d32f2f;
}

.wpscd-product-price del {
	opacity: 0.6;
}

.wpscd-product-add-to-cart {
	margin-top: auto;
	padding-top: 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wpscd-product-add-to-cart a.button {
	display: inline-block;
	padding: 9px 20px;
	background: #333;
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none;
	font-size: 13px;
	transition: background 0.2s ease;
	line-height: 1.4;
}

.wpscd-product-add-to-cart a.button:hover {
	background: #555;
}

/* WooCommerce injects the "View cart" link right after the button once an
   item is added via AJAX. Force it onto its own line instead of sitting
   next to the button. */
.wpscd-product-add-to-cart a.added_to_cart {
	display: block;
	width: 100%;
	margin-top: 8px;
	font-size: 12px;
	text-decoration: underline;
	color: #333;
}

.wpscd-product-add-to-cart a.added_to_cart:hover {
	color: #000;
}

.wpscd-product-add-to-cart a.button.loading {
	opacity: 0.6;
}

/* Slick overrides */
.wpscd-slider .slick-prev,
.wpscd-slider .slick-next {
	z-index: 2;
	width: 34px;
	height: 34px;
}

.wpscd-slider .slick-prev:before,
.wpscd-slider .slick-next:before {
	color: #333;
	font-size: 28px;
	opacity: 0.75;
}

.wpscd-slider .slick-prev {
	left: -8px;
}

.wpscd-slider .slick-next {
	right: -8px;
}

.wpscd-slider .slick-dots {
	bottom: -32px;
}

.wpscd-slider .slick-dots li button:before {
	font-size: 10px;
}
