/**
 * Slider Product Card — bvdt/slider-product-card
 *
 * Card visuals (rounded image, translucent badge pill, serif title + price
 * row) reuse the same values as bvdt/product-simple's card — 3/4 image,
 * 21px radius, #fffffff0 badge background — since this is the same product
 * card family, only arranged as a Swiper slider instead of a static grid.
 * Written fresh rather than shared: this block owns its own class names and
 * does not depend on product-simple.css loading.
 */

.bvdt-spc {
	position: relative;
}

.bvdt-spc__swiper {
	/* Room for the badge and the hover scale on the image to spill into
	   without Swiper's own overflow clipping them. */
	padding: 0.5rem 0.5rem 1rem;
	margin: -0.5rem -0.5rem 0;
}

.bvdt-spc .swiper-slide {
	height: auto;
}

/* ── Card ──────────────────────────────────────────────────────────────── */

.bvdt-spc__card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.bvdt-spc__card:hover,
.bvdt-spc__card:focus {
	text-decoration: none;
	color: inherit;
}

.bvdt-spc__card--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3/4;
	padding: 2rem;
	border: 1px dashed var(--border, #e3ddd8);
	border-radius: 21px;
	color: #cc1818;
	font-size: 0.85rem;
	text-align: center;
}

/* ── Media ─────────────────────────────────────────────────────────────── */

.bvdt-spc__media {
	position: relative;
	display: block;
	aspect-ratio: 3/4;
	background: var(--muted, #f1ece4);
	border-radius: 21px;
	overflow: hidden;
}

.bvdt-spc__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.bvdt-spc__card:hover .bvdt-spc__media img {
	transform: scale(1.03);
}

.bvdt-spc__badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: #fffffff0;
	color: var(--rose, #cd90a7);
	font-family: "Nunito Sans", sans-serif;
	text-transform: uppercase;
	border-radius: 100px;
	padding: 4px 13px;
	font-size: 10px;
	letter-spacing: 0.1em;
	font-weight: 600;
	line-height: 1.5;
}

/* ── Title / price row ─────────────────────────────────────────────────── */

.bvdt-spc__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 0.25rem 0;
}

.bvdt-spc__title {
	font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
	font-size: 1.5rem;
	font-weight: 600;
	font-style: normal;
	color: var(--ink, #313f4d);
	line-height: 1.2;
}

.bvdt-spc__price {
	white-space: nowrap;
	flex-shrink: 0;
	color: color-mix(in srgb, var(--ink, #313f4d) 73%, transparent);
	font-size: 1rem;
	font-style: normal;
	font-weight: 600;
}

/* ── Nav arrows ────────────────────────────────────────────────────────── */

.bvdt-spc__nav {
	position: absolute;
	top: calc(50% - 1.25rem);
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--border, #e3ddd8);
	border-radius: 100px;
	background: #fff;
	color: var(--ink, #313f4d);
	cursor: pointer;
	transition: border-color .2s ease, opacity .2s ease;
}

.bvdt-spc__nav:hover {
	border-color: var(--rose, #cd90a7);
}

.bvdt-spc__nav svg {
	width: 1.1rem;
	height: 1.1rem;
}

.bvdt-spc__nav.is-prev { left: -1.25rem; }
.bvdt-spc__nav.is-next { right: -1.25rem; }

/* Swiper's own state classes, renamed in the init so they read like the rest
   of this sheet. */
.bvdt-spc__nav.is-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.bvdt-spc__nav.is-locked {
	display: none;
}
@media (max-width: 767px) {
	.swiper.bvdt-spc__swiper.swiper-initialized{
		margin: 0 -1rem;
	}
}
@media (max-width: 1024px) {
	.bvdt-spc__nav.is-prev { left: -1.15rem; }
	.bvdt-spc__nav.is-next { right: -1.15rem; }
}

.bvdt-spc-notice {
	padding: 0.75rem 1rem;
	background: var(--muted, #f1ece4);
	border: 1px dashed var(--border, #e3ddd8);
	border-radius: 0.5rem;
	font-size: 0.85rem;
}

/* ── Block editor preview ──────────────────────────────────────────────── */

.bvdt-spc-editor-preview .bvdt-spc__nav.is-prev { left: 0; }
.bvdt-spc-editor-preview .bvdt-spc__nav.is-next { right: 0; }
