/*
Theme Name: Real Cestas
Theme URI: https://www.ideiafocus.com.br
Author: Ideia Focus
Author URI: https://www.ideiafocus.com.br
Description: Tema personalizado e responsivo para cliente Real Cestas
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: realcestas
*/

:root {
	--realcestas-blue: #0a3d62;
	--realcestas-orange: #e86000;
}

#woo-better .fusion-cart-summary .wc-proceed-to-checkout .realcestas-checkout-disabled,
#woo-better .fusion-cart-summary .wc-proceed-to-checkout .realcestas-checkout-disabled:hover,
#woo-better .fusion-cart-summary .wc-proceed-to-checkout .realcestas-checkout-disabled:focus-visible {
	color: #697985;
	background: #e3e9ed;
	border-color: #cbd5dc;
	cursor: not-allowed;
	opacity: 1;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	color: #1f2a37;
	background: #fff;
	font-family: "Segoe UI", system-ui, sans-serif;
}

a {
	color: inherit;
}

/* Top Bar */
.top-notice-bar {
	color: #ffffff;
	padding: 10px 0;
	font-size: 0.88rem;
	line-height: 1.5;
	text-align: center;
}

.top-notice-bar__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.top-notice-bar__message {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	text-align: left;
}

.top-notice-bar .topbar-account {
	margin-left: auto;
	white-space: nowrap;
	text-decoration: none;
}

.header-account {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid #ffd8be;
	border-radius: 999px;
	background: #fff5ed;
	color: #c44d00;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
}

.header-account:hover {
	background: #e86000;
	color: #fff;
}

.top-notice-bar a {
	font-weight: 700;
	color: #ffffff;
	text-decoration: underline;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	overflow-wrap: anywhere;
}

.top-notice-bar a:hover {
	color: #ff9800;
}

.top-notice-bar a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.top-notice-bar__icon {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background: #25d366;
	color: #ffffff;
	border-radius: 50%;
}

/* Cabeçalho e navegação fixos durante a rolagem. */
.site-header-sticky {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
}

/* No carrinho e no checkout, o cabeçalho acompanha a rolagem normalmente. */
body.woocommerce-checkout .site-header-sticky,
body.woocommerce-checkout.admin-bar .site-header-sticky,
body.woocommerce-cart .site-header-sticky,
body.woocommerce-cart.admin-bar .site-header-sticky {
	position: static;
	top: auto;
}

.admin-bar .site-header-sticky {
	top: 32px;
}

.site-header-sticky .site-navigation {
	margin-bottom: 0;
}

@media (max-width: 900px) {
	.site-header-sticky {
		margin-bottom: 0;
	}
}

@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar .site-header-sticky {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header-sticky {
		top: 0;
	}
}

.site-header {
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
}

.site-header__inner {
	max-width: 1300px;
	min-height: 92px;
	margin: 0 auto;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.header-search {
	display: flex;
	align-items: center;
	flex: 1 1 240px;
	min-width: 0;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	padding: 3px 3px 3px 18px;
}

.header-search:focus-within {
	border-color: #e86000;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(232, 96, 0, 0.12);
}

.header-search input[type="search"] {
	flex: 1;
	min-width: 0;
	width: 100%;
	border: none;
	background: transparent;
	font: inherit;
	font-size: 0.88rem;
	color: #1f2a37;
	outline: none;
}

.header-search button {
	background: #e86000;
	border: none;
	color: #fff;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.header-search button:hover {
	background: #c44d00;
}

.header-contacts {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.header-phone,
.header-cart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 999px;
	line-height: 1.5;
}

.header-phone {
	font-size: 0.86rem;
	color: #334155;
	background: #f1f5f9;
	padding: 8px 14px;
}

.header-whatsapp {
	background: #25d366;
	color: #fff;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.header-cart {
	background: #fff5ed;
	border: 1px solid #ffd8be;
	color: #c44d00;
	font-size: 0.88rem;
	padding: 9px 16px;
	transition: background 0.2s, color 0.2s;
}

.header-cart:hover {
	background: #e86000;
	color: #fff;
	border-color: #e86000;
}

.header-contacts a:focus-visible,
.header-search button:focus-visible {
	outline: 2px solid #0a3d62;
	outline-offset: 3px;
}

.site-branding {
	display: inline-flex;
	align-items: center;
}

.site-branding img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 45px;
	object-fit: contain;
}

.site-branding__fallback {
	color: var(--realcestas-blue);
	font-size: 1.35rem;
	font-weight: 800;
	text-decoration: none;
}

.site-main {
	max-width: 1300px;
	margin: 0 auto;
	padding: 40px 20px;
}
/* WhatsApp flutuante */
.float-whatsapp {
	position: fixed;
	bottom: 25px;
	right: 25px;
	background: #25d366;
	color: #ffffff;
	min-height: 52px;
	padding: 0 17px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
	z-index: 999;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	text-decoration: none;
}

.float-whatsapp i {
	font-size: 24px;
}

.float-whatsapp:hover {
	transform: scale(1.1);
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
	color: #ffffff;
	text-decoration: none;
}

.float-whatsapp:focus-visible {
	outline: 3px solid #0a3d62;
	outline-offset: 4px;
}

