/* ========== Brands Page – پارین صنعت ========== */

:root {
  /* بر اساس لوگو پارین صنعت */
  --brand-main: #22C1E8;        /* آبی روشن لوگو */
  --brand-main-soft: #e0f7ff;   /* پس‌زمینه خیلی ملایم */
  --brand-main-soft2: #f3fbff;  /* حتی روشن‌تر */
  --brand-ink: #102a43;         /* سرمه‌ای تیره برای متن */
  --brand-muted: #64748b;
  --brand-border: #e2e8f0;
  --brand-bg: #f8fafc;
  --brand-radius-lg: 20px;
  --brand-radius-xl: 24px;
}

/* اسکرول‌بار مخفی برای المان‌های افقی */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ریشه صفحه برند */
.brands-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: inherit;
  color: var(--brand-ink);
}

/* ========== HERO بالای صفحه ========== */

.brands-hero {
  position: relative;
  border-radius: var(--brand-radius-xl);
  padding: 1.6rem 1.4rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,.18), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(59,130,246,.16), transparent 50%),
              linear-gradient(135deg, #0f172a, #020617);
  box-shadow:
    0 20px 45px rgba(15,23,42,.35),
    0 0 0 1px rgba(148,163,184,.25);
}

.brands-hero-bg {
  position: absolute;
  inset: 0;
  opacity: .45;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(56,189,248,.30), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(96,165,250,.25), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(52,211,153,.18), transparent 55%);
}

.brands-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 1.5rem;
  align-items: center;
  z-index: 1;
}

@media (max-width: 768px) {
  .brands-hero {
    padding: 1.25rem 1rem 1.4rem;
  }
  .brands-hero-inner {
    grid-template-columns: minmax(0,1fr);
    gap: 1.1rem;
  }
}

/* سمت متن اصلی */

.brands-hero-main {
  color: #e5f0ff;
}

.brands-hero-title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #f9fafb;
}

@media (min-width: 1024px) {
  .brands-hero-title {
    font-size: 2.1rem;
  }
}

.brands-hero-sub {
  margin: .55rem 0 0;
  font-size: .9rem;
  line-height: 1.8;
  color: #c7d2fe;
}

.brands-hero-stats {
  margin-top: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.brands-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.45);
  background: radial-gradient(circle at 0 0, rgba(56,189,248,.25), transparent 65%);
  font-size: .78rem;
  color: #e5f0ff;
  backdrop-filter: blur(10px);
}
.brands-stat-pill i {
  font-size: .75rem;
}

/* باکس سرچ سمت راست */

.brands-hero-search {
  align-self: stretch;
  border-radius: var(--brand-radius-lg);
  padding: .85rem .9rem .95rem;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,.26), transparent 65%),
              rgba(15,23,42,.75);
  border: 1px solid rgba(148,163,184,.55);
  box-shadow:
    0 18px 40px rgba(15,23,42,.65),
    0 0 0 1px rgba(15,23,42,.5) inset;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.brands-search-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin-bottom: .1rem;
}

.brands-search-field {
  position: relative;
}
.brands-search-field input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.8);
  background: rgba(15,23,42,.85);
  color: #e5e7eb;
  padding: .55rem .85rem;
  padding-right: 2.2rem;
  font-size: .85rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.brands-search-field input::placeholder {
  color: rgba(148,163,184,.85);
}
.brands-search-field input:focus {
  border-color: #38bdf8;
  box-shadow:
    0 0 0 1px rgba(56,189,248,.7),
    0 0 0 8px rgba(56,189,248,.20);
  background: rgba(15,23,42,.95);
}

.brands-search-icon {
  position: absolute;
  inset-inline-start: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(148,163,184,.9);
  font-size: .8rem;
  pointer-events: none;
}

.brands-search-hint {
  margin: .15rem 0 0;
  font-size: .72rem;
  color: #cbd5f5;
}

/* ========== BREADCRUMB پایین هیرو ========== */

.brands-breadcrumb {
  margin-top: .75rem;
  margin-bottom: 1.1rem;
}

/* نسخه سبکbreadcrumb (اگر صفحه دسته‌بندی لود نشده) */
.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  align-items: center;
  overflow-x: auto;
  padding: .2rem .55rem;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  font-size: .8rem;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  color: #64748b;
  white-space: nowrap;
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 .35rem;
  color: #cbd5e1;
}
.breadcrumb a {
  color: #0f172a;
  text-decoration: none;
}
.breadcrumb .current {
  font-weight: 700;
  color: #0f172a;
}

/* ========== فیلتر حروف (الفبایی) ========== */

.brands-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1.2rem;
}

.brands-alpha-pill {
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  padding: .25rem .7rem;
  font-size: .75rem;
  background: #ffffff;
  color: var(--brand-muted);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.brands-alpha-pill:hover {
  border-color: var(--brand-main);
  color: #0369a1;
  background: var(--brand-main-soft2);
}
.brands-alpha-pill.is-active {
  background: var(--brand-main-soft);
  border-color: var(--brand-main);
  color: #0369a1;
  font-weight: 700;
  transform: translateY(-1px);
}

/* ========== گرید برندها ========== */

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

@media (min-width: 640px) {
  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
  }
}
@media (min-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1280px) {
  .brands-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* کارت هر برند */

.brands-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  padding: .9rem .8rem .8rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 8px 20px rgba(15,23,42,.04),
    0 1px 0 rgba(148,163,184,.18);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    transform .17s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background-color .2s ease;
}
.brands-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,.12), transparent 55%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.brands-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.8);
  box-shadow:
    0 16px 40px rgba(15,23,42,.09),
    0 0 0 1px rgba(56,189,248,.35);
}
.brands-card:hover::before {
  opacity: 1;
}

