/* Desktop hide */
@media (min-width: 992px) {

	.ezze-mbar,
	.ezze-mbar__overlay,
	.ezze-drawer,
	.ezze-pbar {
		display: none !important;
	}
}

/* Overlay */
.ezze-mbar__overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0, 0, 0, 0.75);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, visibility .2s ease;
}

.ezze-mbar__overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Bottom bar (mobile) */
.ezze-mbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
	background: #1a1d3e;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.ezze-mbar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 6px !important;
	border-radius: 8px !important;
	background: rgba(255, 255, 255, .06) !important;
	color: #fff;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	font: inherit;
}

/* Active State */
.ezze-mbar__item.active .ezze-mbar__icon {
	color: var(--ezze-mfb-active-color, #ff3b30);
}

.ezze-mbar__item.active .ezze-mbar__text {
	color: var(--ezze-mfb-active-color, #ff3b30);
	font-weight: 600;
}

.ezze-mbar__item:active {
	transform: translateY(1px);
}

.ezze-mbar__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
}

.ezze-mbar__icon i {
	font-size: 18px;
	line-height: 1;
}

.ezze-mbar__text {
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

/* Cart badge */
.ezze-mbar__badge {
	position: absolute;
	top: -8px;
	right: -12px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ff3b30;
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

/* Drawers */
.ezze-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99999;
	width: min(86vw, 380px);
	height: 100dvh;
	background: #1a1d3e;
	color: #fff;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	border-left: 1px solid rgba(255, 255, 255, .12);
	display: flex;
	flex-direction: column;
	will-change: transform;
}

.ezze-drawer.is-open {
	transform: translateX(0);
	box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

/* Prevent body scroll when drawer is open */
body.ezze-drawer-open {
	overflow: hidden !important;
	position: fixed !important;
	width: 100% !important;
	height: 100% !important;
}

.ezze-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ezze-drawer__title {
	font-size: 16px;
}

.ezze-drawer__close {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	padding: 0 !important;
}

.ezze-drawer__nav {
	padding: 12px 16px;
	overflow: auto;
}

.ezze-drawer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ezze-drawer__menu li {
	margin: 0;
	padding: 0;
}

.ezze-drawer__menu a {
	display: block;
	padding: 12px 12px;
	border-radius: 12px;
	text-decoration: none;
	color: #fff;
	background: rgba(255, 255, 255, .06);
	margin-bottom: 10px;
}

.ezze-drawer__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	/* Hidden by default */
	background: rgba(0, 0, 0, 0.2);
}

.ezze-drawer__menu .sub-menu a {
	padding-left: 24px;
	background: transparent;
	font-size: 0.95em;
	margin-bottom: 0;
	border-radius: 0;
}

/* Accordion Parent */
.ezze-drawer__menu .menu-item-has-children>a {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ezze-drawer__menu .menu-item-has-children>a::after {
	content: '\f078';
	/* FontAwesome chevron-down */
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 12px;
	transition: transform 0.2s;
}

.ezze-drawer__menu .menu-item-has-children.ezze-menu-open>a::after {
	transform: rotate(180deg);
}

.ezze-drawer__empty {
	margin: 0;
	opacity: .85;
	font-size: 14px;
}

/* Give space so bar doesn't cover content (except product page) */
@media (max-width: 991px) {
	body:not(.single-product) {
		padding-bottom: 78px;
	}
}

/* Product sticky bar (single product only) */
.ezze-pbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
	background: #1a1d3e;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.ezze-pbar__btn {
	border: 0;
	border-radius: 14px !important;
	padding: 12px 12px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer;
}

/* Gradients */
.ezze-pbar__btn--cart,
.ezze-pbar form.cart .single_add_to_cart_button {
	background-image: linear-gradient(-60deg, #16a085 0%, #f4d03f 100%);
	color: #fff !important;
}

.ezze-pbar__btn--buy {
	background-image: linear-gradient(-60deg, #ff5858 0%, #f09819 100%);
	color: #fff !important;
}

@media (max-width: 767px) {

	.ezze-pbar .st-product-cta-wrap {
		margin-top: 0 !important;
	}

	/* Hide quantity field inside the sticky bar only */
	.ezze-pbar form.cart .quantity,
	.ezze-pbar form.cart .qty,
	.ezze-pbar .st-product-whatsapp-btn {
		display: none !important;
	}

	/* Hide stock messages inside the sticky bar only */
	.ezze-pbar .stock,
	.ezze-pbar p.stock {
		display: none !important;
	}

	/* Hide variation price / availability text blocks (optional, common in variable products) */
	.ezze-pbar .woocommerce-variation,
	.ezze-pbar .woocommerce-variation-description,
	.ezze-pbar .woocommerce-variation-availability,
	.ezze-pbar .woocommerce-variation-price {
		display: none !important;
	}

	/* Make buttons take full width */
	.ezze-pbar form.cart {
		display: flex;
		gap: 10px;
		width: 100%;
		margin: 0;
	}

	.ezze-pbar form.cart .single_add_to_cart_button,
	.ezze-pbar .st-product-cta-wrap .st-product-cta-btn {
		flex: 1;
		width: 100%;
	}
}

/* Add to cart popup */
.ezze-atc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.ezze-atc-modal.is-open {
	display: block;
}

.ezze-atc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.ezze-atc-modal__box {
	position: absolute;
	left: 50%;
	bottom: 90px;
	transform: translateX(-50%);
	width: calc(100% - 24px);
	max-width: 420px;
	background: #fff;
	border-radius: 12px;
	padding: 18px 18px 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ezze-atc-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 22px;
	cursor: pointer;
}

.ezze-atc-modal__content .woocommerce-message {
	margin: 0;
}

.ezze-atc-actions {
	margin-top: 12px;
	display: flex;
	gap: 10px;
}

.ezze-atc-view-cart {
	width: 100%;
	text-align: center;
}

.ezze-pbar .ezze-product-cta-wrap {
	margin: 0;
	padding: 0;
}