.pp-mobile,
.pp-search,
.pp-featured { display: none; }

@media (max-width: 767px) {
  .pp-category, .pp-product { --pp-ink: #0a1530; --pp-blue: #0048fa; --pp-line: #d3def0; --pp-pale: #edf3fc; }
  .pp-category #product-category, .pp-product #product-product { padding-inline: 14px; color: var(--pp-ink); }
  .pp-category #product-category > .breadcrumb, .pp-product #product-product > .breadcrumb { display: none; }
  .pp-category .ars-masthead-inner, .pp-product .ars-masthead-inner { position: relative; justify-content: center; min-height: 68px; }
  .pp-category .ars-brand img, .pp-product .ars-brand img { width: 164px; max-height: 72px; object-fit: contain; }
  .pp-menu.pp-mobile { display: grid; place-items: center; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 44px; height: 44px; color: var(--pp-ink); font-size: 23px; }
  .pp-category .polka-mobile-bar a:first-child, .pp-product .polka-mobile-bar a:first-child { background: #e0ebff; color: var(--pp-blue); border-radius: 12px; }
  .pp-category #content .ars-category-head { border: 0; background: none; padding: 5px 0; margin: 8px 0; min-height: 0; }
  .pp-category .ars-category-head img, .pp-category .ars-category-head a { display: none; }
  .pp-category .ars-category-head h1 { margin: 0; font-size: 32px; font-weight: 800; color: var(--pp-ink); }
  .pp-search { display: flex; border: 1px solid #a8bef0; border-radius: 10px; margin: 0 0 14px; background: #f5f8ff; min-height: 46px; }
  .pp-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 10px 8px 2px; font-size: 16px; }
  .pp-search button { order: -1; width: 44px; border: 0; background: transparent; color: var(--pp-blue); font-size: 20px; }
  .pp-category #content .ars-subcategories { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 0; margin: 0 0 14px; }
  .pp-category .ars-subcategories li { order: 10; min-width: 0; padding: 0; }
  .pp-category .ars-subcategories .pp-primary-tile { order: var(--pp-order); }
  .pp-category .ars-subcategories .polka-subcard { display: flex; position: relative; isolation: isolate; align-items: center; min-height: 40px; height: 100%; overflow: hidden; border: 0; border-radius: 10px; background: var(--pp-pale); box-shadow: none; }
  .pp-category .pp-primary-tile .polka-subcard { min-height: 80px; }
  .pp-category .polka-subcard .polka-subcard-media { display: none; }
  .pp-category .pp-primary-tile .polka-subcard .polka-subcard-media { display: block; position: absolute; z-index: -1; inset: 0 0 0 auto; width: 43%; height: 100%; background: none; }
  .pp-category .pp-primary-tile .polka-subcard-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
  .pp-category .polka-subcard .polka-subcard-copy { position: static; padding: 8px; color: var(--pp-ink); background: transparent; }
  .pp-category .pp-primary-tile .polka-subcard-copy { max-width: 68%; }
  .pp-category .polka-subcard-name { color: var(--pp-ink); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
  .pp-category .polka-subcard-count { display: none; }
  .pp-filters.pp-mobile { display: flex; gap: 5px; flex-wrap: wrap; margin: 0 0 10px; }
  .pp-filters button { border: 1px solid var(--pp-line); background: #f3f7fe; border-radius: 18px; color: var(--pp-ink); font-size: 11px; min-height: 36px; padding: 3px 8px; }
  .pp-filters button:last-child, .pp-filters button[aria-expanded="true"] { background: var(--pp-blue); color: white; border-color: var(--pp-blue); }
  .pp-category #ars-facet-title { display: none; }
  .pp-featured { display: grid; gap: 8px; margin: 0 0 14px; }
  .pp-featured .pp-row { display: grid; grid-template-columns: 62px minmax(0,1fr) 12px; align-items: center; gap: 9px; padding: 5px 9px; border: 1px solid var(--pp-line); border-radius: 10px; color: var(--pp-ink); }
  .pp-row img { width: 62px; height: 58px; object-fit: contain; }
  .pp-row strong { display: block; font-size: 14px; }
  .pp-row small { display: block; margin-top: 3px; }
  .pp-row i { font-size: 22px; }
  .pp-category #content .product-layout { width: 100%; }
  .pp-category #content .product-thumb { display: grid; grid-template-columns: 76px minmax(0,1fr); min-height: 0; padding: 6px; border: 1px solid var(--pp-line); border-radius: 10px; margin-bottom: 8px; }
  .pp-category #content .product-thumb .image { width: auto; min-height: 0; height: auto; align-self: stretch; }
  .pp-category #content .product-thumb .image img { width: 100%; max-height: 86px; object-fit: contain; }
  .pp-category #content .product-thumb .caption { padding: 4px 7px; min-height: 0; }
  .pp-category #content .product-thumb .caption h4 { margin: 0 0 4px; }
  .pp-category #content .product-thumb .caption p:not(.price), .pp-category .price-tax { display: none; }

  .pp-product .ars-product-title { display: flex; align-items: center; gap: 8px; font-size: clamp(21px, 5.6vw, 30px); line-height: 1.16; font-weight: 800; margin: 12px 0; color: var(--pp-ink); }
  .pp-back.pp-mobile { display: inline-grid; place-items: center; flex: 0 0 32px; min-height: 42px; font-size: 29px; color: var(--pp-ink); }
  .pp-product #content .ars-product-main { display: block; }
  .pp-product #content .ars-photos, .pp-product #content .ars-purchase { padding: 0; width: 100%; float: none; }
  .pp-product #content .ars-photos { margin-bottom: 8px; }
  .pp-product .thumbnails { margin: 0; padding: 0; }
  .pp-product .thumbnails > li:first-child { width: 100%; margin: 0; }
  .pp-product .thumbnails > li:first-child .thumbnail { display: grid; place-items: center; min-height: 184px; padding: 8px; border: 0; border-radius: 13px; background: #e9f0fb; margin-bottom: 7px; }
  .pp-product .thumbnails > li:first-child img { max-height: 230px; width: min(100%, 230px); object-fit: contain; mix-blend-mode: multiply; }
  .pp-photo-controls.pp-mobile { display: flex; gap: 8px; }
  .pp-photo-controls button { flex: 1; border: 1px solid var(--pp-line); background: white; border-radius: 9px; min-height: 38px; font-size: 15px; }
  .pp-photo-controls .pp-photo-button { background: #d8e7ff; color: var(--pp-blue); font-weight: 700; }
  .pp-product #content .ars-purchase { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: white; border: 0; box-shadow: none; }
  .pp-specs.pp-mobile { display: block; width: 100%; background: var(--pp-pale); border-radius: 9px; margin: 0; padding: 9px; font-size: 13px; order: 0; }
  .pp-product .ars-purchase .ars-product-summary { width: 100%; margin: 0; order: 1; font-size: 13px; }
  .pp-product .ars-purchase .ars-product-price { order: 2; margin: 0; flex: 1 1 auto; }
  .pp-product .ars-product-price h2 { font-size: 23px; margin: 0; font-weight: 800; }
  .pp-contact.pp-mobile { display: inline-block; order: 3; background: var(--pp-blue); border: 0; border-radius: 9px; padding: 10px; white-space: normal; font-weight: 700; }
  .pp-product #product { order: 3; flex: 1 1 100%; }
  .pp-product .pp-unavailable #product { display: none; }
  .pp-product .ars-purchase > .btn-group, .pp-product .ars-purchase > .polka-spec-link, .pp-product .ars-purchase > .rating { order: 4; }
}

/* Compact mobile masthead for the pump category and selected pump. */
@media (max-width: 767px) {
  body:is(.pp-category, .pp-product) > :is(#top, .polka-catalog-wrap),
  body.ars-store:is(.pp-category, .pp-product) .ars-masthead .ars-masthead-actions {
    display: none;
  }

  body.ars-store:is(.pp-category, .pp-product) .ars-masthead .ars-masthead-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    padding: 4px 56px;
  }

  body.ars-store:is(.pp-category, .pp-product) .ars-masthead .ars-brand {
    flex: 0 1 auto;
    margin: 0;
  }

  body.ars-store:is(.pp-category, .pp-product) .ars-masthead .ars-brand img {
    width: min(156px, 50vw);
    height: auto;
    max-height: 56px;
    object-fit: contain;
  }

  body.ars-store:is(.pp-category, .pp-product) .ars-masthead .ars-masthead-search {
    position: absolute;
    inset: calc(100% + 4px) 12px auto;
    z-index: 30;
    width: auto;
    max-width: none;
    margin: 0;
  }

  body.ars-store:is(.pp-category, .pp-product) .ars-masthead .ars-masthead-search:not(:focus-within) {
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
  }

  body:is(.pp-category, .pp-product) .pp-menu:focus-visible {
    outline: 2px solid var(--pp-blue);
    outline-offset: -2px;
  }
}
