/* PC Builder Wizard */
.pc-builder { max-width: 1200px; margin: 20px auto; padding: 0 15px; }
.pc-builder h1 { text-align: center; margin-bottom: 5px; color: #333; }
.pc-builder .subtitle { text-align: center; color: #777; margin-bottom: 25px; }

/* Step Wizard Nav */
.step-wizard { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 25px; padding: 0; list-style: none; background: #f5f5f5; border-radius: 4px; }
.step-wizard li { flex: 1; text-align: center; padding: 12px 8px; font-size: 12px; color: #999; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; min-width: 80px; }
.step-wizard li.active { color: #337ab7; border-bottom-color: #337ab7; font-weight: bold; background: #e8f0fe; }
.step-wizard li.completed { color: #5cb85c; border-bottom-color: #5cb85c; }
.step-wizard li.completed:after { content: ' \2713'; }
.step-wizard li:hover { background: #eee; }

/* Layout */
.builder-layout { display: flex; gap: 20px; }
.builder-main { flex: 1; min-width: 0; }
.builder-sidebar { width: 300px; flex-shrink: 0; }

/* Filters */
.builder-filters { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.builder-filters input, .builder-filters select { padding: 6px 10px; border: 1px solid #ccc; border-radius: 3px; font-size: 13px; }
.builder-filters input[type="text"] { flex: 1; min-width: 150px; }
.builder-filters select { min-width: 120px; }

/* Product Grid */
.component-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.component-card { border: 1px solid #ddd; border-radius: 4px; padding: 12px; background: #fff; transition: box-shadow 0.2s; display: flex; flex-direction: column; }
.component-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.component-card.selected { border-color: #337ab7; box-shadow: 0 0 0 2px rgba(51,122,183,0.3); }
.component-card img { width: 100%; height: 140px; object-fit: contain; margin-bottom: 8px; }
.component-card .mfg { font-size: 11px; color: #999; text-transform: uppercase; }
.component-card .name { font-size: 13px; color: #333; margin: 4px 0; line-height: 1.3; height: 52px; overflow: hidden; }
.component-card .part { font-size: 11px; color: #666; margin-bottom: 6px; }
.component-card .price { font-size: 18px; font-weight: bold; color: #c00; }
.component-card .qty { font-size: 11px; color: #5cb85c; }
.component-card .btn-select { width: 100%; margin-top: auto; padding: 8px; border: none; border-radius: 3px; cursor: pointer; font-size: 13px; font-weight: bold; background: #337ab7; color: #fff; }
.component-card .btn-select:hover { background: #286090; }
.component-card .btn-select.selected-btn { background: #5cb85c; }

/* Build Summary Sidebar */
.build-summary { position: sticky; top: 20px; border: 1px solid #ddd; border-radius: 4px; background: #fff; }
.build-summary h3 { margin: 0; padding: 12px 15px; background: #337ab7; color: #fff; border-radius: 4px 4px 0 0; font-size: 16px; }
.build-summary .summary-items { padding: 0; margin: 0; list-style: none; }
.build-summary .summary-items li { padding: 10px 15px; border-bottom: 1px solid #eee; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.build-summary .summary-items li .item-label { color: #999; font-size: 11px; }
.build-summary .summary-items li .item-name { color: #333; font-weight: 500; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.build-summary .summary-items li .item-price { color: #c00; font-weight: bold; white-space: nowrap; }
.build-summary .summary-items li .remove-btn { color: #d9534f; cursor: pointer; font-size: 14px; margin-left: 5px; }
.build-summary .summary-total { padding: 12px 15px; font-size: 18px; font-weight: bold; text-align: right; border-top: 2px solid #337ab7; color: #333; }
.build-summary .btn-cart { width: calc(100% - 30px); margin: 0 15px 15px; padding: 10px; border: none; border-radius: 3px; background: #5cb85c; color: #fff; font-size: 15px; font-weight: bold; cursor: pointer; }
.build-summary .btn-cart:hover { background: #449d44; }
.build-summary .btn-cart:disabled { background: #ccc; cursor: not-allowed; }
.build-summary .btn-skip { width: calc(100% - 30px); margin: 0 15px 10px; padding: 8px; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: #666; font-size: 13px; cursor: pointer; }
.build-summary .btn-skip:hover { background: #f5f5f5; }

/* Loading */
.builder-loading { text-align: center; padding: 60px; color: #999; font-size: 16px; }

/* Empty state */
.builder-empty { text-align: center; padding: 40px; color: #999; }

/* Step navigation buttons */
.step-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.step-nav button { padding: 10px 25px; border: 1px solid #ccc; border-radius: 3px; background: #fff; cursor: pointer; font-size: 14px; }
.step-nav button.btn-next { background: #337ab7; color: #fff; border-color: #337ab7; }
.step-nav button.btn-next:hover { background: #286090; }

/* Responsive */
@media (max-width: 768px) {
    .builder-layout { flex-direction: column-reverse; }
    .builder-sidebar { width: 100%; }
    .build-summary { position: static; }
    .component-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .step-wizard li { font-size: 10px; padding: 8px 4px; }
}
