/**
 * Statikko PC Builder - BuildCores-inspired Design
 * Modern visual component selection interface
 */

/* ============================================
   PAGE WRAPPER
   ============================================ */
.pcb-page {
    min-height: 100vh;
    padding: 40px 20px 80px 20px;
    background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
    box-sizing: border-box;
}

.pcb-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.pcb-header {
    text-align: center;
    margin-bottom: 48px;
    width: 100%;
}

.pcb-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.pcb-header h1 i {
    color: #f5c518;
    filter: drop-shadow(0 0 20px rgba(245, 197, 24, 0.3));
}

.pcb-header p {
    font-size: 17px;
    color: #888888;
    max-width: 600px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.pcb-header-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pcb-header-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
}

/* ============================================
   MAIN LAYOUT - TWO COLUMN
   ============================================ */
.pcb-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

/* Component Grid - Left Side */
.pcb-grid {
    flex: 1;
    min-width: 300px;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Sidebar - Right Side */
.pcb-sidebar {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
}

/* ============================================
   COMPONENT CARDS
   ============================================ */
.pcb-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #111111 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pcb-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 197, 24, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 197, 24, 0.1);
}

.pcb-card.has-selection {
    border-color: rgba(245, 197, 24, 0.4);
    background: linear-gradient(145deg, #1f1a14 0%, #151210 100%);
}

.pcb-card.has-selection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f5c518;
}

/* Card Visual Area */
.pcb-card-visual {
    position: relative;
    height: 140px;
    background: radial-gradient(circle at center, rgba(245, 197, 24, 0.05) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pcb-card-icon {
    font-size: 52px;
    color: rgba(245, 197, 24, 0.2);
    transition: all 0.3s ease;
}

.pcb-card:hover .pcb-card-icon {
    color: rgba(245, 197, 24, 0.35);
    transform: scale(1.1);
}

.pcb-card-product-img {
    max-width: 85%;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.pcb-card:hover .pcb-card-product-img {
    transform: scale(1.05);
}

/* Card Badge */
.pcb-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.pcb-card-badge.required {
    background: rgba(245, 197, 24, 0.15);
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.3);
}

.pcb-card-badge.optional {
    background: rgba(255, 255, 255, 0.05);
    color: #888888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Content */
.pcb-card-content {
    padding: 16px 20px 20px 20px;
}

.pcb-card-type {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.pcb-card-type i {
    color: #f5c518;
    font-size: 14px;
}

.pcb-card-type span {
    font-size: 12px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pcb-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pcb-card-desc {
    font-size: 13px;
    color: #888888;
    margin-bottom: 14px;
}

/* Selected Product Info */
.pcb-card-selected {
    display: none;
}

.pcb-card.has-selection .pcb-card-selected {
    display: block;
}

.pcb-card.has-selection .pcb-card-empty {
    display: none;
}

.pcb-card-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pcb-card-product-brand {
    font-size: 11px;
    color: #888888;
    margin-bottom: 4px;
}

.pcb-card-price {
    font-size: 18px;
    font-weight: 800;
    color: #f5c518;
    margin-top: 6px;
}

/* Card Buttons */
.pcb-card-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pcb-card-btn.add {
    background: rgba(245, 197, 24, 0.1);
    color: #f5c518;
    border: 1px dashed rgba(245, 197, 24, 0.4);
}

.pcb-card-btn.add:hover {
    background: rgba(245, 197, 24, 0.2);
    border-style: solid;
}

.pcb-card-btn.change {
    background: #f5c518;
    color: #0d0d0d;
}

.pcb-card-btn.change:hover {
    background: #ffd84d;
    transform: translateY(-1px);
}

.pcb-card.has-selection .pcb-card-btn.add {
    display: none;
}

.pcb-card:not(.has-selection) .pcb-card-btn.change {
    display: none;
}

/* Remove Button */
.pcb-remove-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.pcb-card:hover .pcb-remove-btn {
    opacity: 1;
}

.pcb-remove-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: scale(1.1);
}

.pcb-card:not(.has-selection) .pcb-remove-btn {
    display: none;
}

/* ============================================
   SIDEBAR SUMMARY
   ============================================ */
.pcb-summary {
    background: linear-gradient(145deg, #1a1a1a 0%, #111111 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.pcb-summary-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pcb-summary-header i {
    font-size: 22px;
    color: #f5c518;
}

.pcb-summary-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Build Items List */
.pcb-build-list {
    max-height: 280px;
    overflow-y: auto;
}

.pcb-build-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.pcb-build-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

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

.pcb-build-item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    object-fit: contain;
    padding: 4px;
}

.pcb-build-item-empty {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    font-size: 14px;
    flex-shrink: 0;
}

.pcb-build-item-info {
    flex: 1;
    min-width: 0;
}

.pcb-build-item-type {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pcb-build-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcb-build-item-name.empty {
    color: #666666;
    font-weight: 400;
}

.pcb-build-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #f5c518;
    white-space: nowrap;
}

.pcb-build-item-price.empty {
    color: #666666;
    font-weight: 400;
}

/* Summary Stats */
.pcb-summary-stats {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pcb-stat {
    text-align: center;
    padding: 12px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.pcb-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.pcb-stat-label {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Compatibility Section */
.pcb-compat {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pcb-compat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #888888;
}

.pcb-compat.good .pcb-compat-header {
    color: #00ff88;
}

.pcb-compat.warning .pcb-compat-header {
    color: #ffaa00;
}

.pcb-compat.error .pcb-compat-header {
    color: #ff4444;
}

.pcb-compat-messages {
    font-size: 11px;
    color: #888888;
}

.pcb-compat-messages p {
    padding: 4px 0;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pcb-compat-messages p i {
    margin-top: 2px;
}

.pcb-compat-messages p.warning i {
    color: #ffaa00;
}

.pcb-compat-messages p.issue i {
    color: #ff4444;
}

.pcb-compat-messages p.all-good {
    color: #00ff88;
}

.pcb-compat-messages p.all-good i {
    color: #00ff88;
}

/* Summary Total */
.pcb-summary-total {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.1) 0%, rgba(245, 197, 24, 0.05) 100%);
    border-top: 1px solid rgba(245, 197, 24, 0.2);
}

.pcb-total-label {
    font-size: 12px;
    color: #888888;
    margin-bottom: 4px;
}

.pcb-total-amount {
    font-size: 28px;
    font-weight: 800;
    color: #f5c518;
    text-shadow: 0 0 30px rgba(245, 197, 24, 0.3);
}

/* Summary Actions */
.pcb-summary-actions {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pcb-summary-actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pcb-summary-actions .btn-primary {
    background: linear-gradient(135deg, #f5c518 0%, #ffd84d 50%, #f5c518 100%);
    color: #0d0d0d;
    border: none;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.3);
}

.pcb-summary-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 197, 24, 0.4);
}

.pcb-summary-actions .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pcb-summary-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pcb-summary-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Tips Banner - Top of Page */
.pcb-tips-banner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.1) 0%, rgba(245, 197, 24, 0.05) 100%);
    border: 1px solid rgba(245, 197, 24, 0.2);
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 32px;
}

.pcb-tips-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 197, 24, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pcb-tips-icon i {
    font-size: 22px;
    color: #f5c518;
}

.pcb-tips-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #f5c518;
    margin: 0 0 12px 0;
}

.pcb-tips-content ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pcb-tips-content li {
    font-size: 13px;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcb-tips-content li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #f5c518;
}

.pcb-tips-content li strong {
    color: #ffffff;
}

@media (max-width: 768px) {
    .pcb-tips-banner {
        flex-direction: column;
        padding: 16px 20px;
    }

    .pcb-tips-content ul {
        grid-template-columns: 1fr;
    }
}

/* Tips Card (legacy - sidebar version) */
.pcb-tips {
    margin-top: 20px;
    background: linear-gradient(145deg, #1a1a1a 0%, #111111 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
}

.pcb-tips h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #f5c518;
    margin: 0 0 12px 0;
}

.pcb-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pcb-tips li {
    font-size: 11px;
    color: #888888;
    padding: 5px 0 5px 16px;
    position: relative;
}

.pcb-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #f5c518;
    border-radius: 50%;
}

