.sfc-brands-page {
    padding-right: 30px;
    padding-left: 30px;
}

.sfc-brands-page__container {
  padding-top: 16px;
  padding-bottom: 56px;
}

/* Hub type switcher: jump between /znacka/, /typ/, /farba-prevedenia/, … before term count pills */
.sfc-hub-switch-nav {
  margin: 0 0 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid #e5e7eb;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.sfc-hub-switch-nav__scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sfc-hub-switch-nav__scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sfc-hub-switch-nav__link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.sfc-hub-switch-nav__link:hover {
  border-color: var(--boxcar-theme-color);
  color: var(--boxcar-theme-color);
}

.sfc-hub-switch-nav__link.is-active {
  border-color: var(--boxcar-theme-color);
  background: rgba(10, 180, 103, 0.1);
  color: #065f46;
}

.sfc-brands-page__header {
  margin-bottom: 26px;
}

.sfc-brands-page__header--compact {
  margin-top: 10px;
  margin-bottom: 14px;
}

.sfc-brands-page__header--compact .sfc-brands-page__title {
  margin-bottom: 4px;
  font-size: 32px;
  line-height: 1.15;
}

.sfc-brands-page__header--compact .sfc-brands-page__lead {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 0;
}

.sfc-brands-page__title {
  margin: 0 0 10px;
}

.sfc-brands-page__lead {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}

.sfc-brands-page__category-block + .sfc-brands-page__category-block {
  margin-top: 38px;
}

.sfc-brands-page__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.sfc-brands-page__category-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.sfc-brands-page__category-link {
  color: var(--boxcar-theme-color);
  font-weight: 600;
  text-decoration: none;
}

.sfc-brands-page__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.sfc-brands-page__tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sfc-brands-page__tab:hover {
  border-color: var(--boxcar-theme-color);
  color: var(--boxcar-theme-color);
}

.sfc-brands-page__category-actions {
  margin-top: 14px;
}

.sfc-brands-page__h-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sfc-brands-page__h-item {
  flex: 0 0 min(280px, 82vw);
  min-width: 240px;
  scroll-snap-align: start;
}

.sfc-brands-page__h-scroll .c-listing-card {
  height: 100%;
}

.sfc-brands-page__h-scroll .c-listing-card__placeholder {
  min-height: 200px;
  background: #e5e7eb;
  border-radius: 4px;
}

.sfc-brands-page__h-scroll .c-listing-card__img-fallback {
  display: block;
  border-radius: 4px;
}

.sfc-brands-page__h-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sfc-brands-page__brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--boxcar-theme-color);
  border-radius: 8px;
  background: transparent;
  color: var(--boxcar-theme-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sfc-brands-page__brand-btn:hover {
  background: rgba(10, 180, 103, 0.1);
  color: var(--boxcar-theme-color);
}

.sfc-brands-page__empty {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}

.sfc-brands-page__autoload {
  margin-top: 24px;
  margin-bottom: 20px;
}

.sfc-brands-page__autoload-text {
  margin: 0 0 12px;
  color: #374151;
  font-weight: 600;
}

.sfc-brands-page__autoload-skeletons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sfc-brands-page__autoload-skeleton {
  height: 220px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
  background-size: 400% 100%;
  animation: sfc-brands-skeleton 1.2s ease-in-out infinite;
}

@keyframes sfc-brands-skeleton {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

@media (max-width: 1024px) {
  .sfc-brands-page__h-item {
    flex-basis: min(270px, 86vw);
  }

  .sfc-brands-page__autoload-skeletons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sfc-brands-page__title {
    font-size: 32px;
  }

  .sfc-brands-page__header--compact .sfc-brands-page__title {
    font-size: 24px;
  }

  .sfc-brands-page__category-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sfc-brands-page__category-title {
    font-size: 24px;
  }

}

@media (max-width: 520px) {
  .sfc-brands-page__h-item {
    flex-basis: 86vw;
    min-width: 220px;
  }

  .sfc-brands-page__autoload-skeletons {
    grid-template-columns: 1fr;
  }
}
