/**
 * Package Builder Styles
 * 
 * @package Spectra One
 */

/* Main Layout */
.builder-layout {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Main Content Area */
.builder-main {
    flex: 1;
    min-width: 0;
}

/* Sidebar */
.builder-sidebar {
    width: 350px;
    flex-shrink: 0;
}

/* Step Sections */
.b-step {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Step Header */
.b-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.b-step-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Step Number Badge */
.b-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007cba;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Mini Grid for Options */
.b-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Mini Cards */
.b-mini-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.b-mini-card:hover {
    border-color: #007cba;
    background: #e7f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.15);
}

.b-mini-card.active {
    border-color: #007cba;
    background: #007cba;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

.b-mini-card.active h4,
.b-mini-card.active h5,
.b-mini-card.active small,
.b-mini-card.active .price {
    color: #fff;
}

/* Mini Card Content */
.b-mini-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.b-mini-info.center {
    align-items: center;
    text-align: center;
}

.b-mini-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.b-mini-info h5 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.b-mini-info small {
    font-size: 0.75rem;
    color: #666;
}

.b-mini-info .price {
    font-weight: 700;
    color: #007cba;
    font-size: 1.125rem;
}

/* Sub Sections */
.b-sub-section {
    margin-bottom: 1.5rem;
}

.b-sub-section:last-child {
    margin-bottom: 0;
}

/* Sub Section Header */
.b-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.b-sub-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Count Control */
.b-count-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 0.25rem;
}

.b-count-control span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.b-count-control button {
    width: 32px;
    height: 32px;
    border: 1px solid #e9ecef;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    color: #007cba;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.b-count-control button:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

/* Divider */
.b-divider {
    height: 2px;
    background: linear-gradient(to right, #e9ecef, transparent);
    margin: 1.5rem 0;
}

/* Installation Card */
.b-install-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.b-install-card:hover {
    border-color: #007cba;
    background: #e7f3ff;
}

.b-install-card.active {
    border-color: #007cba;
    background: #e7f3ff;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

/* Installation Header */
.b-install-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.b-install-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.b-install-card.active .b-install-check {
    background: #007cba;
    color: #fff;
}

.b-install-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Installation Body */
.b-install-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.b-install-body div {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
}

/* Installation Footer */
.b-install-footer {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.875rem;
    color: #666;
}

.b-install-footer .price {
    font-weight: 700;
    color: #007cba;
    font-size: 1rem;
}

/* Summary Card */
.b-summary-card {
    background: #fff;
    border: 2px solid #007cba;
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
}

.b-summary-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #007cba;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

/* Summary Row */
.b-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.875rem;
}

.b-sum-row span {
    color: #666;
}

.b-sum-row strong {
    font-weight: 700;
    color: #1a1a1a;
}

.b-sum-row.highlight {
    background: #e7f3ff;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    margin-bottom: 0.5rem;
}

.b-sum-row.highlight span {
    color: #007cba;
}

.b-sum-row.highlight strong {
    color: #007cba;
}

/* Summary Group */
.b-sum-group {
    margin-bottom: 0.5rem;
}

/* Summary Detail */
.b-sum-detail {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
    margin-top: 0.25rem;
}

/* Line Divider */
.b-line {
    height: 2px;
    background: #e9ecef;
    margin: 1rem 0 1.5rem 0;
}

/* Total Section */
.b-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid #007cba;
    margin-bottom: 1rem;
}

.b-total span {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
}

.b-total .total-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #007cba;
}

/* VAT Note */
.b-vat-note {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 1.5rem;
}

/* Add to Cart Button */
.b-btn-cart {
    width: 100%;
    padding: 1rem;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.b-btn-cart:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.b-btn-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .builder-layout {
        flex-direction: column;
    }
    
    .builder-sidebar {
        width: 100%;
    }
    
    .b-summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .builder-layout {
        padding: 1rem;
    }
    
    .b-step {
        padding: 1rem;
    }
    
    .b-mini-grid {
        grid-template-columns: 1fr;
    }
    
    .b-step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .b-sub-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .b-total {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .b-step-header h3 {
        font-size: 1rem;
    }
    
    .b-mini-info h4,
    .b-mini-info h5 {
        font-size: 0.875rem;
    }
    
    .b-mini-info .price {
        font-size: 1rem;
    }
    
    .b-total .total-price {
        font-size: 1.5rem;
    }
}
