/* Mobile category treatment, isolated for an exact return to the prior panels.
   Original category rules and desktop styles remain untouched. */
@media (max-width: 560px) {
  body.products-page .mobile-page-hero .hero-actions .product-category-links .pill {
    background: linear-gradient(180deg, #06090bee 0%, #101618e8 52%, #080c0eee 100%);
    border: 1px solid #657076;
    border-radius: 8px;
    box-shadow: inset 0 2px 5px #000c, inset 0 -1px 2px #c6d5dd16, 0 0 1px #d3e4ed40;
    color: #fff;
  }
  body.products-page .mobile-page-hero .hero-actions .product-category-links .pill[aria-current="page"],
  body.products-page .mobile-page-hero .hero-actions .product-category-links .pill:focus-visible {
    background: linear-gradient(180deg, #12090bee 0%, #090d0fee 52%, #13090bee 100%);
    border-color: #ff1835;
    box-shadow: inset 0 0 9px #ff18353d, inset 0 2px 5px #0009, 0 0 7px #ff18358c;
    color: #fff;
  }
  body.products-page .mobile-page-hero .hero-actions .product-category-links .pill[href="/products/tachometers/#product-categories"] {
    grid-column: 2;
  }
}

/* Desktop categories use the compact mobile panels without overlapping the intro. */
@media(min-width:561px){
body.products-page .mobile-page-hero .reference-hero-copy>.hero-actions{bottom:32px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}
body.products-page .mobile-page-hero .hero-actions .product-category-links{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:repeat(2,57px)!important;grid-auto-rows:57px!important;gap:4px!important}
body.products-page .mobile-page-hero .hero-actions .product-category-links .pill{height:57px!important;min-height:57px!important;padding:2px 3px!important;font-size:15px!important;line-height:1.1!important}
}
@media (min-width: 561px) {
  body.products-page .mobile-page-hero .hero-actions .product-category-links .pill {
    background: linear-gradient(180deg, #06090bee 0%, #101618e8 52%, #080c0eee 100%);
    border: 1px solid #657076;
    border-radius: 8px;
    box-shadow: inset 0 2px 5px #000c, inset 0 -1px 2px #c6d5dd16, 0 0 1px #d3e4ed40;
    color: #fff;
  }
  body.products-page .mobile-page-hero .hero-actions .product-category-links .pill[aria-current="page"],
  body.products-page .mobile-page-hero .hero-actions .product-category-links .pill:focus-visible,
  body.products-page .mobile-page-hero .hero-actions .product-category-links .pill:active {
    background: linear-gradient(180deg, #12090bee 0%, #090d0fee 52%, #13090bee 100%);
    border-color: #ff1835;
    box-shadow: inset 0 0 9px #ff18353d, inset 0 2px 5px #0009, 0 0 7px #ff18358c;
    color: #fff;
  }
  body.products-page .mobile-page-hero .hero-actions .product-category-links .pill[href="/products/tachometers/#product-categories"] {
    grid-column: auto;
  }
}
