/* Popup de compra + balao WhatsApp */

body.store-popup-open {
	overflow: hidden;
}

body.store-popup-open .whatsapp-float {
	z-index: 1;
	pointer-events: none;
}

.store-popup[hidden] {
	display: none !important;
}

.store-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.store-popup.is-open {
	display: flex;
}

.store-popup-backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(4px);
}

.store-popup-card {
	position: relative;
	z-index: 2;
	pointer-events: auto;
	width: min(100%, 420px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: linear-gradient(180deg, #1a1f2e 0%, #121722 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	padding: 18px 18px 20px;
	animation: storePopupIn 0.28s ease;
	box-sizing: border-box;
}

@keyframes storePopupIn {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.store-popup-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.store-popup-title {
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
	text-align: center;
	margin: 0 28px 12px 0;
	line-height: 1.35;
}

.store-popup-image-link {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 14px;
}

.store-popup-image {
	display: block;
	width: 100%;
	max-height: 52vh;
	height: auto;
	object-fit: contain;
	background: rgba(0, 0, 0, 0.2);
}

.store-popup-actions {
	display: grid;
	gap: 10px;
}

.store-popup-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: 12px;
	border: 0;
	background: linear-gradient(135deg, #ff7a18 0%, #e66a35 100%);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.store-popup-btn:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(230, 106, 53, 0.35);
}

.store-popup-btn-secondary {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-weight: 600;
}

.store-popup-btn-secondary:hover {
	box-shadow: none;
	background: rgba(255, 255, 255, 0.12);
}

.whatsapp-float {
	position: fixed;
	right: 22px;
	bottom: 22px;
	left: auto;
	z-index: 99990;
	display: block;
	width: 62px;
	height: 62px;
	text-decoration: none;
	border: 0;
	border-bottom: none !important;
	outline: none;
	box-shadow: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
	text-decoration: none;
	border-bottom: none !important;
	outline: none;
}

.whatsapp-float-balloon {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	max-width: 220px;
	padding: 10px 14px;
	border-radius: 999px;
	background: #fff;
	color: #1f2937;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-50%) translateX(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
	white-space: nowrap;
	border: 0;
}

.whatsapp-float:hover .whatsapp-float-balloon,
.whatsapp-float:focus .whatsapp-float-balloon {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

.whatsapp-float-btn {
	position: relative;
	z-index: 1;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 14px 30px rgba(18, 140, 126, 0.35);
	animation: whatsappPulse 2.4s infinite;
	flex-shrink: 0;
}

.whatsapp-float-btn svg {
	width: 34px;
	height: 34px;
	display: block;
	fill: currentColor;
}

@keyframes whatsappPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
	}
	70% {
		box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
	}
}

@media (max-width: 640px) {
	.store-popup {
		padding: 12px;
	}

	.store-popup-card {
		width: min(100%, 360px);
		padding: 16px;
	}

	.store-popup-image {
		max-height: 45vh;
	}

	.whatsapp-float {
		right: 14px;
		bottom: 14px;
		width: 56px;
		height: 56px;
	}

	.whatsapp-float-balloon {
		display: none;
	}

	.whatsapp-float-btn {
		width: 56px;
		height: 56px;
	}

	.whatsapp-float-btn svg {
		width: 30px;
		height: 30px;
	}
}

/* Rodape: remove pontilhado dos links e do logo inline */
#footer,
#footer .footer-content,
#footer .footer-content * {
	border-bottom-color: transparent;
}

#footer a,
#footer a:hover,
#footer a:focus,
#footer a:active,
#footer .footer-content a,
#footer .footer-content a:hover,
#footer .footer-content a:focus,
#footer .footer-content a:active {
	border: 0 !important;
	border-bottom: 0 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	background-image: none !important;
}

#footer .footer-brand-inline {
	display: inline-block;
	vertical-align: middle;
	margin: 0 0 0 8px;
	line-height: 0;
	cursor: pointer;
	border: 0 !important;
}

#footer .footer-brand-inline img {
	display: block;
	width: 32px;
	height: 32px;
	margin: 0;
	border: 0 !important;
}
