/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

.bpc-configurator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background: #fff;
}

/* Hero Section - Product Selection */
.bpc-hero-section {
    padding: 60px 0;
    background: #fafafa;
    min-height: 100vh;
}

.bpc-hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.bpc-hero-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: #000;
}

.bpc-hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

/* Filter Pills */
.bpc-filter-pills {
    display: inline-flex;
    gap: 0;
    background: rgba(255,255,255,0.8);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bpc-filter-pill {
    padding: 12px 30px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bpc-filter-pill:hover {
    color: #000;
}

.bpc-filter-pill.active {
    background: #000;
    color: #fff;
}

/* Products Grid */
.bpc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bpc-product-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.bpc-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.bpc-product-header {
    margin-bottom: 20px;
}

.bpc-product-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #000;
}

.bpc-product-models {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
}

.bpc-product-link {
    display: inline-flex;
    align-items: center;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bpc-product-link:hover {
    color: #0052a3;
}

.bpc-product-link span {
    margin-left: 5px;
    font-size: 18px;
}

.bpc-product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.bpc-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bpc-select-btn {
    width: 100%;
    padding: 14px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bpc-select-btn:hover {
    background: #0052a3;
    transform: translateX(3px);
}

.bpc-select-btn svg {
    transition: transform 0.3s ease;
}

.bpc-select-btn:hover svg {
    transform: translateX(5px);
}

/* Configuration Section */
.bpc-config-section {
    min-height: 100vh;
    background: #f5f5f5;
}

.bpc-config-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.bpc-config-split-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Panel - Product Showcase */
.bpc-config-left-panel {
    width: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.bpc-product-showcase {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bpc-product-info {
    margin-bottom: 30px;
}

.bpc-product-title {
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 20px;
    color: #000;
}

.bpc-tab-navigation {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.bpc-tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.bpc-tab-btn:hover {
    color: #000;
}

.bpc-tab-btn.active {
    color: #000;
    font-weight: 500;
}

.bpc-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.bpc-main-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

#bpc-main-bike-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.bpc-image-dots {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.bpc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bpc-dot.active {
    background: #000;
    width: 24px;
    border-radius: 4px;
}

.bpc-price-summary {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    margin-top: auto;
}

.bpc-price-row {
    margin-bottom: 20px;
}

.bpc-price-total {
    display: block;
    font-size: 32px;
    font-weight: 300;
    color: #000;
    margin-bottom: 10px;
}

.bpc-price-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bpc-price-details span {
    font-size: 13px;
    color: #666;
}

.bpc-cta-button {
    width: 100%;
    padding: 16px 30px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bpc-cta-button:hover {
    background: #0052a3;
}

/* Right Panel - Configuration Options */
.bpc-config-right-panel {
    width: 50%;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bpc-config-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.bpc-config-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.bpc-config-scroll-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.bpc-config-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.bpc-config-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Step Header */
.bpc-step-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
}

.bpc-step-number {
    font-size: 48px;
    font-weight: 200;
    color: #000;
    line-height: 1;
}

.bpc-step-label {
    font-size: 16px;
    color: #666;
}

/* Color Selector */
.bpc-color-selector {
    margin-bottom: 50px;
}

.bpc-color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.bpc-color-option {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bpc-color-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.bpc-color-option:hover .bpc-color-preview {
    transform: scale(1.05);
}

.bpc-color-option.active .bpc-color-preview {
    border-color: #000;
}

.bpc-color-name {
    font-size: 14px;
    color: #666;
}

/* Configuration Sections */
.bpc-config-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e0e0e0;
}

.bpc-config-section:last-child {
    border-bottom: none;
}

.bpc-section-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 25px;
}

.bpc-section-number {
    font-size: 32px;
    font-weight: 200;
    color: #000;
    line-height: 1;
}

.bpc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.bpc-section-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.bpc-info-icon {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.bpc-info-icon:hover {
    color: #0066cc;
}

/* Option Content */
.bpc-option-content {
    padding-left: 47px;
}

/* Select Wrapper */
.bpc-select-wrapper {
    position: relative;
}

.bpc-modern-select {
    width: 100%;
    padding: 14px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.bpc-modern-select:hover {
    border-color: #999;
}

.bpc-modern-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Option Cards */
.bpc-option-cards {
    display: grid;
    gap: 12px;
}

.bpc-option-card {
    display: block;
    cursor: pointer;
}

.bpc-option-card input {
    display: none;
}

.bpc-card-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.bpc-option-card:hover .bpc-card-content {
    border-color: #999;
    background: #fafafa;
}

.bpc-option-card input:checked + .bpc-card-content {
    border-color: #0066cc;
    background: #f0f7ff;
}

.bpc-card-check {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.bpc-option-card input:checked + .bpc-card-content .bpc-card-check {
    border-color: #0066cc;
}

.bpc-option-card input:checked + .bpc-card-content .bpc-card-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #0066cc;
    border-radius: 50%;
}

.bpc-card-label {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.bpc-card-price {
    font-size: 14px;
    color: #0066cc;
    font-weight: 500;
}

/* Spec Grid */
.bpc-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bpc-spec-card {
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bpc-spec-card:hover {
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bpc-spec-card.selected {
    border-color: #0066cc;
    background: #f0f7ff;
}

.bpc-spec-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.bpc-spec-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.bpc-spec-price {
    font-size: 14px;
    color: #0066cc;
    font-weight: 600;
}

.bpc-spec-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bpc-spec-info {
    font-size: 13px;
    color: #666;
}

.bpc-spec-power {
    font-size: 13px;
    color: #000;
    font-weight: 500;
}

/* Configuration Summary */
.bpc-config-summary {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 30px 40px;
}

.bpc-summary-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 20px;
    color: #000;
}

.bpc-summary-content {
    min-height: 100px;
    margin-bottom: 20px;
}

.bpc-summary-empty {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}

.bpc-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

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

.bpc-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #000;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
}

#bpc-summary-price {
    font-size: 24px;
    color: #000;
}

.bpc-save-config-btn {
    width: 100%;
    padding: 14px 30px;
    background: #000;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bpc-save-config-btn:hover {
    background: #333;
}

/* Tooltip Modal */
.bpc-tooltip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.bpc-tooltip-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.bpc-tooltip-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
}

.bpc-tooltip-close:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bpc-config-split-container {
        flex-direction: column;
    }
    
    .bpc-config-left-panel,
    .bpc-config-right-panel {
        width: 100%;
        height: auto;
    }
    
    .bpc-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bpc-hero-title {
        font-size: 32px;
    }
    
    .bpc-filter-pills {
        flex-wrap: wrap;
    }
    
    .bpc-filter-pill {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .bpc-color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bpc-spec-grid {
        grid-template-columns: 1fr;
    }
    
    .bpc-product-showcase {
        padding: 20px;
    }
    
    .bpc-config-scroll-container {
        padding: 20px;
    }
}