/* ============================================================
   catalog.css — product catalog + detail page styles.
   Loaded after styles.css on catalog pages only.
   ============================================================ */

/* ---------- category filter bar ---------- */
.cat-filter {
  background: #003087;
  padding: 0;
}
.cat-filter .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 20px;
}
.cat-filter a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.35);
}
.cat-filter a:hover,
.cat-filter a.active {
  background: #fff;
  color: #003087;
  border-color: #fff;
}
.cat-filter .cat-count { color: #cfe0ff; font-weight: 400; font-size: 12px; margin-left: 3px; }
.cat-filter a:hover .cat-count,
.cat-filter a.active .cat-count { color: #5a78b8; }

/* lift-chair category row (sits above the type bar) */
.cat-filter.chair-cats { background: #0b4bb0; }
.cat-filter .chair-cats-label {
  align-self: center;
  color: #cfe0ff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-right: 4px;
}

/* ---------- page heading ---------- */
.catalog-head {
  padding: 34px 20px 10px;
  text-align: center;
}
.catalog-head h1 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: #003087;
  margin: 0 0 8px;
}
.catalog-head p {
  color: #555;
  margin: 0;
  font-size: 16px;
}

/* ---------- product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  padding: 24px 20px 48px;
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  display: block;
}
.product-card .card-body {
  padding: 12px 14px 14px;
}
.product-card h2 {
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 6px;
  color: #111;
}
.product-card .card-price {
  font-weight: 700;
  color: #003087;
  font-size: 15px;
}
.product-card .card-call {
  color: #666;
  font-size: 13px;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  padding: 18px 20px 0;
  font-size: 14px;
  color: #666;
}
.breadcrumb a {
  color: #003087;
  text-decoration: none;
}

/* ---------- product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px 20px 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
}

.product-gallery .main-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #f4f4f4;
  display: block;
}
.product-gallery .thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.product-gallery .thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
}

.product-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: #003087;
  margin: 0 0 6px;
  line-height: 1.2;
}
.product-info .price {
  font-size: 22px;
  font-weight: 800;
  color: #003087;
  margin: 10px 0;
}
.product-info .call-for-price {
  font-size: 15px;
  color: #666;
}
.product-desc {
  color: #333;
  line-height: 1.6;
  margin: 12px 0;
}
.product-desc p { margin: 0 0 10px; }

.cta-row {
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-call {
  display: inline-block;
  background: #003087;
  color: #fff;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-quote {
  display: inline-block;
  background: #fff;
  color: #003087;
  border: 2px solid #003087;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
}

/* specs table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.spec-table th {
  width: 40%;
  color: #003087;
  font-weight: 600;
  font-size: 14px;
}
.spec-table td { font-size: 14px; color: #333; }

/* features list */
.feature-list {
  margin: 12px 0;
  padding-left: 20px;
}
.feature-list li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* options */
.option-group {
  margin: 14px 0;
  border-top: 1px solid #eee;
  padding-top: 12px;
}
.option-group h3 {
  font-size: 15px;
  color: #003087;
  margin: 0 0 8px;
}
.option-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.option-group li {
  font-size: 14px;
  color: #444;
  padding: 4px 0;
}
.option-group .opt-price {
  color: #003087;
  font-weight: 600;
}

/* documents */
.doc-list { margin: 16px 0; }
.doc-list a {
  display: inline-block;
  margin: 0 12px 8px 0;
  color: #003087;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #003087;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.doc-list a:hover { background: #003087; color: #fff; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #003087;
  margin: 28px 0 8px;
}

/* discontinued product banner */
.discontinued-banner {
  background: #fff7e6;
  border: 1px solid #e6c97a;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 15px;
  color: #5a4a1a;
  line-height: 1.5;
}
.discontinued-banner strong { display: block; margin-bottom: 4px; }
.discontinued-banner a { color: #003087; font-weight: 700; }

/* homepage "shop our products" section */
.home-products { padding: 40px 0 48px; background: #fafafa; }
.home-products .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.home-products-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: #003087;
  text-align: center;
  margin: 0 0 6px;
}
.home-products-sub { text-align: center; color: #555; margin: 0 0 20px; }
.home-products-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}
.home-products-types a {
  display: inline-block;
  color: #003087;
  font-weight: 600;
  font-size: 14px;
  padding: 7px 16px;
  border: 1px solid #003087;
  border-radius: 20px;
  text-decoration: none;
}
.home-products-types a:hover { background: #003087; color: #fff; }
.home-products-types .cat-count {
  color: #888;
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}
.home-products-types a:hover .cat-count { color: #cfe0ff; }
.home-products-cta { text-align: center; margin-top: 22px; }
.btn-view-all {
  display: inline-block;
  background: #003087;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-view-all:hover { background: #00266b; }
