/* ===== COUPON COMPONENT ===== */
/* Hybrid image + HTML/CSS coupon for easy text updates */

/* --- Font: Kufam (for title band) --- */
@font-face {
	font-family: 'Kufam';
	src: url('/assets/fonts/Kufam/Kufam-Black.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
}
@font-face {
	font-family: 'Kufam';
	src: url('/assets/fonts/Kufam/Kufam-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

/* --- Coupon container --- */
/* Override legacy div.coupon { border: 2px dashed #CC0000 } from main.css */
/* Using div.coupon to match its specificity (0,1,1) — cascade order wins */
div.coupon {
	max-width: 1070px;
	margin: 0 auto;
	overflow: hidden;
	border: none;
}

/* --- Artwork header image --- */
.coupon__artwork {
	width: 100%;
	display: block;
	height: auto;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.coupon__artwork img {
	width: 100%;
	height: auto;
	display: block;
}

/* --- Title band (yellow-to-white gradient) --- */
.coupon__title-band {
	background: linear-gradient(
		to bottom,
		#FFE769 0%,
		#FFE86C 2%,
		#FFE872 5%,
		#FEE878 10%,
		#FEEB84 15%,
		#FFEC8D 20%,
		#FEEE96 25%,
		#FFEF9A 30%,
		#FFF0A5 35%,
		#FFF1AA 40%,
		#FEF4B7 45%,
		#FFF5BA 50%,
		#FFF5C0 55%,
		#FEF6C8 60%,
		#FEF7CE 65%,
		#FEF8D6 70%,
		#FEF9DB 75%,
		#FEFBE8 80%,
		#FEFCEE 85%,
		#FDFDF4 90%,
		#FDFEF8 95%,
		#FFFFFF 100%
	);
	text-align: center;
	padding: 3.5vw 3vw 2.2vw;
	margin-top: -1px;
}

.coupon__sale-title {
	font-family: 'Kufam', Impact, 'Arial Black', sans-serif;
	font-weight: 900;
	font-size: 6vw;
	color: #D35522;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.05;
	white-space: nowrap;
	text-shadow:
		1px 1px 0 rgba(0, 0, 0, 0.15),
		2px 2px 2px rgba(0, 0, 0, 0.08);
	margin-bottom: 0.6vw;
}

.coupon__details {
	font-family: 'Kufam', 'roboto_condensedregular', 'Roboto Condensed', Arial, sans-serif;
	font-weight: 700;
	font-size: 1.8vw;
	color: #1A1710;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	line-height: 1.3;
	white-space: nowrap;
}

.coupon__details .sep {
	margin: 0 0.3em;
	color: #333;
}

/* --- Shadow/transition bar --- */
.coupon__shadow {
	height: 1vw;
	background: linear-gradient(
		to bottom,
		#E0E0E0 0%,
		#9E9E9E 15%,
		#777777 30%,
		#555555 50%,
		#3D3D3D 70%,
		#333333 100%
	);
	margin-top: -1px;
}

/* --- Bottom red bar --- */
.coupon__bottom-bar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background: linear-gradient(
		to bottom,
		#333333 0%,
		#5A2318 8%,
		#8C3421 14%,
		#B84A21 18%,
		#C93821 22%,
		#D53D21 28%,
		#DC4021 35%,
		#E04221 42%,
		#DD4021 55%,
		#D83C21 65%,
		#D43A21 72%,
		#CF3821 80%,
		#C93621 88%,
		#C53421 95%,
		#C23321 100%
	);
	padding: 2.2vw 3vw;
	gap: 3.5vw;
	border-radius: 0 0 2.2vw 2.2vw;
	margin-top: -1px;
	min-height: 11vw;
}

.coupon__price {
	flex-shrink: 0;
	white-space: nowrap;
}

.coupon__dollar-sign {
	font-family: Impact, 'Arial Black', sans-serif;
	font-weight: 900;
	font-size: 7vw;
	color: #FFFFFF;
	text-shadow:
		2px 2px 0 rgba(0, 0, 0, 0.35),
		3px 3px 4px rgba(0, 0, 0, 0.25);
	line-height: 0.85;
	vertical-align: baseline;
}

.coupon__amount {
	font-family: Impact, 'Arial Black', sans-serif;
	font-weight: 900;
	font-size: 9vw;
	color: #FFFFFF;
	text-shadow:
		2px 2px 0 rgba(0, 0, 0, 0.35),
		3px 3px 4px rgba(0, 0, 0, 0.25);
	line-height: 0.85;
	vertical-align: baseline;
}

.coupon__off {
	font-family: Impact, 'Arial Black', sans-serif;
	font-weight: 900;
	font-size: 5vw;
	color: #FFFFFF;
	text-shadow:
		2px 2px 0 rgba(0, 0, 0, 0.35),
		3px 3px 4px rgba(0, 0, 0, 0.25);
	line-height: 0.85;
	vertical-align: baseline;
	margin-left: 0.3vw;
}

.coupon__offer-text {
	font-family: Impact, 'Arial Black', sans-serif;
	font-weight: 400;
	font-size: 3.5vw;
	color: #FFFFFF;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
	text-shadow:
		1px 1px 0 rgba(0, 0, 0, 0.25),
		2px 2px 3px rgba(0, 0, 0, 0.18);
	line-height: 1.1;
}

/* --- Tablet/landscape adjustments (between mobile vw and desktop caps) --- */
@media (max-width: 1069px) {
	.coupon__sale-title {
		font-size: 5vw;
	}

	.coupon__details {
		font-size: 1.5vw;
	}

	.coupon__bottom-bar {
		padding: 2vw 2vw;
		gap: 2vw;
	}

	.coupon__dollar-sign {
		font-size: 5.5vw;
	}

	.coupon__amount {
		font-size: 7vw;
	}

	.coupon__off {
		font-size: 4vw;
	}

	.coupon__offer-text {
		font-size: 2.8vw;
	}
}

/* --- Mobile adjustments (readable minimums on small screens) --- */
/* Must come AFTER tablet breakpoint so these px values override the vw values */
@media (max-width: 480px) {
	.coupon__title-band {
		padding: 12px 10px 8px;
	}

	.coupon__sale-title {
		font-size: 5.8vw;
		margin-bottom: 4px;
	}

	.coupon__details {
		font-size: 2.1vw;
		letter-spacing: 0.02em;
		line-height: 1.4;
	}

	.coupon__details .sep {
		margin: 0 0.15em;
	}

	.coupon__shadow {
		height: 5px;
	}

	.coupon__bottom-bar {
		padding: 10px 10px;
		gap: 10px;
		border-radius: 0 0 10px 10px;
		min-height: auto;
	}

	.coupon__dollar-sign {
		font-size: 28px;
	}

	.coupon__amount {
		font-size: 36px;
	}

	.coupon__off {
		font-size: 20px;
		margin-left: 2px;
	}

	.coupon__offer-text {
		font-size: 3.2vw;
		white-space: normal;
	}
}

/* --- Cap sizes on large screens --- */
@media (min-width: 1070px) {
	.coupon__title-band {
		padding: 35px 30px 20px;
	}

	.coupon__sale-title {
		font-size: 64px;
		margin-bottom: 8px;
	}

	.coupon__details {
		font-size: 19px;
	}

	.coupon__shadow {
		height: 12px;
	}

	.coupon__bottom-bar {
		padding: 24px 35px;
		gap: 50px;
		border-radius: 0 0 24px 24px;
		min-height: 118px;
	}

	.coupon__dollar-sign {
		font-size: 75px;
	}

	.coupon__amount {
		font-size: 96px;
	}

	.coupon__off {
		font-size: 54px;
		margin-left: 3px;
	}

	.coupon__offer-text {
		font-size: 38px;
	}
}
