/* Blind Configurator Styles */

.product-configurator {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.configurator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.configurator-header h2 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.price-display {
    text-align: right;
}

.price-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.price-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

/* Steps */
.config-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.config-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.config-step h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-description {
    color: #666;
    margin-bottom: 20px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-group input[type="number"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.help-text {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.color-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.color-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.color-option.selected {
    border-color: #3498db;
    background-color: #e3f2fd;
}

.color-swatch {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
}

.color-name {
    display: block;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* Dimensions */
.dimensions-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Mounting Options */
.mounting-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.mounting-option {
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.mounting-option:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.mounting-option.selected {
    border-color: #3498db;
    background-color: #e3f2fd;
}

.mounting-option img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.mounting-option h4 {
    font-size: 18px;
    color: #2c3e50;
    margin: 10px 0;
}

.mounting-option p {
    color: #666;
    font-size: 14px;
}

/* Yes/No Options */
.yes-no-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.option-button {
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.option-button:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.option-button.selected {
    border-color: #3498db;
    background-color: #e3f2fd;
}

.option-button span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.option-button small {
    display: block;
    margin-top: 8px;
    color: #27ae60;
    font-size: 16px;
    font-weight: bold;
}

/* Buttons */
.btn-continue,
.btn-nav,
.btn-add-to-cart {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-continue {
    background-color: #3498db;
    color: white;
    margin-top: 20px;
}

.btn-continue:hover {
    background-color: #2980b9;
}

.configurator-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn-prev {
    background-color: #95a5a6;
    color: white;
}

.btn-prev:hover {
    background-color: #7f8c8d;
}

.btn-next {
    background-color: #3498db;
    color: white;
}

.btn-next:hover {
    background-color: #2980b9;
}

.btn-add-to-cart {
    background-color: #27ae60;
    color: white;
    width: 100%;
    font-size: 18px;
    padding: 16px;
    margin-top: 20px;
}

.btn-add-to-cart:hover {
    background-color: #229954;
}

/* Progress Indicator */
.progress-indicator {
    margin-top: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #666;
}

/* Summary */
.config-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.config-summary h4 {
    margin-top: 0;
    color: #2c3e50;
}

.config-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.config-summary li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.config-summary li:last-child {
    border-bottom: none;
}

.config-summary li strong {
    color: #2c3e50;
    margin-right: 10px;
}

/* Price Breakdown */
.price-breakdown {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
}

.price-row.total {
    border-top: 2px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

/* Cart Message */
.cart-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    display: none;
}

.cart-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.cart-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .product-configurator {
        padding: 20px;
    }

    .configurator-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-display {
        margin-top: 15px;
        text-align: left;
    }

    .dimensions-group,
    .mounting-options,
    .yes-no-options {
        grid-template-columns: 1fr;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
