/* ==========================================================================
   CATALOG SECTION & MULTI-SELECT FILTER STYLING
   Extracted verbatim from the static site's products/index.html <style> block
   (search box, multi-select industry dropdown/popover, active-filter chips,
   catalog grid + card, pagination/load-more bar, empty state). Only loaded on
   the AI & Products template (see coserve_enqueue_assets() in functions.php).
   ========================================================================== */
.catalog-section {
  padding: 60px 0 100px 0;
  background: #FFFFFF;
}

.catalog-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.catalog-heading-wrap {
  flex: 1 1 500px;
  max-width: 650px;
}

.sh-desc-catalog {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin: 14px 0 0 0;
}

/* Right-Corner Filter & Search Controls */
.catalog-controls-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Search Box */
.catalog-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-search-box .search-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  pointer-events: none;
}

.catalog-search-box input {
  height: 44px;
  padding: 0 36px 0 40px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #071017;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  width: 260px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.catalog-search-box input:focus {
  outline: none;
  border-color: #14D7D2;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(20, 215, 210, 0.15);
  width: 290px;
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.clear-search-btn:hover {
  color: #071017;
}

/* Multi-Select Filter Button */
.multi-filter-dropdown {
  position: relative;
}

.multi-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  background: #071017;
  color: #FFFFFF;
  border: 1px solid #071017;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.multi-filter-btn:hover {
  background: #14D7D2;
  color: #071017;
  border-color: #14D7D2;
}

.multi-filter-icon {
  display: flex;
  align-items: center;
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #14D7D2;
  color: #071017;
  font-size: 0.75rem;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 2px;
}

.multi-filter-btn:hover .filter-count-badge {
  background: #071017;
  color: #FFFFFF;
}

.filter-chevron {
  transition: transform 0.2s ease;
}
.multi-filter-dropdown.open .filter-chevron {
  transform: rotate(180deg);
}

/* Popover Dropdown Panel */
.multi-filter-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 330px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  z-index: 100;
  padding: 18px 20px;
  display: none;
  animation: popoverFadeIn 0.2s ease-out forwards;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.multi-filter-dropdown.open .multi-filter-popover {
  display: block;
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 12px;
}

.popover-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #071017;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.popover-clear-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d9488;
  cursor: pointer;
  padding: 0;
}
.popover-clear-btn:hover {
  text-decoration: underline;
}

.popover-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
  user-select: none;
}

.filter-checkbox-item:hover {
  background: #F8FAFC;
}

.filter-checkbox-item input[type="checkbox"] {
  display: none;
}

.custom-chk {
  width: 18px;
  height: 18px;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-checkbox-item input:checked + .custom-chk {
  background: #14D7D2;
  border-color: #14D7D2;
}

.filter-checkbox-item input:checked + .custom-chk::after {
  content: "";
  display: block;
  width: 4px;
  height: 9px;
  border: solid #071017;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.chk-label {
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
  flex-grow: 1;
}

.chk-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 999px;
}

.popover-footer {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.popover-footer .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.84rem;
  text-align: center;
  justify-content: center;
}

/* Active Chips Status Bar */
.catalog-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 36px;
}

.active-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 28px;
}

.active-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(20, 215, 210, 0.15);
  color: #0d9488;
  border: 1px solid rgba(20, 215, 210, 0.35);
}

.chip-remove {
  background: none;
  border: none;
  font-size: 1rem;
  line-height: 1;
  color: #0d9488;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.chip-remove:hover {
  color: #071017;
}

.clear-all-chips {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 6px;
}
.clear-all-chips:hover {
  color: #071017;
}

.catalog-live-count {
  font-size: 0.88rem;
  color: #64748B;
}
.catalog-live-count strong {
  color: #071017;
}

/* Catalog Section Container Constraint */
.catalog-section .container {
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

/* Cards Grid - 3 Strictly Equal Columns */
.pb-catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1080px) {
  .pb-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .pb-catalog-grid {
    grid-template-columns: 1fr !important;
  }
  .catalog-controls-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .catalog-search-box, .catalog-search-box input {
    width: 100%;
  }
  .multi-filter-popover {
    width: calc(100vw - 40px);
    right: -10px;
  }
}

