/* Update container width to 950px */
.container {
    max-width: 850px !important; /* Using !important to ensure this width is applied */
    margin: 0 auto;
    padding: 20px;
}

/* Rest of the CSS remains the same */
:root {
    --primary-blue: #2563eb;
    --light-gray: #f8fafc;
    --border-color: #e5e7eb;
    --text-color: #374151;
}

body {
    background: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
}

/* PC Builder Container */
.pcb-container {
    padding: 20px;
    margin-top: 80px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Header Section */
.pcb-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.startech-logo img {
    height: 32px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.all-actions {
    display: flex;
    gap: 8px;
}

.action {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--primary-blue);
    background: #fff;
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.action:hover {
    background: var(--primary-blue);
    color: #fff;
}

.action i {
    font-size: 18px;
    margin-right: 4px;
}

/* Top Content */
.pcb-inner-content {
    padding: 24px;
}

.pcb-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pcb-top-content h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.total-amount {
    text-align: right;
}

.amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    display: block;
}

.items {
    font-size: 14px;
    color: #6b7280;
}

/* Content Section */
.pcb-content {
    background: #fff;
}

.content-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Component Items */
.c-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.c-item .img {
    flex: 0 0 32px;
    margin-right: 16px;
}

.c-item .img img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.c-item .details {
    flex: 1;
    min-width: 0;
}

.component-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mark {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
}

.product-name {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    margin: 0 24px;
    min-width: 100px;
    text-align: right;
}

.price {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Blank Component Items */
.c-item.blank {
    padding: 16px 0;
    justify-content: space-between;
}

.c-item.blank .component-name {
    margin: 0;
}

.btn.st-outline {
    padding: 6px 16px;
    font-size: 14px;
    color: var(--primary-blue);
    background: #fff;
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn.st-outline:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* Selected Component Styles */
.c-item.selected {
    background: var(--light-gray);
}

.c-item.selected .product-name {
    color: var(--text-color);
}

.action-items {
    display: flex;
    gap: 8px;
}

.action-items .action {
    padding: 4px;
    color: #6b7280;
    border: none;
}

.action-items .action:hover {
    background: #f3f4f6;
    color: var(--text-color);
}

.action-items .action i {
    margin: 0;
    font-size: 20px;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        max-width: 100% !important;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .pcb-head {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .action-text {
        display: none;
    }

    .pcb-top-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .m-hide {
        display: none;
    }

    .c-item {
        padding: 12px 0;
    }

    .item-price {
        margin: 0 12px;
    }
}

@media (max-width: 480px) {
    .pcb-inner-content {
        padding: 16px;
    }

    .all-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .action {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }
}
