/* ==========================================================================
   Udarata 1.3 extras — animations, shopping helpers, tea tools, PWA/app UI.
   Uses the tokens from main.css. Motion is removed by prefers-reduced-motion
   and by the accessibility panel's "Stop animations" switch (.a11y-still).
   ========================================================================== */

/* ---------- Accessibility preferences ---------- */
html { font-size: calc(100% * var(--a11y-scale, 1)); }
html.a11y-contrast {
	--wp--preset--color--muted: #2B3A31;
	--wp--preset--color--border: #6B7A70;
	--c-muted: #2B3A31;
}
html.a11y-contrast[data-theme="dark"] { --wp--preset--color--muted: #E6E0D2; --c-muted: #E6E0D2; }
html.a11y-contrast a:not(.btn):not(.icon-btn) { text-decoration: underline; text-underline-offset: .2em; }
html.a11y-contrast :focus-visible { outline: 3px solid var(--brand-gold) !important; outline-offset: 3px; }
html.a11y-spacing body { letter-spacing: .04em; word-spacing: .12em; line-height: 1.85; }
html.a11y-spacing p { margin-bottom: 1.4em; }
html.a11y-dyslexic body { font-family: Verdana, Tahoma, var(--font-body); font-weight: 450; }
html.a11y-dyslexic em, html.a11y-dyslexic i { font-style: normal; font-weight: 700; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- Page transitions (cross-document view transitions) ---------- */
::view-transition-old(root) { animation: x-vt-out .25s ease both; }
::view-transition-new(root) { animation: x-vt-in .35s var(--ease) both; }
@keyframes x-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes x-vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Preloader ---------- */
.x-preloader {
	position: fixed; inset: 0; z-index: 9999;
	display: grid; place-content: center; justify-items: center; gap: 1rem;
	background: var(--c-bg); color: var(--c-primary);
	transition: opacity .6s var(--ease), visibility .6s;
}
.x-preloader.is-done { opacity: 0; visibility: hidden; }
.x-preloader__name { font-family: var(--font-heading); font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.x-preloader__fill { color: var(--brand-gold); transform-origin: 50% 100%; animation: x-fill 1.4s var(--ease) infinite alternate; opacity: .85; }
.x-steam { stroke-dasharray: 14; stroke-dashoffset: 14; animation: x-steam 1.6s ease-in-out infinite; }
.x-steam--2 { animation-delay: .25s; }
.x-steam--3 { animation-delay: .5s; }
@keyframes x-fill { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
@keyframes x-steam { 0% { stroke-dashoffset: 14; opacity: 0; } 40% { opacity: 1; } 100% { stroke-dashoffset: -14; opacity: 0; transform: translateY(-4px); } }

/* ---------- Scroll progress ---------- */
.x-progress { position: fixed; inset: 0 0 auto; z-index: 999; height: 3px; pointer-events: none; }
.x-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-leaf), var(--brand-gold)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Hero leaves + parallax ---------- */
.hero { position: relative; isolation: isolate; }
.x-leaves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__arch { overflow: hidden; }
.hero__arch img, .hero__media img { will-change: transform; transition: transform .1s linear; }

/* ---------- Split titles ---------- */
.x-split .x-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.x-split .x-word > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(var(--w) * 60ms); }
.x-split.is-in .x-word > span { transform: none; }

/* ---------- Tilt + glare ---------- */
.products .product { transition: transform .35s var(--ease), box-shadow .35s var(--ease); transform-style: preserve-3d; }
.x-tilting { transition: transform .08s linear !important; box-shadow: var(--shadow-lg); }
.x-tilting::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .22), transparent 55%);
}
.products .product { position: relative; }

/* ---------- Magnetic + ripple ---------- */
.btn { transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .2s; }
.x-ripple-host { overflow: hidden; }
.x-ripple {
	position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
	background: currentColor; opacity: .3; pointer-events: none; animation: x-ripple .65s ease-out forwards;
}
@keyframes x-ripple { to { transform: scale(40); opacity: 0; } }

