/* APEX Parts Catalog – builds on the APEX design system (apex-home-blocks/assets/home.css). */
.apx-home .apx-ico-microchip { --apx-ico: '\f2db'; }
.apx-home .apx-ico-fan { --apx-ico: '\f863'; }
.apx-home .apx-ico-dot-circle { --apx-ico: '\f192'; }
.apx-home .apx-ico-compact-disc { --apx-ico: '\f51f'; }
.apx-home .apx-ico-flask { --apx-ico: '\f0c3'; }
.apx-home .apx-ico-thermometer { --apx-ico: '\f2c9'; }
.apx-home .apx-ico-wind { --apx-ico: '\f72e'; }
.apx-home .apx-ico-snowflake { --apx-ico: '\f2dc'; }
.apx-home .apx-ico-cogs { --apx-ico: '\f085'; }

/* Category tiles: whole card clickable */
.apx-home .apx-part-cat { position: relative; display: flex; flex-direction: column; }
.apx-home .apx-part-cat h3 a { color: var(--apx-text); text-decoration: none; }
.apx-home .apx-part-cat h3 a::before { content: ''; position: absolute; inset: 0; border-radius: var(--apx-radius); }
.apx-home .apx-part-cat h3 a:focus-visible { outline: none; }
.apx-home .apx-part-cat h3 a:focus-visible::before { outline: 3px solid var(--apx-amber); outline-offset: 2px; }
.apx-home .apx-part-cat:focus-within { border-color: var(--apx-amber); }
.apx-home .apx-part-count { margin-top: auto !important; padding-top: 14px; font-size: 14px !important; font-weight: 600; color: var(--apx-amber-text) !important; }
.apx-home .apx-part-count::after { content: ' \2192'; }

