/* GPU Selection Return to Builder Styles */
.gpu-selection-panel {
    position: sticky;
    top: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.2);
}

.selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.selection-title {
    color: #00BFFF;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selection-title i {
    color: #00BFFF;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.builder-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status-value {
    color: #00BFFF;
    font-weight: 600;
}

.selection-content {
    margin-bottom: 1.5rem;
}

.current-selection {
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.current-gpu-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-gpu-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(0, 191, 255, 0.3);
}

.current-gpu-details h6 {
    color: white;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.current-gpu-details p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.85rem;
}

.current-gpu-price {
    color: #00BFFF;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: auto;
}

.no-selection {
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-selection i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.selection-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-return-builder {
    background: linear-gradient(135deg, #00BFFF, #1E90FF);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    flex: 1;
}

.btn-return-builder:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.6);
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    color: white;
}

.btn-return-builder:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn-clear-selection {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-clear-selection:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Enhanced Component Card Actions for Selection */
.component-card-enhanced .component-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-select-component {
    background: linear-gradient(135deg, #28a745, #32CD32);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.15);
    font-size: 0.85rem;
    flex: 0 0 auto;
    min-width: 80px;
}

.btn-select-component:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 127, 0.5);
    background: linear-gradient(135deg, #32CD32, #00FF7F);
    color: white;
}

.btn-select-component.selected {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-select-component.selected:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

/* Selection Indicator */
.selection-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #00FF7F, #32CD32);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 255, 127, 0.4);
    z-index: 10;
}

.component-card {
    position: relative;
}

.component-card.selected {
    border-color: rgba(0, 255, 127, 0.6);
    box-shadow: 0 10px 30px rgba(0, 255, 127, 0.3);
    background: rgba(0, 255, 127, 0.05);
}

/* Floating Selection Summary */
.floating-selection-summary {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 15px;
    padding: 1rem;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-selection-summary.hidden {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #00BFFF;
    font-weight: 600;
    font-size: 0.9rem;
}

.summary-content {
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.summary-total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 600;
}

.summary-price {
    color: #00BFFF;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Hide filter sidebar by default on mobile */
    .filters-sidebar {
        display: none;
        margin-bottom: 1rem;
    }

        /* Show when toggled */
        .filters-sidebar.show {
            display: block;
        }

    /* Make toggle button look good */
    .mobile-filter-toggle .btn {
        background: rgba(0, 191, 255, 0.1);
        border-color: rgba(0, 191, 255, 0.3);
        color: white;
    }

        .mobile-filter-toggle .btn:hover {
            background: rgba(0, 191, 255, 0.2);
            border-color: rgba(0, 191, 255, 0.5);
        }

    .gpu-selection-panel {
        position: static;
        margin-bottom: 1rem;
    }

    .selection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .builder-status {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .current-gpu-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .current-gpu-details {
        order: -1;
    }

    .selection-actions {
        flex-direction: column;
    }

    .floating-selection-summary {
        position: static;
        margin-top: 1rem;
        transform: none;
        opacity: 1;
    }

    .floating-selection-summary.hidden {
        display: none;
    }
}

@media (max-width: 576px) {
    .gpu-selection-panel {
        padding: 1rem;
    }

    .current-gpu-image {
        width: 50px;
        height: 50px;
    }

    .selection-title {
        font-size: 1rem;
    }

    .btn-return-builder,
    .btn-clear-selection {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* NEW RULES FOR PRICE CONTAINER */
    .price-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .btn-select-component {
        order: 2;
    }

    .price-stores {
        order: 3;
    }
}