/*
 * Borbila child theme safety fixes.
 * Keep this file scoped so parent theme and plugin files stay untouched.
 */

/*
 * Homepage category loop carousel: prevent a full-size category image flash
 * before Elementor/Swiper finishes initializing the carousel.
 */
.elementor-126 .elementor-element.elementor-element-380fe22,
.elementor-126 .elementor-element.elementor-element-380fe22 .swiper,
.elementor-126 .elementor-element.elementor-element-380fe22 .elementor-loop-container {
	max-width: 100% !important;
	overflow: hidden !important;
	width: 100% !important;
}

.elementor-126 .elementor-element.elementor-element-380fe22 .swiper:not(.swiper-initialized) .swiper-wrapper {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 14px !important;
	overflow: hidden !important;
	width: 100% !important;
}

.elementor-126 .elementor-element.elementor-element-380fe22 .swiper:not(.swiper-initialized) .swiper-slide {
	flex: 0 0 calc((100% - 70px) / 6) !important;
	max-width: calc((100% - 70px) / 6) !important;
	min-width: 0 !important;
	overflow: hidden !important;
	width: calc((100% - 70px) / 6) !important;
}

.elementor-126 .elementor-element.elementor-element-380fe22 .swiper-slide img {
	aspect-ratio: 4 / 3 !important;
	display: block !important;
	height: auto !important;
	max-width: 100% !important;
	object-fit: cover !important;
	width: 100% !important;
}

@media (max-width: 1024px) {
	.elementor-126 .elementor-element.elementor-element-380fe22 .swiper:not(.swiper-initialized) .swiper-slide {
		flex-basis: calc((100% - 42px) / 4) !important;
		max-width: calc((100% - 42px) / 4) !important;
		width: calc((100% - 42px) / 4) !important;
	}
}

@media (max-width: 767px) {
	.elementor-126 .elementor-element.elementor-element-380fe22 .swiper:not(.swiper-initialized) .swiper-wrapper {
		gap: 4px !important;
	}

	.elementor-126 .elementor-element.elementor-element-380fe22 .swiper:not(.swiper-initialized) .swiper-slide {
		flex-basis: calc((100% - 8px) / 3) !important;
		max-width: calc((100% - 8px) / 3) !important;
		width: calc((100% - 8px) / 3) !important;
	}
}

/*
 * Homepage product loop carousel: keep product cards at their final carousel
 * width while Swiper is still starting up, preventing the first product from
 * flashing as one giant full-width card on refresh.
 */
.elementor-126 .elementor-element.elementor-element-3d08728,
.elementor-126 .elementor-element.elementor-element-3d08728 .swiper,
.elementor-126 .elementor-element.elementor-element-3d08728 .elementor-loop-container {
	max-width: 100% !important;
	overflow: hidden !important;
	width: 100% !important;
}

.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .swiper-wrapper {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 14px !important;
	overflow: hidden !important;
	width: 100% !important;
}

.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .swiper-slide {
	flex: 0 0 calc((100% - 42px) / 4) !important;
	max-width: calc((100% - 42px) / 4) !important;
	min-width: 0 !important;
	overflow: hidden !important;
	width: calc((100% - 42px) / 4) !important;
}

.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .swiper-slide > .elementor-element,
.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .e-loop-item > .elementor-section,
.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .e-loop-item > .elementor-section > .elementor-container,
.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .e-loop-item > .e-con,
.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .e-loop-item .elementor-section-wrap > .e-con {
	height: 100% !important;
	min-width: 0 !important;
	width: 100% !important;
}

.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .e-loop-item,
.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .product {
	min-width: 0 !important;
	width: 100% !important;
}

.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) img,
.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .elementor-widget-theme-post-featured-image img {
	aspect-ratio: 1 / 1 !important;
	display: block !important;
	height: auto !important;
	max-width: 100% !important;
	object-fit: cover !important;
	width: 100% !important;
}

@media (max-width: 1024px) {
	.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .swiper-slide {
		flex-basis: calc((100% - 8px) / 2) !important;
		max-width: calc((100% - 8px) / 2) !important;
		width: calc((100% - 8px) / 2) !important;
	}
}

@media (max-width: 767px) {
	.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .swiper-wrapper {
		gap: 8px !important;
	}

	.elementor-126 .elementor-element.elementor-element-3d08728 .swiper:not(.swiper-initialized) .swiper-slide {
		flex-basis: calc((100% - 8px) / 2) !important;
		max-width: calc((100% - 8px) / 2) !important;
		width: calc((100% - 8px) / 2) !important;
	}
}

/*
 * Bottom mobile menu: use a simple outline account icon that follows the
 * backend-controlled menu colors.
 */
