/**
 * Shop The Hood Carousel — frontend
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@9..40,400;9..40,600;9..40,700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap");

.sth-carousel {
	--sth-red: #c8102e;
	--sth-black: #111111;
	--sth-muted: #4a4a4a;
	--sth-dash: #1a1a1a;
	--sth-card-pad: 1rem 0.75rem 1rem 0.85rem;
	font-family: "DM Sans", system-ui, -apple-system, sans-serif;
	color: var(--sth-black);
	max-width: 100%;
}

.sth-header {
	text-align: center;
	margin-bottom: 1.75rem;
}

.sth-brand-title {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 700;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.15;
	margin: 0 0 0.35rem;
	letter-spacing: -0.02em;
	color: var(--sth-black);
}

.sth-brand-underline {
	width: min(280px, 70%);
	height: 6px;
	margin: 0 auto 0.65rem;
	background: var(--sth-black);
	border-radius: 2px;
	transform: rotate(-0.3deg);
	opacity: 0.95;
}

.sth-brand-tagline {
	margin: 0;
	font-size: clamp(0.85rem, 2vw, 1rem);
	color: var(--sth-muted);
	font-weight: 400;
	line-height: 1.45;
	max-width: 36em;
	margin-inline: auto;
}

/* Coupon sheet frame */
.sth-swiper-wrap {
	position: relative;
	z-index: 0;
	padding: 1rem 0 2.5rem;
	border: 2px dashed var(--sth-dash);
	border-radius: 4px;
	background: linear-gradient(180deg, #fafafa 0%, #ffffff 40%);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/*
 * Scissors: SVG via --sth-scissors-url (full plugin URL from PHP).
 * z-index above .sth-swiper so slides don’t paint over the icon.
 */
.sth-swiper-wrap::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	z-index: 5;
	width: 30px;
	height: 15px;
	margin-left: -15px;
	pointer-events: none;
	background: var(--sth-scissors-url, url("../images/scissors-coupon.svg")) center / contain no-repeat;
	transform: translateY(-50%);
}

.sth-swiper {
	position: relative;
	z-index: 1;
	overflow: hidden;
	padding: 0.45rem 0.5rem 0;
}

.sth-swiper .swiper-slide {
	height: auto;
	display: flex;
	overflow: visible;
	box-sizing: border-box;
	padding: 0.2rem 0.15rem 0;
}

/* Full-card link */
.sth-card {
	display: flex;
	width: 100%;
	text-decoration: none;
	color: inherit;
	border-radius: 2px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	outline-offset: 4px;
}

.sth-card:hover {
	transform: translateY(-3px);
}

.sth-card:focus-visible {
	outline: 2px solid var(--sth-red);
}

.sth-card-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	padding: var(--sth-card-pad);
	background: #fff;
	border: 1px dashed rgba(0, 0, 0, 0.35);
	border-radius: 2px;
	min-height: 100%;
	position: relative;
	overflow: visible;
}

/* “Up to” per product; exact % is only in .sth-discount */
.sth-discount-block {
	align-self: flex-start;
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 0.28rem 0.4rem;
	margin: 0.15rem 0 0.55rem 0.35rem;
	transform: rotate(-8deg);
	transform-origin: center center;
	max-width: calc(100% - 0.5rem);
}

.sth-up-to {
	font-size: clamp(0.45rem, 1.1vw, 0.58rem);
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: lowercase;
	color: var(--sth-black);
	opacity: 0.88;
	white-space: nowrap;
	flex-shrink: 0;
	padding-bottom: 0.12em;
}

.sth-discount {
	margin: 0;
	padding: 0.35rem 0.55rem;
	font-weight: 700;
	font-size: clamp(0.7rem, 1.8vw, 0.85rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.1;
	border: 2px solid var(--sth-red);
	color: var(--sth-red);
	box-shadow: 2px 3px 0 rgba(200, 16, 46, 0.12);
}

.sth-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 140px;
	margin: 0.25rem 0 0.75rem;
}

.sth-image {
	max-width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: contain;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

.sth-prices {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	text-align: left;
	width: 100%;
	padding-top: 0.25rem;
	border-top: 1px dashed rgba(0, 0, 0, 0.2);
}

.sth-was {
	font-size: clamp(0.78rem, 1.6vw, 0.9rem);
	color: var(--sth-black);
	font-weight: 500;
}

.sth-now {
	font-size: clamp(0.88rem, 2vw, 1.05rem);
	font-weight: 700;
	color: var(--sth-red);
}

/* Legal disclaimer — very small print */
.sth-disclaimer-wrap {
	margin-top: 1rem;
	padding: 0 0.5rem 0.25rem;
	text-align: center;
}

.sth-disclaimer {
	margin: 0 auto;
	max-width: 40rem;
	font-size: clamp(0.5rem, 1.2vw, 0.6rem);
	line-height: 1.5;
	color: #444;
	font-weight: 400;
	letter-spacing: 0.02em;
}

/* Swiper chrome */
.sth-nav {
	width: 40px;
	height: 40px;
	margin-top: 0;
	color: var(--sth-black);
	background: rgba(255, 255, 255, 0.95);
	border: 1px dashed var(--sth-dash);
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transition: background 0.2s, color 0.2s;
}

.sth-nav::after {
	font-size: 14px;
	font-weight: 700;
}

.sth-nav:hover {
	background: var(--sth-black);
	color: #fff;
	border-style: solid;
}

.sth-swiper .swiper-button-prev {
	left: 4px;
}

.sth-swiper .swiper-button-next {
	right: 4px;
}

.sth-pagination.swiper-pagination-bullets {
	bottom: 0 !important;
}

.sth-pagination .swiper-pagination-bullet {
	background: var(--sth-black);
	opacity: 0.25;
}

.sth-pagination .swiper-pagination-bullet-active {
	background: var(--sth-red);
	opacity: 1;
}

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