/* ============================================================
   hotsale.css — Weekly Hot Sale / Flash Discounts Styles
   Retrowave glow theme: Blue -> Purple -> Red -> Orange
   ============================================================ */

@import 'productModal.css';

/* ── Section Container ── */
.hotsale-section {
	width: 100%;
	padding: 2.5rem 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	background: radial-gradient(circle at 50% -20%, rgba(157, 0, 255, 0.12), transparent 70%);
	border-bottom: 2px solid var(--color-accent, rgb(214, 0, 21));
}

.hotsale-container {
	width: 100%;
	max-width: var(--max-width, 1300px);
	display: flex;
	flex-direction: column;
	gap: 1.8rem;
}

/* ── Header & Banner ── */
.hotsale-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.6rem;
	position: relative;
}

.hotsale-badge-top {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 1rem;
	border-radius: 20px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08rem;
	text-transform: uppercase;
	color: #00f0ff;
	background: rgba(0, 240, 255, 0.08);
	border: 1px solid rgba(0, 240, 255, 0.35);
	box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.hotsale-title {
	font-size: 2.4rem;
	font-weight: 800;
	letter-spacing: 0.08rem;
	text-transform: uppercase;
	margin: 0;
	background: linear-gradient(135deg, #00f0ff 0%, #9d00ff 35%, #ff0055 70%, #ff9900 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 10px rgba(157, 0, 255, 0.3));
}

.hotsale-subtitle {
	font-size: 1.05rem;
	color: var(--shop-text-muted, rgba(255, 255, 255, 0.75));
	font-weight: 500;
}

/* ── Countdown HUD ── */
.hotsale-hud {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: 1rem 1.8rem;
	background: rgba(18, 18, 18, 0.7);
	border: 1px solid rgba(157, 0, 255, 0.3);
	border-radius: 12px;
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(157, 0, 255, 0.1);
}

.hotsale-countdown-label {
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05rem;
	color: #ff9900;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.hotsale-countdown-label::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff0055;
	box-shadow: 0 0 8px #ff0055;
	animation: pulseGlow 1.5s infinite;
}

.hotsale-timer {
	display: flex;
	gap: 0.8rem;
	align-items: center;
	font-family: 'RobotoMono', monospace;
}

.hotsale-time-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 48px;
}

.hotsale-time-val {
	font-size: 1.45rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.hotsale-time-lbl {
	font-size: 0.65rem;
	text-transform: uppercase;
	color: var(--shop-text-muted, rgba(255, 255, 255, 0.6));
	letter-spacing: 0.05rem;
}

.hotsale-time-sep {
	font-size: 1.3rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.4);
	margin-top: -0.8rem;
}

.hotsale-schedule-copy {
	font-size: 0.85rem;
	color: var(--shop-text-muted, rgba(255, 255, 255, 0.65));
	font-style: italic;
	text-align: center;
	width: 100%;
}

/* ── Products Grid ── */
.hotsale-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	width: 100%;
}