#wpbmm-menu .wpbmm-item-account i {
	background: transparent !important;
	box-shadow: none !important;
	color: currentColor !important;
	display: inline-block !important;
	flex: 0 0 22px !important;
	font-size: 0 !important;
	height: 22px !important;
	line-height: 1 !important;
	position: relative !important;
	width: 22px !important;
}

#wpbmm-menu .wpbmm-item-account i::before {
	background: transparent !important;
	border: 2px solid currentColor !important;
	border-radius: 50% !important;
	box-sizing: border-box !important;
	content: "" !important;
	height: 10px !important;
	left: 50% !important;
	position: absolute !important;
	top: 1px !important;
	transform: translateX(-50%) !important;
	width: 10px !important;
}

#wpbmm-menu .wpbmm-item-account i::after {
	background: transparent !important;
	border: 2px solid currentColor !important;
	border-bottom: 0 !important;
	border-radius: 14px 14px 0 0 !important;
	box-sizing: border-box !important;
	content: "" !important;
	height: 9px !important;
	left: 50% !important;
	position: absolute !important;
	top: 13px !important;
	transform: translateX(-50%) !important;
	width: 18px !important;
}

#wpbmm-menu .wpbmm-item-account:hover i,
#wpbmm-menu .wpbmm-item-account:focus-visible i {
	transform: translateY(-1px) !important;
}

#wpbmm-menu .wpbmm-item-account.wpbmm-item-active i,
#wpbmm-menu .wpbmm-item-account:focus-visible i {
	color: var(--wpbmm-text-active-color, #6f00ff) !important;
}

/*
 * Bottom mobile menu: use the requested purple shopping cart outline.
 */
#wpbmm-menu .wpbmm-item-cart i {
	background: transparent !important;
	box-shadow: none !important;
	color: #111111 !important;
	display: inline-flex !important;
	flex: 0 0 24px !important;
	font-size: 0 !important;
	height: 24px !important;
	line-height: 1 !important;
	position: relative !important;
	width: 24px !important;
}

#wpbmm-menu .wpbmm-item-cart i::before {
	background: currentColor !important;
	content: "" !important;
	display: block !important;
	height: 24px !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat !important;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / contain no-repeat !important;
	width: 24px !important;
}

#wpbmm-menu .wpbmm-item-cart i::after {
	content: none !important;
}

#wpbmm-menu .wpbmm-item-cart.wpbmm-item-active i {
	color: var(--wpbmm-text-active-color, #6f00ff) !important;
}

#wpbmm-menu .wpbmm-item-cart:hover i,
#wpbmm-menu .wpbmm-item-cart:focus-visible i {
	transform: translateY(-1px) !important;
}

.borbila-floating-whatsapp {
	align-items: center;
	bottom: 24px;
	display: inline-flex;
	gap: 10px;
	position: fixed;
	right: 22px;
	text-decoration: none !important;
	z-index: 99990;
}

.borbila-floating-whatsapp__icon {
	align-items: center;
	background: linear-gradient(135deg, #29d86d 0%, #12b955 52%, #059447 100%);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	box-shadow: 0 18px 34px rgba(18, 185, 85, 0.34), 0 7px 18px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.34);
	color: #fff;
	display: inline-flex;
	height: 58px;
	justify-content: center;
	position: relative;
	transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
	width: 58px;
}

.borbila-floating-whatsapp__icon::before {
	animation: borbila-whatsapp-pulse 2.4s ease-out infinite;
	border: 1px solid rgba(18, 185, 85, 0.42);
	border-radius: inherit;
	content: "";
	inset: -7px;
	position: absolute;
}

.borbila-floating-whatsapp__icon svg {
	display: block;
	fill: currentColor;
	height: 31px;
	width: 31px;
}

.borbila-floating-whatsapp__text {
	background: #101214;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	opacity: 0;
	padding: 12px 15px;
	pointer-events: none;
	transform: translateX(10px) scale(0.96);
	transform-origin: right center;
	transition: opacity 220ms ease, transform 220ms ease;
	white-space: nowrap;
}

.borbila-floating-whatsapp:hover .borbila-floating-whatsapp__icon,
.borbila-floating-whatsapp:focus-visible .borbila-floating-whatsapp__icon {
	box-shadow: 0 20px 42px rgba(18, 185, 85, 0.42), 0 9px 22px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.38);
	filter: saturate(1.08);
	transform: translateY(-3px) scale(1.04);
}

.borbila-floating-whatsapp:hover .borbila-floating-whatsapp__text,
.borbila-floating-whatsapp:focus-visible .borbila-floating-whatsapp__text {
	opacity: 1;
	transform: translateX(0) scale(1);
}

