/*
Theme Name: Xinyue
Theme URI: https://xinyue.fengclouds.cn
Author: Guangzhou Xinyue International Trading Co., Ltd.
Author URI: https://xinyue.fengclouds.cn
Description: Child theme of Twenty Twenty-Five for the Xinyue cross-border store (Brazil market). Adds a business front page, product-page purchase enhancements, a Portuguese AI support widget and a WhatsApp floating button. Mobile first, light palette, deep blue/teal accents.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xinyue
Tags: e-commerce, custom-colors, block-patterns, block-styles, full-site-editing, translation-ready, mobile-first
*/

/* =========================================================================
   1. Design tokens
   ========================================================================= */
:root {
	--xy-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--xy-navy: #0b2537;
	--xy-primary: #12556a;
	--xy-primary-dark: #0d3f50;
	--xy-green: #1c7a5b;
	--xy-ink: #12222b;
	--xy-muted: #5b6b76;
	--xy-line: #e2e8ec;
	--xy-surface: #ffffff;
	--xy-bg: #f6f8f9;
	--xy-warn: #a8620f;
	--xy-radius: 12px;
	--xy-radius-sm: 8px;
	--xy-shadow: 0 1px 2px rgba(11, 37, 55, 0.06), 0 8px 24px rgba(11, 37, 55, 0.08);
	--xy-shadow-strong: 0 12px 32px rgba(11, 37, 55, 0.18);
	--xy-gutter: 16px;
	--xy-fab-size: 56px;
	--xy-fab-right: 20px;
	--xy-fab-wa-bottom: 20px;
	--xy-fab-chat-bottom: 88px;
	--xy-z-fab: 9998;
	--xy-z-panel: 9999;
}

/* =========================================================================
   2. Base / safety net for small viewports (no horizontal scrolling)
   ========================================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	max-width: 100%;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

.xy-wrap {
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: var(--xy-gutter);
}

.xy-section {
	padding-block: 40px;
}

.xy-section--tint {
	background: var(--xy-bg);
}

.xy-section__title {
	margin: 0 0 6px;
	font-family: var(--xy-font);
	font-size: clamp(1.35rem, 4.2vw, 1.85rem);
	line-height: 1.25;
	color: var(--xy-navy);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.xy-section__subtitle {
	margin: 0 0 24px;
	font-family: var(--xy-font);
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--xy-muted);
	max-width: 60ch;
}

.xy-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =========================================================================
   3. Buttons
   ========================================================================= */
.xy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: var(--xy-font);
	font-size: 0.975rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	min-height: 48px;
}

.xy-btn:focus-visible {
	outline: 3px solid var(--xy-green);
	outline-offset: 2px;
}

.xy-btn--primary {
	background: var(--xy-green);
	color: #fff;
	box-shadow: var(--xy-shadow);
}

.xy-btn--primary:hover,
.xy-btn--primary:focus {
	background: #166349;
	color: #fff;
	transform: translateY(-1px);
}

.xy-btn--ghost {
	background: transparent;
	color: var(--xy-primary-dark);
	border-color: rgba(18, 85, 106, 0.35);
}

.xy-btn--ghost:hover,
.xy-btn--ghost:focus {
	background: rgba(18, 85, 106, 0.07);
	color: var(--xy-primary-dark);
}

.xy-btn--block {
	width: 100%;
}

/* =========================================================================
   4. Front page: hero
   ========================================================================= */
.xy-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(145deg, var(--xy-navy) 0%, var(--xy-primary) 62%, var(--xy-green) 130%);
	color: #fff;
	padding-block: 48px;
}

.xy-hero::after {
	content: "";
	position: absolute;
	inset-inline-end: -120px;
	inset-block-start: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
	pointer-events: none;
}

.xy-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.xy-hero__eyebrow {
	display: inline-block;
	margin: 0 0 16px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	font-family: var(--xy-font);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
}

.xy-hero__title {
	margin: 0 0 14px;
	font-family: var(--xy-font);
	font-size: clamp(1.6rem, 6.2vw, 2.9rem);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: #fff;
}

