
/* Custom Dropdown Styling */
.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-dropdown-trigger {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  font-size: 0.875rem;
  color: white;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-dropdown-trigger:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #ff7ab6;
  box-shadow: 0 0 0 3px rgba(255, 122, 182, 0.1);
  transform: translateY(-1px);
}

.custom-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 122, 182, 0.3);
}

.custom-dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.custom-dropdown:hover .custom-dropdown-arrow {
  border-top-color: #ff7ab6;
}

.custom-dropdown.open .custom-dropdown-arrow {
  border-top-color: #ff7ab6;
  transform: rotate(180deg);
}

.custom-dropdown.open .custom-dropdown-trigger {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ff7ab6;
  box-shadow: 0 0 0 3px rgba(255, 122, 182, 0.1);
}

.custom-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 182, 0.5) transparent;
}

.custom-dropdown-list::-webkit-scrollbar {
  width: 4px;
}

.custom-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 122, 182, 0.5);
  border-radius: 2px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 122, 182, 0.7);
}

.custom-dropdown.open .custom-dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-dropdown-option {
  padding: 0.75rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
}

.custom-dropdown-option:last-child {
  border-bottom: none;
}

.custom-dropdown-option:hover {
  background: rgba(255, 122, 182, 0.1);
  color: #ff7ab6;
}

.custom-dropdown-option.selected {
  background: rgba(255, 122, 182, 0.2);
  color: #ff7ab6;
  font-weight: 600;
}

.custom-dropdown-option.selected::after {
  content: "✓";
  float: right;
  color: #ff7ab6;
  font-weight: bold;
}

/* Clear Filters Button */
.clear-filters-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.clear-filters-btn:hover {
  background: rgba(255, 122, 182, 0.1);
  border-color: rgba(255, 122, 182, 0.3);
  color: #ff7ab6;
  transform: translateY(-1px);
}

.clear-filters-btn:active {
  transform: translateY(0);
  background: rgba(255, 122, 182, 0.2);
}

.clear-filters-btn:focus {
  outline: none;
  border-color: #ff7ab6;
  box-shadow: 0 0 0 3px rgba(255, 122, 182, 0.1);
}

.clear-filters-btn svg {
  transition: transform 0.2s ease;
}

.clear-filters-btn:hover svg {
  transform: rotate(90deg);
}

/* Custom Search Input */
.custom-search {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  color: white;
  width: 100%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.custom-search:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #ff7ab6;
  box-shadow: 0 0 0 3px rgba(255, 122, 182, 0.1);
  transform: translateY(-1px);
}

.custom-search:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 122, 182, 0.3);
}

.custom-search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Model Card Styles */
.model-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.model-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
}

.model-image-container {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.model-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.model-card:hover .model-image {
  transform: scale(1.04);
}

.model-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 12px;
}

.purchased-btn {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(34, 197, 94, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  flex: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.purchased-btn:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.view-details-btn {
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(236, 72, 153, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  flex: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.view-details-btn:hover {
  background: rgba(236, 72, 153, 0.3);
  border-color: rgba(236, 72, 153, 0.5);
  transform: translateY(-1px);
}

.model-info {
  padding: 16px 14px 20px;
  text-align: center;
}

.model-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.model-description {
  color: rgba(255,255,255,0.75);
  margin: 0;
}
