/* ==========================================================================
   AI مارکت — پایه (Design Tokens / Reset / Layout / Header / Footer)
   ========================================================================== */

/* ---------- 0. فونت محلی (بدون نیاز به اینترنت) ---------- */
@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- 1. Design Tokens ---------- */
:root {
  --dk-red: #ef4056;
  --dk-red-2: #f8697b;
  --dk-red-dark: #d32e42;
  --dk-red-soft: #fef2f3;

  --dk-text: #3f4064;
  --dk-text-2: #7f808f;
  --dk-text-3: #a5a7b3;
  --dk-text-4: #c7c9d4;

  --dk-border: #ececf0;
  --dk-border-2: #e0e1e6;
  --dk-bg: #f5f5f7;
  --dk-bg-2: #f0f0f4;
  --dk-white: #ffffff;

  --dk-green: #00a049;
  --dk-green-2: #00854a;
  --dk-yellow: #f9a825;
  --dk-blue: #1a7fd4;
  --dk-orange: #f3812b;

  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 999px;

  --sh-1: 0 1px 4px rgba(0, 0, 0, .05);
  --sh-2: 0 3px 14px rgba(0, 0, 0, .08);
  --sh-3: 0 8px 28px rgba(0, 0, 0, .12);
  --sh-4: 0 16px 48px rgba(0, 0, 0, .18);

  --container: 1240px;
  --topbar-h: 36px;
  --header-h: 64px;
  --catnav-h: 44px;
  --z-header: 100;
  --z-mega: 90;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 400;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --fast: .15s var(--ease);
  --base: .25s var(--ease);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Vazirmatn, "IRANSans", Tahoma, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: var(--dk-text);
  background: var(--dk-bg);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}
button { background: none; border: 0; cursor: pointer; padding: 0; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; border-top: 1px solid var(--dk-border); margin: 0; }

svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic-fill { fill: currentColor; stroke: none; }

/* ---------- 3. Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }

.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.grow { flex: 1 1 auto; min-width: 0; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.hidden { display: none !important; }
.text-c { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.divider-v { width: 1px; height: 22px; background: var(--dk-border-2); flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.txt-2 { color: var(--dk-text-2); }
.txt-3 { color: var(--dk-text-3); }
.txt-red { color: var(--dk-red); }
.txt-green { color: var(--dk-green); }
.txt-green-soft { color: var(--dk-green); background: #e9f7f0; border: 1px solid #c3ebd6; }
.txt-red-soft { color: var(--dk-red); background: var(--dk-red-soft); border: 1px solid #fbdde1; }
.badge-tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 600; }
.w-md { font-weight: 500; } .w-b { font-weight: 700; }
.fs-11 { font-size: 11px; } .fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-15 { font-size: 15px; }
.lh-1 { line-height: 1; }
.s11 { font-size: 11px; } .s12 { font-size: 12px; } .s13 { font-size: 13px; }
.s14 { font-size: 14px; } .s16 { font-size: 16px; } .s20 { font-size: 20px; } .s24 { font-size: 24px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background var(--fast), color var(--fast), box-shadow var(--fast), transform var(--fast);
  border: 1px solid transparent; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn svg.ic { width: 18px; height: 18px; }

.btn-primary { background: var(--dk-red); color: #fff; }
.btn-primary:hover { background: var(--dk-red-dark); }
.btn-warn { background: var(--dk-yellow); color: #fff; }
.btn-warn:hover { filter: brightness(.94); }
.btn-ghost { background: var(--dk-white); border-color: var(--dk-border-2); color: var(--dk-text); }
.btn-ghost:hover { border-color: var(--dk-text-3); }
.btn-soft { background: var(--dk-white); border-color: var(--dk-white); color: var(--dk-red); }
.btn-soft:hover { background: var(--dk-red-soft); }
.btn-dark { background: var(--dk-text); color: #fff; }
.btn-dark:hover { background: #2c2d4a; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: var(--r-lg); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn-xs { height: 28px; padding: 0 10px; font-size: 11.5px; border-radius: var(--r-sm); }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg.ic { stroke-width: 1.9; }

.btn-link { color: var(--dk-blue); font-size: 12.5px; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* icon round button */
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--dk-text-2); transition: background var(--fast), color var(--fast);
}
.icon-btn:hover { background: var(--dk-bg-2); color: var(--dk-text); }