/* ---------- Fly to cart + confetti ---------- */
.x-fly {
	position: fixed; z-index: 2000; width: 60px; height: 60px; border-radius: 50%;
	background: var(--c-leaf) center / cover no-repeat; box-shadow: var(--shadow-lg); pointer-events: none;
	border: 3px solid var(--c-surface);
}
.x-confetti { position: fixed; inset: 0; z-index: 2000; pointer-events: none; overflow: hidden; }
.x-confetti i {
	position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px;
	animation: x-confetti 2s cubic-bezier(.2, .6, .4, 1) forwards;
}
@keyframes x-confetti { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .9; } }

/* ---------- Staggered grids ---------- */
.x-stagger > * { opacity: 0; transform: translateY(18px); }
.x-stagger.x-stagger-in > * { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(min(var(--x-i, 0), 12) * 70ms); }
html.no-reveal .x-stagger > * { opacity: 1; transform: none; }

/* ---------- Bottom nav (phones) ---------- */
.x-bottom-nav { display: none; }
@media (max-width: 760px) {
	.x-bottom-nav {
		position: fixed; inset: auto .75rem calc(.75rem + env(safe-area-inset-bottom)) .75rem; z-index: 90;
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		padding: .35rem; border-radius: 22px;
		background: color-mix(in srgb, var(--c-surface) 88%, transparent);
		-webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
		border: 1px solid var(--c-border); box-shadow: var(--shadow);
		transition: transform .35s var(--ease), opacity .35s;
	}
	.x-bottom-nav.is-hidden { transform: translateY(140%); opacity: 0; }
	.x-bottom-nav a {
		position: relative; display: grid; justify-items: center; gap: .1rem; padding: .45rem .25rem;
		border-radius: 16px; color: var(--c-muted); font-size: .7rem; font-weight: 600; text-decoration: none;
	}
	.x-bottom-nav a[aria-current="page"] { color: var(--c-primary); background: color-mix(in srgb, var(--c-leaf) 18%, transparent); }
	.x-bottom-nav__badge {
		position: absolute; top: .2rem; right: calc(50% - 1.3rem); min-width: 1.1rem; height: 1.1rem; padding: 0 .3rem;
		border-radius: 999px; background: var(--brand-gold); color: #1B2A22; font-size: .65rem; line-height: 1.1rem; text-align: center;
	}
	.x-bottom-nav__badge:empty { display: none; }
	body.has-x-bottom-nav { padding-bottom: 5.5rem; }
	body.has-x-bottom-nav .back-to-top, body.has-x-bottom-nav .x-whatsapp, body.has-x-bottom-nav .x-a11y-btn { bottom: calc(6rem + env(safe-area-inset-bottom)); }
	body.has-x-bottom-nav .toast-region { bottom: 6rem; }
	body.has-x-bottom-nav .sticky-atc { bottom: 5.25rem; }
}

