.wccs-wrap {
	max-width: 100%;
	margin: 24px 0;
	--wccs-green: #1a7a3c;
	--wccs-blue: #2e6bd8;
	--wccs-pink-bg: #fbeafb;
	--wccs-pink-text: #9c27b0;
	--wccs-text: #2b2b2b;
	--wccs-muted: #8a8a8a;
}

.wccs-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 14px;
	color: var(--wccs-text);
}

/* Wraps the carousel + our custom nav buttons so the arrows can be
   absolutely positioned relative to the whole slider, not just the track. */
.wccs-slider-wrap {
	position: relative;
	padding: 0 4px 6px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wccs-slider {
	overflow: hidden; /* contain the row even before OwlCarousel JS finishes mounting */
	width: 100%;
}

.wccs-slider.owl-carousel,
.wccs-slider .owl-stage-outer {
	width: 100% !important;
}

/* Before OwlCarousel JS runs, the container is just a row of plain divs --
   this makes it look reasonable for that brief moment instead of a stacked
   column or a raw overflowing row with a native scrollbar. */
.wccs-slider:not(.wccs-initialized) {
	display: flex;
	gap: 16px;
}

.wccs-slider:not(.wccs-initialized) .wccs-card {
	flex: 0 0 auto;
	width: 200px;
}

/* Once OwlCarousel initializes it builds its own .owl-stage / .owl-item
   structure and takes over layout completely. */
.wccs-slider.owl-carousel.owl-loaded {
	display: block;
}

.wccs-slider .owl-stage {
	display: flex;
	align-items: stretch;
}

.wccs-slider .owl-item {
	display: flex;
	height: auto;
}

.wccs-card {
	position: relative;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	box-shadow: 0 1px 6px rgba(0,0,0,0.06);
	padding: 34px 16px 16px;
	display: flex;
	flex-direction: column;
	width: 100%;
	transition: box-shadow .2s ease, transform .2s ease;
}

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

.wccs-badge {
	position: absolute;
	top: 12px;
	left: 0;
	background: var(--wccs-green);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px 4px 10px;
	border-radius: 0 12px 12px 0;
	line-height: 1.4;
}

.wccs-image {
	display: block;
	text-align: center;
	margin-bottom: 14px;
	min-height: 100px;
}

.wccs-image img {
	/*max-height: 110px;*/
	width: auto;
	max-width: 100%;
	object-fit: contain;
	margin: 0 auto;
}

.wccs-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--wccs-text);
	text-decoration: none;
	line-height: 1.35;
	min-height: 38px;
	margin-bottom: 10px;
}

.wccs-name:hover {
	color: var(--wccs-blue);
}

.wccs-price-row {
	border-top: 1px solid #eee;
	padding-top: 10px;
	margin-top: auto;
}

.wccs-mrp {
	display: block;
	font-size: 12px;
	color: var(--wccs-muted);
	margin-bottom: 6px;
}

.wccs-mrp del {
	color: var(--wccs-muted);
}

.wccs-buy-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.wccs-price {
	font-size: 17px;
	font-weight: 700;
	color: var(--wccs-text);
	white-space: nowrap;
}

.wccs-add-btn .button,
.wccs-add-btn a.add_to_cart_button,
.wccs-add-btn .wccs-add {
	background: #fff !important;
	border: 1px solid var(--wccs-blue) !important;
	color: var(--wccs-blue) !important;
	font-weight: 500 !important;
	font-size: 15px !important;
	padding: 6px 18px !important;
	border-radius: 8px !important;
	white-space: nowrap;
	text-align: center;
	transition: background .15s ease, color .15s ease;
}

.wccs-add-btn .button:hover,
.wccs-add-btn a.add_to_cart_button:hover {
	background: var(--wccs-blue) !important;
	color: #fff !important;
}

.wccs-add-btn .added_to_cart {
	display: block;
	font-size: 11px;
	margin-top: 4px;
	text-align: center;
}

.wccs-substitute {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--wccs-pink-bg);
	color: var(--wccs-pink-text);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 0 0 12px 12px;
	margin: 14px -16px -16px;
}

.wccs-substitute .wccs-chevron {
	font-size: 16px;
	line-height: 1;
}

/* Nav arrows -- real inline SVGs (not an icon font), so a theme's global
   font-family reset can never make them disappear. Positioned relative to
   .wccs-slider-wrap so they sit over the edges of the whole carousel. */
.wccs-nav {
	position: absolute;
	top: 50%;
	margin-top: -17px;
	width: 34px;
	height: 34px;
	background: var(--wccs-blue);
	border-radius: 50%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.wccs-nav svg {
	width: 16px;
	height: 16px;
	display: block;
	color: #fff; /* svg uses stroke="currentColor" */
	pointer-events: none;
}

.wccs-nav-prev {
	left: -6px;
}

.wccs-nav-next {
	right: -6px;
}

@media (max-width: 480px) {
	.wccs-nav { display: none; }
}

/* ============================
   Grid shortcode ([wc_product_grid])
   Same card styles as the slider, plain responsive CSS grid, no JS needed.
   ============================ */
.wccs-grid {
	display: grid;
	grid-template-columns: repeat( var( --wccs-grid-columns, 4 ), 1fr );
	gap: 18px;
}

@media (max-width: 480px) {
	.wccs-grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 12px;
	}
}

@media (min-width: 481px) and (max-width: 768px) {
	.wccs-grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.wccs-grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}