/* ---------- 5. Top bar ---------- */
.topbar { height: var(--topbar-h); background: var(--dk-white); border-bottom: 1px solid var(--dk-border); font-size: 12px; }
.topbar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar__side { display: flex; align-items: center; gap: 10px; }
.topbar__item { display: inline-flex; align-items: center; gap: 5px; color: var(--dk-text-2); transition: color var(--fast); white-space: nowrap; }
.topbar__item:hover, .topbar__item.is-active { color: var(--dk-text); }
.topbar__item b { color: var(--dk-text); font-weight: 500; }
.topbar__item svg.ic { width: 15px; height: 15px; }
.topbar__item--hot { color: var(--dk-text); }
.topbar__item--hot b { color: var(--dk-red); }
.topbar__social { display: inline-flex; align-items: center; gap: 8px; }
.topbar__social span { color: var(--dk-text-3); }
.topbar__social a { color: var(--dk-text-2); }
.topbar__social a:hover { color: var(--dk-red); }
.topbar__sep { width: 1px; height: 14px; background: var(--dk-border-2); }

/* ---------- 6. Header ---------- */
.header { position: sticky; top: 0; z-index: var(--z-header); background: var(--dk-white); }
.header--stuck { box-shadow: var(--sh-2); }
.header__in { height: var(--header-h); display: flex; align-items: center; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 11px; overflow: hidden;
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #f43f5e 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 3px 10px rgba(124, 58, 237, .35);
  position: relative;
}
.logo__mark i {
  font-style: normal; font-weight: 800; font-size: 15px; letter-spacing: -.5px;
  direction: ltr; line-height: 1;
}
.logo__mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .38) 50%, transparent 58%);
}
.logo__txt { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--dk-text); white-space: nowrap; }

