/* Flat Broke Webinar — open raffles grid */

.fbw-raffles {
	--fbw-cols: 3;
	--fbw-ink: #0a0a0a;
	--fbw-paper: #faf6ec;
	--fbw-paper-2: #f1ebde;
	--fbw-rule: #d8d2c4;
	--fbw-red: #a30000;
	--fbw-red-deep: #6f0000;
	--fbw-mute: #6a6a6a;

	display: grid;
	grid-template-columns: repeat(var(--fbw-cols), minmax(0, 1fr));
	gap: 24px;
}

.fbw-raffles-empty {
	padding: 40px;
	border: 2px dashed #c8c4bd;
	text-align: center;
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	font-size: 12px;
	color: #6a6a6a;
	background: #faf6ec;
}

.fbw-raffle {
	background: var(--fbw-paper);
	border: 2px solid var(--fbw-ink);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fbw-raffle:hover {
	transform: translateY(-4px);
	box-shadow: 6px 6px 0 var(--fbw-ink);
}

/* ── Image ────────────────────────────────────────────────────── */
.fbw-raffle__img {
	display: block;
	aspect-ratio: 5 / 4;
	border-bottom: 2px solid var(--fbw-ink);
	background:
		repeating-linear-gradient(
			45deg,
			rgba(0,0,0,.04) 0,
			rgba(0,0,0,.04) 2px,
			transparent 2px,
			transparent 14px
		),
		var(--fbw-paper-2);
	position: relative;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}
.fbw-raffle__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.fbw-raffle:hover .fbw-raffle__photo { transform: scale(1.04); }

/* Crosshair placeholder shown when product has no featured image */
.fbw-raffle__placeholder {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 110px;
	height: 110px;
	transform: translate(-50%, -50%);
	border: 2px solid var(--fbw-ink);
	border-radius: 50%;
	background:
		linear-gradient(var(--fbw-ink), var(--fbw-ink)) center / 100% 1.5px no-repeat,
		linear-gradient(var(--fbw-ink), var(--fbw-ink)) center / 1.5px 100% no-repeat,
		transparent;
	transition: transform 0.3s ease;
	pointer-events: none;
}
.fbw-raffle:hover .fbw-raffle__placeholder { transform: translate(-50%, -50%) rotate(6deg) scale(1.05); }

.fbw-raffle__photo-label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, calc(-50% + 80px));
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	font-size: 10px;
	color: var(--fbw-mute);
	background: var(--fbw-paper);
	padding: 4px 8px;
	border: 1px solid var(--fbw-ink);
}

.fbw-raffle__serial {
	position: absolute;
	top: 14px;
	left: 14px;
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--fbw-ink);
	background: var(--fbw-paper);
	padding: 4px 8px;
	border: 1.5px solid var(--fbw-ink);
	font-variant-numeric: tabular-nums;
}

.fbw-raffle__countdown {
	position: absolute;
	bottom: 14px;
	right: 14px;
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--fbw-paper);
	background: var(--fbw-ink);
	padding: 6px 10px;
	font-variant-numeric: tabular-nums;
}
.fbw-raffle__countdown.is-urgent {
	background: var(--fbw-red);
}

/* ── Body ─────────────────────────────────────────────────────── */
.fbw-raffle__body {
	padding: 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.fbw-raffle__title {
	margin: 0 0 6px;
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.05;
	text-transform: uppercase;
}
.fbw-raffle__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}
.fbw-raffle__title a:hover { color: var(--fbw-red); }

.fbw-raffle__sub {
	font-family: 'Oswald', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 11px;
	color: var(--fbw-mute);
	margin-bottom: 18px;
	line-height: 1.4;
}

/* ── Stat row ─────────────────────────────────────────────────── */
.fbw-raffle__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 14px 0;
	margin-bottom: 22px;
	border-top: 1px solid var(--fbw-rule);
	border-bottom: 1px solid var(--fbw-rule);
}
.fbw-raffle__stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.fbw-raffle__stat .k {
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 10px;
	color: var(--fbw-mute);
}
.fbw-raffle__stat .v {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--fbw-ink);
}
.fbw-raffle__stat .v small {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: var(--fbw-mute);
	margin-left: 4px;
}

/* ── Fill bar ─────────────────────────────────────────────────── */
.fbw-raffle__bar {
	position: relative;
	height: 8px;
	background: var(--fbw-paper-2);
	border: 1.5px solid var(--fbw-ink);
	margin-bottom: 26px;
}
.fbw-raffle__bar > i {
	display: block;
	height: 100%;
	background: var(--fbw-red);
	background-image:
		repeating-linear-gradient(
			45deg,
			rgba(255,255,255,.18) 0,
			rgba(255,255,255,.18) 4px,
			transparent 4px,
			transparent 8px
		);
	transition: width 0.4s ease;
}
.fbw-raffle__bar-label {
	position: absolute;
	right: -2px;
	top: -22px;
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--fbw-ink);
	font-variant-numeric: tabular-nums;
}

/* ── Foot: price + CTA ───────────────────────────────────────── */
.fbw-raffle__foot {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
}
.fbw-raffle__price {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--fbw-ink);
}
.fbw-raffle__price .woocommerce-Price-amount,
.fbw-raffle__price bdi {
	font-family: inherit;
	font-weight: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}
.fbw-raffle__price del {
	opacity: 0.45;
	font-size: 0.6em;
	margin-right: 6px;
}
.fbw-raffle__price ins {
	text-decoration: none;
}
.fbw-raffle__price small {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: var(--fbw-mute);
	margin-left: 4px;
}

.fbw-raffle__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--fbw-ink);
	color: var(--fbw-paper);
	border: 0;
	padding: 12px 16px;
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 12px;
	text-decoration: none;
	transition: background 0.15s ease;
}
.fbw-raffle__cta:hover {
	background: var(--fbw-red);
	color: var(--fbw-paper);
}
.fbw-raffle__arrow { transition: transform 0.2s ease; }
.fbw-raffle__cta:hover .fbw-raffle__arrow { transform: translateX(4px); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
	.fbw-raffles { grid-template-columns: repeat(min(2, var(--fbw-cols)), 1fr); }
}
@media (max-width: 720px) {
	.fbw-raffles { grid-template-columns: 1fr; }
	.fbw-raffle__body { padding: 18px; }
	.fbw-raffle__title { font-size: 20px; }
	.fbw-raffle__price { font-size: 26px; }
}
