/* Advanced filters + search empty states */
.rt-filter-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 14px;
}
.rt-filter-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.rt-filter-panel-head strong {
  display: block;
  font-size: 0.86rem;
  color: #0b1220;
  font-weight: 700;
}
.rt-filter-panel-head span {
  display: none;
}
.rt-filter-clear {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
  color: var(--rt-brand-dark, #101b2e);
}
.rt-filters-pro {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rt-filter span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.rt-filter-suggest-wrap { position: relative; }
.rt-filter-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.rt-filter-suggest-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
}
.rt-filter-suggest-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  display: block;
}
.rt-filter-suggest-item:hover { background: #f8fafc; }
.rt-filter-suggest-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.rt-filter-suggest-item strong {
  font-size: 0.86rem;
  color: #0b1220;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rt-filter-suggest-item em {
  font-style: normal;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.rt-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 10px;
  margin-top: 10px;
  align-items: end;
}
.rt-price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 2px;
}
.rt-price-presets button {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: #334155;
}
.rt-price-presets button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

.rt-empty-pro {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}
.rt-empty-pro h3 {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", Manrope, sans-serif;
  font-size: 1.25rem;
}
.rt-empty-pro > p { margin: 0 auto 16px; max-width: 36rem; color: #64748b; }
.rt-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}
.rt-empty-rec { margin-top: 22px; text-align: left; }
.rt-empty-rec h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .rt-filters-pro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rt-filter-search { grid-column: 1 / -1; }
  .rt-price-row { grid-template-columns: 1fr 1fr; }
  .rt-price-presets { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .rt-filters-pro { grid-template-columns: 1fr 1fr; }
  .rt-price-row { grid-template-columns: 1fr; }
}

.rt-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.rt-shop-toolbar[hidden] {
  display: none !important;
}
.rt-browse-bar {
  padding: 8px 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff !important;
}
.rt-browse-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  min-height: 36px;
}
.rt-browse-bar .rt-breadcrumbs {
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #64748b;
}
.rt-browse-bar .rt-breadcrumbs a {
  color: #64748b;
  font-weight: 600;
}
.rt-browse-bar .rt-breadcrumbs a:hover {
  color: #0b1220;
}
.rt-browse-bar .rt-breadcrumbs > span:last-child {
  color: #0b1220;
  font-weight: 650;
}
.rt-browse-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex: 0 0 auto;
  margin-left: auto;
}
.rt-shop-section-tight {
  padding-top: 12px !important;
}
.rt-meta[hidden] {
  display: none !important;
}
.brand-row-compact {
  margin: 0 0 12px;
}
.rt-brand-rail,
.rt-brand-nav {
  margin: 0 0 14px;
}

/* Shop-by-Brand visual family rail (image + name) — TechBros discovery pattern, Rehman UI */
.rt-brand-family-rail {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
  margin: 4px 0 18px;
}
.rt-brand-family-rail[hidden] {
  display: none !important;
}
.rt-brand-family-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.rt-brand-family-track::-webkit-scrollbar {
  height: 4px;
}
.rt-brand-family-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.rt-brand-family-rail-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0b1220;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  z-index: 2;
}
.rt-brand-family-rail-btn:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}
.rt-brand-family-rail-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.rt-brand-family-rail-btn[hidden] {
  display: none !important;
}
.rt-brand-family-card {
  flex: 0 0 118px;
  width: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 4px 2px;
  text-decoration: none;
  color: #0b1220;
  text-align: center;
  scroll-snap-align: start;
  border-radius: 12px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.rt-brand-family-card:hover {
  transform: translateY(-2px);
  color: #0b1220;
}
.rt-brand-family-media {
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
}
.rt-brand-family-media img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.rt-brand-family-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: inherit;
  max-width: 100%;
}
.rt-brand-family-card.is-active .rt-brand-family-label {
  color: #5b21b6;
}
.rt-brand-family-card.is-active .rt-brand-family-media {
  box-shadow: inset 0 0 0 1.5px rgba(91, 33, 182, 0.35);
}
@media (max-width: 640px) {
  .rt-brand-family-card {
    flex-basis: 96px;
    width: 96px;
  }
  .rt-brand-family-media {
    width: 84px;
    height: 84px;
  }
  .rt-brand-family-media img {
    width: 74px;
    height: 74px;
  }
  .rt-brand-family-label {
    font-size: 0.75rem;
  }
  .rt-brand-family-rail-btn {
    display: none;
  }
}

/* Short text control — reads with the category crumb, not a pill */
.rt-filter-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 1px solid rgba(15, 23, 42, 0.12);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  min-height: 0;
  min-width: 0;
}
.rt-filter-toggle::after {
  content: "";
  display: inline-block;
  width: 0.38em;
  height: 0.38em;
  margin-left: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.1em) rotate(45deg);
  vertical-align: middle;
  opacity: 0.65;
}
.rt-filter-toggle:hover {
  color: #0b1220;
}
.rt-filter-toggle.is-open,
.rt-filter-toggle[aria-expanded="true"] {
  color: #0b1220;
  background: transparent;
  border-left-color: rgba(15, 23, 42, 0.12);
}
.rt-filter-toggle.is-open::after,
.rt-filter-toggle[aria-expanded="true"]::after {
  transform: translateY(0.08em) rotate(-135deg);
}
@media (max-width: 640px) {
  .rt-browse-bar-inner {
    gap: 10px;
  }
  .rt-browse-bar .rt-breadcrumbs {
    font-size: 0.78rem;
  }
  .rt-filter-toggle {
    font-size: 0.78rem;
    padding-left: 10px;
  }
}
#rtFilters[hidden] {
  display: none !important;
}
.rt-shop-section {
  padding-top: 8px !important;
}