/* search */
.search { position: relative; flex: 1 1 auto; max-width: 640px; }
.search__box { display: flex; align-items: center; height: 44px; background: var(--dk-bg); border: 1px solid transparent; border-radius: var(--r-md); transition: border-color var(--fast), background var(--fast); }
.search__box:focus-within { background: #fff; border-color: var(--dk-border-2); }
.search__box input { flex: 1; height: 100%; background: none; border: 0; outline: 0; padding: 0 14px; font-size: 13.5px; }
.search__box input::placeholder { color: var(--dk-text-3); }
.search__box button { width: 48px; height: 100%; display: grid; place-items: center; color: var(--dk-text-2); border-radius: 0 var(--r-md) var(--r-md) 0; transition: color var(--fast), background var(--fast); }
.search__box button:hover { color: var(--dk-text); background: #e9e9ef; }
.search__box .search__clear { width: 30px; height: 30px; border-radius: var(--r-full); display: none; place-items: center; color: var(--dk-text-3); margin-inline-end: 4px; }
.search__box .search__clear:hover { background: #e3e3ea; color: var(--dk-text); }
.search.has-value .search__clear { display: grid; }

.suggest {
  position: absolute; inset-inline: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--dk-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); overflow: hidden; z-index: 40; display: none;
}
.suggest.is-open { display: block; }
.suggest__head { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--dk-border); }
.suggest__head span { font-size: 12px; font-weight: 700; color: var(--dk-text-2); }
.suggest__item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; cursor: pointer; transition: background var(--fast); }
.suggest__item:hover, .suggest__item.is-active { background: var(--dk-bg); }
.suggest__item img, .suggest__thumb { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.suggest__name { font-size: 12.5px; color: var(--dk-text); }
.suggest__cat { font-size: 11px; color: var(--dk-text-3); }
.suggest__price { font-size: 12px; font-weight: 600; margin-inline-start: auto; white-space: nowrap; }
.suggest__foot { border-top: 1px solid var(--dk-border); padding: 8px 16px; }
.suggest__foot a { font-size: 12px; color: var(--dk-blue); font-weight: 600; }
.suggest__popular { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; }
.suggest__chip { padding: 6px 12px; background: var(--dk-bg); border-radius: var(--r-sm); font-size: 12px; color: var(--dk-text-2); transition: all var(--fast); }
.suggest__chip:hover { background: var(--dk-border); color: var(--dk-text); }

/* header actions */
.header__actions { display: flex; align-items: center; gap: 6px; flex: none; margin-inline-start: auto; }
.haction {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px;
  border-radius: var(--r-md); color: var(--dk-text); font-size: 13px; font-weight: 500;
  position: relative; transition: background var(--fast);
}
.haction:hover { background: var(--dk-bg); }
.haction__lbl { display: flex; flex-direction: column; line-height: 1.35; }
.haction__lbl small { font-size: 10.5px; color: var(--dk-text-3); font-weight: 400; }
.haction__badge {
  position: absolute; top: 1px; inset-inline-end: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--dk-red); color: #fff; border-radius: var(--r-full);
  font-size: 10px; font-weight: 700; display: none; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.haction__badge.is-on { display: flex; }
.haction__fav.is-on svg { fill: var(--dk-red); stroke: var(--dk-red); }
.haction--sell { color: var(--dk-text-2); font-size: 12.5px; }
.haction--sell:hover { color: var(--dk-red); background: var(--dk-red-soft); }

.hamburger { display: none; width: 40px; height: 40px; border-radius: var(--r-md); place-items: center; color: var(--dk-text); }
.hamburger:hover { background: var(--dk-bg); }

/* ---------- 7. Category nav + mega menu ---------- */
.catnav { background: var(--dk-white); border-bottom: 1px solid var(--dk-border); }
.catnav__in { display: flex; align-items: center; gap: 4px; height: var(--catnav-h); }
.catnav__trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 12px;
  font-size: 13.5px; font-weight: 600; color: var(--dk-text); position: relative;
}
.catnav__trigger svg.ic { width: 19px; height: 19px; }
.catnav__trigger:hover { color: var(--dk-red); }
.catnav__trigger::after { content: ''; position: absolute; bottom: -1px; inset-inline: 8px; height: 3px; background: var(--dk-red); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform var(--base); }
.catnav__trigger:hover::after, .catnav__trigger.is-open::after { transform: scaleX(1); }

.catnav__list { display: flex; align-items: center; gap: 2px; height: 100%; overflow: hidden; }
.catnav__item { position: relative; height: 100%; }
.catnav__link {
  display: inline-flex; align-items: center; gap: 4px; height: 100%; padding: 0 11px;
  font-size: 13px; color: var(--dk-text-2); transition: color var(--fast); white-space: nowrap;
}
.catnav__link:hover, .catnav__item.is-open .catnav__link { color: var(--dk-red); }
.catnav__link svg { width: 13px; height: 13px; opacity: .55; }
.catnav__item.is-open .catnav__link svg { transform: rotate(180deg); }
.catnav__link svg { transition: transform var(--base); }

.mega {
  position: absolute; inset-inline: 0; top: 100%; background: #fff; z-index: var(--z-mega);
  border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
  border-top: 1px solid var(--dk-border);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--base), transform var(--base), visibility var(--base);
  max-width: var(--container); margin-inline: auto; left: 50%; right: 50%;
  translate: -50% 0;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__in { display: grid; grid-template-columns: 1fr 1fr 1fr 300px; gap: 24px; padding: 24px; }
