﻿:root {
  --bg: #f4f7fb;
  --paper: #ffffff;
  --ink: #0f2744;
  --muted: #5b6b7c;
  --line: #d9e2ec;
  --accent: #e85d04;
  --accent-deep: #c44d00;
  --accent-soft: #fff1e6;
  --blush: #0d3b6e;
  --shadow: 0 18px 50px rgba(15, 39, 68, 0.08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --wrap-pad: 1rem;
  --touch-min: 2.75rem;
}

/* Local Vazirmatn â€” avoids late Google Fonts swap that jumps layout */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("./fonts/vazirmatn-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("./fonts/vazirmatn-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("./fonts/vazirmatn-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("./fonts/vazirmatn-arabic-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("./fonts/vazirmatn-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("./fonts/vazirmatn-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("./fonts/vazirmatn-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("./fonts/vazirmatn-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("./fonts/vazirmatn-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("./fonts/vazirmatn-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("./fonts/vazirmatn-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("./fonts/vazirmatn-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 93, 4, 0.10), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(13, 59, 110, 0.12), transparent 30%),
    var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: clip;
  min-height: 100dvh;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
  -webkit-tap-highlight-color: rgba(232, 93, 4, 0.12);
}
a { color: inherit; text-decoration: none; }
img, video, svg { max-width: 100%; display: block; }
.wrap {
  width: min(1180px, calc(100% - (var(--wrap-pad) * 2)));
  margin-inline: auto;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(244, 247, 251, 0.92);
  border-bottom: 1px solid rgba(13, 59, 110, 0.10);
  padding-top: var(--safe-top);
}
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blush));
}
.nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.4rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
}
/* قفل برند: آیکون غالب (~70px)، نام برند کوتاه‌تر از ارتفاع آیکون */
.brand-logo {
  width: 4.6rem;
  height: 4.6rem;
  flex: 0 0 auto;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0;
}
.brand-wordmark {
  height: 1.35rem;
  width: auto;
  max-width: min(44vw, 11rem);
  flex: 0 1 auto;
  object-fit: contain;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--blush);
}
.brand-lead {
  color: #0d3b6e;
}
.brand-link {
  color: var(--accent);
}
.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.brand strong {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.company-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.company-head-logo,
.company-logo-preview img,
.company-cell img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.company-logo-wrap {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
}
.company-logo-wrap .company-head-logo {
  width: 3.5rem;
  height: 3.5rem;
}
.company-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.company-cell img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
}
.company-logo-block {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: linear-gradient(160deg, rgba(13,59,110,0.08), rgba(255,255,255,0.9));
}
.company-logo-preview {
  position: relative;
  width: 7rem;
  height: 7rem;
  flex: 0 0 auto;
}
.company-logo-preview img {
  width: 7rem;
  height: 7rem;
}
.company-logo-preview-empty {
  border-radius: 1rem;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.65);
}
.company-logo-preview-empty img[hidden] {
  display: none;
}
.company-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}
.verified-badge svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}
.verified-badge-sm svg {
  width: 0.95rem;
  height: 0.95rem;
}
.verified-badge-lg {
  position: absolute;
  inset-inline-end: -0.2rem;
  bottom: -0.15rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 0.1rem;
}
.verified-badge-lg svg {
  width: 1.35rem;
  height: 1.35rem;
}
.verified-badge-on-logo {
  position: absolute;
  inset-inline-end: 0.15rem;
  bottom: 0.15rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
  padding: 0.08rem;
}
.verified-badge-on-logo svg {
  width: 0.95rem;
  height: 0.95rem;
}

.logo-strip {
  margin: 0;
  padding: 1.75rem 0;
  overflow: hidden;
  /* ارتفاع ثابت کاشی‌ها → جلوگیری از پرش هنگام لود تصویر */
  min-height: calc(4.5rem + 3.5rem);
}
/* کاتالوگ خودش padding زیاد دارد؛ فاصله پایین نوار لوگو را متعادل نگه می‌داریم */
.logo-strip + .section {
  padding-top: 1.5rem;
}
.logo-strip-title {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.logo-strip-title .logo-strip-count {
  font-weight: 600;
  color: var(--muted);
  opacity: 0.8;
}
.logo-strip-viewport {
  overflow: hidden;
  direction: ltr;
  unicode-bidi: isolate;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.logo-strip-track {
  display: flex;
  width: max-content;
  gap: 0;
  direction: ltr;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  /* انیمیشن با JS کنترل می‌شود — CSS animation عمداً خاموش است */
  animation: none !important;
}
.logo-strip.is-marquee .logo-strip-track {
  will-change: transform;
}
.logo-strip-group {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  align-items: center;
  gap: 0.85rem;
  padding-right: 0.85rem;
  box-sizing: content-box;
}
.logo-strip-static .logo-strip-viewport {
  mask-image: none;
  -webkit-mask-image: none;
}
.logo-strip-static .logo-strip-track {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: none !important;
  will-change: auto;
}
.logo-strip-static .logo-strip-group {
  flex-wrap: wrap;
  justify-content: center;
  padding-right: 0;
  gap: 0.85rem;
}
.logo-tile {
  flex: 0 0 auto;
  width: 4.5rem;
}
.logo-tile-frame {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 20px rgba(28, 36, 32, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  box-sizing: border-box;
}
.logo-tile-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f3faf5;
  border-radius: 0.55rem;
}
.logo-tile-frame img.is-broken {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}
.logo-tile-frame:has(img.is-broken)::after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #0d3b6e, #082848);
}
@media (prefers-reduced-motion: reduce) {
  .logo-strip.is-marquee .logo-strip-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
.module-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 900px) {
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.module-card {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1rem 1.05rem;
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  box-sizing: border-box;
  text-align: center;
  align-items: center;
}
.module-card.is-off { opacity: 0.72; }
.module-card h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 700;
}
.module-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.module-card > .muted {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}
.module-card .company-name-row {
  justify-content: center;
}
.module-card-foot {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(228, 221, 211, 0.85);
  text-align: center;
}
.module-card-foot .note,
.module-card-foot .badge {
  margin: 0;
}
.module-card-foot .note {
  font-size: 0.8rem;
  line-height: 1.45;
}
.expiry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.expiry-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.expiry-ok {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.expiry-warn,
.expiry-expired {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.expiry-off {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}
.expiry-list {
  margin: 0.45rem 0 0;
  padding-inline-start: 1.2rem;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}
.market-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
  font-size: 0.88rem;
}
.nav-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}
.nav-menu {
  position: relative;
  z-index: 55;
}
.nav-menu-trigger,
.lang-picker-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--touch-min);
  border: 1px solid rgba(13, 59, 110, 0.14);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font: inherit;
  color: var(--blush);
  overflow: visible;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}
