/* === static/css/home.css === */

/* ─── Home Page ──────────────────────────────────── */
.home-page {
  padding: 2rem 1rem;
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── PCB Cards Grid ─────────────────────────────── */
.pcb-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px)  { .pcb-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pcb-cards-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── PCB Card ───────────────────────────────────── */
.pcb-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pcb-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.pcb-card-featured {
  border-color: #fbbf24;
  background: #fffbeb;
}

/* Image */
.pcb-card-image {
  position: relative;
  height: 8rem;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.pcb-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.pcb-card-body {
  padding: 0.75rem;
  margin-top: 1rem;
}

.pcb-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.375rem;
}

.pcb-card-subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.pcb-price { color: #f97316; font-weight: 600; }

.pcb-card-list {
  list-style: disc;
  padding-right: 1.25rem;
  font-size: 0.8125rem;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

/* Actions */
.pcb-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.pcb-card-btn {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  transition: background 0.15s;
}

.pcb-card-btn-default  { background: #3b82f6; }
.pcb-card-btn-default:hover  { background: #2563eb; }
.pcb-card-btn-featured { background: #f59e0b; }
.pcb-card-btn-featured:hover { background: #d97706; }

.pcb-learn-more {
  font-size: 0.875rem;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.pcb-learn-more:hover { color: #374151; }

/* Badge */
.pcb-card-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #fbbf24;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  z-index: 1;
}

/* ─── OptionButton (utility class) ──────────────── */
.option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  background: #ffffff;
  color: #374151;
}

.option-btn:hover    { background: #f9fafb; }
.option-btn:focus    { outline: none; box-shadow: 0 0 0 2px #bfdbfe; }

.option-btn.selected {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.option-btn .option-btn-icon { margin-left: 0.5rem; }