.mega__col-title { font-size: 13px; font-weight: 700; color: var(--dk-text); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--dk-border); display: flex; align-items: center; gap: 6px; }
.mega__col-title::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--dk-red); }
.mega__col ul li a { display: block; padding: 5px 0; font-size: 12.5px; color: var(--dk-text-2); transition: color var(--fast), padding var(--fast); }
.mega__col ul li a::before { content: '•'; color: var(--dk-text-4); margin-inline-end: 7px; }
.mega__col ul li a:hover { color: var(--dk-red); padding-inline-start: 5px; }
.mega__promo { border-radius: var(--r-lg); padding: 22px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 260px; position: relative; overflow: hidden; }
.mega__promo h4 { font-size: 18px; font-weight: 800; }
.mega__promo p { font-size: 12.5px; opacity: .92; }
.mega__promo .btn { align-self: flex-start; background: #fff; color: var(--dk-text); }
.mega__promo .btn:hover { background: #fff; opacity: .9; }
.mega__promo::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .12); bottom: -60px; inset-inline-end: -40px; }

/* mega menu for a category link (subcategories) */
.submenu {
  position: absolute; top: 100%; inset-inline-end: 0; min-width: 240px; background: #fff;
  border: 1px solid var(--dk-border); border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--sh-3); padding: 10px; z-index: var(--z-mega);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--base), transform var(--base), visibility var(--base);
}
.catnav__item.is-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 12.5px; color: var(--dk-text-2); transition: all var(--fast); }
.submenu a:hover { background: var(--dk-bg); color: var(--dk-text); }
.submenu a span { color: var(--dk-text-4); font-size: 11px; }

/* ---------- 8. Section shells ---------- */
.sec { margin-top: 28px; }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.sec__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--dk-text); }
.sec__title svg.ic { width: 22px; height: 22px; color: var(--dk-red); }
.sec__title small { font-size: 12.5px; font-weight: 400; color: var(--dk-text-3); }
.sec__link { font-size: 12.5px; color: var(--dk-text-2); display: inline-flex; align-items: center; gap: 4px; transition: color var(--fast); }
.sec__link:hover { color: var(--dk-red); }
.sec__link svg.ic { width: 15px; height: 15px; }

