.bike-configurator {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 20px 0;
}

.configurator-section {
    margin-bottom: 30px;
}

.configurator-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.option {
    background: white;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.option.selected {
    border-color: #4CAF50;
    background: #f0f9f0;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.color-option.selected {
    border-color: #333;
    transform: scale(1.1);
}

.color-option span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
}

.component-group {
    margin-bottom: 20px;
}

.component-group h4 {
    margin-bottom: 10px;
    color: #666;
}

.price-summary {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 6px;
    text-align: center;
}

.add-to-cart {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.add-to-cart:hover:not(:disabled) {
    background: #45a049;
}

.add-to-cart:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.add-to-cart.loading {
    background: #45a049;
    cursor: wait;
}

.add-to-cart.loading:before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.error-message {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success-msg {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
} 