/**
 * Custom overrides — Ipedourado
 */

@media (min-width: 921px) {
	.ast-theme-transparent-header .main-header-bar,
	.ast-theme-transparent-header.ast-header-break-point .main-header-bar {
		background: #FAF5E5 !important;
	}
}

@media (max-width: 921px) {
	header .custom-logo-link img,
	.ast-header-break-point .site-logo-img .custom-mobile-logo-link img {
		max-width: 150px !important;
		width: 150px !important;
	}
}

/* ---- Botão flutuante WhatsApp ---- */
.ipd-whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	animation: ipd-whatsapp-pulse 2s ease-in-out infinite;
}

.ipd-whatsapp-float:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
	animation: none;
	color: #fff;
}

.ipd-whatsapp-float__icon {
	width: 30px;
	height: 30px;
	flex-shrink: 0;
}

@keyframes ipd-whatsapp-pulse {
	0%, 100% {
		box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0.15);
		transform: scale(1.06);
	}
}

@media (max-width: 768px) {
	.ipd-whatsapp-float {
		bottom: 16px;
		right: 16px;
		width: 50px;
		height: 50px;
	}
	.ipd-whatsapp-float__icon {
		width: 26px;
		height: 26px;
	}
}

/* ---- Seção "Sobre" na página Loja ---- */
.ipd-loja-about {
	width: 100%;
	margin: 40px 0 0;
	padding-bottom: 40px;
}

.ipd-loja-about__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 24px rgba(10, 29, 55, .08);
	overflow: hidden;
}

.ipd-loja-about__content {
	padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
}

.ipd-loja-about__title {
	margin: 0 0 1.2rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: #0a1d37;
	text-transform: uppercase;
	letter-spacing: .02em;
	line-height: 1.35;
}

.ipd-loja-about__text {
	margin: 0;
	font-size: .95rem;
	line-height: 1.7;
	color: #666;
}

.ipd-loja-about__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	min-height: 280px;
}

@media (max-width: 768px) {
	.ipd-loja-about__row {
		grid-template-columns: 1fr;
	}
	.ipd-loja-about__image img {
		min-height: 200px;
	}
}

@media (max-width: 1024px) {
	.elementor-285 .elementor-element.elementor-element-87843d8 img {
		width: 50% !important;
	}
}

@media (max-width: 767px) {
	.elementor-285 .elementor-element.elementor-element-87843d8 img {
		width: 150px !important;
	}
}

/* Cor dos ícones sociais no footer */
.elementor-285 .elementor-element.elementor-element-2b33072 .elementor-social-icon {
	background-color: #a47642 !important;
}

.elementor-285 .elementor-element.elementor-element-2b33072 .elementor-social-icon:hover {
	background-color: #e1ac3b !important;
}

/* Esconde "Guaranteed Safe Checkout" na página de produto */
body.single-product fieldset.ast-single-product-payments {
	display: none !important;
}

/* Esconde "+ Free Shipping" na página de produto */
body.single-product .ast-shipping-text {
	display: none !important;
}

/* ---- Banner de consentimento de cookies ---- */
.ipd-cookie-consent {
	--ipd-cookie-bg: #faf5e5;
	--ipd-cookie-text: #0a1d37;
	--ipd-cookie-muted: #666666;
	--ipd-cookie-accent: #a47642;
	--ipd-cookie-accent-hover: #e1ac3b;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10050;
	transform: translate3d(0, 110%, 0);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: 0 -8px 32px rgba(10, 29, 55, 0.12);
	background: var(--ipd-cookie-bg);
	border-top: 1px solid rgba(164, 118, 66, 0.25);
	pointer-events: none;
}

.ipd-cookie-consent--visible {
	transform: translate3d(0, 0, 0);
	pointer-events: auto;
}

.ipd-cookie-consent__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 1rem 1.25rem 1.15rem;
	max-width: 100%;
}

.ipd-cookie-consent__content {
	flex: 1 1 280px;
	min-width: 0;
}

.ipd-cookie-consent__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--ipd-cookie-text);
	letter-spacing: 0.02em;
}