.xy-hero__lead {
	margin: 0 0 12px;
	font-family: var(--xy-font);
	font-size: clamp(0.975rem, 3.4vw, 1.125rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
	max-width: 58ch;
}

.xy-hero__company {
	margin: 0 0 26px;
	font-family: var(--xy-font);
	font-size: 0.85rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
	word-break: break-word;
}

.xy-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.xy-hero .xy-btn--ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}

.xy-hero .xy-btn--ghost:hover,
.xy-hero .xy-btn--ghost:focus {
	background: rgba(255, 255, 255, 0.13);
	color: #fff;
}

.xy-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--xy-font);
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.82);
}

.xy-hero__trust li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.xy-hero__trust li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #7fd8b4;
	flex: 0 0 auto;
}

/* =========================================================================
   5. Front page: featured products
   ========================================================================= */
.xy-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xy-product {
	display: flex;
	flex-direction: column;
	background: var(--xy-surface);
	border: 1px solid var(--xy-line);
	border-radius: var(--xy-radius);
	overflow: hidden;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.xy-product:hover {
	box-shadow: var(--xy-shadow);
	transform: translateY(-2px);
}

.xy-product__media {
	display: block;
	aspect-ratio: 1 / 1;
	background: #eef2f4;
	overflow: hidden;
}

.xy-product__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.xy-product__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: var(--xy-font);
	font-size: 0.78rem;
	color: var(--xy-muted);
	padding: 12px;
	text-align: center;
}

.xy-product__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	flex: 1 1 auto;
}

.xy-product__title {
	margin: 0;
	font-family: var(--xy-font);
	font-size: 0.925rem;
	line-height: 1.4;
	font-weight: 600;
	color: var(--xy-ink);
}

.xy-product__title a {
	color: inherit;
	text-decoration: none;
}

.xy-product__title a:hover,
.xy-product__title a:focus {
	color: var(--xy-primary);
	text-decoration: underline;
}

.xy-product__price {
	margin: 0;
	font-family: var(--xy-font);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--xy-primary-dark);
}

.xy-product__price del {
	color: var(--xy-muted);
	font-weight: 400;
	font-size: 0.85em;
}

.xy-product__price ins {
	text-decoration: none;
}

.xy-product__link {
	margin-top: auto;
	padding-top: 4px;
	font-family: var(--xy-font);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--xy-primary);
	text-decoration: none;
}

.xy-product__link:hover,
.xy-product__link:focus {
	text-decoration: underline;
	color: var(--xy-primary-dark);
}

.xy-empty {
	margin: 0;
	padding: 24px;
	border: 1px dashed var(--xy-line);
	border-radius: var(--xy-radius);
	background: var(--xy-surface);
	font-family: var(--xy-font);
	font-size: 0.95rem;
	color: var(--xy-muted);
	text-align: center;
}

/* =========================================================================
   6. Front page: value props
   ========================================================================= */
.xy-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xy-feature {
	padding: 18px;
	background: var(--xy-surface);
	border: 1px solid var(--xy-line);
	border-radius: var(--xy-radius);
}

.xy-feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 12px;
	border-radius: 10px;
	background: rgba(18, 85, 106, 0.1);
	color: var(--xy-primary);
}

.xy-feature__icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.xy-feature__title {
	margin: 0 0 6px;
	font-family: var(--xy-font);
	font-size: 1rem;
	font-weight: 700;
	color: var(--xy-navy);
}

.xy-feature__text {
	margin: 0;
	font-family: var(--xy-font);
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--xy-muted);
}

/* =========================================================================
   7. Front page: about
   ========================================================================= */
.xy-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.xy-about__text {
	font-family: var(--xy-font);
	font-size: 0.975rem;
	line-height: 1.75;
	color: var(--xy-ink);
}

.xy-about__text p {
	margin: 0 0 14px;
}

.xy-keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.xy-keywords li {
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(18, 85, 106, 0.08);
	color: var(--xy-primary-dark);
	font-family: var(--xy-font);
	font-size: 0.8rem;
	font-weight: 600;
}

.xy-about__card {
	padding: 22px;
	border-radius: var(--xy-radius);
	background: var(--xy-surface);
	border: 1px solid var(--xy-line);
	box-shadow: var(--xy-shadow);
}