/* ---------- Floating buttons ---------- */
.x-whatsapp {
	position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 80;
	display: inline-flex; align-items: center; gap: .5rem; height: 3.25rem; padding: 0 .85rem;
	border-radius: 999px; background: #25D366; color: #fff; text-decoration: none; box-shadow: var(--shadow);
	transition: transform .25s var(--ease);
}
.x-whatsapp:hover { transform: translateY(-3px); color: #fff; }
.x-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: x-pulse 2.4s infinite; }
.x-whatsapp__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; transition: max-width .4s var(--ease); }
.x-whatsapp:hover .x-whatsapp__label, .x-whatsapp:focus-visible .x-whatsapp__label { max-width: 9rem; }
@keyframes x-pulse { 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.x-a11y-btn {
	position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 80;
	display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
	background: var(--c-primary); color: var(--c-on-primary); box-shadow: var(--shadow); cursor: pointer;
}
.x-a11y-btn:hover { transform: scale(1.06); }

/* ---------- Dialogs ---------- */
.x-dialog {
	width: min(440px, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
	background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-lg);
}
.x-dialog[open] { animation: x-pop .35s var(--ease); }
.x-dialog::backdrop { background: rgba(10, 20, 14, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes x-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.x-dialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.x-dialog__head h2 { margin: 0; font-size: 1.35rem; }
.x-a11y__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.x-a11y__sizes { display: flex; gap: .3rem; }
.x-a11y__sizes button {
	min-width: 2.6rem; padding: .45rem .5rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
	background: var(--c-bg); color: var(--c-text); font-weight: 700; cursor: pointer;
}
.x-a11y__sizes button[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.x-a11y__reset { width: 100%; margin-top: .75rem; }
.x-switch { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; cursor: pointer; }
.x-switch input { position: absolute; opacity: 0; }
.x-switch__track { position: relative; flex: none; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--c-border); transition: background .2s; }
.x-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.x-switch input:checked + .x-switch__track { background: var(--c-primary); }
.x-switch input:checked + .x-switch__track::after { transform: translateX(1.1rem); }
.x-switch input:focus-visible + .x-switch__track { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.x-keys { display: grid; gap: .5rem; margin: 0; }
.x-keys div { display: flex; align-items: center; gap: 1rem; }
.x-keys dd { margin: 0; }
kbd { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border: 1px solid var(--c-border); border-bottom-width: 3px; border-radius: 8px; background: var(--c-bg); font: 600 .9rem/1 ui-monospace, monospace; }

.x-exit { text-align: center; width: min(480px, calc(100% - 2rem)); padding: 2.25rem 1.75rem; background: linear-gradient(160deg, var(--c-surface), var(--c-sand)); }
.x-exit__close { position: absolute; top: .75rem; right: .75rem; }
.x-exit__art { display: inline-grid; place-items: center; width: 5rem; height: 5rem; margin-bottom: .5rem; border-radius: 50%; background: color-mix(in srgb, var(--c-leaf) 22%, transparent); color: var(--c-primary); animation: x-sway 4s ease-in-out infinite; }
.x-exit h2 { margin: .25rem 0 .5rem; }
@keyframes x-sway { 50% { transform: rotate(-8deg) translateY(-3px); } }

/* ---------- Privacy + app banner ---------- */
.x-cookie, .x-app-banner {
	position: fixed; left: 50%; z-index: 95; display: flex; align-items: center; gap: 1rem;
	width: min(560px, calc(100% - 1.5rem)); padding: .9rem 1rem; border: 1px solid var(--c-border); border-radius: var(--radius);
	background: var(--c-surface); box-shadow: var(--shadow-lg); font-size: .9rem;
	transform: translate(-50%, 140%); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.x-cookie { bottom: 1rem; }
.x-cookie p, .x-app-banner p { margin: 0; flex: 1; }
.x-app-banner { top: .75rem; transform: translate(-50%, -140%); }
.x-cookie.is-in, .x-app-banner.is-in { transform: translate(-50%, 0); opacity: 1; }
.x-app-banner__icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--brand-green); color: var(--brand-gold); }
@media (max-width: 760px) { body.has-x-bottom-nav .x-cookie { bottom: 6rem; } }

/* ---------- Announcement countdown + coupon ---------- */
.announcement__inner { flex-wrap: wrap; }
.x-countdown { margin-left: .75rem; display: inline-flex; align-items: center; gap: .2rem; font-variant-numeric: tabular-nums; font-size: .85rem; }
.x-countdown > span { opacity: .8; margin-right: .3rem; }
.x-countdown b { display: inline-block; min-width: 1.6em; padding: .05rem .25rem; border-radius: 5px; background: rgba(255, 255, 255, .14); text-align: center; }
.x-coupon {
	display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border: 1px dashed currentColor; border-radius: 999px;
	background: transparent; color: inherit; font: 700 .8rem/1.4 ui-monospace, monospace; letter-spacing: .05em; cursor: pointer;
}
.x-coupon.is-copied { background: var(--brand-gold); color: #1B2A22; border-style: solid; }

/* ---------- Compare ---------- */
.product-card__action.is-active, .x-single-compare.is-active { background: var(--c-primary); color: var(--c-on-primary); }
.x-single-compare { margin-top: .75rem; }
.x-compare-bar {
	position: fixed; inset: auto 0 0; z-index: 85; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom));
	background: var(--brand-deep); color: var(--on-brand); box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .35);
	animation: x-up .45s var(--ease);
}
@keyframes x-up { from { transform: translateY(100%); } }
.x-compare-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.x-compare-bar__list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.x-compare-bar__list li { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .4rem .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .85rem; }
.x-compare-bar__list .icon-btn { width: 1.6rem; height: 1.6rem; color: inherit; font-size: 1.1rem; }
.x-compare-bar__actions { display: flex; gap: .5rem; }
.x-compare-bar .btn--ghost { color: var(--on-brand); }
.x-compare-bar .is-disabled { opacity: .5; pointer-events: none; }
@media (max-width: 760px) {
	body.has-x-compare .x-bottom-nav { display: none; }
	.x-compare-bar__inner { flex-wrap: nowrap; }
	.x-compare-bar__list { flex-wrap: nowrap; overflow-x: auto; min-width: 0; }
	.x-compare-bar__list li { white-space: nowrap; max-width: 9rem; }
	.x-compare-bar__list li span { overflow: hidden; text-overflow: ellipsis; }
	.x-compare-bar__actions .btn--ghost { display: none; }
	.x-compare-bar__actions .btn { padding-inline: .9rem; white-space: nowrap; }
}
.btn--ghost { background: transparent; border-color: transparent; color: var(--c-text); }
.btn--ghost:hover { background: color-mix(in srgb, var(--c-leaf) 14%, transparent); }
.x-compare-table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.x-compare-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.x-compare-table th, .x-compare-table td { padding: 1rem; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.x-compare-table tbody th { width: 14rem; color: var(--c-muted); font-weight: 600; white-space: nowrap; }
.x-compare-table tbody th svg { vertical-align: -3px; color: var(--c-leaf); }
.x-compare-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--c-sand) 45%, transparent); }
.x-compare-table__product { display: grid; gap: .6rem; color: var(--c-text); font-family: var(--font-heading); font-size: 1.1rem; text-decoration: none; }
.x-compare-table__product img { width: 100%; max-width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }

