/* ==========================================================================
   Alttanin — base, layout, header, homepage, footer
   Logical properties throughout so Arabic (RTL) and English (LTR) both work.
   ========================================================================== */

:root {
	--tn-ground: #F2EFE8;
	--tn-surface: #FFFFFF;
	--tn-field: #F7F5F0;
	--tn-ink: #10201A;
	--tn-ink-2: #36433D;
	--tn-muted: #5A6660;
	--tn-line: #E7E2D8;
	--tn-line-2: #DDD7CB;
	--tn-emerald: #0B3D30;
	--tn-emerald-2: #135C49;
	--tn-emerald-soft: #CFE2DA;
	--tn-ember: #F08A5D;
	--tn-ember-ink: #C2410C;
	--tn-peach: #FCE7D6;
	--tn-sage: #E3EEDC;
	--tn-butter: #FFF1C7;
	--tn-sky: #DCEBF5;
	--tn-lilac: #EEE3F3;

	--tn-font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tn-display: 'Baloo Bhaijaan 2', 'IBM Plex Sans Arabic', sans-serif;

	--tn-r-sm: 14px;
	--tn-r-md: 22px;
	--tn-r-lg: 28px;
	--tn-r-xl: 36px;
	--tn-wrap: 1320px;
	--tn-gutter: clamp(16px, 3vw, 24px);
	--tn-shadow: 0 18px 40px -18px rgba(11, 61, 48, .35);
	--tn-ease: cubic-bezier(.2, .8, .2, 1);
}

:lang(en) {
	--tn-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tn-display: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }

