/*
 * Davam — base stylesheet: fonts, colour tokens (light + dark), base, news ticker, header,
 * footer, mobile app bar, search and menu dialogs, toast, inner pages.
 * Home sections: home.css. Slider: hero.css.
 */

@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Jost";
	src: url("../fonts/Jost-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
	unicode-range: U+0000-00FF;
}
@font-face {
	font-family: "Jost";
	src: url("../fonts/Jost-500.woff2") format("woff2");
	font-weight: 500 900;
	font-display: swap;
	unicode-range: U+0000-00FF;
}

/* Colours: light by default; the header switch stores the choice (html[data-theme]). */
:root {
	--paper: #f6f5f1;
	--paper2: #edebe4;
	--card: #ffffff;
	--ink: #1f3a5f;
	--ink2: #45505e;
	--ink3: #5f6874;
	--line: #e1ded5;
	--gold: #b08f57;
	--gold-ink: #7a5e2e;
	--gold-soft: #f2ebdd;
	--ph1: #d9d5ca;
	--ph2: #ece9e1;
	--pri: #1f3a5f;
	--on-pri: #ffffff;
	--head-bg: rgba(246, 245, 241, .88);
	--club: #efeadf;
	--club-line: rgba(176, 143, 87, .35);
	--rod1: #c2c6cc;
	--rod2: #8e949c;
	--hanger: #6e7681;
	--ok: #2f8c78;
	--bad: #c2543f;
	--navy: #1f3a5f;
	--brass: #c9a86a;
	--font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
	--latin: "Jost", "Vazirmatn", sans-serif;
	--gutter: clamp(16px, 4vw, 40px);
	--max: 1440px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	color-scheme: light;
}
:root[data-theme="dark"] {
	--paper: #0a141e;
	--paper2: #0e1a26;
	--card: #13202e;
	--ink: #ece8df;
	--ink2: #bac3cd;
	--ink3: #93a0ae;
	--line: #223142;
	--gold: #c9a86a;
	--gold-ink: #dcc08a;
	--gold-soft: #1f2c36;
	--ph1: #1e2c3b;
	--ph2: #122030;
	--pri: #c9a86a;
	--on-pri: #1f3a5f;
	--head-bg: rgba(10, 20, 30, .86);
	--club: #101c29;
	--club-line: rgba(201, 168, 106, .28);
	--rod1: #8c96a3;
	--rod2: #56616e;
	--hanger: #9aa4b0;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins over component display rules (e.g. display:grid buttons). */
[hidden] { display: none !important; }
html { scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 2;
	-webkit-font-smoothing: antialiased;
	transition: background-color .3s, color .3s;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.site-main:focus { outline: none; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 100; padding: 8px 16px; background: var(--pri); color: var(--on-pri); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.latin { font-family: var(--latin); }
.dv-noscroll { scrollbar-width: none; }
.dv-noscroll::-webkit-scrollbar { display: none; }
.ic { display: block; flex: none; }
.btn-round {
	width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--line);
	background: transparent; color: var(--ink2); cursor: pointer; display: grid; place-items: center;
	transition: border-color .2s, color .2s;
}
.btn-round:hover { border-color: var(--gold); color: var(--gold-ink); }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gold-ink); text-decoration: none; white-space: nowrap; }
.more-link:hover { color: var(--ink); }
.light-only { display: block; }
.dark-only { display: none; }
:root[data-theme="dark"] .light-only { display: none; }
:root[data-theme="dark"] .dark-only { display: block; }