.card-box { background: #fff; border-radius: var(--r-lg); padding: 20px; }

/* ---------- 9. Breadcrumb ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--dk-text-3); padding: 16px 0; }
.crumbs a:hover { color: var(--dk-red); }
.crumbs .sep { color: var(--dk-text-4); font-size: 10px; }
.crumbs .cur { color: var(--dk-text-2); }

/* ---------- 10. Footer ---------- */
.footer { margin-top: 36px; background: var(--dk-white); border-top: 1px solid var(--dk-border); }
.footer__top { padding: 32px 0 24px; display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.footer__brand p { font-size: 12.5px; color: var(--dk-text-2); margin-top: 12px; line-height: 2.1; }
.footer__social { display: flex; gap: 8px; margin-top: 14px; }
.footer__social a { width: 36px; height: 36px; border-radius: var(--r-md); border: 1px solid var(--dk-border-2); display: grid; place-items: center; color: var(--dk-text-2); transition: all var(--fast); }
.footer__social a:hover { background: var(--dk-red); border-color: var(--dk-red); color: #fff; }
.footer__col h5 { font-size: 13.5px; font-weight: 700; margin-bottom: 12px; }
.footer__col li a { display: block; font-size: 12.5px; color: var(--dk-text-2); padding: 4px 0; transition: color var(--fast), padding var(--fast); }
.footer__col li a:hover { color: var(--dk-red); padding-inline-start: 4px; }
.footer__newsletter { background: var(--dk-bg); border-radius: var(--r-lg); padding: 18px; }
.footer__newsletter h5 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.footer__newsletter p { font-size: 11.5px; color: var(--dk-text-2); margin-bottom: 12px; }
.nl-form { display: flex; gap: 8px; }
.nl-form input { flex: 1; height: 40px; border: 1px solid var(--dk-border-2); border-radius: var(--r-md); padding: 0 12px; font-size: 12.5px; outline: 0; background: #fff; }
.nl-form input:focus { border-color: var(--dk-red); }

.footer__apps { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--dk-border); flex-wrap: wrap; }
.footer__apps-txt { font-size: 12.5px; color: var(--dk-text-2); }
.footer__apps-txt b { color: var(--dk-text); display: block; }
.app-badges { display: flex; gap: 8px; }
.app-badge { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border: 1px solid var(--dk-border-2); border-radius: var(--r-md); background: #fff; transition: border-color var(--fast); }
.app-badge:hover { border-color: var(--dk-text-3); }
.app-badge svg.ic { width: 22px; height: 22px; }
.app-badge span { font-size: 10.5px; color: var(--dk-text-2); line-height: 1.5; }
.app-badge b { display: block; font-size: 12px; color: var(--dk-text); }

.footer__trust { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--dk-border); flex-wrap: wrap; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dk-text-2); }
.trust-item svg.ic { width: 20px; height: 20px; color: var(--dk-text-3); }
.footer__copy { text-align: center; font-size: 11.5px; color: var(--dk-text-3); padding: 16px 0 22px; border-top: 1px solid var(--dk-border); }
.footer__copy a { color: var(--dk-text-2); }
.footer__copy a:hover { color: var(--dk-red); }

/* ---------- 11. Toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 250px; max-width: 360px;
  background: #fff; border: 1px solid var(--dk-border); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: 12px 14px; font-size: 13px;
  transform: translateY(12px); opacity: 0; animation: toastIn .28s var(--ease) forwards;
  border-inline-start: 4px solid var(--dk-green);
}
.toast--err { border-inline-start-color: var(--dk-red); }
.toast--info { border-inline-start-color: var(--dk-blue); }
.toast--out { animation: toastOut .25s var(--ease) forwards; }
.toast svg.ic { width: 20px; height: 20px; color: var(--dk-green); flex: none; }
.toast--err svg.ic { color: var(--dk-red); }
.toast--info svg.ic { color: var(--dk-blue); }
@keyframes toastIn { to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(12px); opacity: 0; } }

/* ---------- 12. Skeleton ---------- */
.skel { background: linear-gradient(90deg, #f0f0f3 25%, #e6e6eb 37%, #f0f0f3 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; border-radius: var(--r-md); }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 13. Scrollbar ---------- */
.scroll-y { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--dk-border-2) transparent; }
.scroll-y::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-y::-webkit-scrollbar-track { background: transparent; }
.scroll-y::-webkit-scrollbar-thumb { background: #d5d6dd; border-radius: 8px; border: 2px solid #fff; }
.scroll-y::-webkit-scrollbar-thumb:hover { background: #b9bac4; }
.no-bar { scrollbar-width: none; }
.no-bar::-webkit-scrollbar { display: none; }

/* ---------- 14. Responsive header ---------- */
@media (max-width: 1200px) {
  .header__actions .haction__lbl { display: none; }
  .header__actions .haction { padding: 0 8px; }
  .catnav__link { padding: 0 8px; font-size: 12.5px; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 991px) {
  .topbar { display: none; }
  .catnav { display: none; }
  .hamburger { display: grid; }
  .header__in { gap: 10px; }
  .search { max-width: none; }
  .haction--sell, .header__actions .divider-v { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .header__in { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
  .search { order: 3; width: 100%; flex-basis: 100%; }
  .search__box { height: 42px; }
  .haction__badge { top: -2px; }
  .logo__txt { font-size: 18px; }
  .logo__mark { width: 32px; height: 32px; font-size: 18px; }
  .header__actions { gap: 2px; }
  .footer__top { grid-template-columns: 1fr; gap: 20px; }
  .container { padding-inline: 12px; }
  .sec__title { font-size: 16px; }
}