/* Card Details - Strictly Equal Sizing for All Columns */
.pb-catalog-grid > .pb-item,
.pb-catalog-grid > .catalog-card,
.catalog-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 450px !important;
  text-decoration: none !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 20px !important;
  padding: 32px 28px !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.catalog-card.is-hidden {
  display: none !important;
}

.catalog-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1) !important;
  border-color: #14D7D2 !important;
  background: #FFFFFF !important;
}

.pb-item-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}

.pb-client-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 36px !important;
  min-height: 36px !important;
  flex-shrink: 0 !important;
}

.pb-client-logo {
  height: 32px !important;
  max-height: 36px !important;
  max-width: 130px !important;
  width: auto !important;
  object-fit: contain !important;
}

.pb-badges-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  flex-wrap: wrap !important;
}

.pb-ind-pills-wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.pb-ind-pill {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #64748B !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
  display: inline-block !important;
  text-align: right !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.pb-ind-pills-wrap .pb-ind-pill {
  margin-left: 0 !important;
}

.pb-tech-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.pb-tech-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  background: #EDF2F7;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Card Bottom & Single Divider Line */
.pb-item-bottom {
  margin-top: 28px !important;
  padding-top: 20px !important;
  border-top: 1px solid #E2E8F0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.pb-metric {
  border-top: none !important;
  padding-top: 0 !important;
  margin: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #071017 !important;
}

/* Pagination / Load More Bar */
.catalog-pagination-wrap {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.catalog-progress-bar-container {
  width: 100%;
  max-width: 320px;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.catalog-progress-bar {
  height: 100%;
  background: #14D7D2;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.catalog-load-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.load-more-btn {
  background: #071017 !important;
  color: #FFFFFF !important;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  border: 1px solid #071017 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.load-more-btn:hover {
  background: #14D7D2 !important;
  color: #071017 !important;
  border-color: #14D7D2 !important;
}

.load-remaining-tag {
  font-size: 0.8rem;
  opacity: 0.8;
}

.view-all-btn {
  padding: 14px 24px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  color: #071017 !important;
  border: 1px solid #CBD5E1 !important;
  background: #FFFFFF !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.view-all-btn:hover {
  border-color: #071017 !important;
  background: #F8FAFC !important;
}

/* Empty State */
.catalog-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 20px;
  margin: 40px 0;
}

.catalog-empty-state .empty-icon {
  margin-bottom: 16px;
}
.catalog-empty-state h3 {
  font-size: 1.4rem;
  color: #071017;
  margin-bottom: 8px;
}
.catalog-empty-state p {
  color: #64748B;
  max-width: 440px;
  margin: 0 auto;
}

/* ==========================================================================
   SINGLE PRODUCT DETAIL PAGE
   Hero + five sections (Approach, How It Works, Capabilities, Where It's
   Used, Sample Questions and Answers). Heading/sub-heading layout reuses
   the site's existing .sh--split (heading left, intro right) and
   .section-header (centered) conventions, and *word* accent-italic
   headings work the same way as Partner Pages (coserve_partner_section_heading()).
   Section backgrounds alternate light/light-alt/dark like the Partner
   Page template, for visual rhythm. See single-coserve_product.php.
   ========================================================================== */

.pr-hero {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 140px 0 60px !important;
  background: radial-gradient(circle at 80% 20%, #16222C 0%, #0B131A 80%);
  color: #ffffff;
  position: relative !important;
}

@media (max-width: 768px) {
  .pr-hero {
    padding-top: 120px !important;
    padding-bottom: 40px !important;
  }
}
@media (max-width: 480px) {
  .pr-hero {
    padding-top: 105px !important;
    padding-bottom: 30px !important;
  }
}

/* Split layout: heading + CTAs left, subtitle + stats right — matches the
   .hero-split pattern used on every other interior page. */
.pr-hero-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: start;
}

.pr-hero-split-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pr-hero-split-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6px;
}

.pr-hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 20px;
}