.ipd-cookie-consent__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--ipd-cookie-muted);
}

.ipd-cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	flex: 0 0 auto;
}

.ipd-cookie-consent__btn {
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.65rem 1.25rem;
	border-radius: 10px;
	border: 2px solid var(--ipd-cookie-accent);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ipd-cookie-consent__btn--reject {
	background: transparent;
	color: var(--ipd-cookie-accent);
}

.ipd-cookie-consent__btn--reject:hover,
.ipd-cookie-consent__btn--reject:focus-visible {
	background: rgba(164, 118, 66, 0.08);
	border-color: var(--ipd-cookie-accent-hover);
	color: #8a5f36;
	outline: none;
}

.ipd-cookie-consent__btn--accept {
	background: var(--ipd-cookie-accent);
	color: #fff;
	border-color: var(--ipd-cookie-accent);
}

.ipd-cookie-consent__btn--accept:hover,
.ipd-cookie-consent__btn--accept:focus-visible {
	background: var(--ipd-cookie-accent-hover);
	border-color: var(--ipd-cookie-accent-hover);
	color: #fff;
	outline: none;
}

/* Evita sobrepor o botão do WhatsApp quando o banner está visível */
body.ipd-cookie-consent-active .ipd-whatsapp-float {
	bottom: 120px;
}

@media (max-width: 782px) {
	.ipd-cookie-consent__inner {
		flex-direction: column;
		align-items: stretch;
		padding: 1rem 1rem 1.25rem;
	}

	.ipd-cookie-consent__actions {
		justify-content: stretch;
	}

	.ipd-cookie-consent__btn {
		flex: 1 1 auto;
		text-align: center;
		min-width: 0;
	}

	body.ipd-cookie-consent-active .ipd-whatsapp-float {
		bottom: 200px;
	}
}

/* ---- Créditos FSTECH (abaixo do rodapé) ---- */
.ipd-fstech-credits-wrap {
	background: #f5f4f1;
	border-top: 1px solid rgba(45, 52, 54, 0.08);
	padding: 0.5rem 0 0.65rem;
}

.ipd-fstech-credits {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.ipd-fstech-credits__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.45rem 0.65rem;
	text-decoration: none;
	color: #888;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.ipd-fstech-credits__link:hover,
.ipd-fstech-credits__link:focus-visible {
	color: #62b84d;
	outline: none;
}

.ipd-fstech-credits__label {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #8a8a8a;
	line-height: 1.2;
}

.ipd-fstech-credits__link:hover .ipd-fstech-credits__label,
.ipd-fstech-credits__link:focus-visible .ipd-fstech-credits__label {
	color: #6d6d6d;
}

.ipd-fstech-credits__logo {
	display: block;
	height: 40px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	opacity: 0.88;
	filter: grayscale(0.08);
	transition: opacity 0.2s ease, filter 0.2s ease;
}

.ipd-fstech-credits__link:hover .ipd-fstech-credits__logo,
.ipd-fstech-credits__link:focus-visible .ipd-fstech-credits__logo {
	opacity: 1;
	filter: grayscale(0);
}

/* Fallback textual (sem ficheiro de imagem) */
.ipd-fstech-credits__name {
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: #2d3436;
	opacity: 0.88;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.ipd-fstech-credits__link:hover .ipd-fstech-credits__name,
.ipd-fstech-credits__link:focus-visible .ipd-fstech-credits__name {
	opacity: 1;
	color: #62b84d;
}

@media (max-width: 480px) {
	.ipd-fstech-credits__logo {
		height: 19px;
		max-width: 120px;
	}

	.ipd-fstech-credits__label {
		font-size: 0.68rem;
	}

	.ipd-fstech-credits__name {
		font-size: 0.88rem;
	}
}

/* ---- Página 404: CTA em vez de pesquisa ---- */
.error-404 .ipd-404-cta {
	margin-top: 0.35rem;
}

.error-404 .ipd-404-cta .ast-button {
	display: inline-block;
	text-decoration: none;
}