/* ----------------
   Repair Supplies Page Styles – FixAndBuildd
------------------*/

.rs-hero {
  margin-top: var(--space-16);
  margin-bottom: var(--space-8);
  display: flex;
  gap: var(--space-8);
  align-items: center;
  flex-wrap: wrap;
}
.rs-hero-content {
  flex: 1 1 400px;
  text-align: center;
}
.rs-hero-image {
  flex: 1 1 250px;
  max-width: 300px;
  margin: 0 auto;
}
.rs-hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
  .rs-hero {
    flex-direction: column;
  }
}
.rs-hero-desc {
  color: var(--color-gray-500);
  font-size: var(--font-size-lg);
  max-width: 50ch;
  margin: var(--space-4) auto 0 auto;
}

.rs-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}
.rs-category {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rs-category-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-3) calc(var(--space-4) * -1);
}
.rs-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rs-category-title {
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  margin-top: 0;
}
.rs-list {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  list-style: disc inside;
  color: var(--color-gray-600);
  font-size: var(--font-size-md);
  line-height: 1.7;
  padding-left: var(--space-4);
}
.rs-button {
  margin-top: var(--space-4);
  width: max-content;
  align-self: flex-start;
}

.rs-cta {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-24);
  margin-top: var(--space-8);
}
.rs-cta-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.rs-cta-btn {
  margin-top: var(--space-4);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .rs-categories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .rs-cta {
    margin-bottom: var(--space-16);
  }
}
@media (max-width: 600px) {
  .rs-hero {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
  }
  .rs-hero-desc {
    font-size: var(--font-size-md);
  }
  .rs-cta-card {
    max-width: 98vw;
  }
  .rs-category {
    min-height: unset;
  }
  .rs-button {
    width: 100%;
    align-self: stretch;
  }
}

.rs-category:focus-within, .rs-category:focus {
  box-shadow: var(--shadow-lg);
  outline: 2px solid var(--color-primary-hover);
  outline-offset: 2px;
}