/* ---------- Delivery estimate + notify ---------- */
.x-delivery { display: grid; gap: .5rem; margin: 1.25rem 0; padding: 1rem 1.1rem; border: 1px dashed var(--c-border); border-radius: var(--radius); background: color-mix(in srgb, var(--c-sand) 55%, transparent); font-size: .92rem; }
.x-delivery p { margin: 0; display: flex; align-items: center; gap: .5rem; }
.x-delivery__cutoff { color: var(--c-primary); font-weight: 600; }
.x-delivery__label { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.x-delivery select { padding: .35rem .6rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-text); font: inherit; }
.x-notify { margin: 1.25rem 0; padding: 1.1rem; }
.x-notify__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; font-weight: 700; }
.x-notify__row { display: flex; gap: .5rem; }
.x-notify__row input { flex: 1; min-width: 0; }
.x-notify__msg:empty, .x-form__msg:empty { display: none; }
.x-notify__msg, .x-form__msg { margin: .75rem 0 0; color: var(--c-primary); font-weight: 600; }
.is-error { color: var(--c-danger) !important; }

/* ---------- Recently viewed ---------- */
.x-recent__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 190px); gap: 1rem; margin: 0; padding: 0 0 .5rem; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; }
.x-recent__list li { scroll-snap-align: start; }
.x-recent__list a { display: grid; gap: .4rem; color: var(--c-text); text-decoration: none; }
.x-recent__list img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transition: transform .4s var(--ease); }
.x-recent__list a:hover img { transform: scale(1.04); }
.x-recent__list small { color: var(--c-muted); }

