/* RackStar Product Hub - scoped styles only.
   Assumes ../global.css controls the main site, navigation, footer, and base H1/H2/H3 typography. */

.rs-product-hub {
  --hub-blue: #336BBF;
  --hub-sky: #45A3FF;
  --hub-ink: #172033;
  --hub-muted: #607089;
  --hub-line: #D9E2EF;
  --hub-soft: #F5F8FC;
  --hub-white: #fff;

  color: var(--hub-ink);
  abackground:
    radial-gradient(circle at top right, rgba(51,107,191,.18), transparent 28%),
    linear-gradient(180deg, #111827 0%, #0c1220 42%, #090d16 100%);
  line-height: 1.55;
  overflow: hidden;
}

.rs-product-hub,
.rs-product-hub * {
  box-sizing: border-box;
}

/* Keep links scoped so nav/footer links are not affected. */
.rs-product-hub a {
  color: var(--hub-blue);
  text-decoration: none;
}

.rs-product-hub a:hover {
  text-decoration: underline;
}

/* Let global.css handle heading personality.
   These rules only set spacing/color where the dark hub background needs it. */
.rs-product-hub h1,
.rs-product-hub h2,
.rs-product-hub h3 {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.rs-product-hub__wrap {
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
}

.rs-product-hub__hero {
  color: #fff;
  abackground:
    radial-gradient(circle at 12% 10%, rgba(69,163,255,.26), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(142,200,67,.16), transparent 36%),
    linear-gradient(135deg, #090D16 0%, #142845 52%, #07101F 100%);
  padding: 72px 24px 56px;
}

.rs-product-hub__eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: #BFD7FF;
  font-weight: 700;
}

.rs-product-hub__hero h1,
.rs-product-hub__final-cta h2 {
  color: #fff;
}

.rs-product-hub__hero h1 {
  margin-top: 12px;
  margin-bottom: 18px;
  max-width: 1050px;
}

.rs-product-hub__section-head h2 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 10px;
}

.rs-product-hub__category-card h3,
.rs-product-hub__vendor-card-head h3,
.rs-product-hub__intent h3 {
  color: var(--hub-ink);
  margin-top: 0;
}

.rs-product-hub__hero-copy {
  max-width: 890px;
  font-size: 1.13rem;
  color: #E6EFFD;
  margin: 0;
}

.rs-product-hub__hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.rs-product-hub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.28);
  line-height: 1.2;
}

.rs-product-hub__btn:hover {
  text-decoration: none;
}

.rs-product-hub__btn--primary {
  background: #fff;
  color: #10213C;
}

.rs-product-hub__btn--secondary {
  color: #fff;
}

.rs-product-hub__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin-top: 38px;
}

.rs-product-hub__stat {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  padding: 18px;
}

.rs-product-hub__stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}

.rs-product-hub__stat span {
  display: block;
  color: #CBDAF4;
  margin-top: 8px;
}

.rs-product-hub__section {
  padding: 54px 24px;
  background: transparent;
}

.rs-product-hub__section-head {
  max-width: 920px;
  margin-bottom: 26px;
}

.rs-product-hub__section-head p {
  color: rgba(233,240,251,.78);
  margin: 0;
}

.rs-product-hub__category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.rs-product-hub__category-card,
.rs-product-hub__vendor-card,
.rs-product-hub__intent,
.rs-product-hub__table-wrap {
  background: var(--hub-white);
  border: 1px solid var(--hub-line);
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
}

.rs-product-hub__category-card {
  border-radius: 22px;
  padding: 22px;
}

.rs-product-hub__category-card p {
  color: var(--hub-muted);
  min-height: 74px;
  margin: 0 0 16px;
}

.rs-product-hub__category-card span {
  display: block;
  margin-top: 12px;
  font-size: .9rem;
  color: var(--hub-muted);
}

.rs-product-hub__vendor-section {
  background: transparent;
}

.rs-product-hub__vendor-card {
  border-radius: 26px;
  padding: 26px;
  margin-bottom: 22px;
}

.rs-product-hub__vendor-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--hub-line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.rs-product-hub__vendor-card-head p {
  margin: 0;
  color: var(--hub-muted);
  font-weight: 700;
}

.rs-product-hub__vendor-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 26px;
}

.rs-product-hub__vendor-grid h4 {
  margin: 0 0 10px;
  color: var(--hub-ink);
}

.rs-product-hub__mini-list,
.rs-product-hub__sku-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rs-product-hub__mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hub-line);
}

.rs-product-hub__sku-list {
  columns: 2;
  column-gap: 28px;
}

.rs-product-hub__sku-list li {
  break-inside: avoid;
  padding: 7px 0;
}

