/* Modern PC Builder Frontend Styles */

:root {
    --pcb-primary: #7c9fd8;
    --pcb-primary-dark: #5e8bc9;
    --pcb-secondary: #a0c4e5;
    --pcb-success: #81c784;
    --pcb-danger: #e57373;
    --pcb-warning: #ffb74d;
    --pcb-dark: #4a5568;
    --pcb-gray: #9ca3af;
    --pcb-light-gray: #f8fafc;
    --pcb-border: #e5e7eb;
    --pcb-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --pcb-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --pcb-card-bg: #ffffff;
    --pcb-header-bg: linear-gradient(135deg, #a0c4ff 0%, #c4d7f2 100%);
    --pcb-amd-red: #ed1c24;
    --pcb-intel-blue: #0071c5;
}

* {
    box-sizing: border-box;
}

.pcb-builder-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--pcb-dark);
    background: var(--pcb-light-gray);
}

/* Brand Selection Section */
.pcb-brand-selection {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--pcb-shadow-lg);
    border: 1px solid var(--pcb-border);
}

.pcb-brand-header {
    text-align: center;
    margin-bottom: 40px;
}

.pcb-brand-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--pcb-dark);
    margin: 0 0 10px 0;
}

.pcb-brand-header p {
    font-size: 16px;
    color: var(--pcb-gray);
    margin: 0;
}

.pcb-brand-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.pcb-brand-card {
    background: white;
    border: 3px solid var(--pcb-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pcb-brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pcb-shadow-lg);
}

.pcb-brand-card[data-brand="amd"]:hover {
    border-color: var(--pcb-amd-red);
}

.pcb-brand-card[data-brand="intel"]:hover {
    border-color: var(--pcb-intel-blue);
}

.pcb-brand-logo {
    width: 180px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 15px;
}

.pcb-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pcb-brand-logo svg {
    width: 100%;
    height: 100%;
}

.pcb-brand-logo.amd-logo {
    background: linear-gradient(135deg, #fff5f5, #ffebee);
}

.pcb-brand-logo.intel-logo {
    background: linear-gradient(135deg, #e3f2fd, #e1f5fe);
}

.pcb-brand-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--pcb-dark);
}

.pcb-brand-card[data-brand="amd"] h3 {
    color: var(--pcb-amd-red);
}

.pcb-brand-card[data-brand="intel"] h3 {
    color: var(--pcb-intel-blue);
}

.pcb-brand-card p {
    font-size: 14px;
    color: var(--pcb-gray);
    margin: 0 0 20px 0;
}