.borbila-floating-whatsapp:focus-visible {
	outline: 2px solid rgba(18, 185, 85, 0.5);
	outline-offset: 6px;
}

body.admin-bar .borbila-floating-whatsapp {
	bottom: 34px;
}

@keyframes borbila-whatsapp-pulse {
	0% {
		opacity: 0.5;
		transform: scale(0.88);
	}

	70%,
	100% {
		opacity: 0;
		transform: scale(1.35);
	}
}

.bbpf-wrap,
.bbpf-wrap * {
	box-sizing: border-box;
}

.bbpf-wrap {
	letter-spacing: 0;
	text-transform: none;
	width: 100%;
}

.bbpf-layout {
	align-items: start !important;
	display: grid !important;
	gap: 22px !important;
	grid-template-columns: minmax(245px, 315px) minmax(0, 1fr) !important;
	width: 100% !important;
}

.bbpf-sidebar {
	width: 100% !important;
}

.bbpf-form {
	display: grid !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

.bbpf-title,
.bbpf-section-toggle,
.bbpf-section-toggle span {
	color: #111 !important;
	font-weight: 800 !important;
}

.bbpf-section {
	margin: 0 !important;
	width: 100% !important;
}

.bbpf-section-toggle {
	align-items: center !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	display: flex !important;
	flex-direction: row !important;
	justify-content: space-between !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	width: 100% !important;
}

.bbpf-section-toggle span {
	display: block !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
}

.bbpf-section-toggle b {
	display: block !important;
	flex: 0 0 28px !important;
	height: 28px !important;
	width: 28px !important;
}

.bbpf-search-row {
	align-items: center !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 43px !important;
	width: 100% !important;
}

.bbpf-search-row input {
	box-shadow: none !important;
	max-width: none !important;
	width: 100% !important;
}

.bbpf-search-button,
.bbpf-apply,
.bbpf-reset,
.bbpf-mobile-toggle,
.bbpf-mobile-close {
	box-shadow: none !important;
	font-family: inherit !important;
	font-weight: 800 !important;
	text-transform: none !important;
}

.bbpf-search-button {
	align-items: center !important;
	display: inline-flex !important;
	flex: 0 0 43px !important;
	height: 43px !important;
	justify-content: center !important;
	min-height: 43px !important;
	padding: 0 !important;
	width: 43px !important;
}

.bbpf-check {
	align-items: center !important;
	display: grid !important;
	gap: 9px !important;
	grid-template-columns: 16px minmax(0, 1fr) auto !important;
	margin: 0 !important;
	width: 100% !important;
}

.bbpf-check input {
	box-shadow: none !important;
	flex: none !important;
	height: 16px !important;
	margin: 0 !important;
	outline: 0 !important;
	width: 16px !important;
}

.bbpf-price-row,
.bbpf-actions {
	display: grid !important;
	width: 100% !important;
}

.bbpf-grid {
	align-items: stretch !important;
	display: grid !important;
	grid-template-columns: repeat(var(--bbpf-cols, 3), minmax(0, 1fr)) !important;
	width: 100% !important;
}

.bbpf-product {
	align-self: stretch !important;
	display: flex !important;
	height: 100% !important;
	min-width: 0 !important;
	width: 100% !important;
}

.bbpf-product > * {
	min-height: 100% !important;
	width: 100% !important;
}

.bbpf-mobile-toggle,
.bbpf-mobile-backdrop,
.bbpf-mobile-head {
	display: none !important;
}

@media (max-width: 1024px) {
	.bbpf-layout {
		grid-template-columns: minmax(225px, 275px) minmax(0, 1fr) !important;
	}
}

@media (max-width: 767px) {
	.borbila-floating-whatsapp {
		bottom: 18px;
		right: 16px;
	}

	.borbila-floating-whatsapp__icon {
		height: 54px;
		width: 54px;
	}

	.borbila-floating-whatsapp__icon svg {
		height: 29px;
		width: 29px;
	}

	.borbila-floating-whatsapp__text {
		font-size: 13px;
		padding: 11px 13px;
	}

	.bbpf-mobile-toggle {
		display: inline-flex !important;
	}

	.bbpf-mobile-backdrop {
		display: block !important;
	}

	.bbpf-mobile-head {
		display: flex !important;
	}

	.bbpf-layout {
		display: block !important;
	}

	.bbpf-sidebar {
		position: fixed !important;
		transform: translateX(-105%) !important;
	}

	.bbpf-filter-open .bbpf-sidebar {
		transform: translateX(0) !important;
	}

	.bbpf-columns-3,
	.bbpf-columns-4 {
		--bbpf-cols: 2;
	}
}