@media (max-width: 900px) {
	.float-whatsapp {
		bottom: calc(18px + env(safe-area-inset-bottom, 0px));
		right: 18px;
		min-height: 46px;
		padding: 0 12px;
		font-size: 13px;
	}
	.float-whatsapp i { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.float-whatsapp {
		transition: none;
	}
}

/* Rodapé */
.site-footer {
	background: #8f2f00;
	color: rgba(255, 255, 255, 0.95);
	padding: 50px 0 24px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
	gap: 30px;
	margin-bottom: 34px;
}

.site-footer h2 {
	color: #fff;
	font-size: 0.98rem;
	margin: 0 0 14px;
}

.site-footer__text {
	font-size: 0.88rem;
	line-height: 1.5;
	margin-top: 12px;
}

.site-footer__text p {
	margin: 0 0 12px;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.site-footer__social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	font-size: 18px;
}

.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer__menu li {
	margin-bottom: 9px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.site-footer__menu .sub-menu {
	padding-left: 12px;
	margin-top: 9px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.site-footer a:hover {
	color: #cccccc;
	text-decoration: none;
}

.site-footer a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.site-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.footer-contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.5;
}

.footer-contact > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-contact span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.footer-contact--whatsapp > i {
	background: rgba(255, 255, 255, 0.14);
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	padding-top: 18px;
	font-size: 0.82rem;
	line-height: 1.5;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__tagline {
	margin-left: auto;
}

@media (max-width: 900px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
		margin-bottom: 24px;
	}

	.site-footer__about,
	.site-footer__service {
		grid-column: 1 / -1;
	}

	.site-footer__bottom {
		flex-direction: column;
		text-align: center;
	}

	.site-footer__tagline {
		margin-left: 0;
	}
}

.site-footer__inner {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-footer__logo {
	display: inline-flex;
	max-width: 100%;
}

.site-footer__logo img {
	display: block;
	width: auto;
	height: 36px;
	max-width: 100%;
	object-fit: contain;
}

@media (max-width: 900px) {
	.header-search {
		grid-column: 1 / -1;
		grid-row: 3;
		order: 3;
		flex-basis: 100%;
		max-width: 100%;
	}

	.site-header__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 36px;
		gap: 12px;
	}

	.site-header__inner > .site-branding {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
	}

	.site-header__inner > .navigation-open {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
	}

	.header-contacts {
		grid-column: 1 / -1;
		grid-row: 2;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
	}

	.header-contacts .header-phone,
	.header-contacts .header-whatsapp {
		display: none;
	}

	.header-contacts .header-cart {
		grid-column: 1;
		grid-row: 1;
		justify-content: center;
		min-width: 0;
		padding: 7px 8px;
	}

	.header-contacts .header-cart__total {
		display: none;
	}

	.header-contacts .header-account {
		display: inline-flex;
		grid-column: 2;
		grid-row: 1;
	}

	.top-notice-bar .topbar-account {
		display: none;
	}

	.top-notice-bar__message {
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}

	.header-phone {
		padding: 6px 10px;
		font-size: 0.78rem;
	}

	.header-cart {
		padding: 7px 12px;
		font-size: 0.8rem;
	}

	.header-whatsapp {
		width: 34px;
		height: 34px;
	}
	.top-notice-bar {
		padding: 8px 12px;
		font-size: 0.8rem;
	}

	.top-notice-bar__inner {
		flex-direction: column;
		gap: 4px;
		padding: 0;
	}

	.site-footer {
		padding: 40px 0 20px;
	}

	.site-footer__inner {
		padding: 0 16px;
	}
}

@media (max-width: 600px) {
	.site-header__inner {
		min-height: 74px;
		padding: 14px 16px;
	}

	.site-branding img {
		height: 42px;
	}
}

.woocommerce-thankyou-order-received {
    font-size: 35px;
    font-weight: 600;
    background: #fff5ed;
    border: 2px solid #ffd8be;
    padding: 10px 40px;
    text-align: center;
}


/* Post-purchase BackOffice contact box. */
.realcestas-order-received-actions {
	margin: 28px 0;
	padding: 24px;
	border: 1px solid #dbe4ed;
	border-radius: 12px;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.realcestas-order-received-actions h2 {
	margin: 0 0 8px;
	color: #172e52;
}

.realcestas-order-received-actions p {
	margin: 0 0 16px;
}

.realcestas-order-received-actions__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.woocommerce .realcestas-order-received-actions__buttons a.button {
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid #f2c7ad;
	border-radius: 24px;
	background: #fff8f3;
	color: #ed6b13;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.woocommerce .realcestas-order-received-actions__buttons a.button i {
	color: #20c063;
	font-size: 18px;
}

.woocommerce .realcestas-order-received-actions__buttons a.button:hover,
.woocommerce .realcestas-order-received-actions__buttons a.button:focus-visible {
	border-color: #ed6b13;
	background: #fff0e7;
	color: #c95308;
	transform: translateY(-1px);
}

@media (max-width: 600px) {
	.realcestas-order-received-actions__buttons {
		width: 100%;
		flex-direction: column;
	}

	.woocommerce .realcestas-order-received-actions__buttons a.button {
		width: 100%;
	}
}
