/* ==========================================================================
   Carter CAT Feed — Equipment catalog (archive) and Product Detail Page (PDP)
   Uses theme variables from styles.css — no local :root overrides.
   ========================================================================== */

.cf-wrap { max-width: var(--container-max); margin: 0 auto;}
.cf-wrap a { text-decoration: none; }

/* ── Catalog header ──────────────────────────────────────────────────────── */
.cf-cat-head { padding: 36px 0 22px; border-bottom: 1px solid var(--border-light); }
.cf-breadcrumb { font-size: .8rem; color: #888; margin-bottom: 12px; }
.cf-breadcrumb a { color: #888; }
.cf-cat-head h1 { font-size: 2rem; color: var(--charcoal); margin: 0 0 8px; line-height: 1.2; }
.cf-cat-head p { color: var(--body-text); max-width: 760px; line-height: 1.7; margin: 0; }

/* ── Catalog body (filters + grid) ──────────────────────────────────────── */
.cf-cat-body { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; padding: 26px 0 64px; }
.cf-filters { border: 1px solid var(--border-light); padding: 18px 16px; position: sticky; top: 24px; }
.cf-filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.cf-filters-head span { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #888; }
.cf-fgroup { margin-bottom: 18px; border-top: 1px solid #eee; padding-top: 14px; }
.cf-fgroup:first-child { border-top: none; padding-top: 0; }
.cf-fgroup h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: #888; margin: 0 0 10px; }
.cf-fcheck { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: #555; padding: 3px 0; cursor: pointer; }
.cf-fcheck input { accent-color: var(--gold); }
.cf-fcheck .cf-ct { margin-left: auto; font-size: .8rem; color: #aaa; }
.cf-clear-link { font-size: .82rem; font-weight: 700; color: var(--gold); text-decoration: none; }
.cf-clear-link:hover { text-decoration: underline; }

/* ── Result bar + sort ── */
.cf-result-meta { font-size: .9rem; color: #666; margin-bottom: 14px; }
.cf-result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cf-result-bar .cf-result-meta { margin: 0; }
.cf-sort { border: 1px solid #ddd; padding: 9px 14px; font-size: .85rem; color: #444; background: #fff; font-family: inherit; cursor: pointer; }
.cf-sort:hover { border-color: var(--gold); }

/* ── Filter keyword search ── */
.cf-search-wrap { margin-bottom: 4px; }
.cf-search { width: 100%; border: 1px solid #ddd; padding: 9px 12px; font-size: .85rem; font-family: inherit; box-sizing: border-box; }

/* ── Clear-all button ── */
.cf-clear { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 7px 12px; border: 1px solid #e0ddd4; background: #faf9f6; font-size: .82rem; font-weight: 700; color: var(--charcoal); text-decoration: none; transition: border-color .12s, background .12s; }
.cf-clear:hover { border-color: var(--gold); background: #fffdf2; }
.cf-clear-x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: var(--charcoal); font-size: .85rem; line-height: 1; }

/* ── Product card grid ── */
.cf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cf-card { border: 1px solid var(--border-light); overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.cf-card:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.cf-card-img { height: 150px; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-light); overflow: hidden; }
.cf-card-img img { width: 100%; height: 100%; object-fit: contain; }
.cf-card-img .cf-noimg { font-size: .75rem; color: #aaa; font-style: italic; }
.cf-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.cf-card-fam { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #999; margin-bottom: 5px; }
.cf-card-name { font-size: 1rem; font-weight: 700; color: var(--charcoal); line-height: 1.3; margin-bottom: 6px; }
.cf-card-spec { font-size: .8rem; color: #666; line-height: 1.5; margin-bottom: 12px; flex: 1; }
.cf-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: .8125rem; font-weight: 700; color: var(--eyebrow-color); transition: color .2s ease, gap .2s ease; text-transform: capitalize;}
.cf-card:hover .cf-card-link,
.cf-card-link:hover { color: var(--gold); gap: 10px; }
.cf-empty { grid-column: 1/-1; text-align: center; padding: 48px; color: #888; }

/* ── Registered mark ── */
.cf-reg { font-size: .62em; vertical-align: .35em; font-weight: inherit; line-height: 0; margin-left: 1px; }

/* ── Pagination ── */
.cf-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; align-items: center; }
.cf-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 13px; border: 1px solid #ddd; background: #fff; color: var(--charcoal); font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .12s, background .12s; }
.cf-pagination a.page-numbers:hover { border-color: var(--gold); background: #fffdf2; }
.cf-pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--charcoal); font-weight: 700; }
.cf-pagination .page-numbers.dots { border: none; background: transparent; min-width: auto; padding: 0 4px; color: #999; }
.cf-pagination .prev, .cf-pagination .next { padding: 0 16px; color: var(--gold); }

/* ── PDP breadcrumb + hero ────────────────────────────────────────────────── */
.cf-pdp-bc { background: #fff; border-bottom: 1px solid var(--border-light); padding: 14px 0; font-size: .8rem; color: #888; }
.cf-pdp-bc a { color: #888; }
.cf-pdp-hero { padding: 32px 0 40px; }
.cf-pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }

/* ── Gallery ── */
.cf-gallery-main { background: #fff; border: 1px solid var(--border-light); height: 360px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px; }
.cf-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.cf-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-thumb { width: 72px; height: 60px; border: 1px solid var(--border-light); overflow: hidden; cursor: pointer; background: #fff; }
.cf-thumb.active { border-color: var(--gold); border-width: 2px; }
.cf-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ── PDP info panel ── */
.cf-pdp-fam { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.cf-pdp-hero h1 { font-size: 2rem; color: var(--charcoal); line-height: 1.15; margin: 0 0 14px; }
.cf-pdp-desc { font-size: 1rem; color: #555; line-height: 1.7; margin-bottom: 18px; }
.cf-quickspecs { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.cf-quickspecs li { font-size: .875rem; color: #444; display: flex; gap: 8px; }
.cf-quickspecs .cf-qsl { color: #999; min-width: 110px; }
.cf-cta-block { border: 1px solid var(--border-light); padding: 20px 22px; background: #faf9f6; }
.cf-btn { display: inline-block; background: var(--gold); color: var(--charcoal); font-weight: 700; padding: 11px 18px; font-size: .9rem; }
.cf-cta-row { margin-top: 12px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cf-cta-row a { font-size: .9rem; color: var(--gold); font-weight: 700; }
.cf-phone { color: var(--charcoal) !important; }

/* ── Specs section + tabs ────────────────────────────────────────────────── */
.cf-specs { background: #f7f6f3; border-top: 1px solid var(--border-light); padding: 44px 0; }
.cf-tabs { display: flex; gap: 0; border-bottom: 1px solid #ddd; flex-wrap: wrap; }
.cf-tabs .cf-tab { padding: 14px 24px; font-size: .95rem; color: #666; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.cf-tabs .cf-tab.active { color: var(--charcoal); font-weight: 700; border-bottom-color: var(--gold); background: #fff; }
.cf-panel { display: none; background: #fff; border: 1px solid #ddd; border-top: none; padding: 26px 28px; }
.cf-panel.active { display: block; }
.cf-toggle-row { text-align: right; margin-bottom: 16px; }
.cf-unit { display: inline-flex; border: 1px solid #ddd; overflow: hidden; }
.cf-unit button { padding: 6px 16px; font-size: .82rem; background: #fff; border: none; cursor: pointer; color: #666; }
.cf-unit button.active { background: var(--gold); color: var(--charcoal); font-weight: 700; }
.cf-spec-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.cf-spec-table caption { text-align: left; font-size: 1rem; font-weight: 700; color: var(--charcoal); padding: 18px 0 10px; border-top: 1px solid #eee; }
.cf-spec-table:first-of-type caption { border-top: none; padding-top: 0; }
.cf-spec-table th, .cf-spec-table td { text-align: left; padding: 9px 12px; font-size: .875rem; border-bottom: 1px solid #f0f0f0; }
.cf-spec-table th { color: #888; font-weight: 500; width: 45%; }
.cf-spec-table td { color: var(--charcoal); }
.cf-equip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.cf-equip h4 { font-size: .95rem; color: var(--charcoal); margin: 0 0 8px; }
.cf-equip ul { list-style: none; padding: 0; margin: 0; }
.cf-equip li { font-size: .85rem; color: #555; padding: 4px 0 4px 18px; position: relative; }
.cf-equip li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.cf-docs { list-style: none; padding: 0; margin: 0; }
.cf-doc { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f0f0f0; }
.cf-doc .cf-doc-name { font-size: .9rem; font-weight: 600; color: var(--charcoal); }
.cf-doc .cf-doc-meta { font-size: .78rem; color: #999; }
.cf-doc a { margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--gold); }

/* ── Specialized applications (Electric Power) ───────────────────────────── */
.cf-spec { background: #f7f6f3; border-bottom: 1px solid var(--border-light); padding: 24px 0; }
.cf-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; display: inline-block; }
.cf-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-feat { background: #fff; border: 1px solid #e2e0da; padding: 16px 20px; display: flex; flex-direction: column; transition: border-color .2s ease, box-shadow .2s ease; }
.cf-feat h3 { font-size: 1rem; color: var(--charcoal); margin: 0 0 6px; }
.cf-feat p { font-size: .9rem; color: #555; line-height: 1.6; margin: 0 0 10px; flex: 1; }
.cf-feat:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.cf-feat-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: .875rem; font-weight: 700; color: var(--eyebrow-color); text-decoration: none; transition: color .2s ease, gap .2s ease; }
.cf-feat:hover .cf-feat-link,
.cf-feat-link:hover { color: var(--gold); gap: 10px; }

/* ── Subcategory tab bar ─────────────────────────────────────────────────── */
.cf-subcat { background: #fff; padding: 18px 0 0; }
.cf-subcat-row { display: flex; gap: 0; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cf-subcat-row .cf-tab { flex: 1 1 0; text-align: center; padding: 15px 20px; font-size: .95rem; font-weight: 700; color: #fff; background: #6e6e6e; white-space: nowrap; text-decoration: none; border-right: 1px solid rgba(255,255,255,.18); transition: background .12s; }
.cf-subcat-row .cf-tab:last-child { border-right: none; }
.cf-subcat-row .cf-tab:hover:not(.active) { background: #5c5c5c; color: #fff; }
.cf-subcat-row .cf-tab.active { background: var(--gold); color: var(--charcoal); }

/* ── "Working from a spec?" tip band ────────────────────────────────────── */
.cf-tip-band { background: transparent; border-top: none; padding: 8px 0 56px; }
.cf-tip-band .cf-wrap { max-width: 1180px; margin: 0 auto; background: none; border: none; padding: 0 24px; text-align: left; }
.cf-tip { max-width: 860px; background: #fff8e1; border: 1px solid #f0e6c0; border-left: 4px solid var(--gold); padding: 24px 28px; }
.cf-tip-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.cf-tip-band p { font-size: .95rem; color: #4a3b00; line-height: 1.6; margin: 0 0 14px; max-width: 720px; }
.cf-tip-link { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--eyebrow-color); text-decoration: none; transition: color .2s ease, gap .2s ease; }
.cf-tip-link:hover { color: var(--gold); gap: 10px; }

/* ── Equipment Landing page (template-equipment.php) ────────────────────────── */
.eqp-section { padding: var(--section-pad) 0; border-top: 1px solid var(--border-light); }
.eqp-section.tint { background: #f7f6f3; }
.eqp-intro { font-size: 1rem; color: var(--body-text); line-height: 1.7; max-width: 700px; margin: 0 0 26px; }

.eqp-opener { background: #fff; padding: 52px 0 40px; border-bottom: 1px solid var(--border-light); }
.eqp-opener h1 { color: var(--charcoal); line-height: 1.2; margin: 0 0 14px; max-width: 760px; }
.eqp-opener p { color: var(--body-text); line-height: 1.7; max-width: 720px; margin: 0; }
.eqp-reg { font-size: .62em; vertical-align: .35em; line-height: 0; margin-left: 1px; }

.eqp-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eqp-card { border: 1px solid var(--border-light); overflow: hidden; background: #fff; display: flex; flex-direction: column; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.eqp-card:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.eqp-card-img { height: 150px; background: #ece9e3; display: flex; align-items: center; justify-content: center; color: #aaa; font-style: italic; border-bottom: 1px solid var(--border-light); overflow: hidden; }
.eqp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.eqp-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.eqp-card-body h3 { font-size: 1.2rem; color: var(--charcoal); margin-bottom: 8px; }
.eqp-card-body p { font-size: .9rem; color: var(--body-text); line-height: 1.6; margin-bottom: 16px; flex: 1; }

.eqp-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.eqp-tile { border: 1px solid var(--border-light); padding: 16px; background: #fff; text-decoration: none; display: flex; flex-direction: column; transition: border-color .2s ease, box-shadow .2s ease; }
.eqp-tile:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.eqp-tile-name { font-size: .95rem; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; line-height: 1.3; }
.eqp-tile-note { font-size: .78rem; color: #888; margin-bottom: 10px; }
.eqp-tile-note strong { color: var(--charcoal); }

.eqp-cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eqp-acq { border: 1px solid var(--border-light); background: #fff; padding: 24px 26px; display: flex; flex-direction: column; transition: border-color .2s ease, box-shadow .2s ease; }
.eqp-acq.emphasis { border: 2px solid var(--gold); }
.eqp-acq:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.eqp-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color:var(--eyebrow-color); margin-bottom: 12px; align-self: flex-start; }
.eqp-acq h3 { font-size: 1.2rem; color: var(--charcoal); margin-bottom: 8px; }
.eqp-acq p { font-size: .9rem; color: var(--body-text); line-height: 1.6; margin-bottom: 16px; flex: 1; }

.eqp-card-link, .eqp-acq-link { font-size: .875rem; }
.eqp-tile-link { font-size: .8rem; }
.eqp-card-link, .eqp-tile-link, .eqp-acq-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 700; color: var(--eyebrow-color); transition: color .2s ease, gap .2s ease; }
.eqp-card:hover .eqp-card-link, .eqp-card-link:hover,
.eqp-tile:hover .eqp-tile-link, .eqp-tile-link:hover,
.eqp-acq:hover .eqp-acq-link, .eqp-acq-link:hover { color: var(--gold); gap: 10px; }

.eqp-cta { background: var(--charcoal); padding: 56px 0; }
.eqp-cta h2 { color: #fff; margin-bottom: 12px; }
.eqp-cta p { color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.7; margin-bottom: 24px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cf-cat-body { grid-template-columns: 1fr; }
  .cf-filters { position: static; }
  .cf-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-pdp-grid, .cf-equip-grid, .cf-quickspecs, .cf-spec-grid { grid-template-columns: 1fr; }
  .eqp-cards-3, .eqp-cards-2 { grid-template-columns: 1fr; }
  .eqp-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .cf-subcat-row { overflow-x: auto; }
  .cf-subcat-row .cf-tab { flex: 0 0 auto; }
}
@media (max-width: 560px) {
  .cf-grid { grid-template-columns: 1fr; }
}
/*equipment page */
.prod-cat-card .app-card-body {
    padding: 18px 20px 22px;
}
.prod-cat-card .app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.prod-cat-card .app-card {
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
}
.prod-cat-card .app-card-image {
    width: 100%;
    min-width: 0;
    height: 180px;
    flex: 0 0 180px;
}