/* ==========================================================================
   BE_ Product Showcase — front-end styles
   Text Domain: bl_ex
   ========================================================================== */

.be-product-showcase {
	--be-columns: 4;
	--be-columns-gap: 24px;
	--be-rows-gap: 24px;
	position: relative;
}

/* ---------- Grid layout ---------- */
.be-product-grid-inner {
	display: grid;
	grid-template-columns: repeat(var(--be-columns), 1fr);
	column-gap: var(--be-columns-gap);
	row-gap: var(--be-rows-gap);
}

/* ---------- Slider layout ---------- */
.be-product-slider {
	position: relative;
	overflow: hidden;
	padding-top: 40px; /* room for the bottle image overflow */
}

.be-product-slider .swiper-wrapper {
	display: flex;
}

.be-product-slider .swiper-slide {
	height: auto;
	flex-shrink: 0;
}

/* ---------- Item / Card ---------- */
.be-product-item {
	display: flex;
}

.be-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}

/* Background image behind the bottle */
.be-product-bg {
	position: relative;
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: #eaf7fb;
}

.be-product-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Bottle image overflowing on top of the card */
.be-product-bottle {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	margin-top: -40px;
	pointer-events: none;
}

.be-product-bottle img {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.15));
	transition: transform .3s ease;
}

.be-product-card:hover .be-product-bottle.be-hover-scale img {
	transform: translateY(-4px) scale(1.04);
}

/* Content area */
.be-product-content {
	position: relative;
	z-index: 1;
	padding: 16px 18px 20px;
	text-align: left;
}

.be-product-title {
	margin: 0 0 6px;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 600;
}

.be-product-title a {
	color: inherit;
	text-decoration: none;
}

.be-product-price {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
}

.be-product-price del {
	opacity: .6;
	font-weight: 400;
	margin-right: 6px;
}

.be-product-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px 16px;
	border-radius: 30px;
	background: linear-gradient(90deg, #17c3c0 0%, #7a3fe0 100%);
	color: #ffffff;
	font-weight: 500;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease;
}

.be-product-btn:hover {
	opacity: .9;
	color: #ffffff;
}

/* ---------- Slider navigation ---------- */
.be-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #ffffff;
	color: #1d2327;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	z-index: 5;
	transition: background .2s ease, color .2s ease;
}

.be-slider-arrow:hover {
	background: #7a3fe0;
	color: #ffffff;
}

.be-slider-prev {
	left: 4px;
}

.be-slider-next {
	right: 4px;
}

.be-product-slider .swiper-pagination {
	position: relative;
	margin-top: 20px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.be-product-slider .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d5d5d5;
	opacity: 1;
	cursor: pointer;
}

.be-product-slider .swiper-pagination-bullet-active {
	background: #7a3fe0;
}
.be-product-card {
	overflow: visible !important;
}
.be-product-bottle.be-hover-scale {
    position: absolute;
    top: 0px;
    left: 0px;
}

/* ---------- Responsive fallback (in case Elementor breakpoints are customized) ---------- */
@media (max-width: 1024px) {
	.be-product-grid-inner {
		grid-template-columns: repeat(min(var(--be-columns), 2), 1fr);
	}
}

@media (max-width: 767px) {
	.be-product-grid-inner {
		grid-template-columns: 1fr;
	}
}
