/* ===== Vinhos Banner Grid — Frontend ===== */
.vbg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: 1300px;
	margin: 40px auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.vbg-grid * { box-sizing: border-box; }

.vbg-box {
	position: relative;
	min-height: 220px;
	border-radius: 6px;
	overflow: hidden;
	background: #ece9e4;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease var(--vbg-delay, 0s), transform .6s ease var(--vbg-delay, 0s);
}

.vbg-box.vbg-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---- tipo: product (texto + botão de um lado, imagem do outro) ---- */
.vbg-box--product {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 30px;
	gap: 16px;
}

.vbg-box--product .vbg-box__image {
	flex: 0 0 45%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.vbg-box--product .vbg-box__image img {
	max-width: 100%;
	max-height: 220px;
	object-fit: contain;
	transition: transform .5s ease;
}

.vbg-box--product:hover .vbg-box__image img {
	transform: scale(1.06) rotate(-1deg);
}

/* ---- tipo: light (fundo claro, só texto) ---- */
.vbg-box--light {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 30px;
}

/* ---- tipo: overlay (imagem de fundo com texto sobreposto) ---- */
.vbg-box--overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.vbg-box__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.vbg-box--overlay:hover .vbg-box__bg,
.vbg-box--image-only:hover .vbg-box__bg {
	transform: scale(1.08);
}

.vbg-box__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20,10,8,.15) 0%, rgba(20,10,8,.55) 100%);
}

.vbg-box__content--overlay {
	position: relative;
	z-index: 2;
	padding: 20px;
}

/* ---- tipo: image-only ---- */
.vbg-box--image-only {
	min-height: 220px;
}

/* ---- textos e botão ---- */
.vbg-box__title {
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: #58595b;
	margin: 0 0 18px;
	font-family: inherit;
}

.vbg-box__title--light {
	color: #ffffff;
	text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.vbg-box__btn {
	display: inline-block;
	background: #b6a06a;
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	padding: 12px 26px;
	border-radius: 3px;
	transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.vbg-box__btn:hover {
	background: #9c894f;
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(0,0,0,.18);
	color: #fff !important;
}

/* ---- Responsivo ---- */
@media (max-width: 992px) {
	.vbg-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.vbg-box--product {
		flex-direction: column;
		text-align: center;
	}
	.vbg-box--product .vbg-box__image {
		flex: 0 0 auto;
		margin-top: 16px;
	}
	.vbg-box__title {
		font-size: 22px;
	}
}

@media (max-width: 640px) {
	.vbg-grid {
		grid-template-columns: 1fr;
	}
	.vbg-box {
		min-height: 240px;
	}
}
