/* Grid Styles */
.vpf-finder-wrapper {
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.vpf-finder-wrapper h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5em;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.vpf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.vpf-grid-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: #fff;
}

.vpf-grid-item:hover,
.vpf-grid-item.vpf-active {
  border-color: #0073aa;
  box-shadow: 0 4px 15px rgba(0, 115, 170, 0.1);
  transform: translateY(-3px);
}

.vpf-grid-item img {
  max-width: 80px;
  height: 80px;
  margin-bottom: 10px;
  object-fit: contain;
}

.vpf-grid-item span {
  font-weight: 600;
  color: #444;
  display: block;
}

#vpf-subcategory-container {
  margin-top: 30px;
}

/* Modal Styles */
#vpf-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#vpf-modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#vpf-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

#vpf-modal-content h3 {
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
}

.vpf-modal-selectors select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
}

#vpf-find-parts {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  margin-top: 10px;
}