.rs-product-hub__sku-list small {
  display: block;
  color: var(--hub-muted);
}

.rs-product-hub__intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.rs-product-hub__intent {
  border-left: 4px solid var(--hub-blue);
  border-radius: 18px;
  padding: 20px;
}

.rs-product-hub__intent p {
  color: var(--hub-muted);
  margin: 0;
}

.rs-product-hub__directory-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.rs-product-hub__directory-tools input,
.rs-product-hub__directory-tools select {
  padding: 12px 14px;
  border: 1px solid var(--hub-line);
  border-radius: 14px;
  min-width: 220px;
  font-size: 1rem;
  background: #fff;
  color: var(--hub-ink);
}

.rs-product-hub__table-wrap {
  overflow: auto;
  border-radius: 20px;
}

.rs-product-hub table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: #fff;
}

.rs-product-hub th,
.rs-product-hub td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hub-line);
  vertical-align: top;
}

.rs-product-hub th {
  background: #F0F5FB;
  color: #263955;
  position: sticky;
  top: 0;
  z-index: 1;
}

.rs-product-hub td {
  font-size: .95rem;
  color: var(--hub-ink);
}

.rs-product-hub__no-results {
  display: none;
  color: rgba(233,240,251,.78);
  padding: 18px 0;
}

.rs-product-hub__final-cta {
  background: linear-gradient(135deg, #0A0F1C 0%, #162B4C 100%);
  color: #fff;
  border-radius: 28px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rs-product-hub__final-cta h2 {
  margin: 0 0 10px;
}

.rs-product-hub__final-cta p {
  color: #D9E6FA;
  max-width: 760px;
  margin: 0;
}

@media (max-width: 1000px) {
  .rs-product-hub__stats,
  .rs-product-hub__category-grid,
  .rs-product-hub__intent-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .rs-product-hub__vendor-grid {
    grid-template-columns: 1fr;
  }

  .rs-product-hub__sku-list {
    columns: 1;
  }
}

@media (max-width: 680px) {
  .rs-product-hub__stats,
  .rs-product-hub__category-grid,
  .rs-product-hub__intent-grid {
    grid-template-columns: 1fr;
  }

  .rs-product-hub__hero {
    padding: 48px 18px 42px;
  }

  .rs-product-hub__section {
    padding: 42px 18px;
  }

  .rs-product-hub__vendor-card-head,
  .rs-product-hub__final-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .rs-product-hub__directory-tools input,
  .rs-product-hub__directory-tools select {
    width: 100%;
    min-width: 0;
  }
}



.rs-product-hub__category-card,
.rs-product-hub__vendor-card,
.rs-product-hub__intent,
.rs-product-hub__table-wrap {
  background:
    linear-gradient(
      180deg,
      rgba(20,32,52,.96) 0%,
      rgba(12,20,34,.96) 100%
    );

  border:1px solid rgba(255,255,255,.08);

  box-shadow:
    0 14px 34px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.03);

  backdrop-filter: blur(4px);
}

/* headings inside cards */
.rs-product-hub__category-card h3,
.rs-product-hub__vendor-card h3,
.rs-product-hub__intent h3,
.rs-product-hub__vendor-grid h4 {
  color:#f3f7ff;
}

/* body copy */
.rs-product-hub__category-card p,
.rs-product-hub__vendor-card p,
.rs-product-hub__intent p,
.rs-product-hub__sku-list small,
.rs-product-hub__section-head p {
  color:rgba(220,230,245,.72);
}

/* subtle hover */
.rs-product-hub__category-card:hover,
.rs-product-hub__vendor-card:hover,
.rs-product-hub__intent:hover {
  border-color:rgba(127,176,255,.22);

  box-shadow:
    0 18px 40px rgba(0,0,0,.34),
    0 0 0 1px rgba(127,176,255,.06);
}

/* table */
.rs-product-hub table {
  background:transparent;
}

.rs-product-hub th {
  background:
    linear-gradient(
      180deg,
      rgba(51,107,191,.30) 0%,
      rgba(35,77,138,.24) 100%
    );

  color:#f3f7ff;

  border-bottom:1px solid rgba(255,255,255,.08);
}

.rs-product-hub td {
  color:rgba(235,242,252,.88);

  border-bottom:1px solid rgba(255,255,255,.06);
}

/* search/filter controls */
.rs-product-hub__directory-tools input,
.rs-product-hub__directory-tools select {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.04) 0%,
      rgba(255,255,255,.02) 100%
    );

  border:1px solid rgba(255,255,255,.10);

  color:#f3f7ff;
}

/* placeholder */
.rs-product-hub__directory-tools input::placeholder {
  color:rgba(220,230,245,.45);
}