/* ---------- Currency, install, listen, mic, share ---------- */
.x-currency select { padding: .3rem .5rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; background: transparent; color: inherit; font: inherit; }
.x-currency option { color: #1B2A22; }
.x-approx { margin-left: .25rem; color: var(--c-muted); font-size: .8em; font-weight: 500; }
.x-install { margin-left: auto; }
.x-listen { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.5rem; }
.x-listen.is-on { background: var(--c-primary); color: var(--c-on-primary); }
.x-listen.is-on svg { animation: x-beat 1s ease-in-out infinite; }
@keyframes x-beat { 50% { transform: scale(1.2); } }
.x-mic.is-on { color: var(--c-danger); animation: x-beat 1s ease-in-out infinite; }
.x-share-wishlist { margin-bottom: 1.5rem; }

/* ---------- Tea of the day ---------- */
.x-totd__card {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
	padding: clamp(1rem, 3vw, 2rem); border-radius: var(--radius-lg); position: relative;
	background: linear-gradient(135deg, var(--c-sand), color-mix(in srgb, var(--c-blush) 60%, var(--c-sand)));
	box-shadow: var(--shadow-sm); transition: transform .35s var(--ease);
}
.x-totd__media { position: relative; }
.x-totd__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.x-totd__stamp {
	position: absolute; top: -1rem; left: -1rem; display: grid; place-content: center; width: 5.25rem; height: 5.25rem; border-radius: 50%;
	background: var(--brand-gold); color: #1B2A22; font: 700 .8rem/1 var(--font-body); text-align: center; text-transform: uppercase; letter-spacing: .1em;
	box-shadow: var(--shadow); animation: x-spin-in 1s var(--ease) both;
}
.x-totd__stamp span { font: 600 1.9rem/1 var(--font-heading); letter-spacing: 0; }
@keyframes x-spin-in { from { transform: rotate(-120deg) scale(.4); opacity: 0; } }
.x-totd__text { color: var(--c-muted); font-size: 1.05rem; }
.x-totd__facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.x-totd__facts li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: var(--c-surface); font-size: .88rem; }
.x-totd__facts svg { color: var(--c-leaf); }
.x-totd__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 760px) { .x-totd__card { grid-template-columns: 1fr; } .x-totd__stamp { width: 4.25rem; height: 4.25rem; top: -.5rem; left: -.5rem; } }

/* ---------- Estate map ---------- */
.x-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.x-map__svg { width: 100%; max-height: 520px; }
.x-map__island { fill: var(--c-sand); stroke: var(--c-border); stroke-width: 2; }
.x-map__contour { fill: none; stroke: var(--c-leaf); stroke-opacity: .5; stroke-dasharray: 4 5; }
.x-map__river { fill: none; stroke: #7DB4C8; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.x-map.is-in .x-map__river { animation: x-draw 2.4s var(--ease) forwards; }
@keyframes x-draw { to { stroke-dashoffset: 0; } }
.x-map__city circle { fill: var(--c-muted); }
.x-map__city text { fill: var(--c-muted); font: 600 12px var(--font-body); }
.x-map__pin { cursor: pointer; outline: none; }
.x-map__dot { fill: var(--brand-gold); stroke: var(--c-surface); stroke-width: 3; transition: r .25s, fill .25s; }
.x-map__pulse { fill: var(--brand-gold); opacity: 0; transform-box: fill-box; transform-origin: center; }
.x-map.is-in .x-map__pulse { animation: x-ping 2.2s ease-out infinite; animation-delay: calc(var(--d) * .4s); }
.x-map__pin.is-active .x-map__dot, .x-map__pin:focus-visible .x-map__dot { fill: var(--c-primary); r: 11; }
@keyframes x-ping { 0% { opacity: .55; transform: scale(.6); } 100% { opacity: 0; transform: scale(3); } }
.x-map__cards { display: grid; gap: 1rem; }
.x-map__card { padding: 1.25rem 1.4rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); opacity: .55; transform: translateX(10px); transition: all .4s var(--ease); cursor: default; }
.x-map__card.is-active { opacity: 1; transform: none; border-color: var(--brand-gold); box-shadow: var(--shadow); }
.x-map__card h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .25rem; font-size: 1.25rem; }
.x-map__card h3 svg { color: var(--brand-gold); }
.x-map__since { margin: 0 0 .75rem; color: var(--c-muted); font-size: .9rem; }
.x-map__card dl { display: grid; gap: .35rem; margin: 0; font-size: .92rem; }
.x-map__card dl div { display: flex; gap: .5rem; }
.x-map__card dt { min-width: 5.5rem; color: var(--c-muted); }
.x-map__card dd { margin: 0; }
@media (max-width: 860px) { .x-map { grid-template-columns: 1fr; } .x-map__svg { max-height: 360px; } }

