/* CutBoy DIY Configurator Styles */

#cutboy-configurator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.configurator-section h3 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.configurator-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.preview-container {
    position: relative;
    width: 400px;
    height: 300px;
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#knife-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.blade-overlay,
.handle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.configurator-options {
    margin-bottom: 40px;
}

.option-group {
    margin-bottom: 40px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.option-group h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

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

.option-item {
    display: block;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
}

.option-item input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: scale(1.2);
}

.option-item input[type="radio"]:checked + .option-content {
    border-left: 4px solid #007cba;
    padding-left: 16px;
}

.option-item:has(input[type="radio"]:checked) {
    border-color: #007cba;
    background: #f0f8ff;
}

.option-content {
    padding-top: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.option-content img {
    width: 100%;
    max-width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.option-name {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.option-price {
    display: block;
    font-size: 14px;
    color: #007cba;
    font-weight: 500;
}

.engraving-options {
    text-align: center;
}

.engraving-checkbox {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 15px;
}

.engraving-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.engraving-input-container {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.engraving-input-container input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 5px;
}

.engraving-input-container small {
    color: #666;
    font-size: 12px;
}

.configurator-summary {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.price-breakdown {
    margin-bottom: 25px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 16px;
}

.price-line.total-price {
    border-top: 2px solid #333;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
}

.price-line span:last-child {
    color: #007cba;
    font-weight: 600;
}

#add-to-cart-configurator {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-to-cart-configurator:hover:not(:disabled) {
    background: #005a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

#add-to-cart-configurator:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.variation-attribute {
    text-align: center;
    margin-top: 20px;
}

.color-dot {
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0px 0px 0px 1px transparent;
    border: 4px solid #fff;
    transition: all 0.3s ease;
}

.color-dot.selected,
.color-dot:hover {
    box-shadow: 0px 0px 0px 1px #94929E;
    border: 4px solid #fff;
}

.variation-pill {
    border: 1px solid #000000;
    font-size: 14px;
    font-weight: 300;
    background: #fff;
    color: #000;
    border-radius: 0;
    transition: all 0.3s ease;
}

.variation-pill.selected,
.variation-pill:hover {
    border: 1px solid #000000;
    background: #000;
    color: #fff;
    border-radius: 0;
}

.configurator-steps-section .option-pricing {
    font-size: 14px;
    font-weight: 300;
    color: #C4A300;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #cutboy-configurator {
        padding: 15px;
    }

    .preview-container {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .option-group {
        padding: 20px;
    }

    .configurator-section h3 {
        font-size: 24px;
    }
}