.xy-about__card-title {
	margin: 0 0 10px;
	font-family: var(--xy-font);
	font-size: 1rem;
	font-weight: 700;
	color: var(--xy-navy);
}

.xy-about__list {
	margin: 0 0 18px;
	padding-left: 18px;
	font-family: var(--xy-font);
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--xy-muted);
}

/* =========================================================================
   8. Colophon (company info line appended after the theme footer)
   ========================================================================= */
.xy-fallback-header,
.xy-fallback-footer {
	background: var(--xy-surface);
	border-bottom: 1px solid var(--xy-line);
	font-family: var(--xy-font);
}

.xy-fallback-header .xy-wrap,
.xy-fallback-footer .xy-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding-block: 14px;
}

.xy-fallback-header__brand {
	font-weight: 700;
	color: var(--xy-navy);
	text-decoration: none;
}

.xy-fallback-header__nav a {
	margin-inline-start: 16px;
	color: var(--xy-primary);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.xy-fallback-footer {
	border-bottom: 0;
	border-top: 1px solid var(--xy-line);
	color: var(--xy-muted);
	font-size: 0.85rem;
}

.xy-colophon {
	padding-block: 18px;
	background: var(--xy-navy);
	color: rgba(255, 255, 255, 0.72);
	font-family: var(--xy-font);
	font-size: 0.8rem;
	line-height: 1.7;
}

.xy-colophon__row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	align-items: center;
	justify-content: space-between;
}

.xy-colophon strong {
	color: #fff;
	font-weight: 600;
}

/* =========================================================================
   9. Single product: quick buy (partner channel) + after-sales panel
   ========================================================================= */
.xy-quick-buy {
	margin: 18px 0 0;
	padding: 16px;
	border: 1px solid rgba(28, 122, 91, 0.35);
	border-radius: var(--xy-radius);
	background: rgba(28, 122, 91, 0.06);
}

.xy-quick-buy__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	padding: 14px 18px;
	border-radius: var(--xy-radius-sm);
	background: var(--xy-green);
	color: #fff !important;
	font-family: var(--xy-font);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	box-shadow: var(--xy-shadow);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.xy-quick-buy__btn:hover,
.xy-quick-buy__btn:focus {
	background: #166349;
	color: #fff !important;
	transform: translateY(-1px);
}

.xy-quick-buy__btn:focus-visible {
	outline: 3px solid var(--xy-primary);
	outline-offset: 2px;
}

.xy-quick-buy__btn svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.xy-quick-buy__note {
	margin: 10px 0 0;
	font-family: var(--xy-font);
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--xy-muted);
	text-align: center;
}

/* External / affiliate products: native outbound anchor + standing notice ---- */
.xy-external-buy,
.xy-external-cart {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.xy-external-buy .single_add_to_cart_button,
.xy-external-cart .single_add_to_cart_button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 14px 18px;
	border-radius: var(--xy-radius-sm);
	font-family: var(--xy-font);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.xy-external-buy .single_add_to_cart_button:focus-visible,
.xy-external-cart .single_add_to_cart_button:focus-visible {
	outline: 3px solid var(--xy-primary);
	outline-offset: 2px;
}

.xy-external-buy__note,
.xy-partner-note {
	margin: 10px 0 0;
	font-family: var(--xy-font);
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--xy-muted);
	text-align: start;
}

.xy-trust {
	margin: 20px 0 0;
	padding: 16px;
	border: 1px solid var(--xy-line);
	border-radius: var(--xy-radius);
	background: var(--xy-bg);
}

.xy-trust__title {
	margin: 0 0 10px;
	font-family: var(--xy-font);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--xy-navy);
}

.xy-trust__list {
	margin: 0;
	padding-left: 18px;
	font-family: var(--xy-font);
	font-size: 0.85rem;
	line-height: 1.65;
	color: var(--xy-muted);
}

.xy-trust__list li + li {
	margin-top: 6px;
}

.xy-trust__list a {
	color: var(--xy-primary);
	font-weight: 600;
}

/* =========================================================================
   10. Floating widgets: WhatsApp + AI chat
   ========================================================================= */
