/* Minimal, theme-neutral styles */
.paf-configurator {
  color: inherit;
}
.paf-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.paf-field label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 6px;
}

.paf-select-wrapper {
  position: relative;
}

.paf-searchable-select {
  width: 100%;
  padding: 8px 12px 8px 8px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.paf-searchable-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.paf-searchable-select:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 1px #e53935;
  outline: none;
  cursor: text;
}

.paf-searchable-select.has-selection {
  border-color: #4caf50;
}

.paf-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111;
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.paf-dropdown-item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #333;
  transition: background-color 0.2s;
}

.paf-dropdown-item:hover,
.paf-dropdown-item.highlighted {
  background-color: #333;
}

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

.paf-dropdown-item.selected {
  background-color: #e53935;
}

.paf-no-results {
  padding: 10px;
  text-align: center;
  color: #999;
  font-style: italic;
}

.paf-summary {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.paf-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.paf-title {
  margin: 0;
  font-weight: 600;
}
.paf-cta {
  background: #e53935;
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.paf-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.paf-stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  text-transform: uppercase;
}
.paf-power,
.paf-torque {
  font-size: 2.4rem;
  line-height: 1.1;
  font-weight: 700;
}
.paf-sub {
  opacity: 0.7;
  margin-top: 6px;
}

.paf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.paf-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}
.paf-card-img {
  background: #222 center/cover no-repeat;
  aspect-ratio: 16/9;
}
.paf-card-body {
  padding: 12px;
}
.paf-card-title {
  font-weight: 600;
  margin-bottom: 6px;
}
.paf-card-price {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .paf-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Loading Spinner */
.paf-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  min-height: 100px;
}

.paf-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #e53935;
  border-radius: 50%;
  animation: paf-spin 1s linear infinite;
}

@keyframes paf-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.paf-loading-text {
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Summary loading spinner */
.paf-summary-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  margin-bottom: 20px;
}

.paf-summary-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #e53935;
  border-radius: 50%;
  animation: paf-spin 1s linear infinite;
}

.paf-summary-loading-text {
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* Contact form (optional) */
.paf-contact-form {
  display: block;
}
.paf-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.paf-contact-form input,
.paf-contact-form textarea {
  width: 100%;
  padding: 10px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 4px;
}
.paf-btn {
  background: #e53935;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.paf-contact-success {
  background: #1b5e20;
  color: #fff;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
