/* ===== Общий контейнер страницы производителя ===== */
.brand-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 10px 40px;
  background: #f5f7fa;
}

/* ===== Хлебные крошки ===== */
.brand-breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0 0 15px;
  list-style: none;
  font-size: 13px;
}

.brand-breadcrumb li {
  display: inline-block;
  color: #777;
}

.brand-breadcrumb li + li:before {
  content: " / ";
  color: #aaa;
  padding: 0 3px;
}

/* ===== Шапка бренда ===== */
.brand-header {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 20px 18px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.brand-header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-logo-block {
  flex: 0 0 auto;
}

.brand-logo {
  width: 120px;
  height: 120px;
  background: #f3f4f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-logo--placeholder {
  font-size: 42px;
  font-weight: 700;
  color: #4b5563;
}

.brand-info {
  flex: 1 1 0;
  min-width: 220px;
}

.brand-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111827;
}

.brand-description {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  max-height: 145px;
  overflow: hidden;
}

.brand-description p {
  margin-bottom: 8px;
}

.brand-compare {
  margin-top: 14px;
}

.brand-compare-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.brand-compare-link i {
  font-size: 14px;
}

.brand-compare-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ===== Панель управления (вид, сортировка, лимит) ===== */
.brand-toolbar {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.brand-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-toolbar-left,
.brand-toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.view-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.view-btn {
  border: none;
  background: #f9fafb;
  padding: 6px 10px;
  font-size: 0;
}

.view-btn i {
  font-size: 13px;
  color: #6b7280;
}

#grid-view.active i,
#list-view.active i {
  color: #111827;
}

.view-btn:hover {
  background: #e5e7eb;
}

.brand-total {
  font-size: 13px;
  color: #6b7280;
}

.brand-sort label,
.brand-limit label {
  font-size: 13px;
  color: #6b7280;
  margin: 0 6px 0 0;
}

.brand-sort,
.brand-limit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-sort .form-control,
.brand-limit .form-control {
  height: 32px;
  padding: 4px 26px 4px 8px;
  font-size: 13px;
}

/* ===== Сетка товаров ===== */
.brand-products {
  margin-bottom: 18px;
}

.brand-products-grid {
  margin-left: -10px;
  margin-right: -10px;
}

.brand-product-item {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 20px;
}

/* ===== Карточка товара ===== */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card-media {
  position: relative;
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  background: #f9fafb;
}

.product-card-image {
  display: block;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  text-align: center;
}

.product-card-image img {
  max-height: 210px;
  width: auto;
  margin: 0 auto;
}

.product-card-image-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 32px;
  font-weight: 600;
}

/* Бейдж акции */
.product-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
}

.product-badge--sale {
  background: #f97316;
  color: #ffffff;
}

/* Контент карточки */
.product-card-body {
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
  display: block;
  text-decoration: none;
}

.product-card-title:hover {
  color: #2563eb;
}

/* Рейтинг */
.product-card-rating {
  margin-bottom: 6px;
}

.product-card-rating .fa {
  color: #fbbf24;
  font-size: 13px;
}

/* Описание */
.product-card-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  max-height: 50px;
  overflow: hidden;
  margin-bottom: 10px;
}

/* Низ карточки */
.product-card-bottom {
  margin-top: auto;
}

.product-card-price-block {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.product-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.product-card-price--old {
  font-size: 13px;
  font-weight: 400;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-card-tax {
  font-size: 11px;
  color: #9ca3af;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.product-card-btn {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card-btn--cart {
  background: #111827;
  color: #ffffff;
}

.product-card-btn--cart:hover {
  background: #000000;
  color: #ffffff;
}

.product-card-btn--cart i {
  font-size: 14px;
}

.product-card-icon-btn {
  border-radius: 999px;
  height: 32px;
  width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.product-card-icon-btn i {
  font-size: 14px;
  color: #6b7280;
}

.product-card-icon-btn:hover {
  background: #f3f4f6;
}

/* ===== Пагинация ===== */
.brand-pagination-block {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.brand-pagination-text {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.brand-pagination-links {
  text-align: right;
}

/* ===== Пустая страница производителя ===== */
.brand-empty {
  margin-top: 20px;
}

.brand-empty-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 6px 18
