/* ============================================================
   Mobile Vahid demo — base.css
   Fonts, tokens (light/dark), reset, header, mega menu, drawer,
   bottom bar, footer, toasts, modals, compare tray, app mode.
   ============================================================ */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --primary: #0B6E4F; --primary-700: #08573E; --primary-600: #0A5F44;
  --primary-300: #7CC3AA; --primary-100: #E7F3EE;
  --accent: #E63946; --accent-600: #C22833; --accent-100: #FDEBEC;
  --secondary: #F4B942; --secondary-600: #D9A32E; --secondary-100: #FDF3DC;
  --bg: #F4F5F7; --surface: #FFFFFF; --surface-2: #F8FAF9; --surface-3: #EEF1F0;
  --border: #E5E7EB; --border-2: #D1D5DB;
  --text: #111827; --text-2: #6B7280; --text-3: #9CA3AF;
  --success: #16A34A; --success-100: #E8F7EE; --warning: #D97706; --warning-100: #FCF1E3;
  --shadow-1: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow-2: 0 8px 24px -8px rgba(17, 24, 39, .14);
  --shadow-3: 0 16px 48px -12px rgba(17, 24, 39, .22);
  --radius-sm: 10px; --radius: 16px; --radius-lg: 24px; --radius-pill: 999px;
  --header-h: 72px; --nav-h: 52px; --bottombar-h: 62px;
  --stick-h: 124px; --chrome-h: 164px;
  --grad-primary: linear-gradient(135deg, #0B6E4F, #0A5F44 55%, #0E8A63);
  --grad-hero1: linear-gradient(120deg, #0B6E4F 10%, #0E8A63 60%, #2FA37E);
  --grad-hero2: linear-gradient(120deg, #14532D 0%, #0B6E4F 55%, #3E9C6B);
  --grad-hero3: linear-gradient(120deg, #92400E 0%, #B45309 55%, #F4B942 130%);
  --grad-hero4: linear-gradient(120deg, #1E293B 0%, #0F172A 60%, #0B6E4F 160%);
  --grad-offer: linear-gradient(120deg, #C22833, #E63946);
  --container: 1280px;
}
[data-theme="dark"] {
  --primary: #2FA37E; --primary-700: #26896A; --primary-600: #2A9271;
  --primary-300: #5BC2A0; --primary-100: #143528;
  --accent: #F05561; --accent-600: #E63946; --accent-100: #3A1D21;
  --secondary: #F6C65B; --secondary-600: #F4B942; --secondary-100: #3A2F14;
  --bg: #0B1220; --surface: #121B2C; --surface-2: #172236; --surface-3: #1D2A41;
  --border: #243045; --border-2: #31405C;
  --text: #F3F4F6; --text-2: #9CA3AF; --text-3: #6B7280;
  --success: #34D399; --success-100: #11302B; --warning: #FBBF24; --warning-100: #33270E;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, .55);
  --shadow-3: 0 16px 48px -12px rgba(0, 0, 0, .65);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Vazirmatn", "Inter", Tahoma, system-ui, sans-serif;
  font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
  min-height: 100vh;
}
html[lang="en"] body { font-family: "Inter", "Vazirmatn", system-ui, sans-serif; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary); color: #fff; }
.mv-container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (max-width: 480px) { .mv-container { padding-inline: 14px; } }

.skip-link { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 999; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { inset-inline-start: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* direction helpers */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
[dir="ltr"] .flip-ltr { transform: scaleX(-1); }

/* ---------- top info bar (installment promo — BELOW header, sticky while scrolling) ---------- */
.topbar { background: var(--grad-primary); color: #fff; font-size: 13.5px; position: sticky; top: var(--stick-h, 124px); z-index: 55; box-shadow: 0 2px 12px -4px rgba(7, 46, 33, .4); }
[data-theme="dark"] .topbar { background: linear-gradient(120deg, #0E2A1F, #0A1424); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar-promo { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; font-weight: 700; }
.topbar-promo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.topbar-side { display: flex; align-items: center; gap: 16px; }
.topbar-date { display: flex; align-items: center; gap: 6px; opacity: .95; white-space: nowrap; }
.topbar-date svg { width: 15px; height: 15px; opacity: .9; flex: none; }
.topbar-tel { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; letter-spacing: .3px; }
.topbar-tel:hover { color: var(--secondary); }
.topbar-tel .num { direction: ltr; unicode-bidi: embed; font-family: "Inter", "Vazirmatn", sans-serif; }
.topbar-meta { display: flex; align-items: center; gap: 5px; opacity: .9; }
@media (max-width: 920px) { .topbar-meta { display: none; } }
@media (max-width: 640px) { .topbar-date { display: none; } .topbar-promo { font-size: 12px; } }

/* phone numbers — consistent digits, bidi-isolated */
.telnum { direction: ltr; unicode-bidi: isolate; font-family: "Inter", "Vazirmatn", sans-serif; }

/* ---------- sticky header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: var(--shadow-1); }
.head-main { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .logo-mark { width: 50px; height: 50px; border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-1); }
.brand .logo-mark svg { width: 100%; height: 100%; display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.45; }
.brand-txt .t1 { font-weight: 800; font-size: 18.5px; letter-spacing: -.2px; }
.brand-txt .t2 { font-size: 11px; color: var(--text-2); letter-spacing: 0; text-transform: none; font-weight: 500; }
@media (max-width: 480px) { .brand-txt .t2 { display: none; } }

/* search */
.head-search { flex: 1 1 auto; max-width: 620px; position: relative; }
.search-box { display: flex; align-items: center; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 14px; padding: 0 6px 0 4px; height: 46px; transition: border .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3.5px var(--primary-100); }
.search-box .s-icon { color: var(--text-3); padding-inline: 10px; flex: none; }
.search-box input { flex: 1; border: 0; background: none; outline: none; min-width: 40px; font-size: 14px; padding-block: 6px; }
.search-box input::placeholder { color: var(--text-3); }
.search-ai { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-100); border-radius: 10px; padding: 6px 10px; margin-inline: 4px; white-space: nowrap; }
.search-ai:hover { background: var(--primary); color: #fff; }
@media (max-width: 640px) { .search-ai span { display: none; } .search-ai { padding: 6px 8px; } }
.search-drop { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 10px; display: none; z-index: 70; max-height: 70vh; overflow: auto; }
.search-drop.open { display: block; }
.search-sec-title { font-size: 11.5px; font-weight: 700; color: var(--text-3); padding: 8px 10px 4px; text-transform: uppercase; letter-spacing: .5px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.sr-item:hover { background: var(--surface-2); }
.sr-item img { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-3); flex: none; }
.sr-item .nm { font-size: 13.5px; font-weight: 600; }
.sr-item .pr { font-size: 12px; color: var(--primary); font-weight: 700; margin-inline-start: auto; white-space: nowrap; }
.sr-ai { display: flex; align-items: flex-start; gap: 10px; background: var(--primary-100); border-radius: 12px; padding: 10px 12px; margin: 6px 4px; font-size: 13px; }
.sr-ai .mini-cards { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* header actions */
.head-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; flex: none; }
.hact { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 52px; height: 58px; border-radius: 12px; color: var(--text-2); font-size: 11.5px; }
.hact:hover { background: var(--surface-2); color: var(--primary); }
.hact svg { width: 22px; height: 22px; }
.hact .count { position: absolute; top: 4px; inset-inline-end: 6px; min-width: 17px; height: 17px; padding-inline: 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.hact .count.bump { animation: bump .4s ease; }
@keyframes bump { 30% { transform: scale(1.35); } }
.lang-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; flex: none; }
.lang-switch button { padding: 7px 12px; font-size: 12px; font-weight: 700; color: var(--text-2); font-family: "Inter", sans-serif; }
.lang-switch button.on { background: var(--primary); color: #fff; }
@media (max-width: 1080px) { .hact .lbl { display: none; } .hact { min-width: 44px; } }
@media (max-width: 768px) {
  .head-actions .hact.optional { display: none; }
  .head-search { max-width: none; }
  .head-main { gap: 12px; }
}
.hamburger { display: none; }
@media (max-width: 768px) {
  .hamburger { display: inline-flex; }
  .site-head { position: sticky; }
  .head-main { flex-wrap: wrap; row-gap: 10px; padding-block: 10px 12px; min-height: 0; }
  .head-search { order: 20; flex: 1 1 100%; max-width: none; }
}

/* ---------- main nav + mega menu ---------- */
.mainnav { border-top: 1px solid var(--border); background: var(--surface); }
.mainnav > .mv-container { display: flex; align-items: center; gap: 4px; min-height: var(--nav-h); overflow-x: auto; scrollbar-width: none; }
.mainnav > .mv-container::-webkit-scrollbar { display: none; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: var(--nav-h); font-size: 15.5px; font-weight: 600; color: var(--text); white-space: nowrap; border-bottom: 2.5px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-link .chev { transition: transform .2s; }
.nav-item:hover .nav-link .chev, .nav-item:focus-within .nav-link .chev { transform: rotate(180deg); }
.nav-link.hot { color: var(--accent); font-weight: 700; }
.nav-link.hot:hover { border-bottom-color: var(--accent); }
.mega { position: absolute; top: 100%; inset-inline-start: 0; min-width: 680px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-3); padding: 22px; display: none; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 22px; z-index: 65; }
[dir="ltr"] .mega { inset-inline-start: 0; }
.nav-item:hover .mega, .nav-item:focus-within .mega { display: grid; }
.mega-col h4 { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.mega-col h4 .cnt { font-size: 11px; color: var(--text-3); font-weight: 500; }
.mega-col a { display: flex; align-items: center; gap: 8px; padding: 5.5px 8px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.mega-col a:hover { background: var(--surface-2); color: var(--text); }
.mega-promo { grid-column: 4; background: var(--grad-primary); border-radius: var(--radius-sm); padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.mega-promo .pt { font-weight: 800; font-size: 16px; }
.mega-promo .pd { font-size: 13px; opacity: .85; line-height: 1.7; }
.mega-promo .pbtn { align-self: flex-start; background: var(--secondary); color: #1F2937; font-weight: 700; font-size: 12.5px; padding: 7px 14px; border-radius: 10px; margin-top: 4px; }
.mega-promo .pbtn:hover { filter: brightness(1.08); }
.mega-coming { grid-column: 1 / -1; border-top: 1px dashed var(--border-2); padding-top: 14px; margin-top: 2px; }
.mega-coming .cl { display: flex; flex-wrap: wrap; gap: 8px; }
.mega-coming .ch { font-size: 11.5px; color: var(--text-3); margin-bottom: 8px; }
.mega-coming .chip-off { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--surface-3); border: 1px dashed var(--border-2); border-radius: 9px; padding: 4px 10px; cursor: not-allowed; }
@media (max-width: 992px) { .mainnav { display: none; } }

/* ---------- drawer (mobile) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 15, 25, .55); backdrop-filter: blur(2px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(330px, 88vw); background: var(--surface); z-index: 95; transform: translateX(-105%); transition: transform .3s cubic-bezier(.2, .8, .25, 1); display: none; flex-direction: column; box-shadow: var(--shadow-3); }
[dir="rtl"] .drawer { transform: translateX(105%); }
.drawer.shown { display: flex; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer-head .t { font-weight: 800; font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 12px 24px; }
.d-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px; border-radius: 12px; font-weight: 600; font-size: 16px; color: var(--text); }
.d-item:hover { background: var(--surface-2); }
.d-item .arr { color: var(--text-3); transition: transform .2s; }
.d-acc-btn[aria-expanded="true"] .arr { transform: rotate(90deg); }
.d-sub { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.d-sub.open { max-height: 480px; }
.d-sub a, .d-sub button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px 10px 28px; font-size: 15px; color: var(--text-2); border-radius: 10px; }
.d-sub a:hover, .d-sub button:hover { background: var(--surface-2); color: var(--text); }
.d-off { opacity: .55; cursor: not-allowed; }
.d-sep { height: 1px; background: var(--border); margin: 10px 6px; }

/* ---------- mobile bottom bar ---------- */
.bottom-bar { display: none; position: fixed; bottom: 0; inset-inline: 0; height: var(--bottombar-h); background: var(--surface); border-top: 1px solid var(--border); z-index: 80; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px -10px rgba(17, 24, 39, .18); }
.bb-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--text-2); position: relative; }
.bb-item svg { width: 22px; height: 22px; }
.bb-item.active { color: var(--primary); font-weight: 700; }
.bb-item .count { position: absolute; top: 6px; inset-inline-end: calc(50% - 24px); min-width: 16px; height: 16px; padding-inline: 4px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (max-width: 992px) { .bottom-bar { display: flex; } body { padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom)); } }

/* ---------- newsletter ---------- */
.newsletter { background: var(--surface); border-block: 1px solid var(--border); padding: 34px 0; }
.newsletter-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter-txt { display: flex; align-items: center; gap: 14px; }
.newsletter-txt .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-100); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.newsletter-txt .ic svg { width: 26px; height: 26px; }
.newsletter-txt .tt { font-weight: 800; font-size: 18px; }
.newsletter-txt .ss { color: var(--text-2); font-size: 14px; }
.newsletter-form { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.newsletter-form input { flex: 1; height: 46px; border: 1.5px solid var(--border); background: var(--surface-2); border-radius: 12px; padding-inline: 14px; outline: none; transition: border .2s; direction: ltr; text-align: end; }
html[lang="en"] .newsletter-form input { text-align: start; }
.newsletter-form input:focus { border-color: var(--primary); }

/* ---------- footer ---------- */
.footer { background: #0D1F17; color: #CFE5DB; margin-top: 56px; }
[data-theme="dark"] .footer { background: #0A1424; color: #B9C6D8; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; padding: 44px 0 30px; }
.footer h4 { color: #fff; font-size: 16.5px; font-weight: 700; margin-bottom: 14px; }
.footer .fcol a, .footer .fcol button { display: block; padding: 4.5px 0; font-size: 14.5px; color: inherit; opacity: .85; text-align: start; }
.footer .fcol a:hover { opacity: 1; color: var(--secondary); }
.footer .fabout { font-size: 14.5px; line-height: 2; opacity: .9; margin-top: 12px; }
.footer .fsoc { display: flex; gap: 10px; margin-top: 16px; }
.footer .fsoc button { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.footer .fsoc button:hover { background: var(--primary); }
.footer .fsoc svg { width: 18px; height: 18px; }
.fcontact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; padding: 5px 0; line-height: 1.9; }
.fcontact svg { width: 17px; height: 17px; flex: none; margin-top: 5px; color: var(--secondary); }
.fcontact a { color: #fff; font-weight: 700; }
.fcontact a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; }
.footer-bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; opacity: .8; }
.trust-slot { display: flex; gap: 10px; }
.trust-slot .tbox { width: 74px; height: 74px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .3); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; opacity: .65; padding: 6px; }
.fdemo { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 3px 10px; font-size: 11px; }
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 32px 0 20px; } }

/* ---------- floating elements ---------- */
.mv-fabs { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 75; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-3); transition: transform .2s, filter .2s; position: relative; }
.fab:hover { transform: translateY(-3px); filter: brightness(1.08); }
.fab-call { background: var(--grad-primary); display: none; }
/* smart assistant fab — bigger, labeled, stateful */
.fab-chat { background: var(--grad-primary); width: 58px; height: 58px; }
.fab-chat svg { width: 26px; height: 26px; }
.fab-chat::before { content: attr(data-label); position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: calc(100% + 12px); background: var(--text); color: var(--surface); font-size: 12.5px; font-weight: 700; white-space: nowrap; border-radius: 9px; padding: 6px 12px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab-chat:hover::before { opacity: 1; }
.fab-chat.on::after { display: none; }
.fab-chat.on { background: var(--accent); }
.fab-chat::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: ring 2.6s infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .6; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.fab-chat .badge-demo { position: absolute; top: -4px; inset-inline-start: -10px; background: var(--secondary); color: #1F2937; font-size: 9px; font-weight: 800; border-radius: 7px; padding: 1px 6px; }
.fab-top { width: 42px; height: 42px; background: var(--surface); color: var(--primary); border: 1px solid var(--border); opacity: 0; pointer-events: none; transition: opacity .25s, transform .2s; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-top:hover { transform: translateY(-3px); }
@media (max-width: 992px) {
  .mv-fabs { bottom: calc(var(--bottombar-h) + 14px); inset-inline-end: 14px; }
  .fab { width: 48px; height: 48px; }
  .fab-top { width: 38px; height: 38px; }
}
@media (pointer: coarse) { .fab-call { display: flex; } }

/* ---------- toasts ---------- */
.toast-wrap { position: fixed; bottom: 24px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; padding: 0 16px; }
@media (max-width: 992px) { .toast-wrap { bottom: calc(var(--bottombar-h) + 16px); } }
.toast { display: flex; align-items: center; gap: 10px; background: #111827; color: #F9FAFB; padding: 11px 18px; border-radius: 13px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-3); animation: toast-in .3s cubic-bezier(.2, .9, .3, 1.2); max-width: 92vw; }
.toast.success svg { color: #34D399; } .toast.error svg { color: #F87171; } .toast.info svg { color: #93C5FD; }
.toast svg { width: 19px; height: 19px; flex: none; }
.toast.hide { animation: toast-out .3s forwards; }
@keyframes toast-in { from { transform: translateY(16px) scale(.92); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(10px) scale(.95); opacity: 0; } }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(8, 12, 20, .6); backdrop-filter: blur(3px); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade-in .2s; }
@keyframes fade-in { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); width: min(480px, 100%); max-height: 88vh; overflow: auto; animation: modal-in .28s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes modal-in { from { transform: translateY(22px) scale(.97); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px 0; }
.modal-head .t { font-weight: 800; font-size: 17px; }
.modal-body { padding: 16px 22px 24px; }
.modal-x { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); }
.modal-x:hover { background: var(--accent-100); color: var(--accent); }

/* ---------- compare tray ---------- */
.compare-tray { position: fixed; bottom: 0; inset-inline: 0; z-index: 85; background: var(--surface); border-top: 2px solid var(--primary); box-shadow: var(--shadow-3); transform: translateY(105%); transition: transform .3s ease; }
.compare-tray.show { transform: translateY(0); }
.compare-tray-in { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.ct-items { display: flex; gap: 10px; flex: 1; overflow-x: auto; }
.ct-item { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 6px 12px 6px 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
[dir="ltr"] .ct-item { padding: 6px 8px 6px 12px; }
.ct-item img { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-3); }
.ct-item .rm { color: var(--text-3); display: flex; }
.ct-item .rm:hover { color: var(--accent); }
.ct-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 992px) { .compare-tray { bottom: var(--bottombar-h); } .ct-actions .btn-text { display: none; } }

/* ---------- app mode (iframe ?app=1) ---------- */
html[data-app="1"] body { padding-bottom: 0; background: var(--bg); }
.appbar { display: none; position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 14px; align-items: center; gap: 10px; }
.appbar .al { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; }
.appbar .at { font-weight: 800; font-size: 15px; flex: 1; text-align: center; }
.appbar .aa { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--text-2); position: relative; }
.appbar .aa svg { width: 20px; height: 20px; }
.appbar .aa .count { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tabbar { display: none; position: fixed; bottom: 0; inset-inline: 0; height: 58px; background: var(--surface); border-top: 1px solid var(--border); z-index: 80; padding-bottom: env(safe-area-inset-bottom); }
.tabbar .tb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--text-2); position: relative; }
.tabbar .tb svg { width: 21px; height: 21px; }
.tabbar .tb.active { color: var(--primary); font-weight: 700; }
.tabbar .tb .count { position: absolute; top: 4px; inset-inline-end: calc(50% - 22px); min-width: 15px; height: 15px; padding-inline: 3px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
html[data-app="1"] .appbar, html[data-app="1"] .tabbar { display: flex; }
html[data-app="1"] body { padding-bottom: 58px; }

/* app search overlay */
.app-search { position: fixed; inset: 0; background: var(--bg); z-index: 100; display: none; flex-direction: column; padding: 12px 14px; }
.app-search.open { display: flex; }
.app-search .row { display: flex; gap: 10px; margin-bottom: 12px; }
.app-search .as-results { overflow: auto; }

/* ---------- shared small components ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 3px 9px; }
.badge-discount { background: var(--accent); color: #fff; }
.badge-installment { background: var(--primary-100); color: var(--primary); }
.badge-soon { background: var(--secondary-100); color: var(--warning); }
.badge-stock { background: var(--success-100); color: var(--success); }
.badge-low { background: var(--warning-100); color: var(--warning); }
.badge-demo { background: var(--surface-3); color: var(--text-2); border: 1px dashed var(--border-2); }
.badge-grade-A { background: var(--success-100); color: var(--success); }
.badge-grade-B { background: var(--warning-100); color: var(--warning); }
.badge-grade-C { background: var(--accent-100); color: var(--accent); }

.section { padding: 34px 0 6px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-title { font-size: 23px; font-weight: 800; display: flex; align-items: center; gap: 10px; letter-spacing: -.3px; }
.sec-title::before { content: ""; width: 5px; height: 30px; border-radius: 4px; background: var(--grad-primary); display: inline-block; }
.sec-sub { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.sec-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: 14.5px; }
.sec-more:hover { color: var(--primary-700); }
@media (max-width: 640px) { .sec-title { font-size: 18px; } }

/* skeleton shimmer */
.skel { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 12px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 1.4s infinite; }
[data-theme="dark"] .skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }

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

/* ---------- inline icon sizing guards (added after QA) ---------- */
.nav-item { display: flex; align-items: center; gap: 4px; }
.nav-item .chev { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.topbar svg { width: 15px; height: 15px; flex: none; }
.search-box .s-icon svg { width: 20px; height: 20px; }
.hero-nav svg { width: 20px; height: 20px; }
.off-arrow svg { width: 18px; height: 18px; }
.fdemo svg { width: 14px; height: 14px; flex: none; }
.fab svg { width: 24px; height: 24px; }
.d-item > svg { width: 20px; height: 20px; flex: none; color: var(--text-3); }
.d-item .arr { width: 18px; height: 18px; flex: none; }
.drawer-head button svg { width: 18px; height: 18px; }
.badge svg { width: 13px; height: 13px; flex: none; }