.xy-fab {
	position: fixed;
	inset-inline-end: var(--xy-fab-right);
	width: var(--xy-fab-size);
	height: var(--xy-fab-size);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	box-shadow: var(--xy-shadow-strong);
	z-index: var(--xy-z-fab);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.xy-fab:hover {
	transform: translateY(-2px);
}

.xy-fab:focus-visible {
	outline: 3px solid var(--xy-primary);
	outline-offset: 3px;
}

.xy-fab svg {
	width: 28px;
	height: 28px;
	display: block;
}

.xy-fab--wa {
	bottom: var(--xy-fab-wa-bottom);
	background: #25d366;
}

.xy-fab--chat {
	bottom: var(--xy-fab-chat-bottom);
	background: var(--xy-primary);
}

.xy-chat__fab[aria-expanded="true"] .xy-chat__icon-open,
.xy-chat__fab[aria-expanded="false"] .xy-chat__icon-close {
	display: none;
}

/* Chat panel ------------------------------------------------------------- */
.xy-chat__panel {
	position: fixed;
	inset-inline-end: var(--xy-fab-right);
	bottom: var(--xy-fab-chat-bottom);
	width: min(360px, calc(100vw - (var(--xy-fab-right) * 2)));
	max-height: min(520px, calc(100dvh - 140px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--xy-radius);
	background: var(--xy-surface);
	border: 1px solid var(--xy-line);
	box-shadow: var(--xy-shadow-strong);
	z-index: var(--xy-z-panel);
	font-family: var(--xy-font);
}

.xy-chat__panel[hidden] {
	display: none !important;
}

.xy-chat__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: var(--xy-primary);
	color: #fff;
	flex: 0 0 auto;
}

.xy-chat__header-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.xy-chat__header-status {
	margin: 2px 0 0;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.2;
}

.xy-chat__close {
	margin-inline-start: auto;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	cursor: pointer;
	flex: 0 0 auto;
}

.xy-chat__close:hover,
.xy-chat__close:focus {
	background: rgba(255, 255, 255, 0.28);
}

.xy-chat__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.xy-chat__close svg {
	width: 16px;
	height: 16px;
}

.xy-chat__messages {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--xy-bg);
	min-height: 140px;
	-webkit-overflow-scrolling: touch;
}

.xy-chat__msg {
	max-width: 88%;
	padding: 10px 13px;
	border-radius: 14px;
	font-size: 0.875rem;
	line-height: 1.55;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.xy-chat__msg p {
	margin: 0;
}

.xy-chat__msg p + p {
	margin-top: 8px;
}

.xy-chat__msg--bot {
	align-self: flex-start;
	background: var(--xy-surface);
	color: var(--xy-ink);
	border: 1px solid var(--xy-line);
	border-end-start-radius: 4px;
}

.xy-chat__msg--user {
	align-self: flex-end;
	background: var(--xy-primary);
	color: #fff;
	border: 1px solid var(--xy-primary);
	border-end-end-radius: 4px;
}

.xy-chat__msg--meta {
	align-self: center;
	max-width: 100%;
	font-size: 0.75rem;
	color: var(--xy-muted);
	background: transparent;
	padding: 0 4px;
}

.xy-chat__wa {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #25d366;
	color: #06301a !important;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none !important;
}

.xy-chat__wa:hover,
.xy-chat__wa:focus {
	background: #1fbe5b;
}

/* E-mail variant of the contact pill (used when no WhatsApp number is set). */
.xy-chat__mail {
	background: var(--xy-primary);
	color: #fff !important;
}

.xy-chat__mail:hover,
.xy-chat__mail:focus {
	background: var(--xy-primary-dark);
}

.xy-chat__wa svg {
	width: 14px;
	height: 14px;
}

.xy-chat__typing {
	display: inline-flex;
	gap: 4px;
	align-items: center;
}

.xy-chat__typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--xy-muted);
	animation: xy-bounce 1.1s infinite ease-in-out;
}

.xy-chat__typing span:nth-child(2) {
	animation-delay: 0.16s;
}

.xy-chat__typing span:nth-child(3) {
	animation-delay: 0.32s;
}

@keyframes xy-bounce {
	0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
	40% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.xy-chat__typing span {
		animation: none;
	}
	.xy-fab,
	.xy-product,
	.xy-btn {
		transition: none;
	}
}