.nav-menu-trigger {
  width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
}
.lang-picker-trigger {
  gap: 0.4rem;
  height: auto;
  padding: 0.35rem 0.6rem 0.4rem 0.45rem;
  line-height: 1.35;
}
.nav-menu-trigger::-webkit-details-marker,
.lang-picker-trigger::-webkit-details-marker { display: none; }
.nav-menu-trigger:hover,
.nav-menu[open] .nav-menu-trigger,
.lang-picker-trigger:hover,
.lang-picker[open] .lang-picker-trigger {
  border-color: rgba(232, 93, 4, 0.35);
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.10);
}
.hamburger {
  display: grid;
  gap: 0.3rem;
  width: 1.05rem;
}
.hamburger span {
  display: block;
  height: 1.8px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-menu[open] .hamburger span:nth-child(1) {
  transform: translateY(0.36rem) rotate(45deg);
}
.nav-menu[open] .hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-menu[open] .hamburger span:nth-child(3) {
  transform: translateY(-0.36rem) rotate(-45deg);
}
.nav-menu-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.45rem);
  width: max-content;
  min-width: 17.5rem;
  max-width: min(92vw, 22rem);
  padding: 0.55rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(13, 59, 110, 0.12);
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  box-shadow:
    0 18px 40px rgba(15, 39, 68, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  display: grid;
  gap: 0.2rem;
}
.nav-menu-panel a {
  display: block;
  padding: 0.78rem 1rem;
  border-radius: 0.8rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.nav-menu-panel a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.nav-menu-panel a:active {
  transform: scale(0.99);
}
.nav-menu-panel-accent {
  margin-top: 0.35rem;
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
  border-top: 1px solid rgba(13, 59, 110, 0.10);
  border-radius: 0.85rem !important;
  background: linear-gradient(180deg, #e85d04 0%, #c44d00 100%);
  color: #fff !important;
  text-align: center;
  box-shadow: 0 8px 18px rgba(232, 93, 4, 0.24);
}
.nav-menu-panel-accent:hover {
  background: linear-gradient(180deg, #e85d04 0%, #c44d00 100%) !important;
  color: #fff !important;
}

.lang-picker {
  position: relative;
  z-index: 50;
}
.lang-flag {
  width: 1.25rem;
  height: 0.95rem;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 0.2rem;
  border: 1px solid rgba(28, 36, 32, 0.12);
  background: #f3f3f3;
  display: block;
}
.lang-name {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  max-width: 7.5rem;
  overflow: visible;
  text-overflow: clip;
  padding-block: 0.05rem 0.12rem;
}
.lang-caret {
  width: 0.65rem;
  height: 0.4rem;
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform .18s ease;
}
.lang-picker[open] .lang-caret {
  transform: rotate(180deg);
}
.lang-picker-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.4rem);
  width: min(24rem, calc(100vw - 1.5rem));
  overflow: visible;
  padding: 0.7rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
  box-shadow: 0 18px 40px rgba(28, 36, 32, 0.14);
}
.lang-picker-title {
  margin: 0 0 0.55rem;
  padding: 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lang-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.2rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 500;
  background: #fff;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.lang-option-name {
  min-width: 0;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.lang-option:hover {
  background: var(--accent-soft);
  border-color: rgba(38, 165, 86, 0.22);
  transform: translateY(-1px);
}
.lang-option.is-active {
  background: var(--accent-soft);
  border-color: rgba(38, 165, 86, 0.4);
  color: var(--accent-deep);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(38, 165, 86, 0.08);
}

@media (max-width: 520px) {
  .lang-picker-menu {
    width: min(18.5rem, calc(100vw - 1.25rem));
    padding: 0.6rem;
  }
  .lang-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
  }
  .lang-option {
    min-height: 2.2rem;
    padding: 0.35rem 0.45rem;
    font-size: 0.84rem;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
html[dir="ltr"] .table th,
html[dir="ltr"] .table td { text-align: left; }
html[dir="ltr"] .table .col-actions .actions { justify-content: flex-start; }
html[dir="ltr"] .table .col-phone { text-align: left; }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch-min); padding: 0.55rem 1.15rem;
  border: 0; border-radius: 999px; cursor: pointer; font: inherit;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
  transition: transform .2s ease, box-shadow .2s ease;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover, button.btn:hover { transform: translateY(-1px); }
}
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.btn.btn-limit-full {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
  cursor: not-allowed;
  opacity: 0.95;
}
.btn.btn-limit-full:hover {
  transform: none;
}

.channel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 720px) {
  .channel-cards { grid-template-columns: 1fr; }
}
.channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 6.5rem;
  padding: 1rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(28, 36, 32, 0.12);
}
.channel-card-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.channel-card-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.channel-whatsapp .channel-card-icon { background: #25d366; }
.channel-whatsapp:hover { border-color: #25d366; }
.channel-telegram .channel-card-icon { background: #2aabee; }
.channel-telegram:hover { border-color: #2aabee; }
.channel-email .channel-card-icon,
.channel-gmail .channel-card-icon { background: #ea4335; }
.channel-email:hover,
.channel-gmail:hover { border-color: #ea4335; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 12% 20%, rgba(13, 59, 110, 0.10), transparent 42%),
    radial-gradient(ellipse at 88% 10%, rgba(232, 93, 4, 0.10), transparent 38%);
}
.hero-inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
  padding: clamp(1.25rem, 3vw, 1.85rem) 0;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    min-height: 17rem;
    align-items: center;
    justify-items: stretch;
  }
}
.hero-copy {
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
  text-align: center;
  justify-self: center;
  animation: hero-rise 0.7s ease both;
}
.hero-brand {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0d3b6e;
  line-height: 1.15;
}
.hero-brand .brand-lead { color: #0d3b6e; }
.hero-brand .brand-link { color: var(--accent); }
.hero h1 {
  margin: 0 auto 0.55rem;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  max-width: 22ch;
  white-space: pre-line;
}
.hero-lead {
  margin: 0 auto;
  color: var(--muted);
  max-width: 26rem;
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
  line-height: 1.7;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.86rem; margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
  justify-content: center;
}
.hero-request-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 17.5rem);
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(38, 165, 86, 0.35);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(28, 36, 32, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.hero-request-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 165, 86, 0.55);
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  box-shadow: 0 14px 30px rgba(28, 36, 32, 0.12);
}
/* کلاژ هیرو: سیال در همه سایزها، وسط‌چین با فاصله از لبه */
.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(0.45rem, 1.2vw, 0.7rem);
  box-sizing: border-box;
  width: 100%;
  max-width: min(100%, 34rem);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(0.35rem, 1.5vw, 0.65rem);
  height: auto;
  aspect-ratio: 1.5 / 1;
  place-self: center;
  justify-items: stretch;
  animation: hero-rise 0.85s ease 0.08s both;
}
.hero-board-item {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: clamp(0.7rem, 1.8vw, 1rem);
  box-shadow: 0 12px 28px rgba(28, 36, 32, 0.1);
  background: #d7d2c8;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}
.hero-board-item:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.hero-board-item:nth-child(2) { animation: hero-rise 0.9s ease 0.12s both; }
.hero-board-item:nth-child(3) { animation: hero-rise 0.95s ease 0.18s both; }
.hero-board-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .8s ease;
}
.hero-board-item:hover img { transform: scale(1.045); }

@media (min-width: 900px) {
  .hero-board {
    max-width: min(100%, 36rem);
    margin-inline: auto;
    place-self: center;
    padding: 0.6rem;
    gap: 0.6rem;
    aspect-ratio: 1.48 / 1;
  }
}
/* بدون جابه‌جایی عمودی — فقط محو شدن ملایم تا CLS/پرش رفرش ندهد */
@keyframes hero-rise {
  from { opacity: 0.001; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-board,
  .hero-board-item { animation: none; }
}

.section { padding: 2.8rem 0; }
.section-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: end;
  margin-bottom: 1.4rem;
}
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.catalog-head {
  text-align: center;
  margin-bottom: 1.4rem;
}
.catalog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  max-width: 40rem;
}
.catalog-search-field {
  flex: 1 1 14rem;
  margin: 0;
  min-width: 0;
}
.catalog-search-field .field {
  width: 100%;
}
.inquiry-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.inquiry-dashboard-summary {
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.catalog-head .mark {
  margin-inline: auto;
}
.catalog-head h1,
.catalog-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.catalog-head .muted {
  margin: 0.55rem 0 0;
}
.mark {
  display: block; width: 3rem; height: 0.28rem; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--blush));
  margin-bottom: 0.7rem;
}

