/* ============================================================
   Product Catalog — catalog.css
   ============================================================ */

/* ── HERO ── */
.catalog-hero {
  background: linear-gradient(135deg, var(--garnet-dk) 0%, var(--garnet) 50%, #9C3D52 100%);
  padding: 140px 0 56px;
  text-align: center;
}
.catalog-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.catalog-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.catalog-search-wrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}
.catalog-search {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}
.catalog-search::placeholder { color: rgba(255,255,255,0.5); }
.catalog-search:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.18);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

.catalog-result-count {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  margin-top: 12px;
  font-weight: 500;
}

/* ── CATALOG LAYOUT ── */
.catalog-body { padding: 48px 0 80px; }

.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── SIDEBAR ── */
.catalog-sidebar {
  position: sticky;
  top: 90px;
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.filter-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
}
.filter-clear {
  background: none;
  border: none;
  color: var(--garnet);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-clear:hover { text-decoration: underline; }

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mid);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.filter-chip:hover { background: rgba(120,47,64,0.05); color: var(--dark); }
.filter-chip.active {
  background: rgba(120,47,64,0.08);
  color: var(--garnet);
  font-weight: 600;
  border-color: rgba(120,47,64,0.15);
}
.filter-chip input { display: none; }

.sidebar-toggle-btn {
  display: none;
  width: 100%;
  padding: 12px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  text-align: left;
}

/* ── TABLE ── */
.catalog-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--white);
  box-shadow: var(--shadow);
}
.catalog-table {
  width: 100%;
  border-collapse: collapse;
}
.catalog-table thead { background: var(--light-bg); }
.catalog-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  white-space: nowrap;
}
.th-name { width: 50%; }
.th-cat { width: 25%; }
.th-form { width: 15%; }
.th-action { width: 10%; text-align: right; }

.catalog-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--dark);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  vertical-align: middle;
}
.catalog-table tbody tr { transition: background var(--transition); }
.catalog-table tbody tr:hover { background: rgba(120,47,64,0.03); }
.catalog-table tbody tr:last-child td { border-bottom: none; }

.product-name-cell {
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}
.product-name-cell .highlight {
  background: rgba(206,184,136,0.35);
  border-radius: 2px;
  padding: 0 2px;
}

.cat-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.cat-glp1     { background: #E8F5E9; color: #2E7D32; }
.cat-peptides { background: #E3F2FD; color: #1565C0; }
.cat-hormones { background: #FFF3E0; color: #E65100; }
.cat-sexual   { background: #FCE4EC; color: #C62828; }
.cat-growth   { background: #EDE7F6; color: #4527A0; }
.cat-immune   { background: #E0F7FA; color: #00695C; }
.cat-hair     { background: #F3E5F5; color: #6A1B9A; }
.cat-fertility{ background: #FFF8E1; color: #F57F17; }
.cat-specialty{ background: #ECEFF1; color: #455A64; }

.form-tag {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.inquire-btn {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--garnet);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.inquire-btn:hover { background: var(--garnet-dk); transform: translateY(-1px); }

/* ── EMPTY STATE ── */
.catalog-empty {
  text-align: center;
  padding: 80px 20px;
}
.catalog-empty .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.catalog-empty h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 8px; }
.catalog-empty p { font-size: 0.9rem; color: var(--muted); }

/* ── CTA BANNER ── */
.catalog-cta {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--garnet-dk), var(--garnet));
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.catalog-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px;
  gap: 32px;
}
.catalog-cta h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--white); margin-bottom: 6px; }
.catalog-cta p { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.catalog-cta-btns { display: flex; gap: 12px; flex-shrink: 0; }

.active-link { color: var(--garnet) !important; font-weight: 700 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .catalog-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 24px;
  }
  .filter-header, .filter-list { display: none; }
  .catalog-sidebar.open .filter-header,
  .catalog-sidebar.open .filter-list { display: flex; }
  .catalog-sidebar.open .filter-list { margin-top: 12px; }
  .sidebar-toggle-btn { display: block; }

  .catalog-cta-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .catalog-cta-btns { justify-content: center; }

  .th-cat, .td-cat { display: none; }
  .th-form, .td-form { display: none; }
}

@media (max-width: 480px) {
  .catalog-table th, .catalog-table td { padding: 12px 14px; }
  .catalog-cta-btns { flex-direction: column; width: 100%; }
  .catalog-cta-btns .btn { width: 100%; justify-content: center; }
}
