
/* Mobile category selector */
.parts-mobile-filter {
  display: none;
}

@media screen and (max-width: 768px) {

  /* Hide native selector completely */
  #partsCategory {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
  }

  .parts-toolbar {
    overflow: visible !important;
  }

  .parts-mobile-filter {
    display: block !important;
    position: relative !important;
    width: 100%;
    z-index: 100;
  }

  .parts-mobile-filter-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    background: #101010;
    color: #fff;
    border: 2px solid #ff6600;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .parts-mobile-filter-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 55vh;
    overflow-y: auto;
    background: #202020;
    border: 1px solid #ff6600;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,.55);
    z-index: 9999;
  }

  .parts-mobile-filter.open .parts-mobile-filter-list {
    display: block !important;
  }

  .parts-mobile-filter-option {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 15px 18px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #383838;
    color: #fff;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
  }

  .parts-mobile-filter-option.selected {
    background: #34251c;
    color: #ff6600;
    font-weight: 700;
  }
}

@media screen and (min-width: 769px) {
  .parts-mobile-filter {
    display: none !important;
  }
}