/* ---------- Tea calculator ---------- */
.x-calc { padding: clamp(1.25rem, 3vw, 2rem); }
.x-calc__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; }
.x-calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.x-calc label { display: grid; gap: .4rem; font-weight: 600; font-size: .9rem; }
.x-calc select { padding: .6rem .7rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-text); font: inherit; }
.x-calc output { font: 600 1.4rem var(--font-heading); color: var(--c-primary); }
.x-calc input[type="range"] { --fill: 5%; accent-color: var(--c-primary); width: 100%; }
.x-calc__out { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.x-calc__out div { display: grid; padding: 1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--c-sand) 70%, transparent); text-align: center; }
.x-calc__out strong { font: 600 2rem/1.1 var(--font-heading); color: var(--c-primary); transition: transform .2s; }
.x-calc__out span { color: var(--c-muted); font-size: .85rem; }

/* ---------- Tea finder quiz ---------- */
.x-quiz { position: relative; padding: clamp(1.25rem, 4vw, 2.5rem); overflow: hidden; }
.x-quiz__progress { height: 6px; margin-bottom: 1.75rem; border-radius: 999px; background: var(--c-sand); overflow: hidden; }
.x-quiz__progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c-leaf), var(--brand-gold)); transition: width .5s var(--ease); }
.x-quiz__step { display: none; margin: 0; padding: 0; border: 0; }
.x-quiz__step.is-active { display: block; animation: x-slide .45s var(--ease); }
@keyframes x-slide { from { opacity: 0; transform: translateX(24px); } }
.x-quiz__step legend { margin-bottom: 1.25rem; font: 500 clamp(1.4rem, 1rem + 1.5vw, 2rem)/1.25 var(--font-heading); }
.x-quiz__count { display: inline-block; margin-right: .5rem; padding: .15rem .55rem; border-radius: 999px; background: var(--c-sand); font: 700 .8rem/1.6 var(--font-body); vertical-align: middle; }
.x-quiz__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; }
.x-quiz__option input { position: absolute; opacity: 0; }
.x-quiz__option span {
	position: relative; display: grid; justify-items: center; gap: .75rem; padding: 1.5rem 1rem; border: 2px solid var(--c-border); border-radius: var(--radius);
	background: var(--c-surface); text-align: center; font-weight: 600; cursor: pointer; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.x-quiz__option span svg { color: var(--c-leaf); transition: transform .3s var(--ease); }
.x-quiz__option span:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.x-quiz__option span:hover svg { transform: scale(1.15) rotate(-6deg); }
.x-quiz__option input:checked + span { border-color: var(--c-primary); background: color-mix(in srgb, var(--c-leaf) 14%, var(--c-surface)); }
.x-quiz__option input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.x-quiz__back { margin-top: 1.25rem; }
.x-quiz__result { animation: x-pop .5s var(--ease); text-align: center; }
.x-quiz__result [data-x-result-list] { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
.x-quiz__match { display: flex; align-items: center; gap: 1rem; padding: .75rem; border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); text-align: left; text-decoration: none; transition: transform .25s var(--ease); }
.x-quiz__match:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.x-quiz__match img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.x-quiz__match span { display: grid; gap: .25rem; }
.x-quiz__match strong { font: 500 1.25rem var(--font-heading); }
.x-quiz__match small { color: var(--c-muted); }
.x-quiz__match.is-top { border: 2px solid var(--brand-gold); background: color-mix(in srgb, var(--brand-gold) 10%, var(--c-surface)); }
.x-quiz__match.is-top img { width: 120px; height: 120px; }

/* ---------- Recipes ---------- */
.x-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.x-chip { padding: .45rem 1rem; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-surface); color: var(--c-text); font: 600 .9rem var(--font-body); cursor: pointer; transition: all .2s; }
.x-chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.x-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem; }
.x-recipe { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.x-recipe[hidden] { display: none; }
.x-recipe__head { display: flex; gap: .9rem; align-items: flex-start; }
.x-recipe__head h2 { margin: 0; font-size: 1.3rem; }
.x-recipe__head p { display: flex; align-items: center; gap: .3rem; margin: .25rem 0 0; color: var(--c-muted); font-size: .88rem; }
.x-recipe__icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 14px; background: color-mix(in srgb, var(--c-leaf) 18%, transparent); color: var(--c-primary); }
.x-recipe__serves { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }
.x-recipe__serves output { min-width: 1.5rem; text-align: center; font: 600 1.15rem var(--font-heading); }
.x-recipe__items { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.x-recipe__items li { padding-bottom: .35rem; border-bottom: 1px dashed var(--c-border); }
.x-recipe__items strong { color: var(--c-primary); }
.x-recipe__steps { margin: 0; padding-left: 1.25rem; display: grid; gap: .4rem; color: var(--c-muted); }
.x-recipe .btn { align-self: flex-start; margin-top: auto; }
@media print {
	body.x-printing * { visibility: hidden; }
	body.x-printing .x-print-me, body.x-printing .x-print-me * { visibility: visible; }
	body.x-printing .x-print-me { position: absolute; inset: 0 auto auto 0; width: 100%; box-shadow: none; border: 0; }
	body.x-printing .x-print-me .btn, body.x-printing .x-print-me .icon-btn { display: none; }
}

/* ---------- Order tracking steps ---------- */
.x-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: s; position: relative; }
.x-steps::before { content: ""; position: absolute; top: 1.6rem; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--c-leaf) 0 8px, transparent 8px 14px); z-index: -1; }
.x-steps li { display: grid; justify-items: center; gap: .35rem; text-align: center; font-size: .85rem; color: var(--c-muted); }
.x-steps strong { color: var(--c-text); font-size: .95rem; }
.x-steps__icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-leaf); color: var(--c-primary); }
.x-track { padding: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 640px) { .x-steps { grid-template-columns: 1fr 1fr; } .x-steps::before { display: none; } }