.pr-hero-title em {
  font-family: 'Lato', sans-serif;
  font-style: italic;
  font-weight: 300;
  color: #14D7D2;
}

.pr-hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 300;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0 0 28px;
}

.pr-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pr-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pr-hero-stat-num {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: #14D7D2;
  font-family: 'Lato', sans-serif;
  line-height: 1.1;
}

.pr-hero-stat-lbl {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-top: 4px;
}

@media (max-width: 991px) {
  .pr-hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pr-hero-split-right {
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .pr-hero-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.pr-section {
  padding: 88px 0;
}

.pr-section.alt {
  background: #f8fafb;
}

.pr-section.dark {
  background: radial-gradient(circle at 80% 20%, #16222C 0%, #0B131A 80%);
  color: #ffffff;
}

.pr-section.dark .sh-title,
.pr-section.dark .sh-lede {
  color: #ffffff;
}

.pr-section.dark .sh-lede {
  color: #cbd5e1;
}

/* Approach: dual-item bullet grid (matches Partner Pages' clean-dual-grid). */
.pr-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .pr-dual-grid {
    grid-template-columns: 1fr;
  }
}

.pr-dual-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pr-dual-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14D7D2;
  margin-top: 9px;
  flex-shrink: 0;
}

.pr-dual-item h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #071017;
  margin: 0 0 6px;
}

.pr-section.dark .pr-dual-item h4 {
  color: #ffffff;
}

.pr-dual-item p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.pr-section.dark .pr-dual-item p {
  color: #cbd5e1;
}

/* How It Works / Where It's Used: optional media (image or video) shown
   as a large centered block below the bullet grid. Sized to roughly
   70-80% of the viewport width and 60-70% of the viewport height so it
   reads as a real showcase panel rather than a small inline thumbnail. */
.pr-media-frame {
  position: relative;
  width: min(78vw, 1100px);
  height: 65vh;
  min-height: 320px;
  max-height: 640px;
  margin: 40px auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: #E2E8F0;
}

.pr-section.dark .pr-media-frame {
  background: rgba(255, 255, 255, 0.06);
}

.pr-media-frame img,
.pr-media-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pr-media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .pr-media-frame {
    width: 100%;
    height: 56vw;
    min-height: 220px;
  }
}

/* Capabilities: card grid, center-aligned. */
.pr-cap-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 8px;
}

.pr-cap-card {
  flex: 1 1 260px;
  max-width: 360px;
  padding: 26px 24px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  text-align: center;
}

.pr-section.dark .pr-cap-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.pr-cap-card h4 {
  font-size: 1.04rem;
  font-weight: 700;
  color: #071017;
  margin: 0 0 8px;
}

.pr-section.dark .pr-cap-card h4 {
  color: #ffffff;
}

.pr-cap-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.pr-section.dark .pr-cap-card p {
  color: #cbd5e1;
}

/* Sample Questions and Answers: centered on the page, text left-aligned
   within each row. */
.pr-faq-list {
  max-width: 760px;
  margin: 8px auto 0;
}

.pr-faq-item {
  border-bottom: 1px solid #E2E8F0;
}

.pr-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.14rem;
  font-weight: 700;
  color: #071017;
  text-align: left;
}

.pr-section.dark .pr-faq-q {
  color: #ffffff;
}

.pr-faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.pr-faq-icon::before,
.pr-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #14D7D2;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.pr-faq-icon::before {
  width: 14px;
  height: 2px;
}

.pr-faq-icon::after {
  width: 2px;
  height: 14px;
}

.pr-faq-item[data-open="true"] .pr-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.pr-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.pr-faq-item[data-open="true"] .pr-faq-a {
  max-height: 400px;
}

.pr-faq-a p {
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
  text-align: left;
  margin: 0 0 18px;
}

.pr-section.dark .pr-faq-a p {
  color: #cbd5e1;
}

.pr-section-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