/* Facet links (OEM / platform) */
.apx-home .apx-facets { list-style: none !important; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.apx-home .apx-facets li { list-style: none !important; margin: 0; }
.apx-home .apx-facets li::marker { content: none; }
.apx-home .apx-facets a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--apx-line); border-radius: 999px; background: #fff; color: var(--apx-text); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .2s, background-color .2s; }
.apx-home .apx-facets a:hover, .apx-home .apx-facets a:focus-visible { border-color: var(--apx-amber); background: #FFF8E6; }
.apx-home .apx-facets a:focus-visible { outline: 3px solid var(--apx-amber); outline-offset: 2px; }
.apx-home .apx-facet-count { font-weight: 500; font-size: 13px; color: var(--apx-muted); }
.apx-home .apx-dark .apx-facets a { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: #fff; }
.apx-home .apx-dark .apx-facets a:hover { background: rgba(242,169,0,.1); border-color: var(--apx-amber); }
.apx-home .apx-dark .apx-facet-count { color: rgba(255,255,255,.6); }

/* Search */
.apx-home .apx-part-search { display: flex; gap: 10px; max-width: 640px; margin-top: 8px; }
.apx-home .apx-part-search input[type=search] { flex: 1; min-width: 0; min-height: 54px; padding: 14px 18px; border: 0; border-radius: 8px; font: 500 17px/1.2 var(--apx-font); color: var(--apx-text); background: #fff; }
.apx-home .apx-part-search input[type=search]:focus { outline: 3px solid var(--apx-amber); outline-offset: 2px; }
.apx-home .apx-part-search button { min-height: 54px; padding: 0 26px; border: 0; border-radius: 8px; background: var(--apx-amber); color: var(--apx-ink); font: 600 16px/1 var(--apx-font); text-transform: none; letter-spacing: 0; cursor: pointer; }
.apx-home .apx-part-search button:hover { background: var(--apx-amber-hover); }
.apx-home .apx-part-search button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Condition glossary */
.apx-home .apx-terms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.apx-home .apx-term { background: #fff; border: 1px solid var(--apx-line); border-radius: var(--apx-radius); padding: 22px; }
.apx-home .apx-term h3.wp-block-heading { font-size: 17px; margin-bottom: 6px; }
.apx-home .apx-term p { font-size: 14.5px; line-height: 1.55; color: var(--apx-muted); }

@media (max-width: 1024px) { .apx-home .apx-terms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 781px) {
	.apx-home .apx-part-search { flex-direction: column; }
	.apx-home .apx-terms { grid-template-columns: 1fr; }
}
/* Shop intro (content of the WooCommerce shop page, shown above the product grid) */
.apx-home.apx-shop-intro { margin: 0 0 36px; padding: 28px; background: var(--apx-paper); border: 1px solid var(--apx-line); border-radius: var(--apx-radius); }
.apx-home .apx-shop-lead { font-size: 17px; line-height: 1.6; color: var(--apx-muted); max-width: 820px; margin-bottom: 16px; }
.apx-home.apx-shop-intro .apx-part-search input[type=search] { border: 1px solid #CBD2DC; }
.apx-home.apx-shop-intro .apx-part-cats { margin-top: 28px; }
@media (max-width: 781px) { .apx-home.apx-shop-intro { padding: 18px; } }

/* Hide the theme's category label on product cards/pages while a product has no part category (empty category label). */
.woocommerce .products .product .product-categories:not(:has(a)), .woocommerce div.product .cats-link:not(:has(a)), .cats-link:not(:has(a)), .product-categories:not(:has(a)), .posted_in:not(:has(a)) { display: none !important; }
@media (max-width: 767px) { .woocommerce nav.woocommerce-pagination { margin-left: 0 !important; margin-right: 0 !important; max-width: 100%; } }

/* Long page lists (28 pages) must wrap instead of running off narrow screens. */
.woocommerce nav.woocommerce-pagination ul { display: flex !important; flex-wrap: wrap !important; justify-content: center; gap: 6px; white-space: normal !important; max-width: 100%; }
.woocommerce nav.woocommerce-pagination ul li { margin: 0 !important; float: none !important; }

/* Spare parts landing page */
.apx-home.apx-parts-landing .apx-hero .apx-part-search { margin: 28px 0 22px; }
.apx-home .apx-terms--3 { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.apx-home .apx-term h3.wp-block-heading a { color: var(--apx-text); text-decoration: none; }
.apx-home .apx-term h3.wp-block-heading a::after { content: ' \2192'; color: var(--apx-amber-text); }
.apx-home .apx-term h3.wp-block-heading a:hover { color: var(--apx-amber-text); }
.apx-home .apx-parts-equipment .apx-grid-2 { gap: 40px; margin-top: 8px; }
.apx-home .apx-parts-equipment h3.wp-block-heading { font-size: 18px; margin-bottom: 14px; }
.apx-home .apx-parts-why .apx-more { margin-top: 28px; }
@media (max-width: 1024px) { .apx-home .apx-terms--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 781px) { .apx-home .apx-terms--3 { grid-template-columns: 1fr; } .apx-home .apx-parts-equipment .apx-grid-2 { gap: 28px; } }

/* Brand filter: 147 brands, so the sidebar list scrolls instead of running off the page. */
#secondary .apx-brand-facets, .sidebar-inner .apx-brand-facets { max-height: 320px; overflow-y: auto; padding-right: 6px; }
#secondary .apx-brand-facets a, .sidebar-inner .apx-brand-facets a { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.apx-brand-facets::-webkit-scrollbar { width: 8px; }
.apx-brand-facets::-webkit-scrollbar-thumb { background: #CBD2DC; border-radius: 4px; }


/* Mobile shop layout 2026-09-21 ------------------------------------------------------------ */
/* Kadence reveals the loop button on hover and parks it 32px below the card, where the card clips it. */
.woocommerce ul.products li.product .product-action-wrap { position: static; opacity: 1; visibility: visible; transform: none; margin-top: 12px; }
.woocommerce ul.products li.product .product-action-wrap .button { display: flex; width: 100%; justify-content: center; text-align: center; }
/* Long eBay-style titles: three lines in the grid; the full title is on the product page. */
.woocommerce ul.products li.product .woocommerce-loop-product__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 781px) {
  .apx-home .apx-part-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .apx-home .apx-part-cats .apx-part-cat { padding: 14px 12px; }
  .apx-home .apx-part-cats .apx-part-cat::before { width: 34px; height: 34px; margin-bottom: 10px; font-size: 15px; border-radius: 8px; }
  .apx-home .apx-part-cats .apx-part-cat h3 { font-size: 15px; line-height: 1.3; margin: 0 0 4px; }
  .apx-home .apx-part-cats .apx-part-cat p:not(.apx-part-count) { display: none; }
  .apx-home .apx-part-cats .apx-part-count { margin: auto 0 0; font-size: 13px; }
  .apx-home.apx-shop-intro .apx-part-cats { margin-top: 20px; }
  .apx-home .apx-shop-lead { font-size: 15px; line-height: 1.55; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .woocommerce ul.products li.product .product-details { padding: 10px 10px 12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; line-height: 1.35; }
  .woocommerce ul.products li.product .product-action-wrap .button { font-size: 13px; padding: 9px 6px; }
  .single-product .kadence-breadcrumbs, .single-product .woocommerce-breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .single-product .product_title { font-size: 21px; line-height: 1.3; }
  .single-product .woocommerce-product-gallery img { max-height: 260px; width: auto; margin: 0 auto; object-fit: contain; }
}
/* Titles: clip exactly after three lines; button label in normal case so it fits the card. */
.woocommerce ul.products li.product .woocommerce-loop-product__title { line-height: 1.35; padding-bottom: 0; margin-bottom: 0; }
.woocommerce ul.products li.product .product-action-wrap .button { text-transform: none; letter-spacing: 0; font-weight: 600; gap: 6px; }
@media (max-width: 781px) {
  .woocommerce ul.products li.product .product-action-wrap { padding: 0 10px 12px; }
  .woocommerce ul.products li.product .product-action-wrap .button { white-space: nowrap; padding: 10px 6px; }
  .woocommerce ul.products li.product .product-action-wrap .button .kadence-svg-iconset { display: none; }
}
/* Loop: outlined quote button so it reads as a button, not a text link. */
.woocommerce ul.products li.product .product-action-wrap .button { box-sizing: border-box; width: 100%; justify-content: center; border: 1.5px solid #F2A900; border-radius: 8px; background: #fff; color: #0A1628; }
.woocommerce ul.products li.product .product-action-wrap .button:hover, .woocommerce ul.products li.product .product-action-wrap .button:focus-visible { background: #F2A900; color: #0A1628; }

/* Shop landing hero ------------------------------------------------------------------ */
.apx-shop-landing .product-archive-hero-section { display: none; }
.apx-home.apx-shop-hero .apx-hero { min-height: 0; display: block; padding: 64px 24px 56px; background: radial-gradient(120% 90% at 0% 0%, #1B3358 0%, #0A1628 60%); }
.apx-home.apx-shop-hero .apx-hero::before { display: none; }
.apx-home.apx-shop-hero .apx-inner { max-width: 1200px; margin: 0 auto; }
.apx-home.apx-shop-hero .apx-h1 { font-size: clamp(30px, 3.4vw, 46px); margin: 0 0 14px; color: #fff; }
.apx-home.apx-shop-hero .apx-shop-intro { background: none; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; max-width: none; }
.apx-home.apx-shop-hero .apx-shop-lead { color: #C7D0DC; font-size: 17px; line-height: 1.6; max-width: 760px; margin: 0 0 22px; }
.apx-home.apx-shop-hero .apx-part-search { max-width: 640px; }
.apx-home.apx-shop-hero .apx-part-search input[type=search], .apx-home.apx-shop-hero .apx-part-search input[type=text] { background: #fff; }
.apx-home.apx-shop-hero .apx-part-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.apx-home.apx-shop-hero .apx-part-cats .apx-part-cat { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: none; transform: none; transition: border-color .2s, background-color .2s; }
.apx-home.apx-shop-hero .apx-part-cats .apx-part-cat:hover, .apx-home.apx-shop-hero .apx-part-cats .apx-part-cat:focus-within { border-color: #F2A900; background: rgba(242,169,0,.10); }
.apx-home.apx-shop-hero .apx-part-cats .apx-part-cat::before { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; font-size: 16px; border-radius: 10px; background: rgba(242,169,0,.16); color: #F2A900; }
.apx-home.apx-shop-hero .apx-part-cats .apx-part-cat h3 { grid-column: 2; margin: 0; font-size: 15px; line-height: 1.3; }
.apx-home.apx-shop-hero .apx-part-cats .apx-part-cat h3 a { color: #fff; }
.apx-home.apx-shop-hero .apx-part-cats .apx-part-cat p:not(.apx-part-count) { display: none; }
.apx-home.apx-shop-hero .apx-part-cats .apx-part-count { grid-column: 2; margin: 2px 0 0; font-size: 13px; color: #F2A900; }
@media (max-width: 1024px) { .apx-home.apx-shop-hero .apx-part-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 781px) { .apx-home.apx-shop-hero .apx-hero { padding: 40px 16px 36px; } .apx-home.apx-shop-hero .apx-shop-lead { font-size: 15px; } .apx-home.apx-shop-hero .apx-part-cats { gap: 8px; margin-top: 24px; } .apx-home.apx-shop-hero .apx-part-cats .apx-part-cat { grid-template-columns: 32px 1fr; column-gap: 10px; padding: 12px; } .apx-home.apx-shop-hero .apx-part-cats .apx-part-cat::before { width: 32px; height: 32px; font-size: 13px; } .apx-home.apx-shop-hero .apx-part-cats .apx-part-cat h3 { font-size: 13px; } }

/* Shop hero tiles on phones: compact text tiles (no icon). */
@media (max-width: 781px) {
  .apx-home.apx-shop-hero .apx-part-cats { gap: 8px; margin-top: 20px; }
  .apx-home.apx-shop-hero .apx-part-cats .apx-part-cat { display: block; padding: 9px 10px 10px; border-radius: 10px; }
  .apx-home.apx-shop-hero .apx-part-cats .apx-part-cat::before { display: none; }
  .apx-home.apx-shop-hero .apx-part-cats .apx-part-cat h3 { font-size: 13px; line-height: 1.25; margin: 0; }
  .apx-home.apx-shop-hero .apx-part-cats .apx-part-cat .apx-part-count { display: block; margin: 3px 0 0; padding: 0; font-size: 12px; line-height: 1.3; }
}

/* Spare parts landing: category tiles inside the hero (same design as the shop hero). */
.apx-home .apx-hero.apx-hero-cats .apx-part-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 16px; background: rgba(10,22,40,.55); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: none; transform: none; backdrop-filter: blur(6px); transition: border-color .2s, background-color .2s; }
.apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat:hover, .apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat:focus-within { border-color: #F2A900; background: rgba(242,169,0,.14); }
.apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat::before { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; font-size: 16px; border-radius: 10px; background: rgba(242,169,0,.16); color: #F2A900; }
.apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat h3 { grid-column: 2; margin: 0; font-size: 15px; line-height: 1.3; }
.apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat h3 a { color: #fff; }
.apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat p:not(.apx-part-count) { display: none; }
.apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat .apx-part-count { grid-column: 2; margin: 2px 0 0; padding: 0; font-size: 13px; color: #F2A900; }
@media (max-width: 1024px) { .apx-home .apx-hero.apx-hero-cats .apx-part-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 781px) { .apx-home .apx-hero.apx-hero-cats .apx-part-cats { gap: 8px; margin-top: 24px; } .apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat { display: block; padding: 9px 10px 10px; border-radius: 10px; } .apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat::before { display: none; } .apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat h3 { font-size: 13px; line-height: 1.25; } .apx-home .apx-hero.apx-hero-cats .apx-part-cats .apx-part-cat .apx-part-count { display: block; margin: 3px 0 0; font-size: 12px; line-height: 1.3; } }
