/* Auto Parts filter box */
.auto-parts-filter {
  width: 100%;
  padding: 24px;
  margin: 24px 0 36px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Dropdown row */
.auto-parts-filter-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

/* Dropdowns */
.auto-parts-filter select {
  width: 100%;
  height: 50px;
  padding: 0 42px 0 16px;
  font-size: 15px;
  color: #222222;
  background-color: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auto-parts-filter select:hover {
  border-color: #999999;
}

.auto-parts-filter select:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.auto-parts-filter select:disabled {
  color: #999999;
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Button row */
.auto-parts-filter-actions {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 12px;
}

/* Search and reset buttons */
.auto-parts-filter button,
.auto-parts-filter a {
  height: 48px;
  min-width: 150px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Search button */
.auto-parts-filter button {
  font-weight: 600;
  color: #ffffff;
  background: #111111;
  border: 1px solid #111111;
}

.auto-parts-filter button:hover {
  background: #333333;
  border-color: #333333;
  transform: translateY(-1px);
}

/* Reset button */
.auto-parts-filter a {
  color: #333333;
  background: #ffffff;
  border: 1px solid #dddddd;
}

.auto-parts-filter a:hover {
  background: #f7f7f7;
  border-color: #bbbbbb;
}

/* Hide cart icon for request-only auto parts */
li.product.nexon-request-only-product .add_to_cart_wrap {
  display: none !important;
}

/* Center quick view / eye icon after cart icon is hidden */
li.product.nexon-request-only-product .bottom-info {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

li.product.nexon-request-only-product .woosq_wrap {
  margin: 0 auto !important;
}

.select_container:after {
    right: 5px !important;
}

/* Tablet */
@media (max-width: 900px) {
  .auto-parts-filter-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .auto-parts-filter {
    padding: 18px;
    margin: 18px 0 28px;
    width: 90%;
  }

  .auto-parts-filter-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auto-parts-filter-actions {
    flex-direction: column;
    gap: 10px;
  }

  .auto-parts-filter button,
  .auto-parts-filter a {
    width: 90%;
    padding: 0px;
  }
}