.chips-scroll {
  width: 100%;
  max-width: 56rem;
  margin: 0 0 1.4rem;
}
#catalog .chips-scroll,
.products-page .chips-scroll {
  margin-inline: auto;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  max-width: 100%;
}
#catalog .chips,
.products-page .chips {
  justify-content: center;
}
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  padding: 0.42rem 0.765rem;
  border-radius: 999px;
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: nowrap;
  max-width: 100%;
  transition: all .2s ease;
}
.chip:hover, .chip.active {
  border-color: transparent; background: var(--accent); color: #fff;
}
@media (max-width: 600px) {
  .chips { gap: 0.4rem; }
  .chip {
    font-size: 0.8rem;
    padding: 0.38rem 0.65rem;
    white-space: normal;
    text-align: center;
  }
}

.masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 760px) {
  .masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .masonry { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pin {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  border: 1px solid rgba(228,221,211,0.9);
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pin:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(28, 36, 32, 0.12);
}
.pin-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #e8e4dc;
  overflow: hidden;
}
.pin-sample-badge {
  position: absolute;
  top: 0.55rem;
  inset-inline-start: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: calc(100% - 1.1rem);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(38, 165, 86, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 244, 251, 0.94) 100%);
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(28, 36, 32, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.pin-sample-badge svg {
  flex-shrink: 0;
  opacity: 0.92;
}
.pin-sample-badge span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pin-sample-badge-lg {
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  font-size: 0.78rem;
  padding: 0.38rem 0.7rem;
}
.pin-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .28s ease;
}
.pin:hover .pin-media img {
  transform: scale(1.03);
}
.pin-body {
  padding: 0.95rem 1rem 1.15rem;
  display: grid;
  gap: 0.28rem;
  flex: 1;
  text-align: center;
}
.pin-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}
.pin-price-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  flex-shrink: 0;
  text-align: center;
}
.pin-price-wrap .price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1.2;
}
.pin-currency {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0.85;
}
.pin-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.pin-body .muted { font-size: 0.82rem; color: var(--muted); }
.pin-body strong {
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price { font-weight: 700; color: var(--accent); }

.panel {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.btn-delete-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.42rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: #9f1239;
  background: transparent;
  border: 1px solid rgba(159, 18, 57, 0.28);
  border-radius: 0.4rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-delete-sm:hover {
  background: rgba(159, 18, 57, 0.07);
  border-color: rgba(159, 18, 57, 0.45);
  color: #881337;
}
.company-delete-zone {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  border-color: rgba(159, 18, 57, 0.18);
  background: rgba(255, 241, 242, 0.45);
}
.company-delete-note {
  margin: 0;
  font-size: 0.82rem;
  color: #9f1239;
}
.panel:has(> .table-wrap) {
  padding: 0.85rem 0.9rem;
}
.admin-dashboard > h2.admin-section-title,
.admin-dashboard .admin-section-title {
  margin: 2rem 0 0.85rem;
  text-align: center;
}
.admin-dashboard > h2.admin-section-title:first-of-type {
  margin-top: 0.35rem;
}
.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.75rem;
}
.admin-hub-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.6rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.admin-hub-card:hover {
  border-color: rgba(38, 165, 86, 0.45);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.admin-hub-card.is-hot {
  border-color: rgba(154, 52, 18, 0.28);
  background: #fff7ed;
}
.admin-hub-card.is-warn {
  border-color: rgba(180, 83, 9, 0.3);
  background: #fffbeb;
}
.admin-hub-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: rgba(38, 165, 86, 0.12);
  color: var(--accent-deep, #c44d00);
}
.admin-hub-card.is-hot .admin-hub-icon {
  background: rgba(154, 52, 18, 0.12);
  color: #9a3412;
}
.admin-hub-card.is-warn .admin-hub-icon {
  background: rgba(180, 83, 9, 0.12);
  color: #b45309;
}
.admin-hub-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.admin-hub-copy strong {
  font-size: 0.95rem;
  line-height: 1.25;
}
.admin-hub-copy span {
  color: var(--muted, #64748b);
  font-size: 0.78rem;
  line-height: 1.35;
}
.admin-hub-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #eef2f0;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.admin-hub-card.is-hot .admin-hub-count {
  background: #9a3412;
  color: #fff;
}
.admin-hub-card.is-warn .admin-hub-count {
  background: #b45309;
  color: #fff;
}
.admin-activity-note {
  text-align: center;
  margin: -0.35rem 0 0.85rem;
}
.activity-details-wrap {
  margin-top: 0.55rem;
}
.activity-details-wrap > summary {
  cursor: pointer;
  color: var(--accent-deep, #c44d00);
  font-weight: 600;
  font-size: 0.88rem;
  user-select: none;
}
.activity-details-wrap[open] > summary {
  margin-bottom: 0.45rem;
}
.admin-top {
  display: grid;
  gap: 1rem;
  justify-items: center;
  margin: 0 0 1.5rem;
  text-align: center;
}
.admin-top-title {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}
.admin-top-title .mark {
  margin-inline: auto;
}
.admin-top-title h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}
.admin-top-bar {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  justify-items: center;
}
.admin-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.admin-top-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.admin-top-item:hover {
  border-color: rgba(38, 165, 86, 0.45);
  background: var(--accent-soft);
}
.admin-top-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #eef2f0;
  color: #334155;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.admin-top-item.is-hot {
  border-color: rgba(154, 52, 18, 0.28);
  background: #fff7ed;
}
.admin-top-item.is-hot .admin-top-count {
  background: #9a3412;
  color: #fff;
}
.admin-top-item.is-warn {
  border-color: rgba(180, 83, 9, 0.3);
  background: #fffbeb;
}
.admin-top-item.is-warn .admin-top-count {
  background: #b45309;
  color: #fff;
}
.admin-top-action.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.admin-top-action.is-primary:hover {
  background: var(--accent-deep, #c44d00);
  border-color: var(--accent-deep, #c44d00);
  color: #fff;
}
.admin-top-action.is-danger {
  background: #be123c;
  border-color: #be123c;
  color: #fff;
}
.admin-top-action.is-danger:hover {
  background: #9f1239;
  border-color: #9f1239;
  color: #fff;
}
.admin-section-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  margin-inline-start: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #9a3412;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
}
.admin-section-count-warn {
  background: #b45309;
}
.table tr.row-new > td {
  background: rgba(255, 247, 237, 0.55);
}
#admin-joins,
#admin-product-requests,
#admin-inquiries,
#admin-expiring {
  scroll-margin-top: 5rem;
}
.activity-log {
  display: grid;
  gap: 0.75rem;
  max-height: 34rem;
  overflow: auto;
}
.activity-item {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(38, 165, 86, 0.12);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #fff 0%, #fbfdfb 100%);
}
.activity-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  justify-content: space-between;
  align-items: baseline;
}
.activity-item-title {
  font-size: 0.98rem;
}
.activity-item-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.activity-actor {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  background: #eef2f0;
  color: var(--ink);
}
.activity-actor-customer { background: #e8f4ff; color: #0b5cad; }
.activity-actor-supplier { background: #eaf7ef; color: #176b3a; }
.activity-actor-admin { background: #fff4e8; color: #9a5b12; }
.activity-status {
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.activity-status-pending { background: #fff7ed; color: #9a3412; }
.activity-status-approved { background: var(--accent-soft); color: var(--accent-deep); }
.activity-status-rejected { background: #ffecee; color: #9f1239; }
.activity-status-new { background: #e8f4ff; color: #0b5cad; }
.activity-status-contacted { background: #f3e8ff; color: #6b21a8; }
.activity-status-closed { background: #eef2f0; color: #334155; }
.activity-status-updated { background: #f3e8ff; color: #6b21a8; }
.activity-status-deleted { background: #f1f5f9; color: #475569; }
.activity-status-info { background: #eef2f0; color: #334155; }
.activity-item-pending { border-color: rgba(154, 52, 18, 0.22); }
.activity-item-approved { border-color: rgba(38, 165, 86, 0.28); }
.activity-item-rejected { border-color: rgba(159, 18, 57, 0.22); }
.activity-item-contacted { border-color: rgba(107, 33, 168, 0.22); }
.activity-item-closed { border-color: rgba(71, 85, 105, 0.22); }
.activity-item-new { border-color: rgba(11, 92, 173, 0.22); }
.activity-details {
  margin: 0.65rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.activity-details > div {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 0.45rem 0.75rem;
  font-size: 0.88rem;
}
.activity-details dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.activity-details dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}
.approval-diff-row td {
  background: #f8faf8;
  border-top: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.85rem;
}
.approval-diff-box {
  margin: 0.15rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(38, 165, 86, 0.18);
  border-radius: 10px;
  background: #fff;
}
.approval-diff-title {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  color: var(--ink);
}
.field-diff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.field-diff-item {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) 1fr;
  gap: 0.35rem 0.75rem;
  align-items: start;
}
.field-diff-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.field-diff-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}
.field-diff-old {
  color: #9f1239;
  background: #ffecee;
  border: 1px solid rgba(159, 18, 57, 0.18);
  border-radius: 6px;
  padding: 0.12rem 0.45rem;
  font-weight: 600;
  word-break: break-word;
}
.field-diff-new {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid rgba(22, 101, 52, 0.18);
  border-radius: 6px;
  padding: 0.12rem 0.45rem;
  font-weight: 600;
  word-break: break-word;
}
.field-diff-arrow {
  color: var(--muted);
  font-weight: 700;
}
.activity-field-diffs {
  margin-top: 0.7rem;
}
.activity-details dd.field-diff-old,
.activity-details dd.field-diff-new {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}
@media (max-width: 720px) {
  .field-diff-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
@media (max-width: 640px) {
  .activity-details > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
.inquiry-cards {
  display: grid;
  gap: 0.9rem;
}
.inquiry-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.inquiry-card-title {
  display: block;
  font-size: 1.02rem;
}
.inquiry-card-sub {
  margin: 0.25rem 0 0;
}
.inquiry-status-label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
.inquiry-status-label .field {
  min-width: 10rem;
}
.inquiry-details {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.inquiry-details > div {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) 1fr;
  gap: 0.35rem 0.85rem;
  align-items: start;
}
.inquiry-details dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.inquiry-details dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
  white-space: pre-wrap;
}
@media (max-width: 640px) {
  .inquiry-details > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
.stack { display: grid; gap: 0.85rem; }
.muted { color: var(--muted); }
.note { font-size: 0.88rem; color: var(--muted); }

.service-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.service-option:last-of-type { border-bottom: 0; }
.service-option input { width: auto; margin: 0; }
.fee-summary {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0 0;
  font-size: 0.95rem;
}
.service-fee-row label:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-fee-row input[type="checkbox"] { width: auto; }

.field, .area, select.field {
  width: 100%; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; padding: 0.7rem 0; font: inherit; color: inherit;
  font-size: 1rem; /* جلوگیری از زوم خودکار iOS روی فوکوس */
  outline: none;
  border-radius: 0;
  max-width: 100%;
}
.field:focus, .area:focus, select.field:focus { border-bottom-color: var(--accent); }
.area { min-height: 6.2rem; resize: vertical; }
label { display: grid; gap: 0.3rem; font-size: 0.92rem; min-width: 0; }
.form-grid { display: grid; gap: 1rem; min-width: 0; }
@media (min-width: 800px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.qty-unit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 9.5rem);
  gap: 0.5rem;
  align-items: stretch;
  min-width: 0;
}
.qty-unit-row .field { width: 100%; }
.upload-help {
  margin: 0.45rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: #fafaf8;
  line-height: 1.55;
}
.upload-help-list {
  margin: 0;
  padding-inline-start: 1.15rem;
  display: grid;
  gap: 0.25rem;
}
.upload-help-list strong {
  font-weight: 700;
}
.upload-convert-help {
  margin: 0.65rem 0 0;
  line-height: 1.55;
}
.upload-convert-help a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 600;
}

.flash {
  padding: 0.85rem 1rem; border-radius: 1rem;
  border: 1px solid var(--line); background: #fff8ef; margin-bottom: 1rem;
}
.flash.err { background: #ffecee; color: #9f1239; border-color: #fecdd3; }
.flash.ok { background: #ecfdf5; color: #065f46; }

.detail { display: grid; gap: 1.4rem; }
@media (min-width: 960px) { .detail { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }
.product-page {
  padding-top: 1.6rem;
  overflow-x: clip;
  max-width: 100%;
}
.product-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 960px) {
  .product-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
  }
}
.product-gallery,
.product-main {
  min-width: 0;
  max-width: 100%;
}
.product-gallery {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
@media (min-width: 960px) {
  .product-gallery {
    position: sticky;
    top: 5.5rem;
  }
}
.detail-image {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  background: #e8e4dc;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(228, 221, 211, 0.9);
  width: 100%;
}
.trust-feature-form {
  gap: 0.55rem;
}
.trust-feature-chip {
  width: fit-content;
  max-width: 100%;
}
.product-trust {
  padding: 1rem 1.1rem 1.15rem;
}
.trust-feature-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.trust-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(38, 165, 86, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
}
.trust-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 0.7rem;
  color: var(--accent-deep);
  background: rgba(38, 165, 86, 0.1);
}
.trust-feature-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.trust-feature-copy strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.trust-feature-copy span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-main {
  display: grid;
  gap: 1rem;
}
.product-hero-copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  justify-items: center;
  text-align: center;
}
.product-hero-copy .mark {
  margin-inline: auto;
}
.product-category {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.product-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
}
.product-supplier {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  justify-content: center;
}
.product-desc {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
  max-width: 38rem;
}
.product-price-block {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  text-align: center;
}
.product-price {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--accent);
}
.product-price-block .note { margin: 0; }
.product-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}
.product-specs,
.product-offers,
.product-order {
  padding: 1.15rem 1.2rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
.product-order-note {
  margin: 0 0 0.35rem;
  text-align: center;
}
.product-order > .stack > strong {
  display: block;
  text-align: center;
}
.spec-grid {
  display: grid;
  gap: 0;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 0.65rem 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(228, 221, 211, 0.85);
  align-items: start;
  min-width: 0;
}
.spec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-row:first-child { padding-top: 0; }
.spec-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.spec-row dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.offers-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}
.offers-table.table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
.offers-table th,
.offers-table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.7rem 0.45rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 720px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: -0.15rem;
  padding: 0.15rem;
}
.table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}
.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 0.72rem 0.7rem;
  text-align: right;
  vertical-align: middle;
  font-size: 0.9rem;
  line-height: 1.45;
}
.table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
  background: #f4f7f5;
  border-bottom: 1px solid rgba(28, 36, 32, 0.14);
}
.table tbody tr:last-child > td {
  border-bottom: 0;
}
.table tbody tr:hover > td {
  background: rgba(38, 165, 86, 0.035);
}
.table .col-thumb {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.req-sample-thumb {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(28, 36, 32, 0.14);
  border-radius: 0.45rem;
  background: #f4f7f5;
  cursor: zoom-in;
  overflow: hidden;
}
.req-sample-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.req-sample-thumb:hover,
.req-sample-thumb:focus-visible {
  outline: 2px solid rgba(38, 165, 86, 0.55);
  outline-offset: 1px;
}
html.lightbox-open,
html.lightbox-open body {
  overflow: hidden;
}
.img-lightbox[hidden] {
  display: none !important;
}
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.img-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(12, 18, 15, 0.78);
  cursor: zoom-out;
}
.img-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 56rem);
  max-height: 90vh;
}
.img-lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 0.55rem;
  background: #111;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.img-lightbox-close {
  position: absolute;
  top: -0.55rem;
  inset-inline-end: -0.55rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1c2420;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.table .col-name {
  min-width: 10rem;
  max-width: 15rem;
  font-weight: 600;
}
.table .col-company {
  min-width: 9rem;
  max-width: 14rem;
}
.table .col-email {
  min-width: 11rem;
  max-width: 16rem;
  word-break: break-word;
}
.table .col-phone {
  min-width: 7.5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
}
html[dir="rtl"] .table .col-phone {
  text-align: left;
}
.table .col-status,
.table .col-type,
.table .col-channel {
  width: 1%;
  white-space: nowrap;
}
.table .col-time {
  width: 1%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.86rem;
}
.table .col-num,
.table .col-price,
.table .col-qty {
  width: 1%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.table .col-text {
  min-width: 9rem;
  max-width: 16rem;
}
.table .col-text .clamp,
.table .clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.table .col-supply {
  min-width: 8rem;
  max-width: 13rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.table .col-actions {
  width: 1%;
  white-space: nowrap;
}
.table .col-actions .actions {
  justify-content: flex-end;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}
.table .col-actions .actions .btn-delete-sm {
  margin-inline-start: 0.15rem;
}
.table .col-actions .btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.84rem;
}
.table .col-narrow {
  width: 1%;
  white-space: nowrap;
}
.table .company-cell {
  max-width: 14rem;
}
.table-dense th,
.table-dense td {
  padding: 0.58rem 0.55rem;
  font-size: 0.86rem;
}
.table-wide {
  min-width: 920px;
}
.table-compact {
  min-width: 520px;
}
.approval-diff-row:hover > td {
  background: transparent;
}
.approval-diff-row > td {
  vertical-align: top;
}
.products-panel-head {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.85rem;
  text-align: center;
}
.products-panel-head h2 { margin: 0; }
.products-panel-head .note { margin: 0; text-align: center; }
.products-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.55rem 0.55rem;
}
.products-table {
  min-width: 720px;
}
.products-table th,
.products-table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.85rem 0.55rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.products-table thead th {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  border-bottom-width: 2px;
}
.products-table-name {
  font-weight: 600;
  max-width: 14rem;
}
.products-table-actions {
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.86rem;
}
.products-table-actions a {
  white-space: nowrap;
}
.table .col-actions:has(.action-chips) {
  text-align: center;
}
.table .col-actions .actions.action-chips {
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}
.action-chips {
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
}
.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(38, 165, 86, 0.22);
  background: rgba(227, 247, 235, 0.75);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.action-chip:hover {
  background: rgba(38, 165, 86, 0.14);
  border-color: rgba(38, 165, 86, 0.4);
  color: var(--accent-deep);
}
.action-chip-danger {
  background: rgba(255, 241, 242, 0.9);
  border-color: rgba(159, 18, 57, 0.22);
  color: #9f1239;
}
.action-chip-danger:hover {
  background: rgba(159, 18, 57, 0.1);
  border-color: rgba(159, 18, 57, 0.4);
  color: #881337;
}

.steps {
  display: grid; gap: 1rem;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--paper);
  border-radius: 1.4rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.step-num {
  width: 2rem; height: 2rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  margin-bottom: 0.7rem;
}

.site-footer {
  margin-top: 3rem;
  background: linear-gradient(165deg, #082848 0%, #0d3b6e 48%, #0a2f57 100%);
  color: #fff;
  padding-bottom: var(--safe-bottom);
}
.footer-inner {
  padding: 2.2rem 0 1.25rem;
}
.footer-main {
  display: grid;
  gap: 2rem 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  align-items: center;
}
@media (min-width: 720px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 3rem;
  }
}
.footer-col {
  display: grid;
  gap: 0.75rem;
  align-content: center;
}
.footer-links,
.footer-brand,
.footer-contact {
  justify-items: center;
  text-align: center;
}
.footer-contact {
  gap: 0.9rem;
  padding-block: 0.35rem;
}
.footer-contact .footer-heading {
  margin: 0;
  line-height: 1.4;
}
.footer-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
}
.footer-brand-link strong {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.footer-logo {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 0;
  flex: 0 0 auto;
  object-fit: contain;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}
.footer-brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.footer-brand-name .brand-lead {
  color: #d7e6f7;
}
.footer-brand-name .brand-link {
  color: #ff8a3d;
}
.footer-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}
.footer-about {
  margin: 0;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-size: 0.92rem;
}
.footer-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.footer-panel-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.footer-heading {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}
.footer-nav {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}
.footer-nav a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-nav a:hover,
.footer-bottom a:hover {
  color: #fff;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.15rem;
}
/* فقط خود لوگوی خطی اپ‌ها — بدون دایره/پس‌زمینه */
.footer-social-btn {
  --social: #fff;
  width: auto;
  height: auto;
  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0.2rem;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--social);
  background: transparent;
  border: 0;
  text-decoration: none;
  box-shadow: none;
  opacity: 0.92;
  transition: transform 0.16s ease, opacity 0.15s ease, filter 0.16s ease;
}
.footer-social-btn svg {
  width: 1.95rem;
  height: 1.95rem;
  display: block;
  overflow: visible;
}
.footer-social-btn:hover {
  transform: translateY(-2px) scale(1.1);
  filter: brightness(1.15);
  opacity: 1;
  background: transparent;
  color: var(--social);
  box-shadow: none;
}
.footer-social-btn:active {
  transform: translateY(0) scale(1.03);
}
.footer-social-whatsapp { --social: #25d366; }
.footer-social-telegram { --social: #2aabee; }
.footer-social-instagram { --social: #e1306c; }
.footer-social-linkedin { --social: #0a66c2; }
.footer-social-phone { --social: #e8f1fb; }
.footer-social-btn.is-disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding-top: 1.15rem;
  text-align: center;
}
.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}
@media (max-width: 719px) {
  .footer-main {
    gap: 1.75rem;
  }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.login-box { width: min(440px, 100%); margin: 2rem auto; }
.login-remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.login-remember input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand, #0f766e);
}
.login-join-link {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}

.supplier-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.supplier-support-phone {
  margin: 0.45rem 0 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  direction: ltr;
  unicode-bidi: plaintext;
}
.supplier-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.supplier-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.password-field {
  position: relative;
  display: block;
}
.password-field .field {
  padding-inline-end: 2.6rem;
}
.password-toggle {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--accent-deep);
  background: var(--accent-soft);
  outline: none;
}
.password-toggle-icon {
  display: block;
}
.password-toggle-icon[hidden] {
  display: none;
}

.image-upload-slots {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .image-upload-slots {
    grid-template-columns: 1fr 1fr;
  }
}
.image-upload-slot {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.image-keep-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.image-keep {
  display: grid;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.5rem;
  background: #fff;
}
.image-keep img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.75rem;
}
.border-row {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  background: rgba(255,255,255,0.65);
}
.thumb-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.product-gallery .instagram-reel-link {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.thumb {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  width: 4.25rem;
  height: 4.25rem;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.thumb:hover,
.thumb.is-active {
  border-color: rgba(38, 165, 86, 0.55);
  box-shadow: 0 0 0 2px rgba(38, 165, 86, 0.18);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.instagram-reel-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(228, 221, 211, 0.95);
  background: linear-gradient(135deg, #fff 0%, #faf7f2 100%);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.instagram-reel-link:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 64, 95, 0.45);
  box-shadow: 0 12px 28px rgba(28, 36, 32, 0.1);
}
.instagram-reel-icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(45deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
}
.instagram-reel-copy {
  min-width: 0;
}
.instagram-reel-copy strong {
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 700;
}
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-draft { background: #fff7ed; color: #9a3412; }
.badge-pending { background: #fff7ed; color: #9a3412; }
.badge-published { background: var(--accent-soft); color: var(--accent); }
.badge-unavailable { background: #ffecee; color: #9f1239; }
.inline-status { margin: 0; }
.inline-status .field { padding: 0.35rem 0; font-size: 0.9rem; }

/* ——— پاسخ‌گویی: تبلت ——— */
@media (max-width: 959px) {
  .section { padding: 2.2rem 0; }
  .admin-top-row {
    justify-content: center;
  }
  .admin-top-item {
    min-height: var(--touch-min);
  }
}

/* ——— پاسخ‌گویی: موبایل و تبلت کوچک ——— */
@media (max-width: 720px) {
  :root { --wrap-pad: 0.85rem; }

  .nav {
    gap: 0.55rem;
    padding: 0.35rem 0;
  }
  .brand-name,
  .brand strong { font-size: 0.95rem; }
  .brand-logo {
    width: 3.55rem;
    height: 3.55rem;
  }
  .brand-wordmark {
    height: 1.2rem;
    max-width: min(40vw, 9rem);
  }
  .nav-menu-trigger,
  .lang-picker-trigger {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
  }
  .nav-menu-panel {
    inset-inline-end: 0;
    max-width: min(94vw, 20rem);
  }
  .nav-menu-panel a {
    min-height: var(--touch-min);
    padding: 0.7rem 0.85rem;
  }

  .hero {
    padding-block: 1.4rem 1.8rem;
  }
  .hero-inner {
    gap: 1.25rem;
    justify-items: center;
  }
  .hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }
  .hero-lead {
    font-size: 0.95rem;
  }
  .hero-request-btn {
    width: 100%;
    min-width: 0;
    min-height: 3rem;
  }
  /* هیرو موبایل: لجستیک بالا + دو عکس پایین، هم‌عرض و وسط‌چین با متن */
  .hero-copy,
  .hero-board {
    width: 100%;
    max-width: min(100%, 22.5rem);
    margin-inline: auto;
    min-width: 0;
    justify-self: center;
  }
  .hero-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 0.55rem;
    padding: 0.45rem;
    height: auto;
    aspect-ratio: auto;
    place-self: center;
  }
  .hero-board-item {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    aspect-ratio: 1 / 1;
  }
  .hero-board-item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .section { padding: 1.85rem 0; }
  .masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .pin {
    border-radius: 1.1rem;
  }
  .pin-body {
    padding: 0.7rem 0.75rem 0.85rem;
  }
  .pin-body strong {
    font-size: 0.8rem;
  }

  /* نوار دسته موبایل: اسکرول LTR پایدار + در RTL با row-reverse «همه» سمت راست */
  .chips-scroll,
  #catalog .chips-scroll,
  .products-page .chips-scroll {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    margin-bottom: 1.1rem;
    padding-bottom: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    direction: ltr;
  }
  .chips-scroll .chips,
  #catalog .chips-scroll .chips,
  .products-page .chips-scroll .chips {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    width: max-content;
    max-width: none;
    margin: 0;
    padding-inline: 0.15rem;
    overflow: visible;
    direction: ltr;
  }
  html[dir="rtl"] .chips-scroll .chips {
    flex-direction: row-reverse;
  }
  .chips-scroll .chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .channel-cards {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .channel-card {
    min-height: 4.75rem;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    text-align: start;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }
  .qty-unit-row {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    gap: 0.55rem;
  }
  .actions .btn,
  .actions a.btn {
    flex: 1 1 auto;
    min-width: min(100%, 9rem);
  }

  .admin-top-row {
    gap: 0.45rem;
  }
  .admin-top-item {
    font-size: 0.84rem;
    padding: 0.45rem 0.7rem;
  }

  .table-wrap,
  .offers-table-wrap,
  .products-table-wrap {
    margin-inline: -0.15rem;
  }

  .login-box {
    width: min(440px, 100%);
    margin: 1.25rem auto;
    padding-inline: 0;
  }

  .product-page { padding-top: 1.1rem; }
  .thumb-row {
    justify-content: center;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
  }
  .product-page .spec-row {
    text-align: center;
    justify-items: center;
  }
  .product-page .spec-row dt,
  .product-page .spec-row dd {
    text-align: center;
  }
  .thumb {
    flex: 0 0 auto;
    width: 4.25rem;
    height: 4.25rem;
  }

  .site-footer {
    margin-top: 2rem;
  }
  .footer-inner {
    padding: 1.75rem 0 calc(1.1rem + var(--safe-bottom));
  }
  .footer-social-btn svg {
    width: 2.15rem;
    height: 2.15rem;
  }
}

/* ——— پاسخ‌گویی: موبایل باریک (آیفون SE و مشابه) ——— */
@media (max-width: 420px) {
  :root { --wrap-pad: 0.7rem; }

  .brand strong {
    font-size: 0.95rem;
  }
  .lang-name {
    display: none;
  }
  .hero-copy,
  .hero-board {
    max-width: 100%;
  }
  .hero-board {
    padding: 0.4rem;
    gap: 0.45rem;
  }
  .masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .pin-meta {
    flex-wrap: wrap;
  }
  .action-chips {
    flex-wrap: wrap;
    justify-content: center;
  }
  .table .col-actions .actions.action-chips {
    gap: 0.35rem;
  }
}

/* تبلت: کلاژ وسط‌چین با فاصله از لبه؛ از ۹۰۰px کنار متن می‌نشیند */
@media (min-width: 721px) and (max-width: 899px) {
  .hero-inner {
    gap: 1.5rem;
    justify-items: center;
  }
  .hero-copy,
  .hero-board {
    width: 100%;
    max-width: min(100%, 30rem);
    margin-inline: auto;
    justify-self: center;
  }
  .hero-board {
    padding: 0.55rem;
    gap: 0.55rem;
    place-self: center;
  }
}
@media (min-width: 721px) and (max-width: 959px) {
  .masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .channel-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* فقط دستگاه‌های لمسی: بدون هاور مزاحم */
@media (hover: none) {
  .pin:hover,
  .channel-card:hover,
  .hero-board-item:hover img,
  .footer-social-btn:hover,
  .action-chip:hover {
    transform: none;
  }
  .pin:hover .pin-media img {
    transform: none;
  }
}