/* ── News ticker ───────────────────────────────────────── */
.tk { background: var(--paper2); border-bottom: 1px solid var(--line); }
.tk__row { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); height: 46px; display: flex; align-items: center; gap: 14px; }
.tk__label { display: flex; align-items: center; gap: 8px; flex: none; color: var(--gold-ink); font-weight: 800; font-size: 13px; }
.tk__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: dv-pulse 2.2s infinite; }
@keyframes dv-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 140, 120, .5); } 70% { box-shadow: 0 0 0 8px rgba(47, 140, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 140, 120, 0); } }
.tk__sep { width: 1px; height: 18px; background: var(--line); flex: none; }
.tk__msgs { flex: 1; min-width: 0; position: relative; height: 46px; }
.tk__msg { position: absolute; inset: 0; display: flex; align-items: center; color: var(--ink); font-size: 14px; text-decoration: none; }
.tk__msg > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk__msg.is-in { animation: dv-fade .7s var(--ease); }
a.tk__msg:hover { color: var(--gold-ink); }
.tk__count { flex: none; font-size: 12px; color: var(--ink3); }
.tk__nav { display: flex; gap: 4px; flex: none; }
@keyframes dv-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Header: full bar → floating pill on scroll ────────── */
.hd { position: sticky; top: 0; z-index: 40; transition: padding .5s var(--ease); }
.admin-bar .hd { top: 32px; }
@media (max-width: 782px) { .admin-bar .hd { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hd { top: 0; } }
.hd__shell {
	margin-inline: auto; width: 100%; background: var(--head-bg);
	-webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
	border: 1px solid transparent; border-bottom-color: var(--line);
	transition: width .55s var(--ease), border-radius .55s var(--ease), box-shadow .4s, border-color .4s;
}
.hd__row { max-width: var(--max); margin-inline: auto; display: flex; align-items: center; gap: 16px; padding: 10px var(--gutter); transition: padding .5s var(--ease); }
.hd__brand { display: flex; align-items: center; flex: none; }
.hd__logo { height: 60px; width: auto; transition: height .5s var(--ease); }
.hd__spacer { flex: 1; }
.hd__mini { display: none; flex: 1; min-width: 0; justify-content: center; }
.hd__mini ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.hd__mini a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink2); text-decoration: none; white-space: nowrap; line-height: 1.6; }
.hd__mini a:hover { color: var(--ink); }
.hd__mini .current-menu-item > a, .hd__mini .current_page_item > a { color: var(--ink); background: var(--gold-soft); }
.hd__mini .dv-badge { display: none; }
.hd__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.hd__search {
	display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 10px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink2); cursor: pointer; font-size: 14px;
}
:root:not([dir="rtl"]) .hd__search { padding: 0 10px 0 16px; }
.hd__search:hover, .hd__icon:hover, .hd__account:hover { border-color: var(--gold); color: var(--gold-ink); }
.hd__kbd { font-family: var(--latin); font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; line-height: 20px; color: var(--ink3); background: var(--paper); }
.hd__mode { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.hd__mode button { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: transparent; color: var(--ink3); }
.hd__mode button[aria-pressed="true"] { background: var(--pri); color: var(--on-pri); }
.hd__account, .hd__icon { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink2); display: grid; place-items: center; cursor: pointer; padding: 0; }
.hd__icon { display: none; width: 44px; height: 44px; }
.hd__cart { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--pri); color: var(--on-pri); text-decoration: none; font-size: 14px; font-weight: 700; }
:root:not([dir="rtl"]) .hd__cart { padding: 0 18px 0 8px; }
.hd__cart:hover { filter: brightness(1.08); }
.hd__cart-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.dv-cart-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--brass); color: var(--navy); font-size: 12px; font-weight: 900; display: grid; place-items: center; line-height: 1; }
.hd__nav { border-top: 1px solid var(--line); }
.hd__nav ul { list-style: none; margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hd__nav ul::-webkit-scrollbar { display: none; }
.hd__nav a { position: relative; display: block; padding: 14px 16px 13px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--ink2); border-bottom: 2px dashed transparent; line-height: 1.6; }
.hd__nav a:hover { color: var(--ink); }
.hd__nav .current-menu-item > a, .hd__nav .current_page_item > a { color: var(--ink); border-bottom-color: var(--gold); }
.dv-badge { margin-inline-start: 6px; font-size: 10px; font-weight: 800; color: var(--navy); background: var(--brass); border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }

