/**
 * Products archive — chip filter + card grid.
 * Rendered by [pl_products_archive] (inc/products.php) into WP Page 19.
 * Scoped under .pl-pc. Square corners, spectrum teal, Cabin (inherited).
 */

.pl-pc { --pl-teal: #40A3A1; --pl-teal-600: #349291; --pl-ember-600: #b85d2a;
  --pl-ink: #1a1a1a; --pl-body: #4a4a48; --pl-muted: #616160;
  --pl-line: #e5e5e3; --pl-bone: #f5f2ea; }

/* Parent Elementor container is already boxed at 1280px; use a 10px inset so the
   content edge lines up with the header logo/button (which sit 10px inside 1280). */
.pl-pc-container { max-width: 1280px; margin: 0 auto; padding: 0 10px; }
/* Below 1328px the header gains its 24px section padding (logo sits at 34px);
   match it so the grid stays aligned with the logo/button on tablet + mobile. */
@media (max-width: 1328px) { .pl-pc-container { padding: 0 34px; } }

/* ---- Section header (eyebrow + heading), mirrors the Resources block ---- */
.pl-pc-head { padding: 52px 0 0; }
.pl-pc-head-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--pl-teal); line-height: 1.4;
}
.pl-pc-head-title {
  font-size: 36px; font-weight: 600; line-height: 1.1; color: var(--pl-ink);
  margin: 12px 0 0;
}
@media (max-width: 600px) { .pl-pc-head-title { font-size: 28px; } }

/* ---- Chip filter row (clean, static; no band) ---- */
.pl-pc-filters {
  padding: 20px 0 0;
}
.pl-pc-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.pl-pc-chip {
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 10px 18px; border: 1px solid var(--pl-line);
  background: #ffffff; color: var(--pl-ink);
  cursor: pointer; border-radius: 0;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
/* Link-mode chips (category landing pages) must box identically to the buttons. */
a.pl-pc-chip, span.pl-pc-chip {
  display: inline-flex; align-items: center; text-decoration: none;
}
span.pl-pc-chip { cursor: default; }
.pl-pc-chip:hover, .pl-pc-chip:focus-visible {
  background: #ffffff; color: var(--pl-teal); border-color: var(--pl-teal); outline: none;
}
.pl-pc-chip.is-active,
.pl-pc-chip.is-active:hover,
.pl-pc-chip.is-active:focus-visible {
  background: var(--pl-teal); border-color: var(--pl-teal); color: #ffffff;
}

/* ---- Grid ---- */
.pl-pc-grid-section { padding: 28px 0 72px; }
.pl-pc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1024px) { .pl-pc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pl-pc-grid { grid-template-columns: 1fr; } }

/* ---- Card ---- */
.pl-pc-card {
  display: flex; flex-direction: column;
  background: #ffffff; border: 1px solid var(--pl-line); border-radius: 0;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.pl-pc-card:hover {
  border-color: var(--pl-teal);
  box-shadow: 0 14px 30px rgba(26,26,26,0.10);
}
.pl-pc-card.is-hidden { display: none !important; }

.pl-pc-card-media {
  aspect-ratio: 4 / 3; background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pl-pc-card-media img {
  width: 100%; height: 100%; display: block;
  transition: transform .6s ease;
}
.pl-pc-fit-contain img { object-fit: contain; padding: 22px; }
.pl-pc-fit-cover img   { object-fit: cover; }
.pl-pc-card:hover .pl-pc-card-media img { transform: scale(1.05); }

.pl-pc-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.pl-pc-card-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--pl-teal); line-height: 1.4;
}
.pl-pc-card-name {
  font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--pl-ink);
  margin: 4px 0 0;
}
.pl-pc-card-sub { font-size: 14px; line-height: 1.5; color: var(--pl-body); margin: 8px 0 0; }
.pl-pc-card-spec { font-size: 12px; line-height: 1.5; color: var(--pl-muted); margin: 10px 0 0; }
/* margin-top:auto pushes the CTA to the card bottom so rows align regardless of copy length */
.pl-pc-card-cta {
  margin-top: auto; padding-top: 14px;
  font-size: 14px; font-weight: 600; color: var(--pl-teal);
  transition: color .3s ease;
}
.pl-pc-card:hover .pl-pc-card-cta { color: var(--pl-teal-600); }

/* ---- Empty state ---- */
.pl-pc-empty { text-align: center; padding: 48px 0; }
.pl-pc-empty-title { font-size: 18px; font-weight: 600; color: var(--pl-ink); margin: 0 0 6px; }
.pl-pc-empty-sub { font-size: 15px; color: var(--pl-muted); margin: 0; }
.pl-pc-empty-sub a { color: var(--pl-teal); }
