/**
 * Front-end badges and free gift labels.
 */

.bxgy-offer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.85rem;
}

.bxgy-offer__intro {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.bxgy-offer--loop {
	display: block;
	margin: 0.35rem 0 0;
}

.bxgy-offer-mount:empty {
	display: none;
}

.bxgy-offer-mount .bxgy-offer--single {
	margin: 0 0 1.25rem;
}

.bxgy-offer--cart,
.bxgy-offer--shortcode {
	margin: 0 0 0.75rem;
}

.bxgy-badge {
	display: inline-block;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.4em 0.7em;
	line-height: 1.2;
	z-index: 2;
}

ul.products li.product {
	position: relative;
}

.bxgy-badge--loop {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
}

.bxgy-offer--loop .bxgy-badge--loop {
	position: static;
}

.bxgy-offer__text,
.bxgy-single-offer__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #333;
}

/* Different-product gift spotlight */
.bxgy-gift-card {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 0.9rem;
	align-items: center;
	padding: 0.85rem;
	border: 1px solid #e6e2dc;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 247, 242, 0.98) 100%),
		repeating-linear-gradient(
			-12deg,
			transparent,
			transparent 10px,
			rgba(0, 0, 0, 0.015) 10px,
			rgba(0, 0, 0, 0.015) 11px
		);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
	animation: bxgy-gift-in 0.45s ease both;
}

.bxgy-gift-card__media {
	position: relative;
	width: 88px;
	height: 88px;
	overflow: hidden;
	background: #f0ebe4;
	border: 1px solid #ddd6cc;
}

.bxgy-gift-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.bxgy-gift-card:hover .bxgy-gift-card__img {
	transform: scale(1.04);
}

.bxgy-gift-card__ribbon {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 0.2em 0.55em;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bxgy-gift-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.bxgy-gift-card__eyebrow {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7a6f64;
}

.bxgy-gift-card__title {
	display: block;
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
	text-decoration: none;
}

a.bxgy-gift-card__title:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bxgy-gift-card__meta {
	margin: 0.15rem 0 0;
	font-size: 0.82rem;
	color: #5c554e;
}

@keyframes bxgy-gift-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 480px) {
	.bxgy-gift-card {
		grid-template-columns: 72px 1fr;
		gap: 0.75rem;
		padding: 0.75rem;
	}

	.bxgy-gift-card__media {
		width: 72px;
		height: 72px;
	}
}

.bxgy-free-badge {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.15em 0.5em;
	background: #e8f5e9;
	color: #1b5e20;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 2px;
}

.bxgy-free-label {
	color: #1b5e20;
	font-weight: 700;
}

/* Classic cart: hide empty ":" label when cart label has no key. */
.woocommerce-cart-form dl.variation dt.variation-,
.woocommerce-mini-cart dl.variation dt.variation-,
.widget_shopping_cart dl.variation dt.variation- {
	display: none;
}

.woocommerce-cart-form dl.variation dd.variation-,
.woocommerce-mini-cart dl.variation dd.variation-,
.widget_shopping_cart dl.variation dd.variation- {
	margin: 0;
}

.woocommerce-cart-form dl.variation dd.variation- p,
.woocommerce-mini-cart dl.variation dd.variation- p,
.widget_shopping_cart dl.variation dd.variation- p {
	margin: 0;
}

.bxgy-locked-qty {
	display: inline-block;
	min-width: 2rem;
	text-align: center;
}