/* Scrolled: floating pill with the menu inline (desktop only). */
@media (min-width: 1024px) {
	/* The header keeps its full height in the page flow while it is a pill (--hd-h, set by site.js):
	   otherwise the page would jump up by the difference, the browser's scroll anchoring would move
	   the scroll position back above the threshold, and the header would flip back and forth. */
	.hd.is-mini { height: var(--hd-h, auto); padding-top: 10px; pointer-events: none; }
	.hd.is-mini .hd__shell { pointer-events: auto; width: min(1240px, calc(100% - 2 * clamp(10px, 3vw, 24px))); border-radius: 999px; border-color: var(--line); box-shadow: 0 14px 34px -14px rgba(31, 58, 95, .35); }
	.hd.is-mini .hd__row { padding: 6px 8px; }
	.hd.is-mini .hd__logo { height: 42px; }
	.hd.is-mini .hd__nav, .hd.is-mini .hd__spacer { display: none; }
	.hd.is-mini .hd__mini { display: flex; animation: dv-fade .5s var(--ease); }
	.hd.is-mini .hd__search span:not(.hd__kbd), .hd.is-mini .hd__search .hd__kbd { display: none; }
	.hd.is-mini .hd__search { width: 46px; padding: 0; justify-content: center; }
}
@media (min-width: 1024px) and (max-width: 1240px) {
	.hd.is-mini .hd__mode, .hd.is-mini .hd__account { display: none; }
}
@media (max-width: 1023px) {
	.hd__search .hd__kbd { display: none; }
}
/* Phone: compact bar; menu, account and cart live in the bottom app bar. */
@media (max-width: 767px) {
	.hd__row { padding: 8px 14px; }
	.hd__logo { height: 44px; }
	.hd__search, .hd__mode, .hd__account, .hd__cart, .hd__nav { display: none; }
	.hd__icon { display: grid; }
}