body.tn {
	margin: 0;
	background: var(--tn-ground);
	color: var(--tn-ink);
	font-family: var(--tn-font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.tn-lock { overflow: hidden; }

img { max-width: 100%; height: auto; }

a { color: var(--tn-emerald); text-underline-offset: 3px; }
a:hover { color: var(--tn-ember-ink); }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--tn-ember);
	outline-offset: 3px;
	border-radius: 8px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.tn-skip {
	position: absolute;
	inset-inline-start: 16px;
	top: -60px;
	z-index: 100;
	background: var(--tn-ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: 12px;
}
.tn-skip:focus { top: 12px; color: #fff; }

.tn-wrap {
	width: 100%;
	max-width: calc(var(--tn-wrap) + 2 * var(--tn-gutter));
	margin-inline: auto;
	padding-inline: var(--tn-gutter);
}

.tn-main { min-height: 50vh; padding-bottom: 24px; }

/* Typography ------------------------------------------------------------- */
.tn-h1, .tn-h2, .tn-h3 { font-family: var(--tn-display); font-weight: 800; margin: 0; letter-spacing: -.5px; }
.tn-h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.15; }
.tn-h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; }
.tn-eyebrow { color: var(--tn-ember-ink); font-weight: 700; font-size: 14px; display: block; margin-bottom: 6px; }

.tn-prose { font-size: 17px; line-height: 1.9; max-width: 820px; }
.tn-prose h2, .tn-prose h3 { font-family: var(--tn-display); line-height: 1.3; }

/* Tints ------------------------------------------------------------------ */
.tn-tint--peach { background: var(--tn-peach); }
.tn-tint--sage { background: var(--tn-sage); }
.tn-tint--butter { background: var(--tn-butter); }
.tn-tint--sky { background: var(--tn-sky); }
.tn-tint--lilac { background: var(--tn-lilac); }

/* Buttons ---------------------------------------------------------------- */
.tn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 16px;
	border: 0;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, filter .2s ease, background-color .2s ease, color .2s ease;
}
.tn-btn:hover { filter: brightness(1.08); }
.tn-btn:active { transform: scale(.97); }
.tn-btn--lg { min-height: 58px; padding: 0 28px; font-size: 17px; border-radius: 18px; }
.tn-btn--block { width: 100%; }
.tn-btn--primary { background: var(--tn-emerald); color: #fff; }
.tn-btn--primary:hover { color: #fff; }
.tn-btn--ember { background: var(--tn-ember); color: var(--tn-ink); }
.tn-btn--ember:hover { color: var(--tn-ink); }
.tn-btn--dark { background: var(--tn-ink); color: #fff; }
.tn-btn--dark:hover { color: #fff; }
.tn-btn--ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff; }
.tn-btn--ghost:hover { color: #fff; background: rgba(255,255,255,.18); }
.tn-btn--outline { background: transparent; border: 1.5px solid var(--tn-emerald); color: var(--tn-emerald); }
.tn-btn--outline:hover { background: var(--tn-emerald); color: #fff; filter: none; }
[dir="ltr"] .tn-icon--arrow { transform: scaleX(-1); }

.tn-iconbtn {
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 14px;
	border: 0;
	background: var(--tn-ground);
	color: var(--tn-ink);
	cursor: pointer;
	text-decoration: none;
	font-weight: 700;
	transition: background-color .2s ease;
}
.tn-iconbtn:hover { background: var(--tn-line); color: var(--tn-ink); }

.tn-chip {
	display: inline-flex; align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--tn-surface);
	border: 1px solid var(--tn-line-2);
	color: var(--tn-ink);
	text-decoration: none;
	font-weight: 500;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tn-chip:hover, .tn-chip.is-active { background: var(--tn-emerald); color: #fff; border-color: var(--tn-emerald); }

.tn-pill {
	display: inline-flex;
	align-self: flex-start;
	background: var(--tn-sage);
	color: var(--tn-emerald);
	padding: 6px 14px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 10px;
}

.tn-lift { transition: transform .25s var(--tn-ease), box-shadow .25s ease; }
.tn-lift:hover { transform: translateY(-6px); box-shadow: var(--tn-shadow); }

/* Ticker ----------------------------------------------------------------- */
.tn-ticker {
	background: var(--tn-ink);
	color: var(--tn-ground);
	font-size: 14px;
	height: 40px;
	overflow: hidden;
	display: flex;
	align-items: center;
}
.tn-ticker__track { display: flex; width: max-content; animation: tn-marquee 36s linear infinite; }
.tn-ticker__group { display: flex; gap: 40px; padding-inline-end: 40px; white-space: nowrap; }
.tn-ticker__dot { color: var(--tn-ember); }
[dir="rtl"] .tn-ticker__track { animation-name: tn-marquee-rtl; }
.tn-ticker:hover .tn-ticker__track { animation-play-state: paused; }
@keyframes tn-marquee { to { transform: translateX(-50%); } }
@keyframes tn-marquee-rtl { to { transform: translateX(50%); } }

/* Header ----------------------------------------------------------------- */
.tn-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 14px var(--tn-gutter) 0;
}
.admin-bar .tn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tn-header { top: 0; } }

.tn-header__bar {
	max-width: var(--tn-wrap);
	margin-inline: auto;
	background: rgba(255,255,255,.88);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(16,32,26,.08);
	border-radius: 22px;
	box-shadow: 0 10px 30px -22px rgba(16,32,26,.35);
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 14px;
	transition: box-shadow .25s ease;
}
.tn-header.is-scrolled .tn-header__bar { box-shadow: 0 16px 36px -20px rgba(16,32,26,.45); }

.tn-header__burger { display: none; }

.tn-brand {
	display: flex; align-items: center; gap: 10px;
	color: var(--tn-ink);
	text-decoration: none;
	flex-shrink: 0;
}
.tn-brand:hover { color: var(--tn-ink); }
.tn-brand__logo { max-height: 52px; width: auto; display: block; }
.tn-brand__text { display: flex; flex-direction: column; line-height: 1; }
.tn-brand__name { font-family: var(--tn-display); font-weight: 800; font-size: 28px; }
.tn-brand__tag { font-size: 12px; color: var(--tn-muted); margin-top: 4px; }
.tn-brand--light, .tn-brand--light:hover { color: #fff; }

.tn-nav { min-width: 0; }
.tn-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 0; }
.tn-nav .wpml-ls-menu-item { display: none; }
.tn-nowrap { white-space: nowrap; }
.tn-nav__list > li { position: relative; }
.tn-nav__list > li > a {
	display: flex; align-items: center;
	min-height: 44px;
	padding: 0 11px;
	border-radius: 12px;
	color: var(--tn-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 14.5px;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
.tn-nav__list > li > a:hover,
.tn-nav__list > .current-menu-item > a,
.tn-nav__list > .current-menu-ancestor > a { background: var(--tn-emerald); color: #fff; }

/* Mega-ish dropdown */
.tn-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px;
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-start: 0;
	min-width: 240px;
	background: var(--tn-surface);
	border-radius: 18px;
	box-shadow: 0 24px 50px -20px rgba(16,32,26,.4);
	border: 1px solid var(--tn-line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s var(--tn-ease), visibility .2s;
	z-index: 60;
}
.tn-nav__list .sub-menu::before { content: ''; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
.tn-nav__list li:hover > .sub-menu,
.tn-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tn-nav__list .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--tn-ink);
	text-decoration: none;
	font-weight: 500;
}
.tn-nav__list .sub-menu a:hover { background: var(--tn-ground); }
.tn-nav__list .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px 4px; min-width: 0; }
.tn-nav__list .sub-menu .sub-menu a { font-size: 14px; color: var(--tn-muted); padding: 6px 12px; }

.tn-search {
	flex: 1 1 170px;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 16px;
	border-radius: 14px;
	background: var(--tn-ground);
	color: var(--tn-muted);
}
.tn-search input[type="search"] {
	flex: 1; min-width: 0;
	border: 0; background: transparent;
	font: inherit; font-size: 15px;
	color: var(--tn-ink);
	outline: none;
}
.tn-search:focus-within { box-shadow: 0 0 0 3px var(--tn-ember); }

.tn-secure { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; color: var(--tn-ink-2); font-size: 14px; font-weight: 600; }

.tn-header__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.tn-header--flow .tn-header__actions { margin-inline-start: 0; }

.tn-cartbtn {
	display: inline-flex; align-items: center; gap: 10px;
	height: 48px;
	padding: 0 16px;
	border-radius: 14px;
	background: var(--tn-emerald);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}
.tn-cartbtn:hover { color: #fff; filter: brightness(1.1); }
.tn-cart-count {
	min-width: 26px; height: 26px;
	padding: 0 7px;
	border-radius: 13px;
	background: var(--tn-ember);
	color: var(--tn-ink);
	font-size: 13px;
	font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
}
.tn-bump { animation: tn-bump .45s var(--tn-ease); }
@keyframes tn-bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }

/* Drawer */
.tn-drawer {
	position: fixed; inset: 0;
	z-index: 200;
	background: rgba(16,32,26,.45);
	opacity: 0;
	transition: opacity .2s ease;
}
.tn-drawer.is-open { opacity: 1; }
.tn-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: min(88vw, 380px);
	background: var(--tn-surface);
	padding: 18px;
	display: flex; flex-direction: column; gap: 14px;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .25s var(--tn-ease);
}
[dir="ltr"] .tn-drawer__panel { transform: translateX(-100%); }
.tn-drawer.is-open .tn-drawer__panel { transform: none; }
.tn-drawer__head { display: flex; justify-content: space-between; align-items: center; }
.tn-search--drawer { flex: none; }
.tn-drawer__menu, .tn-drawer__menu ul { list-style: none; margin: 0; padding: 0; }
.tn-drawer__menu a {
	display: flex; align-items: center;
	min-height: 48px;
	padding: 0 12px;
	border-radius: 12px;
	color: var(--tn-ink);
	text-decoration: none;
	font-weight: 600;
}
.tn-drawer__menu a:hover { background: var(--tn-ground); }
.tn-drawer__menu .sub-menu { padding-inline-start: 14px; }
.tn-drawer__menu .sub-menu a { font-weight: 500; min-height: 44px; color: var(--tn-ink-2); }

@media (max-width: 1240px) {
	.tn-nav { display: none; }
	.tn-header__burger { display: inline-flex; }
}
@media (max-width: 720px) {
	.tn-header { padding-top: 8px; }
	.tn-header__bar { border-radius: 18px; padding: 8px; }
	.tn-header__account, .tn-header .tn-lang { display: none; }
	.tn-header__actions { margin-inline-start: auto; }
	.tn-search { height: 44px; }
	.tn-chips, .tn-needs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--tn-gutter)); padding-inline: var(--tn-gutter); padding-bottom: 4px; }
	.tn-chips::-webkit-scrollbar, .tn-needs::-webkit-scrollbar { display: none; }
	.tn-chip { flex-shrink: 0; white-space: nowrap; }
	.tn-needs__label { flex-shrink: 0; }
	.tn-header__bar { flex-wrap: wrap; gap: 10px; }
	.tn-brand__tag { display: none; }
	.tn-brand__name { font-size: 24px; }
	.tn-search { order: 10; flex-basis: 100%; }
	.tn-cartbtn__label { display: none; }
	.tn-cartbtn { padding: 0 12px; }
	.tn-header--flow .tn-secure { display: none; }
}

/* Hero ------------------------------------------------------------------- */
.tn-hero { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 24px; }
.tn-hero__main {
	flex: 2 1 620px;
	min-width: 0;
	position: relative;
	overflow: hidden;
	background: var(--tn-emerald);
	color: #fff;
	border-radius: 32px;
	padding: clamp(32px, 5vw, 56px) clamp(24px, 4.5vw, 52px);
	min-height: 520px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
}
.tn-scales { position: absolute; width: 420px; height: 420px; inset-inline-end: -90px; bottom: -110px; color: var(--tn-ember); opacity: .14; pointer-events: none; }
.tn-hero__copy { position: relative; display: flex; flex-direction: column; gap: 22px; max-width: 620px; }
.tn-hero__badge {
	align-self: flex-start;
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(240,138,93,.16);
	color: #FBC9B0;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
}
.tn-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--tn-ember); }
.tn-hero__title { margin: 0; font-family: var(--tn-display); font-weight: 800; font-size: clamp(42px, 6.4vw, 72px); line-height: 1.08; letter-spacing: -1px; }
.tn-hero__title span { display: block; color: var(--tn-ember); }
.tn-hero__text { margin: 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.8; color: var(--tn-emerald-soft); }
.tn-hero__ctas { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

.tn-hero__side { flex: 1 1 320px; min-width: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.tn-offer {
	position: relative;
	overflow: hidden;
	background: var(--tn-ember);
	color: var(--tn-ink);
	border-radius: 32px;
	padding: 28px;
	text-decoration: none;
	display: flex; flex-direction: column; justify-content: space-between;
	min-height: 240px;
}
.tn-offer:hover { color: var(--tn-ink); }
.tn-offer__label { font-weight: 600; }
.tn-offer__big { font-family: var(--tn-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; }
.tn-offer__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.tn-offer__go { width: 46px; height: 46px; flex-shrink: 0; border-radius: 23px; background: var(--tn-ink); color: var(--tn-ember); display: inline-flex; align-items: center; justify-content: center; }

.tn-hero__pet { border-radius: 32px; min-height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--tn-emerald); }
.tn-hero__img { width: 100%; height: 100%; object-fit: cover; }
.tn-float { display: inline-flex; animation: tn-float 6s ease-in-out infinite; }
@keyframes tn-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }

@media (max-width: 720px) {
	.tn-hero__main { min-height: 0; border-radius: 26px; }
	.tn-hero__side { grid-template-rows: auto; grid-template-columns: 1fr; }
	.tn-hero__pet { display: none; }
	.tn-offer { min-height: 180px; border-radius: 26px; }
}

/* Sections --------------------------------------------------------------- */
.tn-section { padding-top: clamp(48px, 7vw, 72px); }
.tn-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.tn-section__lead { margin: 0; color: var(--tn-muted); max-width: 380px; }
.tn-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; min-height: 44px; }

