/* Container & Main Layout */
.pc-builder-wrapper {
    display: flex;
    gap: 25px;
    background: #f8f9fa;
    color: #212529;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.pc-builder-main { 
    flex: 3; 
}

/* Sidebar Quotation Panel */
.pc-builder-sidebar { 
    flex: 1.2; 
    background: #ffffff; 
    padding: 20px; 
    border-radius: 10px; 
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pc-builder-sidebar h3 {
    margin-top: 0;
    color: #003875;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Category Filter Tabs */
.pc-category-tabs { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
    margin-bottom: 20px; 
}

.pc-cat-btn {
    background: #ffffff;
    color: #495057;
    border: 1px solid #ced4da;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pc-cat-btn:hover {
    background: #e9ecef;
}

.pc-cat-btn.active { 
    background: #003875; 
    color: #ffffff; 
    border-color: #003875;
}

/* Product Cards Grid */
.pc-product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 15px; 
}

.pc-product-card { 
    background: #ffffff; 
    padding: 15px; 
    border-radius: 8px; 
    text-align: center; 
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pc-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.pc-product-card img { 
    max-width: 100%; 
    height: 120px; 
    object-fit: contain;
    margin-bottom: 10px;
}

.pc-product-card h4 {
    font-size: 14px;
    color: #333;
    margin: 8px 0;
    line-height: 1.3;
}

.pc-card-price {
    font-weight: 700;
    color: #003875;
    margin-bottom: 10px;
    font-size: 15px;
}

/* Add Button */
.pc-add-btn { 
    background: #003875; 
    border: none; 
    padding: 8px 16px; 
    color: #ffffff; 
    font-weight: 600; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: background 0.2s;
}

.pc-add-btn:hover {
    background: #0288d1;
}

/* Sidebar Inputs */
.pc-builder-sidebar input, 
.pc-builder-sidebar textarea {
    width: 100%;
    margin-bottom: 12px;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    color: #333333;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

.pc-builder-sidebar input:focus, 
.pc-builder-sidebar textarea:focus {
    outline: none;
    border-color: #003875;
    background: #ffffff;
}

/* Selected Items List */
.pc-quote-items { 
    max-height: 250px; 
    overflow-y: auto; 
    margin: 15px 0; 
    border-top: 1px solid #eee; 
}

.pc-item-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 10px 0; 
    border-bottom: 1px solid #eee; 
    font-size: 13px; 
    color: #444;
}

/* Totals */
.pc-quote-totals {
    background: #f1f3f5;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    color: #495057;
}

.total-row strong {
    color: #003875;
}

/* Action Buttons */
.pc-btn-cyan { 
    width: 100%; 
    background: #003875; 
    color: #ffffff; 
    font-weight: 600; 
    padding: 12px; 
    border: none; 
    margin-top: 8px; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: background 0.2s;
}

.pc-btn-cyan:hover {
    background: #0288d1;
}

.pc-btn-dark { 
    width: 100%; 
    background: #e9ecef; 
    color: #495057; 
    padding: 10px; 
    border: none; 
    margin-top: 8px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 600;
}

.pc-btn-dark:hover {
    background: #dee2e6;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .pc-builder-wrapper {
        flex-direction: column;
    }
}

/* Print Formatting */
@media print {
    body * { visibility: hidden; }
    .pc-builder-sidebar, .pc-builder-sidebar * { visibility: visible; }
    .pc-builder-sidebar { 
        position: absolute; 
        left: 0; 
        top: 0; 
        width: 100%; 
        color: #000000; 
        background: #ffffff; 
        border: none;
        box-shadow: none;
    }
    .pc-quote-actions, .pc-builder-sidebar input, .pc-builder-sidebar textarea { display: none; }
}