.pcb-brand-select-btn {
    background: linear-gradient(135deg, var(--pcb-primary), var(--pcb-primary-dark));
    color: white;
    border: none;
    padding: 12px 36px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.pcb-brand-card[data-brand="amd"] .pcb-brand-select-btn {
    background: linear-gradient(135deg, var(--pcb-amd-red), #c41c22);
}

.pcb-brand-card[data-brand="intel"] .pcb-brand-select-btn {
    background: linear-gradient(135deg, var(--pcb-intel-blue), #005a9e);
}

.pcb-brand-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Selected Brand Badge */
/* Brand Card Styling */
.pcb-brand-card {
    border: 2px solid var(--pcb-border);
}

.pcb-brand-card.amd {
    border-color: var(--pcb-amd-red);
    background: linear-gradient(to right, #fff5f5, white);
}

.pcb-brand-card.intel {
    border-color: var(--pcb-intel-blue);
    background: linear-gradient(to right, #f0f9ff, white);
}

.pcb-brand-logo-container {
    width: 80px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
}

.pcb-brand-card.amd .pcb-brand-logo-container {
    background: linear-gradient(135deg, #fff5f5, #ffebee);
}

.pcb-brand-card.intel .pcb-brand-logo-container {
    background: linear-gradient(135deg, #e3f2fd, #e1f5fe);
}

.pcb-brand-badge-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.pcb-brand-badge-logo[src]:not([src=""]) {
    display: block;
}

.pcb-brand-card.amd h3 {
    color: var(--pcb-amd-red);
}

.pcb-brand-card.intel h3 {
    color: var(--pcb-intel-blue);
}

.pcb-brand-change-btn {
    background: none;
    border: 2px solid var(--pcb-border);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pcb-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pcb-brand-change-btn:hover {
    background: var(--pcb-light-gray);
    border-color: var(--pcb-primary);
    color: var(--pcb-primary);
}

/* Header */
.pcb-header {
    background: var(--pcb-header-bg);
    border-radius: 16px;
    padding: 30px 40px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--pcb-shadow-lg);
    color: #2d3748;
}

.pcb-header-content {
    flex: 1;
}

.pcb-title {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pcb-icon {
    width: 36px;
    height: 36px;
}

.pcb-subtitle {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
    font-weight: 400;
}

.pcb-total-display {
    text-align: right;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.pcb-total-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.pcb-total-amount {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Main Content Layout */
/* Main Content Area */
.pcb-main-content {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    align-items: start;
}

/* Component Cards */
.pcb-components-section {
    display: grid;
    gap: 16px;
}

.pcb-component-card {
    background: var(--pcb-card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--pcb-shadow);
    border: 2px solid var(--pcb-border);
    transition: all 0.3s ease;
}

.pcb-component-card:hover {
    border-color: var(--pcb-primary);
    box-shadow: var(--pcb-shadow-lg);
    transform: translateY(-2px);
}

.pcb-component-card.selected {
    border-color: var(--pcb-success);
    background: linear-gradient(to right, #e8f5e9, white);
}

.pcb-component-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pcb-component-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--pcb-primary), var(--pcb-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pcb-component-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.pcb-component-info {
    flex: 1;
}

.pcb-component-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--pcb-dark);
}

.pcb-component-selected {
    margin: 0;
    font-size: 14px;
    color: var(--pcb-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Quantity Selector */
.pcb-quantity-selector {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f0f4ff;
    border-radius: 8px;
    border: 2px solid var(--pcb-primary);
}

.pcb-quantity-selector label {
    font-size: 15px;
    font-weight: 700;
    color: var(--pcb-dark);
}

.pcb-quantity-select {
    padding: 10px 20px;
    border: 3px solid var(--pcb-primary);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--pcb-dark);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.pcb-quantity-select:hover {
    border-color: var(--pcb-primary-dark);
    background: var(--pcb-light-gray);
    transform: scale(1.05);
}

.pcb-quantity-select:focus {
    outline: none;
    border-color: var(--pcb-primary-dark);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.pcb-select-btn {
    background: var(--pcb-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pcb-select-btn:hover {
    background: var(--pcb-primary-dark);
    transform: translateY(-1px);
}

.pcb-select-btn svg {
    width: 16px;
    height: 16px;
}

.pcb-select-btn.selected {
    background: var(--pcb-success);
}

/* Preview Section */
/* Build Summary Section */
.pcb-summary-section {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-self: start;
}

.pcb-summary-card {
    background: var(--pcb-card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--pcb-shadow);
    border: 1px solid var(--pcb-border);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pcb-summary-card h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--pcb-dark);
}

/* Summary */
.pcb-summary-items {
    margin-bottom: 16px;
    flex: 1;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.pcb-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--pcb-border);
    font-size: 14px;
}

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

.pcb-summary-empty {
    color: var(--pcb-gray);
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.pcb-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid var(--pcb-dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: auto;
}

.pcb-summary-price {
    color: var(--pcb-primary);
}

.pcb-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

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

.pcb-action-btn svg {
    width: 18px;
    height: 18px;
}

.pcb-add-to-cart-btn {
    background: linear-gradient(135deg, #81c784, #66bb6a);
    color: white;
}

.pcb-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    transform: translateY(-1px);
}

.pcb-pdf-btn {
    background: linear-gradient(135deg, #ffb74d, #ffa726);
    color: white;
}

.pcb-pdf-btn:hover {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    transform: translateY(-1px);
}

.pcb-clear-btn {
    background: #f5f5f5;
    color: var(--pcb-gray);
    border: 1px solid var(--pcb-border);
}

.pcb-clear-btn:hover {
    background: #ffebee;
    color: var(--pcb-danger);
    border-color: var(--pcb-danger);
}

/* Modal */
.pcb-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pcb-modal.active {
    display: flex;
}

.pcb-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.pcb-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid var(--pcb-border);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pcb-modal-header {
    padding: 24px;
    border-bottom: 2px solid var(--pcb-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pcb-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.pcb-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.pcb-modal-close:hover {
    background: var(--pcb-light-gray);
}

.pcb-modal-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--pcb-gray);
}

.pcb-modal-filters {
    padding: 16px 24px;
    background: #f9fafb;
    display: flex;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--pcb-border);
}

.pcb-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--pcb-border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.pcb-search-input:focus {
    outline: none;
    border-color: var(--pcb-primary);
}

.pcb-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.pcb-filter-checkbox input {
    cursor: pointer;
}

.pcb-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Component Grid in Modal */
.pcb-component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.pcb-component-item {
    background: white;
    border: 2px solid var(--pcb-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.pcb-component-item:hover {
    border-color: var(--pcb-primary);
    box-shadow: var(--pcb-shadow);
    transform: translateY(-2px);
}

.pcb-component-item.incompatible {
    opacity: 0.5;
    cursor: not-allowed;
}

.pcb-component-item.incompatible::after {
    content: 'Incompatible';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--pcb-danger);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.pcb-component-item.incompatible:hover {
    border-color: var(--pcb-border);
    transform: none;
}

.pcb-component-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--pcb-light-gray);
}

.pcb-component-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pcb-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.pcb-component-specs {
    font-size: 12px;
    color: var(--pcb-gray);
    margin-bottom: 12px;
}

.pcb-component-spec {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pcb-component-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--pcb-primary);
}

/* Loader */
.pcb-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.pcb-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--pcb-light-gray);
    border-top-color: var(--pcb-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pcb-loader p {
    margin-top: 16px;
    color: var(--pcb-gray);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pcb-main-content {
        grid-template-columns: 1fr;
    }
    
    .pcb-summary-section {
        position: static;
        min-height: auto;
    }
    
    .pcb-summary-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .pcb-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .pcb-total-display {
        width: 100%;
    }
    
    .pcb-title {
        font-size: 24px;
        justify-content: center;
    }
    
    .pcb-icon {
        width: 28px;
        height: 28px;
    }
    
    .pcb-total-amount {
        font-size: 28px;
    }
    
    .pcb-component-grid {
        grid-template-columns: 1fr;
    }
    
    .pcb-modal-content {
        max-height: 95vh;
        width: 95%;
        margin: 2.5%;
    }
    
    .pcb-modal-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    /* Brand selection mobile */
    .pcb-brand-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pcb-brand-selection {
        padding: 30px 20px;
    }
    
    .pcb-brand-header h2 {
        font-size: 24px;
    }
    
    /* Component cards mobile improvements */
    .pcb-component-card {
        padding: 16px;
    }
    
    .pcb-component-header {
        gap: 12px;
    }
    
    .pcb-component-icon {
        width: 40px;
        height: 40px;
    }
    
    .pcb-component-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .pcb-component-info h3 {
        font-size: 16px;
    }
    
    .pcb-component-selected {
        font-size: 13px;
    }
    
    /* Storage cards container - stack vertically */
    .pcb-storage-cards-container,
    .pcb-storage-cards-container.pcb-three-column {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Quantity selector mobile */
    .pcb-quantity-selector {
        flex-direction: row;
        padding: 10px;
        gap: 8px;
    }
    
    .pcb-quantity-selector label {
        font-size: 14px;
    }
    
    .pcb-quantity-select {
        padding: 8px 16px;
        font-size: 16px;
    }
    
    /* Summary section mobile */
    .pcb-summary-card {
        padding: 20px;
    }
    
    .pcb-summary-card h2 {
        font-size: 20px;
    }
    
    .pcb-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .pcb-action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pcb-builder-container {
        padding: 12px;
    }
    
    .pcb-header {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .pcb-title {
        font-size: 20px;
    }
    
    .pcb-subtitle {
        font-size: 13px;
    }
    
    .pcb-total-label {
        font-size: 12px;
    }
    
    .pcb-total-amount {
        font-size: 24px;
    }
    
    .pcb-component-card {
        padding: 14px;
    }
    
    .pcb-component-header {
        flex-wrap: wrap;
    }
    
    .pcb-component-info h3 {
        font-size: 15px;
    }
    
    .pcb-select-btn {
        width: 100%;
        margin-top: 8px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Brand selection small mobile */
    .pcb-brand-card {
        padding: 24px 16px;
    }
    
    .pcb-brand-select-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Storage cards extra small screens */
    .pcb-storage-cards-container {
        gap: 10px;
    }
    
    /* Modal improvements */
    .pcb-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .pcb-modal-header h2 {
        font-size: 18px;
    }
    
    .pcb-search-input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    /* Component grid in modal */
    .pcb-component-item {
        padding: 12px;
    }
    
    .pcb-component-item-title {
        font-size: 14px;
    }
    
    .pcb-component-item-price {
        font-size: 15px;
    }
}
    
    .pcb-brand-logo {
        width: 80px;
        height: 80px;
    }
    
    .pcb-brand-logo svg {
        width: 48px;
        height: 48px;
    }
    
    .pcb-brand-card h3 {
        font-size: 28px;
    }
    
    .pcb-selected-brand-badge {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Compatibility Badge */
.pcb-compatibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.pcb-compatibility-badge.compatible {
    background: #d1fae5;
    color: #065f46;
}

.pcb-compatibility-badge.incompatible {
    background: #fee2e2;
    color: #991b1b;
}

.pcb-compatibility-badge svg {
    width: 12px;
    height: 12px;
}

/* Smooth animations */
.pcb-fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Price highlight */
.pcb-price-highlight {
    animation: priceHighlight 0.5s ease;
}

@keyframes priceHighlight {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Storage Section - Two and Three Column Layouts */
.pcb-storage-section,
.pcb-additional-storage-section {
    margin-bottom: 20px;
}

.pcb-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pcb-dark);
    margin-bottom: 12px;
    padding-left: 5px;
}

.pcb-storage-cards-container {
    display: grid;
    gap: 15px;
}

/* Two column layout for additional storage */
.pcb-storage-cards-container:not(.pcb-three-column) {
    grid-template-columns: 1fr 1fr;
}

/* Three column layout for primary storage */
.pcb-storage-cards-container.pcb-three-column {
    grid-template-columns: repeat(3, 1fr);
}

.pcb-storage-card {
    margin-bottom: 0 !important;
}

/* Mobile responsive - stack vertically on small screens */
@media (max-width: 768px) {
    .pcb-storage-cards-container,
    .pcb-storage-cards-container.pcb-three-column {
        grid-template-columns: 1fr;
    }
}