.tn-pets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tn-pet {
	border-radius: 30px;
	padding: 24px;
	min-height: 280px;
	display: flex; flex-direction: column; gap: 8px;
	color: var(--tn-ink);
	text-decoration: none;
}
.tn-pet:hover { color: var(--tn-ink); }
.tn-pet__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tn-pet__name { font-family: var(--tn-display); font-weight: 800; font-size: 26px; line-height: 1.2; }
.tn-pet__go { width: 40px; height: 40px; flex-shrink: 0; border-radius: 20px; background: rgba(255,255,255,.7); display: inline-flex; align-items: center; justify-content: center; transition: transform .25s var(--tn-ease); }
.tn-pet:hover .tn-pet__go { transform: rotate(-45deg); }
[dir="ltr"] .tn-pet__go { transform: scaleX(-1); }
.tn-pet__art { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.tn-pet__sub { font-size: 14px; color: var(--tn-ink-2); font-weight: 500; }
@media (max-width: 560px) {
	.tn-pets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tn-pet { min-height: 210px; padding: 18px; border-radius: 24px; }
	.tn-pet__name { font-size: 21px; }
	.tn-pet__art .tn-icon { width: 80px; height: 80px; }
}

.tn-needs { padding-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tn-needs__label { font-weight: 700; margin-inline-end: 6px; }

.tn-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tn-perk {
	background: var(--tn-surface);
	border-radius: var(--tn-r-lg);
	padding: 30px;
	display: flex; flex-direction: column; gap: 12px;
	color: var(--tn-ink);
	text-decoration: none;
}
.tn-perk h3 { margin: 0; font-family: var(--tn-display); font-weight: 700; font-size: 24px; }
.tn-perk p { margin: 0; color: var(--tn-muted); line-height: 1.7; }
.tn-perk__icon { width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--tn-emerald); }
.tn-perk__icon.tn-ember { color: var(--tn-ember-ink); }
.tn-perk--dark { background: var(--tn-emerald); color: #fff; }
.tn-perk--dark:hover { color: #fff; }
.tn-perk--dark p { color: var(--tn-emerald-soft); }
.tn-perk--dark .tn-perk__icon { background: rgba(255,255,255,.12); color: var(--tn-ember); }

.tn-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tn-brandcard {
	height: 110px;
	background: var(--tn-surface);
	border-radius: 22px;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	color: var(--tn-ink-2);
	text-decoration: none;
	font-weight: 600;
}
.tn-brandcard img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.tn-brandcard:hover img { filter: none; opacity: 1; }

.tn-cta {
	position: relative;
	overflow: hidden;
	background: var(--tn-ember);
	color: var(--tn-ink);
	border-radius: var(--tn-r-xl);
	padding: clamp(32px, 5vw, 56px) clamp(24px, 4.5vw, 52px);
	display: flex; flex-wrap: wrap; gap: 28px;
	align-items: center; justify-content: space-between;
}
.tn-cta .tn-mark { position: absolute; inset-inline-end: -60px; top: -70px; opacity: .12; color: var(--tn-ink); pointer-events: none; }
.tn-cta__copy { position: relative; max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.tn-cta__copy p { margin: 0; font-size: 17px; color: #2B1B12; }
.tn-cta .tn-btn { position: relative; }

/* Generic pages ---------------------------------------------------------- */
.tn-page-top { padding-top: 24px; }
.tn-page { padding-top: 32px; }
.tn-page__title { margin-bottom: 24px; }
.tn-content { min-width: 0; }

.tn-crumbs { font-size: 14px; color: var(--tn-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tn-crumbs a { color: var(--tn-muted); text-decoration: none; }
.tn-crumbs a:hover { color: var(--tn-ember-ink); text-decoration: underline; }

.tn-archive-hero {
	margin-top: 16px;
	border-radius: 32px;
	padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px);
	display: flex; flex-wrap: wrap; gap: 24px;
	align-items: center; justify-content: space-between;
}
.tn-archive-hero__copy { max-width: 680px; }
.tn-archive-hero__desc { margin-top: 10px; font-size: 17px; color: var(--tn-ink-2); }
.tn-archive-hero__desc p { margin: 0; }
.tn-archive-hero__img { width: 140px; height: 140px; object-fit: contain; border-radius: 24px; }
.tn-chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

.tn-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tn-post { background: var(--tn-surface); border-radius: 24px; overflow: hidden; }
.tn-post__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.tn-post__body { padding: 20px; }
.tn-post__title { margin: 0 0 8px; font-family: var(--tn-display); font-size: 22px; line-height: 1.3; }
.tn-post__title a { color: var(--tn-ink); text-decoration: none; }
.tn-pagination { grid-column: 1 / -1; }
.tn-empty, .tn-404 { grid-column: 1 / -1; background: var(--tn-surface); border-radius: 32px; padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tn-404__art { color: var(--tn-emerald); }
.tn-404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer ----------------------------------------------------------------- */
.tn-footer { margin-top: clamp(56px, 8vw, 80px); background: var(--tn-ink); color: #C8D3CE; border-radius: 36px 36px 0 0; }
.tn-footer__grid { padding-block: 64px 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 36px; }
.tn-footer__about p { margin: 14px 0 0; line-height: 1.8; }
.tn-footer__title { margin: 0 0 14px; color: #fff; font-size: 16px; font-weight: 700; font-family: var(--tn-font); }
.tn-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tn-footer__links a { color: #C8D3CE; text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.tn-footer__links a:hover { color: var(--tn-ember); }
.tn-footer__bottom { border-top: 1px solid #24342D; }
.tn-footer__bottom-inner { padding-block: 22px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

.tn-wa-float {
	position: fixed;
	bottom: 20px;
	inset-inline-end: 20px;
	z-index: 40;
	width: 58px; height: 58px;
	border-radius: 29px;
	background: var(--tn-emerald);
	color: var(--tn-ember);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 14px 30px -12px rgba(11,61,48,.6);
	transition: transform .2s var(--tn-ease);
}
.tn-wa-float:hover { color: var(--tn-ember); transform: scale(1.06); }
.woocommerce-checkout .tn-wa-float { display: none; }

/* Motion preference ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.tn-lift:hover { transform: none; }
}


/* ==========================================================================
   1.1.0 — Almarai typography + compact scale + real logo
   ========================================================================== */
:root {
	--tn-font: 'Almarai', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tn-display: 'Almarai', system-ui, sans-serif;
	--tn-r-lg: 22px;
	--tn-r-xl: 26px;
	--tn-wrap: 1240px;
}
:lang(en) { --tn-font: 'Plus Jakarta Sans', system-ui, sans-serif; --tn-display: 'Plus Jakarta Sans', system-ui, sans-serif; }
body.tn { font-size: 15px; line-height: 1.75; }
.tn-h1, .tn-h2, .tn-h3 { letter-spacing: 0; }
.tn-h1 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; }
.tn-h2 { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.3; }
.tn-eyebrow { font-size: 13px; margin-bottom: 4px; }

/* Logo */
.tn-brand__logo { display: block; height: 46px; width: auto; max-height: none; }
.tn-footer__logo { display: inline-flex; background: #fff; border-radius: 14px; padding: 6px 12px; }
.tn-footer__logo .tn-brand__logo { height: 40px; }
@media (max-width: 720px) { .tn-brand__logo { height: 38px; } }

/* Buttons & controls */
.tn-btn { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; gap: 8px; }
.tn-btn--lg { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.tn-btn .tn-icon { width: 18px; height: 18px; }
.tn-iconbtn { width: 42px; height: 42px; border-radius: 12px; }
.tn-iconbtn .tn-icon { width: 20px; height: 20px; }
.tn-cartbtn { height: 42px; padding: 0 14px; border-radius: 12px; gap: 8px; font-size: 14px; }
.tn-cartbtn .tn-icon { width: 20px; height: 20px; }
.tn-cart-count { min-width: 22px; height: 22px; font-size: 12px; }
.tn-chip { min-height: 38px; padding: 0 14px; font-size: 14px; }
.tn-pill { font-size: 13px; padding: 4px 12px; }

/* Header */
.tn-ticker { height: 34px; font-size: 13px; }
.tn-header { padding-top: 10px; }
.tn-header__bar { padding: 8px 10px; border-radius: 16px; gap: 12px; }
.tn-nav__list > li > a { min-height: 40px; padding: 0 10px; font-size: 14px; border-radius: 10px; }
.tn-search { height: 42px; border-radius: 12px; padding: 0 14px; }
.tn-search input[type="search"] { font-size: 14px; }

/* Hero */
.tn-hero { padding-top: 18px; gap: 14px; }
.tn-hero__main { min-height: 400px; border-radius: 26px; padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 44px); gap: 24px; }
.tn-hero__copy { gap: 16px; max-width: 560px; }
.tn-hero__badge { font-size: 13px; padding: 6px 14px; }
.tn-hero__title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.25; letter-spacing: 0; }
.tn-hero__text { font-size: 15.5px; }
.tn-hero__side { gap: 14px; }
.tn-offer { border-radius: 26px; padding: 22px; min-height: 190px; }
.tn-offer__big { font-size: clamp(28px, 3vw, 40px); }
.tn-offer__go { width: 40px; height: 40px; }
.tn-hero__pet { border-radius: 26px; min-height: 190px; }
.tn-hero__pet .tn-icon { width: 130px; height: 130px; }
.tn-scales { width: 340px; height: 340px; }

/* Sections */
.tn-section { padding-top: clamp(36px, 5vw, 56px); }
.tn-section__head { margin-bottom: 20px; }
.tn-section__lead { font-size: 14px; }
.tn-pets { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tn-pet { min-height: 210px; padding: 18px; border-radius: 22px; }
.tn-pet__name { font-size: 19px; }
.tn-pet__go { width: 34px; height: 34px; }
.tn-pet__art .tn-icon { width: 84px; height: 84px; }
.tn-pet__sub { font-size: 13px; }
.tn-needs { padding-top: 28px; gap: 8px; }
.tn-perks { gap: 12px; }
.tn-perk { padding: 22px; border-radius: 22px; gap: 10px; }
.tn-perk h3 { font-size: 18px; }
.tn-perk p { font-size: 14px; }
.tn-perk__icon { width: 46px; height: 46px; border-radius: 14px; }
.tn-perk__icon .tn-icon { width: 22px; height: 22px; }
.tn-cta { border-radius: 26px; padding: clamp(24px, 4vw, 40px); }
.tn-cta__copy p { font-size: 15px; }
.tn-brandcard { height: 90px; border-radius: 18px; }
.tn-archive-hero { border-radius: 24px; padding: clamp(22px, 3vw, 32px); }
.tn-archive-hero__desc { font-size: 15px; }
.tn-archive-hero__img { width: 110px; height: 110px; border-radius: 18px; }

/* Footer */
.tn-footer { border-radius: 26px 26px 0 0; }
.tn-footer__grid { padding-block: 48px 28px; gap: 28px; }
.tn-footer__links a { min-height: 32px; font-size: 14px; }
.tn-wa-float { width: 50px; height: 50px; bottom: 16px; inset-inline-end: 16px; }
.tn-wa-float .tn-icon { width: 22px; height: 22px; }


/* 1.1.1 — compact category header, description at bottom */
.tn-archive-hero { padding: 18px 26px; min-height: 0; }
.tn-archive-hero__img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.tn-about-cat { background: var(--tn-surface); border-radius: 22px; padding: clamp(20px, 3vw, 32px); }
.tn-about-cat__title { margin: 0 0 10px; font-family: var(--tn-display); font-size: 20px; font-weight: 800; }
.tn-about-cat .tn-prose { font-size: 15px; color: var(--tn-ink-2); max-width: none; }
.tn-about-cat .tn-prose p { margin: 0 0 10px; }

/* 1.1.1 — mega menu for categories with sub-groups */
.tn-header__bar { position: relative; }
.tn-nav__list > li:has(.sub-menu .sub-menu) { position: static; }
.tn-nav__list > li:has(.sub-menu .sub-menu) > .sub-menu {
	inset-inline: 0;
	top: calc(100% - 4px);
	min-width: 0;
	width: auto;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	padding: 22px 24px;
	border-radius: 20px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 18px 24px;
	align-items: start;
}
.tn-nav__list > li:has(.sub-menu .sub-menu) > .sub-menu::before { top: -14px; height: 14px; }
.tn-nav__list > li:has(.sub-menu .sub-menu) > .sub-menu > li > a {
	padding: 6px 10px;
	font-weight: 800;
	font-size: 14.5px;
	color: var(--tn-emerald);
	border-radius: 8px;
	border-bottom: 1px solid var(--tn-line);
	border-radius: 8px 8px 0 0;
	margin-bottom: 4px;
}
.tn-nav__list > li:has(.sub-menu .sub-menu) > .sub-menu > li > a:hover { background: var(--tn-ground); color: var(--tn-ember-ink); }
.tn-nav__list .sub-menu .sub-menu { padding: 0; }
.tn-nav__list .sub-menu .sub-menu a { font-size: 13.5px; color: var(--tn-ink-2); padding: 5px 10px; border-radius: 8px; transition: background-color .15s ease, color .15s ease, padding .15s ease; }
.tn-nav__list .sub-menu .sub-menu a:hover { background: var(--tn-ground); color: var(--tn-ink); padding-inline-start: 14px; }
/* Simple dropdowns (no 3rd level) */
.tn-nav__list > li:not(:has(.sub-menu .sub-menu)) > .sub-menu { padding: 8px; border-radius: 16px; min-width: 220px; }
.tn-nav__list > li:not(:has(.sub-menu .sub-menu)) > .sub-menu a { font-size: 14px; padding: 8px 12px; }

/* 1.1.2 — logo size wins over WooCommerce img rules */
.tn .tn-header .tn-brand img.tn-brand__logo { height: 46px; width: auto; max-width: none; }
.tn .tn-footer .tn-footer__logo img.tn-brand__logo { height: 40px; width: auto; max-width: none; }
@media (max-width: 720px) { .tn .tn-header .tn-brand img.tn-brand__logo { height: 36px; } }

/* 1.1.2 — two-row desktop header: logo + search + actions, then categories */
@media (min-width: 1241px) {
	.tn-header__bar { flex-wrap: wrap; row-gap: 6px; padding-bottom: 4px; }
	.tn-search { order: 2; flex: 1 1 360px; max-width: 560px; margin-inline: auto; }
	.tn-header__actions { order: 3; margin-inline-start: 0; }
	.tn-nav { order: 10; flex: 1 1 100%; border-top: 1px solid var(--tn-line); padding-top: 4px; }
	.tn-nav__list { flex-wrap: wrap; justify-content: flex-start; }
}

/* 1.1.3 — menu opens only when hovering the menu item itself */
.tn-nav__list .sub-menu .sub-menu { visibility: inherit; }
.tn-nav__list > li > .sub-menu { pointer-events: none; }
.tn-nav__list > li:hover > .sub-menu,
.tn-nav__list > li:focus-within > .sub-menu { pointer-events: auto; transition-delay: .15s; }

/* 1.1.3 — sizing across all screens */
/* Large & extra-large screens: use more of the width */
@media (min-width: 1500px) {
	:root { --tn-wrap: 1380px; }
	body.tn { font-size: 15.5px; }
}
@media (min-width: 1800px) {
	:root { --tn-wrap: 1520px; }
	body.tn { font-size: 16px; }
	.tn-hero__main { min-height: 460px; }
	.tn-hero__title { font-size: 56px; }
}
/* Hero: keep the side cards beside the banner on laptops/tablets landscape */
.tn-hero__main { flex: 2 1 560px; }
.tn-hero__side { flex: 1 1 280px; }
/* Tablets: side cards become a two-column row under the banner */
@media (min-width: 561px) and (max-width: 900px) {
	.tn-hero__side { flex-basis: 100%; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.tn-hero__pet { display: flex; min-height: 170px; }
	.tn-offer { min-height: 170px; }
	.tn-hero__main { min-height: 340px; }
}
/* Pet tiles: 3 per row on tablets, 2 on phones */
@media (max-width: 900px) and (min-width: 561px) {
	.tn-pets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Phones */
@media (max-width: 720px) {
	.tn-chips, .tn-needs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--tn-gutter)); padding-inline: var(--tn-gutter); padding-bottom: 4px; }
	.tn-chips::-webkit-scrollbar, .tn-needs::-webkit-scrollbar { display: none; }
	.tn-chip, .tn-needs__label { flex-shrink: 0; white-space: nowrap; }
	.tn-crumbs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
	.tn-crumbs::-webkit-scrollbar { display: none; }
	.tn-hero__title { font-size: 30px; }
	.tn-section__head { margin-bottom: 14px; }
	.tn-archive-hero { padding: 14px 18px; }
	.tn-archive-hero__img { width: 56px; height: 56px; }
}
@media (max-width: 380px) {
	:root { --tn-gutter: 12px; }
	.tn-hero__title { font-size: 27px; }
	.tn-btn--lg { padding: 0 16px; }
}


/* 1.1.5 — LTR (English) mirroring: html has no dir attribute in LTR */
html:not([dir="rtl"]) .tn-icon--arrow { transform: scaleX(-1); }
html:not([dir="rtl"]) .tn-pet__go { transform: scaleX(-1); }
html:not([dir="rtl"]) .tn-pet:hover .tn-pet__go { transform: scaleX(-1) rotate(-45deg); }
html:not([dir="rtl"]) .tn-drawer__panel { transform: translateX(-100%); }
html:not([dir="rtl"]) .tn-drawer.is-open .tn-drawer__panel { transform: none; }
html:not([dir="rtl"]) .tn-ticker__track { animation-name: tn-marquee; }

/* 1.1.7 — tables inside content pages */
.tn-prose table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid rgba(15,61,46,.08);border-radius:16px;overflow:hidden;margin:16px 0 28px;font-size:.92rem}
.tn-prose th,.tn-prose td{padding:10px 14px;text-align:start;border-top:1px solid rgba(15,61,46,.08)}
.tn-prose thead th{background:#f7f5ef;border-top:0;font-weight:700}
.tn-prose tbody tr:hover{background:#fbfaf6}
@media (max-width:700px){.tn-prose table{display:block;overflow-x:auto}}

/* 1.1.8 — mobile drawer: accordion submenus, admin-bar offset */
body.admin-bar .tn-drawer__panel { top: 32px; }
@media (max-width: 782px) { body.admin-bar .tn-drawer__panel { top: 46px; } }
.tn-drawer__panel { gap: 12px; padding: 16px; }
.tn-drawer__menu > li { border-bottom: 1px solid var(--tn-line, rgba(16,32,26,.08)); }
.tn-drawer__menu > li:last-child { border-bottom: 0; }
.tn-drawer__menu li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
.tn-drawer__menu li.menu-item-has-children > a { flex: 1; min-width: 0; }
.tn-drawer__menu > li > a { font-size: 1rem; font-weight: 700; min-height: 50px; }
.tn-sub-toggle {
	flex: none; width: 40px; height: 40px; margin-inline-start: 4px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 10px; background: var(--tn-ground); color: var(--tn-ink);
	cursor: pointer; transition: background .15s;
}
.tn-sub-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.tn-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.tn-drawer__menu li.menu-item-has-children > .sub-menu { display: none; flex-basis: 100%; padding: 0 10px 10px; padding-inline-start: 10px; }
.tn-drawer__menu li.menu-item-has-children.is-open > .sub-menu { display: block; }
.tn-drawer__menu .sub-menu a { min-height: 40px; font-size: .9rem; padding: 0 12px; position: relative; }
.tn-drawer__menu .sub-menu a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tn-ember, #e8845a); margin-inline-end: 10px; flex: none; opacity: .7; }

/* 1.1.8 — animated menu icons */
.tn-mi { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 11px; margin-inline-end: 10px; background: var(--tn-ground); color: var(--tn-forest, #0B3D30); }
.tn-mi svg { width: 22px; height: 22px; transform-origin: 50% 60%; }
.tn-mi--cat    { background: #fde7da; } .tn-mi--dog  { background: #e3efe6; }
.tn-mi--bird   { background: #fbf1cf; } .tn-mi--fish { background: #dfeef8; }
.tn-mi--rabbit { background: #ece4f6; } .tn-mi--gift { background: #fde3dc; color: #c4532d; }
.tn-mi--star   { background: #fff2cc; color: #b7791f; } .tn-mi--paw { background: #eef0ec; }
@keyframes tnWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes tnSwim   { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-3px) rotate(-6deg); } }
@keyframes tnBob    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tnHop    { 0%,100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-4px) scale(1.04,.96); } 60% { transform: translateY(0) scale(.97,1.03); } }
@keyframes tnPop    { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15) rotate(-6deg); } }
.tn-mi--cat svg  { animation: tnWiggle 3.2s ease-in-out infinite; }
.tn-mi--dog svg  { animation: tnWiggle 3.6s ease-in-out .4s infinite; }
.tn-mi--bird svg { animation: tnBob 2.4s ease-in-out infinite; }
.tn-mi--fish svg { animation: tnSwim 2.8s ease-in-out infinite; }
.tn-mi--rabbit svg { animation: tnHop 2.6s ease-in-out infinite; }
.tn-mi--gift svg, .tn-mi--star svg { animation: tnPop 2.8s ease-in-out infinite; }
.tn-mi--paw svg  { animation: tnBob 3s ease-in-out infinite; }
a:hover > .tn-mi svg { animation-duration: .8s; }
@media (prefers-reduced-motion: reduce) { .tn-mi svg { animation: none !important; } }
/* desktop nav: smaller badge */
.tn-nav .tn-mi, .tn-header__nav .tn-mi { width: 26px; height: 26px; border-radius: 8px; margin-inline-end: 7px; }
.tn-nav .tn-mi svg, .tn-header__nav .tn-mi svg { width: 17px; height: 17px; }
.tn-nav a, .tn-header__nav a { display: inline-flex; align-items: center; }

/* 1.1.8 — drawer: language switcher already shown as a button below */
.tn-drawer__menu .wpml-ls-item, .tn-drawer__menu .wpml-ls-menu-item { display: none !important; }
.tn-nav .wpml-ls-item .tn-mi, .tn-drawer__menu .wpml-ls-item .tn-mi { display: none; }

/* 1.1.8 — mobile polish: legacy WPML footer switcher hidden, WhatsApp button never covers content */
.wpml-ls-statics-footer { display: none !important; }
@media (max-width: 720px) {
	.tn-wa-float { width: 48px; height: 48px; inset-inline-start: 12px; bottom: 14px; }
	.tn-wa-float svg { width: 22px; height: 22px; }
	.tn-footer { padding-bottom: 72px; }
}

.tn-drawer__logo { display: inline-flex; align-items: center; }
.tn-drawer__logo img, .tn-drawer__logo svg { height: 40px; width: auto; }

/* 1.1.8 — drawer search box was stretched to full height by the mobile header search rule */
.tn-drawer__panel .tn-search--drawer { flex: 0 0 auto !important; height: 46px; min-height: 46px; width: 100%; order: 0; }

/* ==========================================================================
 * 1.4.0 — living dragon logo
 * ======================================================================= */
.tn-header .tn-brand { position: relative; display: inline-flex; }
.tn-header .tn-brand__logo { clip-path: inset(0 0 0 41.6%); }
.tn-header .tn-brand::before {
	content: ''; position: absolute; left: 1.6%; top: 0; width: 40%; height: 100%;
	background: url('/wp-content/uploads/2026/10/tanin-dragon-head.png') center / contain no-repeat;
	transform-origin: 50% 80%; pointer-events: none;
	animation: tnDragonIdle 9s ease-in-out 2.5s infinite;
}
.tn-header .tn-brand::after {
	content: ''; position: absolute; left: -2%; top: -14%; width: 16px; height: 16px; pointer-events: none; opacity: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F08A5D' d='M12 0l2.6 8.4L24 12l-9.4 3.6L12 24l-2.6-8.4L0 12l9.4-3.6z'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: tnDragonSpark 9s ease-in-out 2.5s infinite;
}
.tn-header .tn-brand:hover::before { animation: tnDragonWiggle .55s ease-in-out 2; }
.tn-header .tn-brand.is-happy::before { animation: tnDragonJump .9s var(--tn-ease, ease) 1; }
.tn-header .tn-brand.is-happy::after { animation: tnDragonSparkOnce .9s ease-out 1; }

@keyframes tnDragonIdle {
	0%, 80%, 100% { transform: none; }
	83% { transform: translateY(-4px) rotate(-11deg); }
	87% { transform: translateY(0) rotate(9deg); }
	91% { transform: translateY(-2px) rotate(-5deg); }
	95% { transform: rotate(2deg); }
}
@keyframes tnDragonSpark {
	0%, 81%, 95%, 100% { opacity: 0; transform: scale(.2) rotate(0); }
	86% { opacity: 1; transform: scale(1.1) rotate(45deg); }
	91% { opacity: .9; transform: scale(.8) rotate(90deg); }
}
@keyframes tnDragonSparkOnce {
	0% { opacity: 0; transform: scale(.2); }
	40% { opacity: 1; transform: scale(1.3) rotate(60deg); }
	100% { opacity: 0; transform: scale(.4) rotate(140deg); }
}
@keyframes tnDragonWiggle {
	0%, 100% { transform: none; }
	25% { transform: rotate(-14deg) scale(1.08); }
	75% { transform: rotate(14deg) scale(1.08); }
}
@keyframes tnDragonJump {
	0%, 100% { transform: none; }
	30% { transform: translateY(-11px) scale(1.14) rotate(-8deg); }
	55% { transform: translateY(0) scale(.95, 1.04); }
	75% { transform: translateY(-4px) rotate(4deg); }
}

/* Hello bubble */
.tn-dragon-hi {
	position: absolute; top: calc(100% + 10px); right: auto; left: 0; z-index: 70; white-space: nowrap;
	background: var(--tn-emerald, #0B3D30); color: #fff; font-weight: 700; font-size: 13px; line-height: 1;
	padding: 10px 14px; border-radius: 14px; box-shadow: 0 10px 24px -10px rgba(11,61,48,.6);
	opacity: 0; transform: translateY(-6px) scale(.9); transform-origin: 20px 0; pointer-events: none;
	transition: opacity .3s ease, transform .35s var(--tn-ease, ease);
}
.tn-dragon-hi::before { content: ''; position: absolute; top: -6px; left: 18px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--tn-emerald, #0B3D30); }
.tn-dragon-hi.is-on { opacity: 1; transform: none; }

/* Flying dragon */
.tn-flyer { position: fixed; left: 0; z-index: 60; width: 58px; height: 50px; cursor: pointer; animation: tnFly 8s linear forwards; will-change: transform; }
.tn-flyer img { width: 100%; height: 100%; object-fit: contain; display: block; animation: tnBob .45s ease-in-out infinite alternate; filter: drop-shadow(0 8px 10px rgba(11,61,48,.35)); }
.tn-flyer__wing { position: absolute; top: 34%; width: 22px; height: 16px; background: #F0A24A; border-radius: 80% 10% 80% 10%; animation: tnFlap .18s ease-in-out infinite alternate; z-index: -1; }
.tn-flyer__wing--l { left: -12px; transform-origin: 100% 60%; }
.tn-flyer__wing--r { right: -12px; transform-origin: 0 60%; border-radius: 10% 80% 10% 80%; }
.tn-flyer__dot { position: fixed; width: 7px; height: 7px; border-radius: 50%; background: #F08A5D; pointer-events: none; z-index: 59; animation: tnDot .9s ease-out forwards; }
@keyframes tnFly {
	0% { transform: translate(-90px, 0) rotate(8deg); }
	20% { transform: translate(20vw, -26px) rotate(-6deg); }
	40% { transform: translate(40vw, 18px) rotate(6deg); }
	60% { transform: translate(60vw, -22px) rotate(-6deg); }
	80% { transform: translate(80vw, 14px) rotate(5deg); }
	100% { transform: translate(calc(100vw + 90px), -10px) rotate(-4deg); }
}
@keyframes tnBob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes tnFlap { from { transform: rotate(-35deg) scaleY(.8); } to { transform: rotate(25deg) scaleY(1.1); } }
@keyframes tnDot { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: translateY(14px) scale(.2); } }
@keyframes tnCartBump { 0%, 100% { transform: none; } 40% { transform: scale(1.35); } 70% { transform: scale(.9); } }
.tn-cart-bump { animation: tnCartBump .6s ease 1; }

@media (prefers-reduced-motion: reduce) {
	.tn-header .tn-brand::before, .tn-header .tn-brand::after { animation: none !important; }
	.tn-flyer { display: none !important; }
}
.tn-header .tn-brand__logo { mix-blend-mode: multiply; }

/* 1.4.2 — cart/checkout header on phones: menu + logo on one side, cart on the other */
.tn-header--flow .tn-header__actions { margin-inline-start: 0; }
.tn-header--flow .tn-secure { margin-inline-start: auto; }
@media (max-width: 720px) { .tn-header--flow .tn-header__actions { margin-inline-start: auto !important; } }
