/**
 * Build PC Pro - Frontend CSS
 */

/* Component Attributes Section */
.bpc-product-attributes {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    position: relative;
}

.bpc-product-attributes h3 {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Attribute Styles */
.bpc-attribute {
    margin-bottom: 20px;
}

.bpc-attribute-name {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.bpc-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.bpc-attribute-option {
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bpc-attribute-option:hover {
    border-color: #999;
}

.bpc-attribute-option.active {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Selected Options Summary */
.bpc-selected-options {
    margin: 20px 0;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.bpc-selected-options h4 {
    margin-bottom: 10px;
}

.bpc-selected-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bpc-selected-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.bpc-selected-list li:last-child {
    border-bottom: none;
}

/* Filter Actions */
.bpc-filter-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.bpc-filter-actions button {
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.bpc-reset-filter {
    background-color: #f0f0f0;
    color: #333;
}

/* Loading indicator */
.bpc-filter-loading {
    display: none;
    padding: 10px;
    text-align: center;
}

/* Recommended Products */
.bpc-recommended-products {
    margin-top: 30px;
}

.bpc-recommended-products h4 {
    margin-bottom: 15px;
}

.bpc-recommended-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.bpc-recommended-product {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    transition: all 0.2s ease;
}

.bpc-recommended-product:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bpc-recommended-product img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.bpc-recommended-product h5 {
    font-size: 16px;
    margin-bottom: 10px;
}

.bpc-recommended-product .price {
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.bpc-recommended-product .button {
    display: block;
    text-align: center;
    padding: 8px 0;
    width: 100%;
}