/* ---------- Wholesale ---------- */
.x-wholesale { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.x-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.x-perks li { padding: 1.25rem; }
.x-perks svg { color: var(--brand-gold); }
.x-perks h2 { margin: .5rem 0 .25rem; font-size: 1.15rem; }
.x-perks p { margin: 0; color: var(--c-muted); font-size: .92rem; }
.x-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); }
.x-form h2 { margin: 0; }
.x-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.x-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.x-form input, .x-form select, .x-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-bg); color: var(--c-text); font: inherit; font-weight: 400; }
.x-form .btn { justify-self: start; }
@media (max-width: 860px) { .x-wholesale, .x-form__grid { grid-template-columns: 1fr; } }

/* ---------- Footer tea tools ---------- */
.x-footer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.x-footer-tools span { opacity: .7; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.x-footer-tools a { color: inherit; opacity: .9; text-decoration: none; }
.x-footer-tools a:hover { opacity: 1; text-decoration: underline; }

/* ---------- App mode (inside the Android app) ---------- */
html.is-app .announcement, html.is-app .x-bottom-nav, html.is-app .x-app-banner, html.is-app .x-whatsapp, html.is-app .x-cookie { display: none !important; }
html.is-app body { -webkit-tap-highlight-color: transparent; }
html.is-app .site-footer__main { padding-bottom: 1rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.x-preloader, .x-leaves, .x-confetti, .x-fly { display: none !important; }
	.x-stagger > *, .x-split .x-word > span { opacity: 1 !important; transform: none !important; }
	.x-whatsapp::before, .x-map__pulse { animation: none !important; }
	::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
