/* product-picker.css - 产品类型级联选择器 */
.ptp { position: relative; width: 100%; }
.ptp-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fafaf8;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.ptp-trigger:hover { border-color: #bbb; background: #fff; }
.ptp.open .ptp-trigger { border-color: #999; background: #fff; box-shadow: 0 0 0 2px rgba(26,26,26,.06); }
.ptp-trigger-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptp-trigger-text.placeholder { color: #aaa; }
.ptp-chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: #999;
  transition: transform .2s;
}
.ptp.open .ptp-chevron { transform: rotate(180deg); }

.ptp-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border: 0.5px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  overflow: hidden;
}
.ptp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 0.5px solid #eee;
  background: #fafaf8;
}
.ptp-search-icon { font-size: 14px; color: #aaa; flex-shrink: 0; }
.ptp-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  outline: none;
}
.ptp-search input::placeholder { color: #bbb; }

.ptp-body {
  display: flex;
  min-height: 220px;
  max-height: 320px;
}
.ptp-col {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  flex: 1;
}
.ptp-col-cat {
  flex: 0 0 42%;
  max-width: 42%;
  border-right: 0.5px solid #eee;
  background: #fafaf8;
}
.ptp-col-item { flex: 1; background: #fff; }

.ptp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 12px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  line-height: 1.35;
  transition: background .1s;
}
.ptp-item:hover { background: #f0f0ec; }
.ptp-item.active {
  background: #e8e8e4;
  color: #1a1a1a;
  font-weight: 500;
}
.ptp-item.selected {
  color: #1565c0;
  font-weight: 500;
}
.ptp-item-arrow {
  font-size: 11px;
  color: #ccc;
  flex-shrink: 0;
}
.ptp-item-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ptp-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

@media (max-width: 520px) {
  .ptp-body { min-height: 200px; max-height: 280px; }
  .ptp-col-cat { flex: 0 0 38%; max-width: 38%; }
  .ptp-item { padding: 10px 10px; font-size: 12px; }
}
