/* Consolidated fixes from the desktop/mobile visual audit. */

/* Let the terminal-case and glass details separate from the lightning without
   blurring, washing out, or changing the underlying approved artwork. */
.pg-page-home .pgd-hero-visual::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 31% 43% at 26% 67%, rgba(69, 171, 255, .22) 0%, rgba(29, 115, 202, .12) 42%, transparent 100%);
  mix-blend-mode: screen;
}
.pg-page-home .pgm-hero-art {
  background-position: 48% center !important;
  isolation: isolate;
}
.pg-page-home .pgm-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 43% 36% at 28% 66%, rgba(69, 171, 255, .22) 0%, rgba(29, 115, 202, .11) 48%, transparent 100%);
  mix-blend-mode: screen;
}

/* Keep the six desktop category cards equal: a true three-column, two-row grid. */
@media (min-width: 1024px) {
  .pg-page-home .pgd-products#products {
    height: auto !important;
    min-height: 0 !important;
    padding: 24px 33px 30px !important;
    overflow: visible !important;
  }
  .pg-page-home .pgd-products#products .pgd-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    gap: 12px !important;
  }
  .pg-page-home .pgd-products#products .pgd-product-card {
    grid-column: auto !important;
    height: 150px !important;
    min-height: 150px !important;
  }
  .pg-page-home .pgd-products#products .pgd-product-card > img,
  .pg-page-home .pgd-products#products .pgd-product-media-pair {
    height: 104px !important;
    min-height: 104px !important;
    flex: 0 0 104px !important;
  }
  .pg-page-home .pgd-products#products .pgd-product-category-label {
    height: 46px !important;
    min-height: 46px;
    padding-inline: 12px;
  }
}
.pg-page-home .pgd-product-card-cases > img,
.pg-page-home .pgd-product-card-charging > img {
  object-fit: contain !important;
  padding: 4px;
  background: #030b14;
  box-sizing: border-box;
}
.pg-page-home .pgd-product-media-pair {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #030b14;
}
.pg-page-home .pgd-product-media-pair img {
  display: block;
  flex: 1 1 0;
  width: calc(50% - 4px) !important;
  min-width: 0;
  height: 100% !important;
  object-fit: contain !important;
  padding: 4px;
  box-sizing: border-box;
}
.pg-page-home .pgd-product-category-label small {
  color: #c6d9e9;
  font-size: .78rem;
  line-height: 1.2;
}
.pg-page-home .pgd-product-card-parts {
  background: linear-gradient(145deg, #071728, #030b14) !important;
}
.pg-page-home .pgd-product-card-parts .pgd-product-category-label {
  height: 100% !important;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  background: transparent !important;
}

/* Remove the oversized featured card and retain an even, touch-friendly mobile grid. */
.pg-page-home .pgm-accessory-links {
  height: auto !important;
  min-height: 0 !important;
  padding: 18px 18px 24px !important;
}
.pg-page-home .pgm-accessory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(76px, auto);
  align-items: stretch;
  gap: 10px !important;
}
.pg-page-home .pgm-accessory-grid > a.pgm-category-card {
  display: flex !important;
  grid-column: auto !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 76px !important;
  padding: 13px !important;
  border: 1px solid rgba(65, 151, 217, .55) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #081a2c, #04101c) !important;
  color: #f4f8ff !important;
  font-size: clamp(12px, 3.5vw, 15px) !important;
  line-height: 1.3 !important;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.pg-page-home .pgm-accessory-grid > a.pgm-category-card > span:first-child { min-width: 0; }
.pg-page-home .pgm-accessory-grid > a.pgm-category-card > span:last-child {
  flex: 0 0 18px;
  color: #70c8ff;
  font-size: 20px;
  text-align: center;
}

/* The category image strip is light; keep every brand name fully legible. */
.pg-page-home .pgd-brand-wordmarks :is(a, span) {
  color: #10243d !important;
  opacity: 1 !important;
  filter: none !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  transition: color .3s ease, transform .3s ease !important;
}
.pg-page-home .pgd-brand-wordmarks .brand-pax { color: #064677 !important; }
.pg-page-home .pgd-brand-wordmarks .brand-sunmi { color: #963e13 !important; }
.pg-page-home .pgd-brand-wordmarks .brand-nexgo { color: #174f8e !important; }
.pg-page-home .pgd-brand-wordmarks .brand-bbpos { color: #176047 !important; }
.pg-page-home .pgd-brand-wordmarks .brand-worldline { color: #254c73 !important; }
.pg-page-home .pgd-brand-wordmarks :is(a, span):hover,
.pg-page-home .pgd-brand-wordmarks a:focus-visible { opacity: 1 !important; transform: scale(1.03); }

/* A single centered B2B form uses the whole section instead of an empty 2/3 grid. */
@media (min-width: 1024px) {
  .pg-page-home .pgd-finder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    min-height: 300px;
    padding: 28px 32px !important;
    overflow: visible !important;
  }
  .pg-page-home .pgd-b2b-form#contact {
    width: min(820px, 100%);
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding: 24px !important;
    border-radius: 14px !important;
    background: rgba(4, 15, 27, .9) !important;
    backdrop-filter: none !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
  }
  .pg-page-home .pgd-b2b-form#contact h2 { font-size: 21px !important; line-height: 1.2 !important; }
  .pg-page-home .pgd-b2b-form#contact p { margin-bottom: 16px !important; font-size: 14px !important; line-height: 1.5 !important; }
  .pg-page-home .pgd-b2b-form#contact .pgd-form-grid { gap: 12px 14px !important; }
  .pg-page-home .pgd-b2b-form#contact .pgd-form-field { gap: 6px !important; }
  .pg-page-home .pgd-b2b-form#contact .pgd-form-field > span { font-size: 12px !important; line-height: 1.3 !important; }
  .pg-page-home .pgd-b2b-form#contact .pgd-form-grid input { height: 48px !important; padding-inline: 12px !important; border: 1px solid #42617a !important; border-radius: 8px !important; font-size: 14px !important; }
  .pg-page-home .pgd-b2b-form#contact button[type="submit"] { min-height: 48px !important; margin-top: 14px !important; border-radius: 9px !important; }
}

/* Prevent clipping in the lower feature row and give all four benefits one icon system. */
@media (min-width: 1024px) {
  .pg-page-home .pgd-protection {
    height: auto !important;
    min-height: 205px;
    grid-template-columns: minmax(220px, 1.05fr) minmax(0, 2fr) minmax(140px, .65fr) !important;
    align-items: center;
    padding: 20px 24px !important;
    overflow: visible !important;
  }
  .pg-page-home .pgd-protection-copy { padding: 12px 10px !important; }
  .pg-page-home .pgd-protection-copy h2 { max-width: 25ch; font-size: 19px !important; line-height: 1.2 !important; }
  .pg-page-home .pgd-protection-copy p { max-width: 38ch; font-size: 13px !important; line-height: 1.5 !important; }
  .pg-page-home .pgd-protection-icons { align-items: stretch; }
  .pg-page-home .pgd-protection-icons > div {
    height: auto !important;
    min-height: 155px;
    padding: 18px 10px !important;
    gap: 12px;
    border-right: 1px solid rgba(62, 135, 182, .36);
    color: #69c7ff;
  }
  .pg-page-home .pgd-protection-icons > div:last-child { border-right: 0; }
  .pg-page-home .pgd-protection-icons svg {
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .pg-page-home .pgd-protection-icons span {
    max-width: 19ch;
    margin: 0 !important;
    color: #edf5ff !important;
    font: 600 12px/1.45 Arial, Helvetica, sans-serif !important;
    text-wrap: pretty;
  }
}

/* At cramped desktop widths the header button opens the existing full search dialog. */
@media (min-width: 1024px) and (max-width: 1180px) {
  .pg-page-home .pg-home-logo { flex: 0 0 190px !important; width: 190px !important; min-width: 190px !important; }
  .pg-page-home .pg-home-logo picture { width: 190px !important; }
  .pg-page-home .pg-home-logo picture img { max-width: 190px !important; }
  .pg-page-home .pg-home-links { gap: 5px !important; }
  .pg-page-home .pg-home-links > a:not(.pg-home-quote),
  .pg-page-home .pg-home-lang .langbtn { font-size: 8.4px !important; }
  .pg-page-home .pg-header-search-home { flex: 0 0 42px !important; width: 42px !important; min-width: 42px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
  .pg-page-home .pg-header-search-home input { display: none !important; }
  .pg-page-home .pg-header-search-home button { flex: 0 0 40px !important; width: 40px !important; min-width: 40px !important; min-height: 40px !important; border-radius: 9px !important; }
  .pg-page-home .pg-home-quote { min-width: 132px !important; padding-inline: 8px !important; margin-left: 3px !important; font-size: 9px !important; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .subpage-shell .pg-header-search-desktop { flex: 0 0 42px !important; width: 42px !important; min-width: 42px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
  .subpage-shell .pg-header-search-desktop input { display: none !important; }
  .subpage-shell .pg-header-search-desktop button { flex: 0 0 40px !important; width: 40px !important; min-width: 40px !important; min-height: 40px !important; border-radius: 9px !important; }
}

/* On phones, brand filters wrap instead of leaving the last chip clipped. */
@media (max-width: 680px) {
  .pg-registry-brand-rail {
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 8px !important;
    padding: 3px 2px 8px !important;
  }
  .pg-registry-brand-chip { min-height: 44px; }
}

/* Keep sticky controls out of the way of fields, selects, and the page heading. */
@media (max-width: 900px) {
  html { scroll-padding-top: calc(76px + env(safe-area-inset-top)) !important; }
  .subpage-shell main :is(h1, [id]) { scroll-margin-top: calc(82px + env(safe-area-inset-top)); }
  body:has(.pg-sticky-actions.is-visible):not(.pg-form-control-focused) { padding-bottom: 0 !important; }
  body:has(.pg-sticky-actions.is-visible):not(.pg-form-control-focused) main { padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
  body.pg-form-control-focused main { padding-bottom: 0 !important; }
  body.pg-form-control-focused .pg-sticky-actions,
  body.pg-form-control-focused .pg-back-to-top {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
body.pg-form-control-focused .pg-back-to-top { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* Category heroes must show real model-specific examples without creating a
   false spare-parts product image or an empty second column. */
.pg-screen-protection-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 2vw, 22px);
  width: min(100%, 560px);
  min-width: 0;
  margin-inline: auto;
}
.pg-screen-protection-hero figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 310px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(78, 157, 220, .25);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(6, 20, 36, .78), rgba(2, 8, 16, .9));
}
.pg-screen-protection-hero img {
  display: block;
  width: 100%;
  height: clamp(220px, 31vw, 360px);
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .34));
}
.pg-screen-protection-hero figcaption {
  margin-top: 10px;
  color: #e9f4ff;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.pg-category-parts-page .product-layout { grid-template-columns: minmax(0, 1fr) !important; }
.pg-category-parts-page .product-layout > div:first-child { max-width: 900px; }

/* Model discovery is a guided list, not a nested scroll window. */
.subpage-shell .registry-grid[data-pg-registry] {
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
  scrollbar-gutter: auto !important;
  scroll-margin-top: 104px;
}
.subpage-shell .registry-grid[data-pg-registry] > [data-pg-registry-card] {
  min-width: 0;
  min-height: 180px;
  padding: 20px !important;
  gap: 10px !important;
  border-radius: 13px !important;
}
.pg-registry-model-title { color: #f5f8ff; text-decoration: none; }
.pg-registry-model-title:hover { color: #9ed7ff; }
.pg-registry-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(118, 179, 220, .28);
  border-radius: 999px;
  color: #d8ecfa;
  background: rgba(20, 54, 79, .56);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}
.pg-registry-status.is-verified { color: #a7f2cd; border-color: rgba(68, 213, 147, .35); background: rgba(28, 125, 82, .18); }
.pg-registry-status.is-reference { color: #ffe0a3; border-color: rgba(255, 193, 87, .34); background: rgba(132, 83, 9, .2); }
.pg-registry-status.is-pending { color: #c7d7e7; }
.pg-registry-card-note { margin: 0; color: #c6d5e5; font-size: .88rem; line-height: 1.45; }
.pg-registry-card-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 42px;
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid rgba(54, 166, 255, .56);
  border-radius: 8px;
  color: #eaf7ff;
  background: rgba(7, 92, 155, .26);
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.pg-registry-card-cta:hover,
.pg-registry-card-cta:focus-visible { border-color: #42b3ff; background: rgba(7, 112, 188, .48); transform: translateY(-1px); }
.pg-registry-card-reference { color: #ffdba0; }
.registry-count[hidden] { display: none !important; }
.registry-select-prompt { line-height: 1.5; }
.registry-search input:focus-visible,
.pg-registry-brand-chip:focus-visible,
.pg-registry-card-cta:focus-visible { outline: 3px solid #68caff; outline-offset: 3px; }

@media (min-width: 901px) {
  .pg-screen-protection-hero { margin-left: auto; }
  .subpage-shell .registry-grid[data-pg-registry] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .pg-registry-brand-hint { display: none !important; }
  .pg-registry-brand-rail { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 900px) {
  .pg-screen-protection-hero { width: 100%; gap: 10px; }
  .pg-screen-protection-hero figure { min-height: 230px; padding: 9px; }
  .pg-screen-protection-hero img { height: clamp(170px, 50vw, 270px); }
  .pg-screen-protection-hero figcaption { font-size: .78rem; }
  .subpage-shell .registry-grid[data-pg-registry] { grid-template-columns: minmax(0, 1fr) !important; }
  .subpage-shell .registry-grid[data-pg-registry] > [data-pg-registry-card] { min-height: 0; padding: 17px !important; }
  .pg-registry-brand-rail {
    position: relative;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100%;
    padding: 4px 28px 10px 2px !important;
    scrollbar-width: thin;
    scrollbar-color: #41aeef rgba(10, 28, 48, .8);
    -webkit-overflow-scrolling: touch;
  }
  .pg-registry-brand-chip { flex: 0 0 auto; min-height: 48px; }
}
@media (min-width: 621px) and (max-width: 900px) {
  .subpage-shell .registry-grid[data-pg-registry] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 430px) {
  .pg-screen-protection-hero figure { min-height: 200px; padding: 7px; }
  .pg-screen-protection-hero img { height: 165px; }
  .pg-screen-protection-hero figcaption { font-size: .72rem; }
}

.pg-registry-brand-hint {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 12px 2px 0;
  color: #c6dcf0;
  font-size: .78rem;
  font-weight: 700;
}
.pg-registry-brand-hint span { color: #65c5ff; font-size: 1.2rem; }
.pg-model-discovery-page > .container > .product-lead {
  max-width: 78ch;
  padding: 13px 16px;
  border-left: 2px solid rgba(44, 162, 245, .72);
  border-radius: 0 9px 9px 0;
  background: linear-gradient(90deg, rgba(2, 8, 17, .84), rgba(2, 8, 17, .42));
  color: #e4edf6;
  text-shadow: none;
}
.pg-model-discovery-page .pg-registry-model-card { background: linear-gradient(150deg, rgba(5, 17, 30, .96), rgba(2, 8, 16, .98)) !important; }
.pg-model-discovery-page .pg-registry-card-reference { color: #ffe0a3 !important; }

/* Keep the lightning artwork visible while giving footer copy a quieter base. */
.pg-visual-system footer.pg-footer-v4::after {
  background: linear-gradient(180deg, rgba(2, 8, 17, .74), rgba(2, 8, 17, .82)) !important;
}
.subpage-shell .product-page[data-pg-product-id] .product-layout > div:first-child {
  padding: clamp(12px, 1.5vw, 20px);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(2, 8, 17, .84), rgba(2, 8, 17, .5));
}

/* Give desktop header search real width where the full input is shown. */
@media (min-width: 1181px) {
  .pg-header-search-desktop,
  .pg-page-home .pg-header-search-home {
    flex: 0 1 260px !important;
    width: min(260px, 20vw) !important;
    min-width: 210px !important;
  }
  .pg-header-search-desktop input,
  .pg-page-home .pg-header-search-home input { min-width: 0 !important; }
}
@media (max-width: 900px) {
  .pg-registry-brand-hint { display: flex; }
  .pg-registry-brand-rail::after {
    content: "";
    position: sticky;
    right: 0;
    flex: 0 0 14px;
    align-self: stretch;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #030b14 92%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-page-home .pgd-brand-wordmarks :is(a, span) { transition: none !important; }
  .pg-page-home .pgm-accessory-grid > a { transition: none !important; }
}

/* CP283: make the primary quote action red, while keeping POS search blue. */
.pg-page-home .pg-home-quote,
.pg-page-home .pgd-cms-quote,
a.cta[data-pg-growth-event="quote_click"],
a.cta[href*="request-accessory.php"],
.pg-sticky-actions a.cta,
body.pg-page-quote .pg-quote-submit {
  border: 1px solid rgba(255, 115, 135, .8) !important;
  background: linear-gradient(120deg, #e61034, #ff163c 70%, #ff375b) !important;
  color: #fff !important;
  box-shadow: 0 7px 22px rgba(230, 16, 52, .28) !important;
}
.pg-page-home .pg-home-quote:hover,
.pg-page-home .pgd-cms-quote:hover,
a.cta[data-pg-growth-event="quote_click"]:hover,
a.cta[href*="request-accessory.php"]:hover,
.pg-sticky-actions a.cta:hover,
body.pg-page-quote .pg-quote-submit:hover {
  background: linear-gradient(120deg, #c90f32, #e61034 70%, #ff163c) !important;
  box-shadow: 0 10px 26px rgba(201, 15, 50, .34) !important;
}

/* Cookie choice UI must not compete with mobile contact/quote controls. */
@media (max-width: 900px) {
  body:has(#pg-cookie-banner.is-visible) :is(.pg-sticky-actions, .pg-quote-cart-bar, .pg-back-to-top, .pg-command-trigger),
  body:has(#pg-cookie-modal:not([hidden])) :is(.pg-sticky-actions, .pg-quote-cart-bar, .pg-back-to-top, .pg-command-trigger) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Keep first-visit consent controls compact. Optional categories remain
   available in the fully labelled Settings dialog. */
#pg-cookie-banner .pg-cookie-banner-options { display: none !important; }
@media (max-width: 640px) {
  #pg-cookie-banner.pg-cookie-banner {
    max-height: min(34dvh, 280px);
    gap: 7px;
    padding-top: 11px;
  }
  #pg-cookie-banner .pg-cookie-copy p {
    -webkit-line-clamp: 2;
    max-height: 2.84em;
    margin-block: 3px 0;
  }
  #pg-cookie-banner .pg-cookie-actions .pg-consent-btn { min-height: 44px; }
  #pg-cookie-banner .pg-cookie-links { min-height: 36px; }
  #pg-cookie-banner .pg-cookie-links a,
  #pg-cookie-banner .pg-cookie-links button { min-height: 36px; }
}

/* Full readable query at wide desktop widths; preserve room by tightening nav gaps. */
@media (min-width: 1181px) {
  .pg-page-home .pg-home-nav { padding-inline: clamp(18px, 2vw, 28px) !important; }
  .pg-page-home .pg-home-links { flex: 1 1 auto !important; min-width: 0 !important; gap: clamp(5px, .55vw, 9px) !important; }
  .pg-page-home .pg-home-links > a:not(.pg-home-quote),
  .pg-page-home .pg-home-lang .langbtn { font-size: clamp(8.5px, .67vw, 10px) !important; }
  .pg-page-home .pg-header-search-home {
    flex: 0 1 clamp(230px, 19vw, 270px) !important;
    width: clamp(230px, 19vw, 270px) !important;
    min-width: 230px !important;
  }
  .pg-page-home .pg-header-search-home input { flex: 1 1 auto !important; min-width: 0 !important; font-size: 12px !important; }
  .pg-page-home .pg-home-quote { min-width: 148px !important; margin-left: 0 !important; padding-inline: 9px !important; }
  .subpage-shell .nav .links { gap: clamp(5px, .55vw, 9px) !important; }
  .subpage-shell .pg-header-search-desktop {
    flex: 0 1 clamp(230px, 19vw, 270px) !important;
    width: clamp(230px, 19vw, 270px) !important;
    min-width: 230px !important;
  }
  .subpage-shell .pg-header-search-desktop input { min-width: 0 !important; font-size: 12px !important; }
}

/* Keep the fixed-width desktop header's flex contents inside its scaled layout.
   The mega-menu trigger inherited 16px body text and the quote CTA expanded
   beyond its label, pushing the Greek Products item underneath the logo. */
@media (min-width: 1024px) {
  .pg-page-home .pg-home-links { gap: 8px !important; }
  .pg-page-home .pg-mega-trigger {
    min-height: 38px !important;
    padding-inline: 2px !important;
    gap: 3px !important;
    font: 700 9.5px/1.1 Arial, Helvetica, sans-serif !important;
    white-space: nowrap !important;
  }
  .pg-page-home .pg-home-quote {
    flex: 0 0 156px !important;
    width: 156px !important;
    min-width: 156px !important;
    justify-content: center !important;
    gap: 5px !important;
    padding-inline: 8px !important;
  }
}

/* Put the model search before the large artwork on narrow screens. */
@media (max-width: 1023px) {
  .pg-page-home .pg-home-mobile { display: flex !important; flex-direction: column; min-height: 0 !important; }
  .pg-page-home .pgm-copy { order: 0; height: auto !important; min-height: 0 !important; padding: 22px clamp(18px, 6vw, 32px) 22px !important; }
  .pg-page-home .pgm-copy :is(h1, h2) { text-align: start !important; font-size: clamp(27px, 7.6vw, 36px) !important; line-height: 1.04 !important; }
  .pg-page-home .pgm-copy p { max-width: 48ch; margin: 11px 0 15px !important; text-align: start !important; font-size: clamp(15px, 4vw, 17px) !important; line-height: 1.42 !important; }
  .pg-page-home .pgm-smart-search { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px !important; width: 100% !important; margin: 12px 0 10px !important; }
  .pg-page-home .pgm-smart-search input { min-width: 0; width: 100%; height: 48px !important; min-height: 48px !important; padding-inline: 11px !important; font-size: clamp(12px, 3.5vw, 14px) !important; }
  .pg-page-home .pgm-smart-search button { min-width: 48px; min-height: 48px !important; padding-inline: 11px !important; font-size: clamp(12px, 3.5vw, 14px) !important; white-space: nowrap; }
  .pg-page-home .pgd-cms-quote { width: 100% !important; min-height: 48px !important; margin-top: 4px !important; }
  .pg-page-home .pgd-cms-support { margin: 7px 0 0 !important; color: #d5e1ed !important; font-size: .82rem !important; line-height: 1.4 !important; }
  .pg-page-home .pgm-cms-benefits { margin-top: 12px !important; gap: 7px 12px !important; }
  /* Keep the full mobile hero artwork above the compact first-visit consent panel. */
  .pg-page-home .pgm-hero-art { order: 1; width: 100%; height: clamp(170px, 48vw, 260px) !important; min-height: 170px; }
  .pg-page-home .pgm-accessory-links { order: 2; }
  .pg-page-home .pgm-tagline { order: 3; }
}

/* On very short phones the consent panel fills the remaining first viewport.
   Keep the artwork in its reserved space, then reveal it when consent is handled. */
@media (max-width: 360px) and (max-height: 720px) {
  body.pg-page-home:has(#pg-cookie-banner:not([hidden])) .pgm-hero-art {
    visibility: hidden !important;
  }
}

/* Stable, quiet cards keep model states readable and distinct on every width. */
.subpage-shell .registry-grid[data-pg-registry] { grid-auto-rows: minmax(220px, 1fr) !important; align-items: stretch; }
.subpage-shell .registry-grid[data-pg-registry] > .pg-registry-model-card {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  background: linear-gradient(150deg, rgba(5, 17, 30, .97), rgba(2, 8, 16, .99)) !important;
}
.pg-registry-model-card h2 { min-height: 2.5em; line-height: 1.25; }
.pg-registry-model-card .pg-registry-status { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.pg-registry-model-card .pg-registry-card-note { flex: 1 1 auto; }
.pg-registry-model-card .pg-registry-card-cta { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.pg-registry-brand-chip.is-active { border-color: #ff5068 !important; background: linear-gradient(110deg, #b71536, #e52b4b) !important; color: #fff !important; box-shadow: 0 0 0 2px rgba(255, 75, 103, .18) !important; }
.pg-registry-empty-state { display: grid; gap: 9px; line-height: 1.5; }
.pg-registry-empty-state a { justify-self: start; color: #83d1ff; font-weight: 800; }
.pg-registry-empty-state[hidden] { display: none !important; }
.pg-registry-card-photo { display: inline-flex; align-items: center; min-height: 42px; margin-top: 5px; color: #bdddf4; font-size: .82rem; font-weight: 700; line-height: 1.35; text-underline-offset: 3px; }
.pg-catalogue-image-note { display: block; margin: 5px 0 0; color: #c7d6e5; font-size: .76rem; line-height: 1.35; }

/* Keep the mobile brand rail scrollable without clipping the first chip or a heavy bar. */
@media (max-width: 900px) {
  .pg-registry-brand-rail {
    position: relative;
    margin-inline: 0 !important;
    padding: 4px 2px 8px 0 !important;
    scroll-padding-inline: 0;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
  }
  .pg-registry-brand-rail::-webkit-scrollbar { display: none !important; }
  .pg-registry-brand-rail::after {
    position: absolute !important;
    inset-block: 0;
    right: 0;
    width: 28px !important;
    background: linear-gradient(90deg, transparent, #030b14 96%) !important;
  }
  .subpage-shell .registry-grid[data-pg-registry] { grid-auto-rows: auto !important; }
  .subpage-shell .registry-grid[data-pg-registry] > .pg-registry-model-card { min-height: 0; }
}

/* Use a quiet neutral tile when there is no verified, model-specific image. */
.pg-page-home .pgd-product-card-stands_mounts,
.pg-page-home .pgd-product-card-bundles {
  background: linear-gradient(145deg, #0a1c2d, #030b14) !important;
}
.pg-page-home .pgd-product-card-stands_mounts .pgd-product-category-label,
.pg-page-home .pgd-product-card-bundles .pgd-product-category-label {
  min-height: 100%;
  justify-content: center;
}

/* Reserve the action-bar footprint consistently so show/hide never moves content. */
@media (max-width: 900px) {
  body:has([data-pg-sticky-actions]) { padding-bottom: 0 !important; }
  body:has([data-pg-sticky-actions]) main { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  body.pg-form-control-focused main { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}

/* The shared footer sits outside .subpage-shell. Apply the existing outlined
   globe styling here as well, rather than letting its SVG use a black fill. */
.pg-footer-language .pg-footer-langbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pg-footer-language .pg-language-icon {
  display: block;
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 900px) {
  /* Leave the fixed 48px top button a clear lane beside the last footer line. */
  .pg-footer-legal > span { max-inline-size: calc(100% - 64px); }
}

/* The approved homepage artboard uses CSS zoom. Compensate standard controls
   only, so their rendered hit areas/type match the shared 48/52px UI system. */
body.pg-visual-system.pg-page-home .page.home-shell {
  --pg-home-ui-scale: var(--pg-home-scale, 1);
  --pg-home-ui-target: 52px;
  --ui-component-height: calc(var(--pg-home-ui-target) / var(--pg-home-ui-scale));
  --ui-mobile-component-height: calc(48px / var(--pg-home-ui-scale));
  --ui-border-radius: calc(10px / var(--pg-home-ui-scale));
  --ui-control-padding-inline: calc(14px / var(--pg-home-ui-scale));
  --ui-control-font-size: calc(16px / var(--pg-home-ui-scale));
  --ui-action-font-size: calc(15px / var(--pg-home-ui-scale));
}
/* The shared footer already cancels artboard zoom; keep its tap targets unscaled. */
body.pg-visual-system.pg-page-home .home-shell .pg-footer-v4 {
  --ui-component-height: 52px;
  --ui-mobile-component-height: 48px;
  --ui-border-radius: 10px;
  --ui-control-padding-inline: 14px;
  --ui-control-font-size: 16px;
  --ui-action-font-size: 15px;
}
@media (max-width: 1023px) {
  body.pg-visual-system.pg-page-home .page.home-shell { --pg-home-ui-target: 48px; }
  body.pg-visual-system.pg-page-home .home-shell .pg-footer-v4 { --ui-component-height: 48px; }
}
body.pg-visual-system.pg-page-home .home-shell :is(
  form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
  form select, form button, .cta, .ghost, .pgd-btn, .pgd-cms-quote, .pgd-upload-btn
),
body.pg-visual-system.pg-page-home .pg-home-nav :is(.mobile-menu, .langbtn, .pg-mega-trigger) {
  box-sizing: border-box !important;
  height: var(--ui-component-height) !important;
  min-height: var(--ui-component-height) !important;
  max-height: var(--ui-component-height) !important;
  border-radius: var(--ui-border-radius) !important;
  padding-block: 0 !important;
}
body.pg-visual-system.pg-page-home .home-shell form :is(input, select) {
  font-size: var(--ui-control-font-size) !important;
  padding-inline: var(--ui-control-padding-inline) !important;
}
body.pg-visual-system.pg-page-home .home-shell :is(form button, .cta, .ghost, .pgd-btn, .pgd-cms-quote, .pgd-upload-btn) {
  font-size: var(--ui-action-font-size) !important;
  padding-inline: var(--ui-control-padding-inline) !important;
  line-height: 1.2 !important;
}
body.pg-visual-system.pg-page-home .home-shell :is(.pgm-smart-search, .pgd-hero-search) :is(input, button) {
  font-size: var(--ui-action-font-size) !important;
}
body.pg-visual-system.pg-page-home .pg-home-nav .pg-header-search {
  height: var(--ui-component-height) !important;
  min-height: var(--ui-component-height) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--ui-border-radius) !important;
  gap: calc(4px / var(--pg-home-ui-scale)) !important;
  box-shadow: inset 0 0 0 1px rgba(73, 153, 204, .36);
}
body.pg-visual-system.pg-page-home .pg-home-nav .pg-header-search input {
  font-size: var(--ui-action-font-size) !important;
  padding-inline: calc(10px / var(--pg-home-ui-scale)) !important;
}
body.pg-visual-system.pg-page-home .pg-home-nav .pg-header-search button {
  flex: 0 0 var(--ui-component-height) !important;
  width: var(--ui-component-height) !important;
  min-width: var(--ui-component-height) !important;
  padding-inline: 0 !important;
  font-size: calc(24px / var(--pg-home-ui-scale)) !important;
}
body.pg-visual-system.pg-page-home .pg-home-mobile-tools .mobile-menu {
  flex: 0 0 var(--ui-component-height) !important;
  width: var(--ui-component-height) !important;
  min-width: var(--ui-component-height) !important;
  font-size: calc(24px / var(--pg-home-ui-scale)) !important;
}
body.pg-visual-system.pg-page-home .pg-home-nav .pg-home-quote {
  flex: 0 0 calc(190px / var(--pg-home-ui-scale)) !important;
  width: calc(190px / var(--pg-home-ui-scale)) !important;
  min-width: calc(190px / var(--pg-home-ui-scale)) !important;
  padding-inline: calc(12px / var(--pg-home-ui-scale)) !important;
  gap: calc(6px / var(--pg-home-ui-scale)) !important;
  font-size: var(--ui-action-font-size) !important;
  white-space: nowrap !important;
}
body.pg-visual-system.pg-page-home .pg-home-nav .pg-home-quote svg {
  flex: 0 0 calc(18px / var(--pg-home-ui-scale));
  width: calc(18px / var(--pg-home-ui-scale));
  height: calc(18px / var(--pg-home-ui-scale));
}
@media (min-width: 1024px) and (max-width: 1180px) {
  body.pg-visual-system.pg-page-home .pg-home-nav .pg-header-search-home {
    flex: 0 0 var(--ui-component-height) !important;
    width: var(--ui-component-height) !important;
    min-width: var(--ui-component-height) !important;
  }
}
@media (max-width: 360px) {
  /* The existing search dialog provides the full field on the narrowest phones. */
  body.pg-visual-system.pg-page-home .pg-home-nav .pg-header-search-mobile {
    flex: 0 0 var(--ui-component-height) !important;
    width: var(--ui-component-height) !important;
    min-width: var(--ui-component-height) !important;
    margin-inline-start: auto;
  }
  body.pg-visual-system.pg-page-home .pg-header-search-mobile input { display: none !important; }
}
/* White B2B inputs need their own dark placeholder colour. */
body.pg-visual-system.pg-page-home .pgd-b2b-form .pgd-form-grid input::placeholder {
  color: #536579 !important;
  opacity: 1 !important;
}

/* Let longer EL/EN category/industry captions determine their own height. */
@media (min-width: 1024px) {
  .pg-page-home .pgd-industries {
    height: auto !important;
    min-height: 208px;
    padding-bottom: 24px !important;
    overflow: visible !important;
  }
  .pg-page-home .pgd-industries .pgd-card-grid { align-items: stretch; }
  .pg-page-home .pgd-industries .pgd-image-card {
    height: auto !important;
    min-height: 139px;
  }
  .pg-page-home .pgd-industries .pgd-image-card > span {
    height: auto !important;
    min-height: 54px;
    padding-block: 9px !important;
    flex: 1 0 auto;
  }
  .pg-page-home .pgd-products#products .pgd-product-card {
    height: auto !important;
    min-height: 164px !important;
  }
  .pg-page-home .pgd-products#products .pgd-product-category-label {
    height: auto !important;
    min-height: 60px;
    padding-block: 9px;
    flex: 1 0 auto;
  }
}
body.pg-visual-system.pg-page-home .pgd-b2b-form#contact :is(input, select, button[type="submit"]) {
  height: var(--ui-component-height) !important;
  min-height: var(--ui-component-height) !important;
  max-height: var(--ui-component-height) !important;
  border-radius: var(--ui-border-radius) !important;
}
body.pg-visual-system.pg-page-home .pgd-b2b-form#contact :is(input, select) {
  font-size: var(--ui-control-font-size) !important;
  padding-inline: var(--ui-control-padding-inline) !important;
}
body.pg-visual-system.pg-page-home .pgd-b2b-form#contact button[type="submit"] {
  font-size: var(--ui-action-font-size) !important;
}
body.pg-visual-system.pg-page-home .pgd-hero-search button svg {
  flex: 0 0 calc(18px / var(--pg-home-ui-scale));
  width: calc(18px / var(--pg-home-ui-scale));
  height: calc(18px / var(--pg-home-ui-scale));
}
@media (max-width: 360px) {
  body.pg-visual-system.pg-page-home .home-shell .pgm-smart-search button {
    width: var(--ui-component-height) !important;
    min-width: var(--ui-component-height) !important;
    padding-inline: 0 !important;
    gap: 0 !important;
    font-size: 0 !important;
    justify-content: center !important;
  }
}
@media (min-width: 1024px) {
  body.pg-visual-system.pg-page-home .home-shell .pgd-hero-search {
    height: var(--ui-component-height) !important;
    min-height: var(--ui-component-height) !important;
    padding: 0 !important;
    border: 0 !important;
    gap: calc(7px / var(--pg-home-ui-scale)) !important;
    box-shadow: inset 0 0 0 1px rgba(67, 166, 237, .55), 0 7px 24px rgba(0, 0, 0, .24);
  }
  .pg-page-home .pgd-products#products .pgd-product-grid { grid-auto-rows: 1fr; align-items: stretch; }
}
/* Keep the B2B form action on the same readable primary red as the other CTAs. */
body.pg-visual-system.pg-page-home .pgd-b2b-form#contact button[type="submit"] {
  background: linear-gradient(120deg, #e61034, #ff163c 70%, #ff375b) !important;
  color: #fff !important;
}
body.pg-visual-system.pg-page-home .pgd-b2b-form#contact button[type="submit"]:hover {
  background: linear-gradient(120deg, #c90f32, #e61034 70%, #ff163c) !important;
}
/* Responsive token changes are immediate; animate appearance, never hit-area geometry. */
body.pg-visual-system.pg-page-home .home-shell :is(
  form input, form select, form button, .cta, .ghost, .pgd-btn, .pgd-cms-quote, .pgd-upload-btn
) {
  transition-property: background-color, border-color, color, box-shadow, opacity, transform !important;
}

/* Homepage categories: restore the six approved illustrated tiles evenly. */
.pg-page-home .pg-category-art-note {
  margin: 10px 0 0;
  color: #aebfd0;
  font-size: 12px;
  line-height: 1.45;
}
@media (min-width: 1024px) {
  .pg-page-home .pgd-products#products {
    height: auto !important;
    min-height: 0 !important;
    padding: 24px 33px 28px !important;
    overflow: visible !important;
  }
  .pg-page-home .pgd-products#products .pgd-product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .pg-page-home .pgd-products#products .pgd-product-grid > .pgd-product-card {
    display: grid !important;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-template-rows: 118px minmax(54px, auto) !important;
    height: auto !important;
    min-height: 172px !important;
    align-self: stretch !important;
    overflow: hidden !important;
    border: 1px solid rgba(67, 133, 187, .58) !important;
    border-radius: 9px !important;
    background: linear-gradient(145deg, rgba(7, 22, 37, .96), rgba(2, 9, 17, .98)) !important;
    box-shadow: inset 0 1px 0 rgba(120, 188, 235, .08);
  }
  .pg-page-home .pgd-products#products .pgd-product-grid > .pgd-product-card > img.pgd-category-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 118px !important;
    min-height: 118px !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #020912 !important;
  }
  .pg-page-home .pgd-products#products .pgd-product-grid > .pgd-product-card > .pgd-product-category-label {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    min-height: 54px !important;
    padding: 8px 12px !important;
    background: linear-gradient(180deg, rgba(4, 13, 23, .88), #06101a) !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }
  .pg-page-home .pgd-products#products .pgd-product-card .pgd-product-category-label b {
    display: block;
    color: #f5f8fc !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 750 !important;
  }
  .pg-page-home .pgd-products#products .pg-category-art-note {
    margin-top: 10px;
    font-size: 12px;
  }
}
@media (max-width: 1023px) {
  .pg-page-home .pgm-accessory-links {
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 18px 24px !important;
  }
  .pg-page-home .pgm-accessory-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .pg-page-home .pgm-accessory-grid > a.pgm-category-card {
    display: grid !important;
    grid-column: auto !important;
    grid-template-rows: minmax(92px, auto) minmax(54px, auto) !important;
    align-content: stretch !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 0 !important;
    min-width: 0 !important;
    min-height: 154px !important;
    padding: 7px !important;
    border: 1px solid rgba(65, 151, 217, .58) !important;
    border-radius: 10px !important;
    background: linear-gradient(145deg, rgba(8, 26, 44, .98), rgba(3, 13, 23, .98)) !important;
    color: #f4f8ff !important;
    text-decoration: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .pg-page-home .pgm-accessory-grid > a.pgm-category-card > img {
    display: block !important;
    width: min(100%, 152px) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 118px !important;
    aspect-ratio: 152 / 118;
    object-fit: contain !important;
    justify-self: center !important;
    align-self: center !important;
    background: #020912 !important;
  }
  .pg-page-home .pgm-accessory-grid > a.pgm-category-card > .pgm-category-label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 6px 5px 3px !important;
    border-top: 1px solid rgba(90, 133, 167, .25);
    background: transparent !important;
    box-sizing: border-box !important;
  }
  .pg-page-home .pgm-category-label b {
    display: block;
    min-width: 0;
    color: #f4f8ff !important;
    font-size: clamp(11px, 3.35vw, 14px) !important;
    line-height: 1.22 !important;
    font-weight: 700 !important;
    overflow-wrap: anywhere;
  }
  .pg-page-home .pgm-category-label > span {
    flex: 0 0 18px !important;
    align-self: center !important;
    color: #70c8ff !important;
    font-size: 19px !important;
    line-height: 1 !important;
    text-align: center !important;
  }
  .pg-page-home .pgm-accessory-links > .pg-category-art-note {
    margin: 12px 2px 0;
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .pg-page-home .pgm-accessory-grid > a.pgm-category-card {
    min-height: 164px !important;
    padding: 6px !important;
  }
  .pg-page-home .pgm-category-label b { font-size: 11px !important; }
}

/* Keep white labels readable on the brand actions across the whole public site. */
body.pg-visual-system :is(.cta, .pgd-btn-red, .pgd-cms-quote, .pg-home-quote) {
  background: linear-gradient(120deg, #e61034 0%, #ff163c 70%, #ff375b 100%) !important;
  color: #fff !important;
}
body.pg-visual-system :is(.cta, .pgd-btn-red, .pgd-cms-quote, .pg-home-quote):hover {
  background: linear-gradient(120deg, #b90d2d 0%, #e61034 70%, #ff163c 100%) !important;
  color: #fff !important;
}
body.pg-visual-system :is(
  .pg-home-search-field button,
  .pgd-hero-search button,
  .pg-quote-add,
  .pg-filter-open,
  .pg-photo-fallback,
  .pg-consent-accept,
  [data-pg-home-search-open],
  [data-pg-command-open]
) {
  background: linear-gradient(120deg, #06538e 0%, #08669f 100%) !important;
  color: #fff !important;
}
body.pg-visual-system :is(
  .pg-home-search-field button,
  .pgd-hero-search button,
  .pg-quote-add,
  .pg-filter-open,
  .pg-photo-fallback,
  .pg-consent-accept,
  [data-pg-home-search-open],
  [data-pg-command-open]
):hover {
  background: linear-gradient(120deg, #054679 0%, #06538e 100%) !important;
  color: #fff !important;
}
body.pg-visual-system .pg-quote-add.is-added {
  background: linear-gradient(120deg, #075c3c, #087849) !important;
}

/* Quote actions must use the full card width; a lone link must not occupy the
   narrow quantity column or collapse into one word per line. */
.pg-category-items .pg-catalogue-card .pg-card-actions > a.ghost {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 11px 16px;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.3;
  text-align: center;
}
.pg-category-items .pg-catalogue-card .pg-card-actions {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.pg-category-items .pg-catalogue-card .pg-card-quantity,
.pg-category-items .pg-catalogue-card .pg-quote-add {
  min-width: 0;
  box-sizing: border-box;
}
.pg-category-items .pg-catalogue-card-copy,
.pg-category-items .pg-catalogue-card-copy > * {
  min-width: 0;
}

/* Keep the floating return control from competing with fixed quote actions. */
body:has([data-pg-sticky-actions].is-visible) .pg-back-to-top,
body:has(.pg-quote-cart-bar.is-visible) .pg-back-to-top {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Brand → model rails keep category discovery compact and predictable. */
.pg-category-items .pg-catalogue-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px 18px;
  margin: 16px 0 18px;
}
.pg-catalogue-filter-rails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.pg-catalogue-rail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 3px;
  min-width: 0;
}
.pg-catalogue-rail-label {
  color: #a9bfd2;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .035em;
}
.pg-category-items .pg-catalogue-brand-tabs,
.pg-category-items .pg-catalogue-model-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 5px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 172, 222, .6) rgba(5, 18, 31, .55);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.pg-category-items .pg-catalogue-brand-tabs::-webkit-scrollbar,
.pg-category-items .pg-catalogue-model-tabs::-webkit-scrollbar { height: 5px; }
.pg-category-items .pg-catalogue-brand-tabs::-webkit-scrollbar-thumb,
.pg-category-items .pg-catalogue-model-tabs::-webkit-scrollbar-thumb { border-radius: 8px; background: rgba(80, 172, 222, .58); }
.pg-category-items .pg-brand-tab,
.pg-category-items .pg-model-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid rgba(78, 144, 184, .36);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(10, 27, 42, .95), rgba(5, 15, 25, .95));
  color: #d6e4ef;
  font: inherit;
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.pg-category-items .pg-brand-tab[aria-pressed="true"],
.pg-category-items .pg-model-tab[aria-pressed="true"] {
  border-color: #36aef2;
  background: linear-gradient(135deg, rgba(8, 89, 146, .86), rgba(7, 43, 68, .98));
  color: #fff;
  box-shadow: 0 0 0 2px rgba(40, 160, 231, .13);
}
.pg-category-items .pg-model-tab[hidden] { display: none !important; }
.pg-category-items .pg-catalogue-view-toggle { margin-top: 1px; }
.pg-category-items .pg-catalogue-results { gap: 16px; }
.pg-category-items .pg-catalogue-group-heading { margin: 10px 0 0; }
.pg-category-items .pg-catalogue-card { gap: 14px; padding: 16px; }
.pg-category-items .pg-catalogue-card-copy { gap: 10px; }
.pg-category-items .pg-catalogue-card h4 { margin: 0; line-height: 1.35; }
.pg-category-items .pg-catalogue-availability {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgba(73, 160, 219, .27);
  border-radius: 999px;
  background: rgba(7, 37, 61, .72);
  color: #c5e8ff;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
}
.pg-category-items .pg-catalogue-availability.is-verified {
  border-color: rgba(68, 213, 147, .32);
  background: rgba(28, 125, 82, .17);
  color: #a7f2cd;
}
.pg-category-items .pg-card-actions {
  display: grid;
  grid-template-columns: minmax(86px, .36fr) minmax(126px, 1fr);
  align-items: end;
  gap: 10px;
  width: 100%;
  margin-top: 7px;
  padding-top: 5px;
}
.pg-category-items .pg-card-quantity { min-width: 0; gap: 5px; }
.pg-category-items .pg-card-quantity input { width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box; }
.pg-category-items .pg-quote-add { width: 100%; min-width: 0; min-height: 48px; white-space: nowrap; }
.pg-category-items .pg-catalogue-detail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  padding: 10px 14px;
  box-sizing: border-box;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .pg-category-items .pg-catalogue-toolbar { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .pg-category-items .pg-catalogue-view-toggle { justify-self: end; margin-top: 0; }
  .pg-category-items .pg-catalogue-filter-rails { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .pg-category-items .pg-catalogue-rail-row { grid-template-columns: 64px minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 520px) {
  .pg-category-items .pg-catalogue-toolbar { margin: 12px 0 15px; }
  .pg-category-items .pg-catalogue-filter-rails { gap: 6px; }
  .pg-category-items .pg-catalogue-rail-row { grid-template-columns: 56px minmax(0, 1fr); gap: 4px; }
  .pg-category-items .pg-catalogue-rail-label { font-size: .72rem; }
  .pg-category-items .pg-brand-tab,
  .pg-category-items .pg-model-tab { min-height: 42px; padding-inline: 12px; font-size: .8rem; }
  .pg-category-items .pg-catalogue-results { gap: 12px; }
  .pg-category-items .pg-catalogue-card { padding: 12px; gap: 12px; }
  .pg-category-items .pg-card-actions { grid-template-columns: minmax(76px, .34fr) minmax(0, 1fr); gap: 8px; }
  .pg-category-items .pg-quote-add { padding-inline: 10px; }
}

/* The POS registry keeps both navigation levels in a horizontal rail. */
.pg-registry-brand-hint,
.pg-registry-model-hint {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 14px 2px 4px;
  color: #a9bfd2;
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.3;
}
.pg-registry-brand-hint[hidden],
.pg-registry-model-hint[hidden] { display: none !important; }
.pg-registry-brand-rail,
.pg-registry-model-rail {
  position: relative;
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 4px 8px 9px 2px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 172, 222, .6) rgba(5, 18, 31, .55);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.pg-registry-brand-rail::-webkit-scrollbar,
.pg-registry-model-rail::-webkit-scrollbar { height: 5px; }
.pg-registry-brand-rail::-webkit-scrollbar-thumb,
.pg-registry-model-rail::-webkit-scrollbar-thumb { border-radius: 8px; background: rgba(80, 172, 222, .58); }
.pg-registry-model-rail[hidden] { display: none !important; }
.pg-registry-model-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(78, 144, 184, .36);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(10, 27, 42, .95), rgba(5, 15, 25, .95));
  color: #dbeaf5;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.pg-registry-model-chip:hover,
.pg-registry-model-chip:focus-visible { border-color: #3db3f3; color: #fff; background: rgba(7, 69, 111, .88); }
.pg-registry-model-chip:focus-visible { outline: 3px solid #68caff; outline-offset: 2px; }
.pg-registry-dual-rails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; min-width: 0; margin: 10px 0 15px; }
.pg-registry-rail-group { min-width: 0; }
.pg-registry-rail-group-models { grid-column: 1 / -1; }
.pg-registry-dual-rails .pg-registry-brand-hint,
.pg-registry-dual-rails .pg-registry-model-hint { min-height: 18px; margin: 0 2px 5px; }
.pg-registry-dual-rails .pg-registry-brand-rail,
.pg-registry-dual-rails .pg-registry-model-rail { margin: 0; }
@media (max-width: 900px) {
  .pg-registry-dual-rails { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pg-registry-rail-group-models { grid-column: auto; }
  .pg-registry-brand-hint,
  .pg-registry-model-hint { display: flex !important; }
  .pg-registry-brand-rail,
  .pg-registry-model-rail { scroll-snap-type: x proximity; padding-inline: 2px 25px; }
  .pg-registry-brand-chip,
  .pg-registry-model-chip { scroll-snap-align: start; }
}
