.select-option-with-images {
  position: relative;
  width: 100%;
}

.selected-option-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  min-height: 38px;
}

.selected-option-display:hover {
  border-color: #999;
}

.selected-option-display .selected-text {
  flex: 1;
  color: #333;
  font-size: 14px;
}

.selected-option-display .fa-chevron-down {
  color: #666;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.selected-option-display.active .fa-chevron-down {
  transform: rotate(180deg);
}

.options-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.option-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

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

.option-item:hover {
  background-color: #f8f8f8;
}

.option-item.selected {
  background-color: #e3f2fd;
}

.option-item img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.option-item .option-name {
  flex: 1;
  color: #333;
  font-size: 14px;
  margin-right: 8px;
}

.option-item .option-price {
  color: #666;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .options-dropdown {
    max-height: 150px;
  }
  
  .option-item {
    padding: 10px 12px;
  }
  
  .option-item img {
    width: 25px;
    height: 25px;
  }
}

/* 与主题兼容性 */
.product-option-select .select-option-with-images {
  margin-top: 5px;
}

.form-group.required .selected-option-display {
  border-color: #ff6b6b;
}

.form-group.required .selected-option-display:hover {
  border-color: #ff5252;
}