/* ── Footer (compact): brand label + link columns + contact, a slim trust row, bottom bar ── */
.ft { position: relative; overflow: hidden; background: #07111b; color: #aeb8c4; font-size: 13.5px; }
.ft::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 90% 0%, rgba(201, 168, 106, .1), transparent 70%); }
.ft a { color: #c3ccd6; text-decoration: none; transition: color .2s; }
.ft a:hover { color: #fff; }
.ft__in { position: relative; max-width: var(--max); margin-inline: auto; padding: 40px var(--gutter) 0; display: flex; flex-direction: column; gap: 22px; }
.ft__main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
/* Brand: a small woven label */
.ft__brand {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 14px;
	border-radius: 6px 6px 14px 14px; color: #d9dfe6;
	background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px), #102033;
	box-shadow: 0 20px 36px -26px rgba(0, 0, 0, .8);
}
.ft__brand::after { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(201, 168, 106, .4); border-radius: 3px 3px 10px 10px; pointer-events: none; }
.ft__logo { height: 44px; width: auto; }
.ft__about { margin: 0; line-height: 1.9; font-size: 13px; }
.ft__social { position: relative; z-index: 1; display: flex; gap: 6px; }
.ft__soc { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(201, 168, 106, .35); color: var(--brass) !important; transition: border-color .2s, background-color .2s; }
a.ft__soc:hover { border-color: var(--brass); background: rgba(201, 168, 106, .12); }
.ft__soc .ic { width: 16px; height: 16px; }
.ft__tagline { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding-top: 8px; border-top: 1px solid rgba(201, 168, 106, .18); }
.ft__care { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; color: var(--brass); }
.ft__care svg { display: block; }
.ft__woven { font-size: 9.5px; letter-spacing: .32em; color: rgba(201, 168, 106, .75); }
/* Columns */
.ft__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ft__h { margin: 0 0 4px; color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ft__h::before { content: ""; width: 12px; border-top: 2px solid var(--brass); }
.ft__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ft__menu a { display: inline-flex; padding: 3px 0; position: relative; line-height: 1.8; }
.ft__menu a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 3px; width: 0; border-bottom: 1px dashed var(--brass); transition: width .35s var(--ease); }
.ft__menu a:hover::after { width: 100%; }
.ft__info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ft__info-row { display: flex; align-items: center; gap: 8px; line-height: 1.7; min-width: 0; }
.ft__info-ic { flex: none; color: var(--brass); display: grid; }
.ft__info-ic .ic { width: 16px; height: 16px; }
.ft__info-v { color: #e3e8ee !important; overflow-wrap: anywhere; }
.ft__info-row:first-child a.ft__info-v { font-family: var(--latin); letter-spacing: .04em; }
.is-sample { opacity: .5; }
.ft__chat { margin-top: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--brass); color: var(--navy); font-size: 12.5px; font-weight: 800; cursor: pointer; transition: gap .3s var(--ease); }
.ft__chat:hover { gap: 12px; }
/* Trust row: compact chips */
.ft__band { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.ft__badge { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); transition: border-color .25s; }
:root:not([dir="rtl"]) .ft__badge { padding: 6px 6px 6px 14px; }
.ft__badge:hover { border-color: rgba(201, 168, 106, .4); }
.ft__badge.is-sample { border-style: dashed; }
.ft__badge-media { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 10px; background: #f6f5f1; overflow: hidden; }
.ft__badge-media img { display: block; max-height: 40px; max-width: 72px; width: auto; height: auto; }
.ft__badge-media a { display: grid; place-items: center; padding: 2px; }
.ft__badge-ic { width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy); }
.ft__badge-ic .ic { width: 22px; height: 22px; }
.ft__logos { display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.ft__logos img { max-width: 34px; max-height: 26px; }
.ft__badge-t { color: #e3e8ee; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ft__badge-t small { margin-inline-start: 4px; font-weight: 400; color: #8995a2; }
/* Bottom bar with the wordmark peeking from the edge behind it */
.ft__bottom { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 0 22px; font-size: 12px; overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.ft__mark { position: absolute; inset-inline: 0; bottom: -0.32em; text-align: center; font-weight: 500; font-size: clamp(64px, 11vw, 150px); letter-spacing: .2em; line-height: 1; color: transparent; background: linear-gradient(180deg, rgba(201, 168, 106, .2), rgba(201, 168, 106, 0) 70%); -webkit-background-clip: text; background-clip: text; pointer-events: none; user-select: none; }
.ft__bottom > :not(.ft__mark) { position: relative; }
.ft__stitch { flex: 1; min-width: 30px; border-top: 1px dashed rgba(201, 168, 106, .3); }
.ft__top-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(7, 17, 27, .6); color: #d7dde4; font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .2s, transform .3s var(--ease); }
.ft__top-btn:hover { border-color: var(--brass); transform: translateY(-2px); }
@media (min-width: 768px) { .ft__bottom { padding-inline-end: calc(var(--gutter) + 180px); } } /* clear of the floating contact button */
@media (max-width: 1100px) {
	.ft__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ft__brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
	.ft__about { flex: 1; min-width: 200px; }
	.ft__tagline { width: auto; border-top: 0; padding-top: 0; }
}
@media (max-width: 767px) {
	.ft__in { padding-top: 28px; gap: 18px; }
	.ft__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
	.ft__brand { flex-direction: column; align-items: flex-start; }
	.ft__tagline { width: 100%; border-top: 1px solid rgba(201, 168, 106, .18); padding-top: 8px; }
	.ft__contact { grid-column: 1 / -1; }
	.ft__band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ft__badge { padding: 5px; gap: 8px; }
	.ft__badge-media, .ft__badge-ic { min-width: 36px; width: 36px; height: 36px; }
	.ft__badge-t { font-size: 11.5px; white-space: normal; line-height: 1.5; }
	.ft__bottom { flex-wrap: wrap; padding-bottom: 116px; gap: 10px; }
	.ft__copy { flex-basis: 100%; }
	.ft__top-btn { margin-inline-end: 62px; } /* the floating contact button sits at this corner */
	.ft__mark { bottom: 70px; font-size: 64px; }
}

/* ── Floating «ارتباط با ما» ───────────────────────────── */
.fab { position: fixed; z-index: 35; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 16px; border-radius: 999px; border: 0; background: var(--navy); color: #fff; cursor: pointer; box-shadow: 0 18px 30px -12px rgba(31, 58, 95, .6), 0 0 0 4px rgba(201, 168, 106, .25); font-family: var(--font); font-size: 14px; font-weight: 800; transition: transform .3s var(--ease), box-shadow .3s; }
:root[data-theme="dark"] .fab__btn { background: var(--brass); color: var(--navy); }
.fab__btn:hover { transform: translateY(-3px); }
.fab__btn::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--brass); opacity: 0; animation: fab-ping 3.6s ease-out 2s infinite; pointer-events: none; }
@keyframes fab-ping { 0% { opacity: .6; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.25); } }
.fab__i-close { display: none; }
.fab.is-open .fab__i-open { display: none; }
.fab.is-open .fab__i-close { display: block; }
.fab.is-open .fab__btn::before { animation: none; }
.fab__menu { width: 260px; padding: 12px; border-radius: 20px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 50px -20px rgba(6, 13, 21, .45); transform-origin: bottom; animation: fab-in .35s var(--ease); }
@keyframes fab-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.fab__title { margin: 2px 6px 8px; font-size: 13px; font-weight: 800; color: var(--ink2); }
.fab__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fab__opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid transparent; transition: border-color .2s, transform .25s var(--ease); }
.fab__opt:hover, .fab__opt:focus-visible { border-color: var(--gold); transform: translateX(-3px); }
.fab__ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.fab__opt--wa .fab__ic { background: #1f9d55; }
.fab__opt--tg .fab__ic { background: #2a8bd1; }
.fab__txt { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.fab__txt b { font-size: 14.5px; }
.fab__txt small { font-size: 12px; color: var(--ink3); }
.fab__opt[aria-disabled="true"] { opacity: .7; cursor: default; }
@media (max-width: 767px) {
	.fab { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; }
	.fab__btn { width: 52px; height: 52px; padding: 0; justify-content: center; }
	.fab__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .fab__btn::before { animation: none; } }

/* ── Mobile app bar ────────────────────────────────────── */
.ab { display: none; }
@media (max-width: 767px) {
	.ab {
		position: fixed; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 30;
		height: 68px; border-radius: 22px; background: var(--head-bg);
		-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		border: 1px solid var(--line); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .35);
		display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
	}
	.ft { border-radius: 24px 24px 0 0; }
	body { padding-bottom: 0; }
}
.ab__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink3); text-decoration: none; font-size: 10.5px; font-weight: 700; background: none; border: 0; cursor: pointer; padding: 0; line-height: 1.8; }
.ab__item.is-current { color: var(--gold-ink); font-weight: 800; }
.ab__center { justify-self: center; margin-top: -30px; width: 60px; height: 60px; border-radius: 50%; background: var(--pri); color: var(--on-pri); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--paper), 0 12px 22px -8px rgba(31, 58, 95, .6); }
.ab .dv-cart-count { position: absolute; top: -6px; inset-inline-end: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; font-size: 10px; }