/* ============================================
   MODAL
   ============================================ */
.pcb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pcb-modal-overlay.show {
    display: flex;
}

.pcb-modal {
    background: linear-gradient(145deg, #1f1f1f 0%, #141414 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.pcb-modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pcb-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pcb-modal-title i {
    color: #f5c518;
}

.pcb-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcb-modal-close:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.pcb-modal-filters {
    padding: 16px 28px;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pcb-modal-search {
    flex: 1;
    position: relative;
}

.pcb-modal-search input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
}

.pcb-modal-search input::placeholder {
    color: #888888;
}

.pcb-modal-search input:focus {
    outline: none;
    border-color: #f5c518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.1);
}

.pcb-modal-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
}

.pcb-modal-sort select {
    padding: 12px 36px 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.pcb-modal-sort select option {
    background: #1a1a1a;
    color: #ffffff;
}

.pcb-modal-sort select:focus {
    outline: none;
    border-color: #f5c518;
}

/* Product Grid in Modal */
.pcb-modal-products {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
}

.pcb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* Product Card in Modal */
.pcb-product-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcb-product-card:hover {
    border-color: rgba(245, 197, 24, 0.4);
    background: rgba(245, 197, 24, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pcb-product-image {
    height: 160px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pcb-product-image img {
    max-width: 100%;
    max-height: 128px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pcb-product-card:hover .pcb-product-image img {
    transform: scale(1.08);
}

.pcb-product-info {
    padding: 16px;
}

.pcb-product-brand {
    font-size: 10px;
    color: #f5c518;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pcb-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.pcb-product-specs {
    font-size: 11px;
    color: #888888;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}

.pcb-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pcb-product-price {
    font-size: 18px;
    font-weight: 800;
    color: #f5c518;
}

.pcb-product-select {
    padding: 8px 16px;
    background: #f5c518;
    color: #0d0d0d;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pcb-product-select:hover {
    background: #ffd84d;
    transform: scale(1.05);
}

/* Compatibility Notice */
.pcb-compat-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.3);
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #f5c518;
}

.pcb-compat-notice i {
    font-size: 14px;
}

.pcb-compat-count {
    margin-left: auto;
    background: rgba(245, 197, 24, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

/* Compatibility Badges */
.pcb-compat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.pcb-compat-badge.compatible {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.pcb-compat-badge.incompatible {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Incompatible Product Card */
.pcb-product-card {
    position: relative;
}

.pcb-product-card.incompatible {
    opacity: 0.6;
    order: 1;
}

.pcb-product-card.incompatible:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.pcb-product-card.incompatible .pcb-product-select {
    background: #666666;
    color: #ffffff;
}

.pcb-product-card.incompatible .pcb-product-select:hover {
    background: #888888;
}

/* Incompatibility Reason */
.pcb-incompat-reason {
    font-size: 11px;
    color: #ef4444;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pcb-incompat-reason i {
    font-size: 12px;
}

/* Modal Footer */
.pcb-modal-footer {
    padding: 14px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pcb-products-count {
    font-size: 13px;
    color: #888888;
}

/* Loading and Empty States */
.pcb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #888888;
    gap: 16px;
}

.pcb-loading i {
    font-size: 36px;
    color: #f5c518;
}

.pcb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
}

.pcb-empty i {
    font-size: 44px;
    color: #888888;
    margin-bottom: 16px;
}

.pcb-empty h4 {
    font-size: 17px;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.pcb-empty p {
    color: #888888;
    font-size: 13px;
    margin: 0;
}

/* Scrollbar Styling */
.pcb-build-list::-webkit-scrollbar,
.pcb-modal-products::-webkit-scrollbar {
    width: 6px;
}

.pcb-build-list::-webkit-scrollbar-track,
.pcb-modal-products::-webkit-scrollbar-track {
    background: transparent;
}

.pcb-build-list::-webkit-scrollbar-thumb,
.pcb-modal-products::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.pcb-build-list::-webkit-scrollbar-thumb:hover,
.pcb-modal-products::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .pcb-layout {
        flex-direction: column;
        align-items: center;
    }

    .pcb-grid {
        max-width: 700px;
        width: 100%;
        order: 2;
    }

    .pcb-sidebar {
        width: 100%;
        max-width: 700px;
        position: static;
        order: 1;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .pcb-page {
        padding: 24px 16px 60px 16px;
    }

    .pcb-header h1 {
        font-size: 28px;
    }

    .pcb-header p {
        font-size: 14px;
    }

    .pcb-grid {
        grid-template-columns: 1fr;
    }

    .pcb-card-visual {
        height: 120px;
    }

    .pcb-modal {
        border-radius: 16px;
        max-height: 92vh;
    }

    .pcb-modal-header,
    .pcb-modal-filters,
    .pcb-modal-products,
    .pcb-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pcb-modal-filters {
        flex-direction: column;
    }

    .pcb-products-grid {
        grid-template-columns: 1fr;
    }

    .pcb-total-amount {
        font-size: 24px;
    }
}

/* ============================================
   STOCK STATUS BADGES
   ============================================ */
.pcb-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.pcb-stock-badge.in-stock {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.pcb-stock-badge.from-supplier {
    background: rgba(245, 197, 24, 0.15);
    color: #f5c518;
    border: 1px solid rgba(245, 197, 24, 0.3);
}

.pcb-stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Out of stock product cards in modal */
.pcb-product-card.out-of-stock {
    opacity: 0.5;
    order: 999;
}

.pcb-product-card.out-of-stock .pcb-product-select {
    background: #666666;
    cursor: not-allowed;
}

.pcb-product-card.out-of-stock .pcb-product-select:hover {
    background: #666666;
    transform: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .pcb-header-actions,
    .pcb-card-btn,
    .pcb-remove-btn,
    .pcb-summary-actions,
    .pcb-tips,
    .pcb-modal-overlay {
        display: none !important;
    }

    .pcb-page {
        background: white !important;
        padding: 20px !important;
    }

    .pcb-card,
    .pcb-summary {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .pcb-card-icon,
    .pcb-card-type i,
    .pcb-summary-header i {
        color: #333 !important;
    }

    .pcb-header h1,
    .pcb-card-name,
    .pcb-card-product-name,
    .pcb-build-item-name,
    .pcb-summary-header h3 {
        color: #000 !important;
    }

    .pcb-header p,
    .pcb-card-desc,
    .pcb-card-product-brand,
    .pcb-build-item-type,
    .pcb-stat-label {
        color: #666 !important;
    }

    .pcb-card-price,
    .pcb-build-item-price,
    .pcb-total-amount {
        color: #c9a000 !important;
    }
}