.xy-chat__form {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid var(--xy-line);
	background: var(--xy-surface);
}

.xy-chat__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 42px;
	max-height: 110px;
	padding: 10px 12px;
	border: 1px solid var(--xy-line);
	border-radius: var(--xy-radius-sm);
	background: #fff;
	color: var(--xy-ink);
	font-family: var(--xy-font);
	font-size: 0.9rem;
	line-height: 1.4;
	resize: none;
}

.xy-chat__input:focus {
	outline: 2px solid var(--xy-primary);
	outline-offset: 1px;
	border-color: var(--xy-primary);
}

.xy-chat__send {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--xy-primary);
	color: #fff;
	cursor: pointer;
}

.xy-chat__send:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.xy-chat__send svg {
	width: 18px;
	height: 18px;
}

.xy-chat__footer-note {
	flex: 0 0 auto;
	margin: 0;
	padding: 0 12px 10px;
	background: var(--xy-surface);
	font-family: var(--xy-font);
	font-size: 0.7rem;
	line-height: 1.45;
	color: var(--xy-muted);
}

/* =========================================================================
   11. Responsive adjustments (mobile first, 390px safe)
   ========================================================================= */
@media (min-width: 600px) {
	:root {
		--xy-gutter: 24px;
	}

	.xy-section {
		padding-block: 56px;
	}

	.xy-hero {
		padding-block: 64px;
	}

	.xy-products {
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
		gap: 18px;
	}

	.xy-about {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: start;
		gap: 32px;
	}
}

@media (min-width: 960px) {
	.xy-hero {
		padding-block: 88px;
	}

	.xy-products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.xy-fab:hover {
		box-shadow: 0 16px 40px rgba(11, 37, 55, 0.28);
	}
}

/* Panel becomes a bottom sheet on narrow screens ------------------------- */
@media (max-width: 560px) {
	.xy-chat__panel {
		inset-inline: 0;
		inset-inline-end: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
		max-height: min(82dvh, 100%);
		border-radius: var(--xy-radius) var(--xy-radius) 0 0;
		border-inline: 0;
		border-bottom: 0;
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	.xy-chat__footer-note {
		padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	}

	/* Keep the FABs out of the way while the sheet is open. */
	body.xy-chat-open .xy-fab {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.xy-quick-buy__btn {
		font-size: 0.95rem;
	}
}

@media (max-width: 360px) {
	:root {
		--xy-fab-size: 50px;
		--xy-fab-chat-bottom: 80px;
	}

	.xy-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Print ------------------------------------------------------------------ */
@media print {
	.xy-fab,
	.xy-chat__panel,
	.xy-quick-buy {
		display: none !important;
	}
}

/* ==========================================================================
   Rodapé (parts/footer.html)
   ========================================================================== */
.xy-footer {
	background: var(--wp--preset--color--base-2, #f4f1ec);
	color: var(--wp--preset--color--contrast, #1b1b1b);
	padding: 48px 20px 28px;
	margin-top: 64px;
}

.xy-footer__cols {
	gap: 32px;
}

.xy-footer__brand {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.4;
	margin: 0 0 2px;
}

.xy-footer__cn {
	font-size: 0.95rem;
	opacity: 0.8;
	margin: 0 0 12px;
}

.xy-footer__desc {
	font-size: 0.875rem;
	line-height: 1.65;
	opacity: 0.85;
	margin: 0;
}

.xy-footer__title {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	opacity: 0.6;
	margin: 0 0 12px;
}

.xy-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.xy-footer__links li {
	margin: 0 0 8px;
}

.xy-footer__links a {
	text-decoration: none;
	font-size: 0.9rem;
	opacity: 0.9;
}

.xy-footer__links a:hover {
	text-decoration: underline;
}

.xy-footer__sep {
	margin: 28px 0 16px;
	opacity: 0.15;
}

.xy-footer__legal {
	font-size: 0.75rem;
	line-height: 1.7;
	opacity: 0.65;
	margin: 0;
}

@media (max-width: 781px) {
	.xy-footer {
		padding: 36px 18px 24px;
		margin-top: 48px;
	}

	.xy-footer__cols {
		gap: 24px;
	}
}