/* ── Dialogs: search + menu sheet ──────────────────────── */
.dlg { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
.dlg::backdrop { background: rgba(6, 13, 21, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg[open] { animation: dv-fade .45s var(--ease); }
.srch { width: min(720px, calc(100% - 32px)); margin: 80px auto auto; }
.srch__box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.srch__form { display: flex; align-items: center; gap: 8px; padding: 4px; border: 1px solid var(--gold); border-radius: 999px; background: var(--paper); }
.srch__input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; background: transparent; outline: 0; color: var(--ink); font-family: inherit; font-size: 16px; }
.srch__input::placeholder { color: var(--ink3); }
.srch__go { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--pri); color: var(--on-pri); display: grid; place-items: center; cursor: pointer; }
.srch__sugs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.srch__sugs-t { font-size: 12.5px; font-weight: 700; color: var(--ink3); }
.pill { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink2); display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; text-decoration: none; background: transparent; cursor: pointer; }
.pill:hover { border-color: var(--gold); color: var(--gold-ink); }
.dlg__close { align-self: flex-start; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink2); font-size: 13px; font-weight: 700; cursor: pointer; }
.sheet { width: 100%; margin: auto 0 0; }
.sheet__box { background: var(--card); border-radius: 24px 24px 0 0; padding: 10px 16px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.sheet__grip { align-self: center; width: 44px; height: 5px; border-radius: 999px; background: var(--line); }
.sheet__menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sheet__menu a { display: grid; place-items: center; text-align: center; min-height: 64px; padding: 6px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 700; background: var(--paper); line-height: 1.6; }
.sheet__menu .dv-badge { display: none; }
.sheet__mode { display: flex; gap: 8px; }
.sheet__mode .pill { flex: 1; height: 44px; }
.sheet__mode .pill[aria-pressed="true"] { background: var(--pri); color: var(--on-pri); border-color: var(--pri); }
.sheet .dlg__close { align-self: stretch; height: 48px; font-size: 14px; }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
	position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 70;
	display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
	background: var(--navy); color: #f1ede4; font-size: 14px; font-weight: 700; max-width: calc(100% - 32px);
	box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .5); animation: dv-fade .5s var(--ease);
}
.toast__ic { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brass); color: var(--navy); display: grid; place-items: center; }
.toast.is-bad .toast__ic { background: var(--bad); color: #fff; }
@media (max-width: 767px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* ── Inner pages ───────────────────────────────────────── */
.content { padding-block: 40px 64px; }
.content__title { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.5; margin: 0 0 16px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Direction-aware arrows (drawn for RTL). */
:root:not([dir="rtl"]) .ic-arrow, :root:not([dir="rtl"]) .ic-next, :root:not([dir="rtl"]) .ic-prev { transform: scaleX(-1); }
.gold { color: var(--gold); }