/* ── Hot Sale Product Card (.card2 extension) ── */
.card2.hotsale-card {
	position: relative;
	border-radius: 8px;
	padding: 1.1rem;
	background: var(--shop-bg-card, #121212);
	border: 1px solid rgba(157, 0, 255, 0.25);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: visible;
	flex: 0 0 232px;
	width: 232px;
	max-width: 100%;
	box-sizing: border-box;
	cursor: pointer;
}

.card2.hotsale-card:hover {
	transform: translateY(-5px);
	border-color: #00f0ff;
	box-shadow: 0 8px 25px rgba(0, 240, 255, 0.25), 0 0 15px rgba(157, 0, 255, 0.3);
}

/* Featured Card Special Glow */
.card2.hotsale-card.hotsale-featured {
	border: 1.5px solid #ff0055;
	background: linear-gradient(180deg, rgba(255, 0, 85, 0.05) 0%, var(--shop-bg-card, #121212) 100%);
	box-shadow: 0 0 20px rgba(255, 0, 85, 0.2), inset 0 0 15px rgba(255, 0, 85, 0.08);
}

.card2.hotsale-card.hotsale-featured:hover {
	border-color: #ff9900;
	box-shadow: 0 10px 30px rgba(255, 153, 0, 0.3), 0 0 25px rgba(255, 0, 85, 0.4);
}

/* Floating Discount Badge (Top Right Overlap) */
.hotsale-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	background: linear-gradient(135deg, #ff0055 0%, #ff5500 100%);
	color: #ffffff;
	font-weight: 800;
	font-size: 0.95rem;
	padding: 0.35rem 0.65rem;
	border-radius: 8px;
	box-shadow: 0 3px 12px rgba(255, 0, 85, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.3);
	z-index: 5;
	letter-spacing: 0.02rem;
	pointer-events: none;
}

.hotsale-featured-label {
	position: absolute;
	top: -8px;
	left: -8px;
	background: linear-gradient(135deg, #00f0ff 0%, #9d00ff 100%);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.72rem;
	padding: 0.3rem 0.6rem;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.05rem;
	box-shadow: 0 3px 10px rgba(0, 240, 255, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.25);
	z-index: 5;
	pointer-events: none;
}

/* Card Image */
.card2.hotsale-card>img {
	width: 100%;
	max-height: 180px;
	object-fit: contain;
	border-radius: var(--border-radius, 4px);
	margin-bottom: 0.8rem;
	background: #ffffff;
	padding: 0.5rem;
}

/* Card Title */
.card2.hotsale-card h3 {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--shop-text-main, #ffffff);
	line-height: 1.35rem;
	margin-bottom: 0.6rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 2.7rem;
	text-align: center;
}

.card2.hotsale-card .card2__details {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
}

.card2.hotsale-card .card2__details__combo__parent {
	margin-top: auto;
}

/* Pricing layout */
.card2.hotsale-card .card-list-price-row {
	font-size: 0.88rem;
	color: var(--shop-text-muted, rgba(255, 255, 255, 0.7));
	margin: 0.2rem 0;
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.card2.hotsale-card .card-original-price {
	font-size: 0.82rem;
	color: var(--shop-text-muted, rgba(255, 255, 255, 0.5));
	text-decoration: line-through;
}

.card2.hotsale-card .card-promo-list-price {
	font-size: 0.95rem;
	font-weight: 700;
	color: #ffffff;
}

.card2.hotsale-card .card-promo-cash-row {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--shop-text-main, #ffffff);
	margin: 0.25rem 0 0.5rem 0;
	text-align: center;
}

.card2.hotsale-card .card-promo-cash-price {
	font-size: 1.2rem;
	font-weight: 800;
	color: #00f0ff;
	margin-left: 0.25rem;
	display: inline-block;
}

.card2.hotsale-card.hotsale-featured .card-promo-cash-price {
	color: #ff9900;
}

/* Green Consultar Button */
.card2.hotsale-card .btnBuy,
.hotsale-btn-buy {
	display: block;
	width: 100%;
	margin-top: 0.8rem;
	padding: 0.65rem 0;
	background-color: #00cc44;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.03rem;
	text-align: center;
	text-decoration: none;
	border-radius: var(--border-radius, 4px);
	border: none;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(0, 204, 68, 0.25);
	transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card2.hotsale-card .btnBuy:hover,
.hotsale-btn-buy:hover {
	background-color: #00b33c;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 204, 68, 0.4);
}

/* ── Animations ── */
@keyframes pulseGlow {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.4;
		transform: scale(0.85);
	}
}

/* ── Prefers Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {

	.card2.hotsale-card,
	.card2.hotsale-card:hover {
		transform: none !important;
		transition: none !important;
	}

	.hotsale-countdown-label::before {
		animation: none !important;
	}
}

/* ── Responsive Queries ── */
@media (max-width: 768px) {
	.hotsale-title {
		font-size: 1.6rem;
	}

	.hotsale-hud {
		padding: 0.8rem 1rem;
		gap: 0.8rem;
	}

	.hotsale-time-val {
		font-size: 1.2rem;
	}

	.hotsale-grid {
		gap: 1rem;
	}

	.card2.hotsale-card {
		flex: 0 0 170px;
		width: 170px;
		padding: 0.85rem;
	}

	.card2.hotsale-card h3 {
		font-size: 0.85rem;
		height: 2.4rem;
		line-height: 1.2rem;
	}

	.card2.hotsale-card .card-promo-cash-price {
		font-size: 1.05rem;
	}
}

@media (max-width: 480px) {
	.hotsale-title {
		font-size: 1.35rem;
	}

	.card2.hotsale-card {
		flex: 0 0 100%;
		width: 100%;
		max-width: 300px;
	}
}