/* دایره حرف اول برند */

.brands-card-badge {
  position: absolute;
  inset-inline-start: .8rem;
  top: .7rem;
}
.brands-card-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #e0f2fe, #bae6fd);
  border: 1px solid #7dd3fc;
  box-shadow:
    0 7px 18px rgba(59,130,246,.28),
    0 0 0 1px rgba(255,255,255,.75) inset;
  color: #0369a1;
  font-size: 1rem;
  font-weight: 900;
}

/* بدنه کارت */

.brands-card-body {
  margin-inline-start: 3.1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.brands-card-title {
  margin: 0;
  font-size: .92rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brands-card-sub {
  margin: .35rem 0 0;
  font-size: .75rem;
  color: #64748b;
}

.brands-card-meta {
  margin-top: auto;
  padding-top: .4rem;
}

.brands-card-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .7rem;
  border: 1px solid #e2e8f0;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.brands-card-chip i {
  font-size: .65rem;
}
.brands-card:hover .brands-card-chip {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

/* وقتی لیست خالی است */

.brands-empty {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  border-radius: 18px;
  border: 1px dashed var(--brand-border);
  background: #ffffff;
  text-align: center;
  font-size: .9rem;
  color: var(--brand-muted);
}

/* ریسپانسیو موبایل */

@media (max-width: 480px) {
  .brands-wrap {
    padding-inline: .75rem;
  }
  .brands-card {
    min-height: 110px;
    padding: .8rem .75rem .75rem;
  }
  .brands-card-title {
    font-size: .9rem;
  }
}
/* ========== HERO بالای صفحه (نسخه روشن هماهنگ با لوگو) ========== */

.brands-hero {
  position: relative;
  border-radius: var(--brand-radius-xl);
  padding: 1.6rem 1.4rem;
  overflow: hidden;
  margin-bottom: 1.5rem;

  /* پس‌زمینه روشن با گرادیانت آبی لوگو */
  background:
    radial-gradient(circle at 0 0, rgba(34,193,232,.24), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(148, 210, 255, .22), transparent 55%),
    linear-gradient(135deg, #ffffff, #f5fbff);

  border: 1px solid rgba(148,163,184,.30);
  box-shadow:
    0 16px 40px rgba(15,23,42,.06),
    0 0 0 1px rgba(255,255,255,.9);
}

.brands-hero-bg {
  /* برای نسخه روشن نیازی به تیره کردن نیست، فقط کمی دکور */
  position: absolute;
  inset: 0;
  opacity: .4;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 0, rgba(34,193,232,.22), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(56,189,248,.18), transparent 55%);
}

.brands-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.7fr);
  gap: 1.5rem;
  align-items: center;
  z-index: 1;
}

@media (max-width: 768px) {
  .brands-hero {
    padding: 1.25rem 1rem 1.4rem;
  }
  .brands-hero-inner {
    grid-template-columns: minmax(0,1fr);
    gap: 1.1rem;
  }
}

/* سمت متن اصلی */

.brands-hero-main {
  color: var(--brand-ink);
}

.brands-hero-title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--brand-ink);
}

@media (min-width: 1024px) {
  .brands-hero-title {
    font-size: 2.1rem;
  }
}

.brands-hero-sub {
  margin: .55rem 0 0;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--brand-muted);
}

.brands-hero-stats {
  margin-top: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.brands-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(34,193,232,.30);
  background: linear-gradient(135deg, #ecfeff, #e0f7ff);
  font-size: .78rem;
  color: #0369a1;
  box-shadow: 0 8px 20px rgba(34,193,232,.25);
}
.brands-stat-pill i {
  font-size: .75rem;
}

/* باکس سرچ سمت راست – کارت سفید */

.brands-hero-search {
  align-self: stretch;
  border-radius: var(--brand-radius-lg);
  padding: .9rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,.45);
  box-shadow:
    0 14px 35px rgba(15,23,42,.08),
    0 0 0 1px rgba(255,255,255,.9);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.brands-search-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: .1rem;
}

.brands-search-field {
  position: relative;
}
.brands-search-field input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: #f9fafb;
  color: var(--brand-ink);
  padding: .55rem .9rem;
  padding-right: 2.3rem;
  font-size: .85rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.brands-search-field input::placeholder {
  color: #9ca3af;
}
.brands-search-field input:focus {
  border-color: var(--brand-main);
  box-shadow:
    0 0 0 1px rgba(34,193,232,.75),
    0 0 0 6px rgba(34,193,232,.18);
  background: #ffffff;
}

.brands-search-icon {
  position: absolute;
  inset-inline-start: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: .8rem;
  pointer-events: none;
}

.brands-search-hint {
  margin: .2rem 0 0;
  font-size: .72rem;
  color: #94a3b8;
}
/* === همه فونت‌های صفحه ایندکس برندها بولد === */
.brands-page--index,
.brands-page--index * {
  font-weight: 700 !important;
}
/* طراحی نوار ارسال رایگان */
