/* Konfigurátor plechů - CSS */
.configurator-sheets * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.configurator-sheets {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.configurator-sheets .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.configurator-sheets .configurator {
    background: white;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.configurator-sheets .header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 30px;
    text-align: center;
}

.configurator-sheets .header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.configurator-sheets .main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

.configurator-sheets .preview-section {
    background: #f8f9fa;
    padding: 30px;
    border-right: 1px solid #e9ecef;
}

.configurator-sheets .config-section {
    padding: 30px;
}

.configurator-sheets .sheet-preview {
    background: white;
    border: 2px solid #ddd;
    border-radius: 2px;
    margin: 20px 0;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.configurator-sheets .sheet-visual {
    position: relative;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border: 2px solid #34495e;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #2c3e50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.configurator-sheets .cuts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.configurator-sheets .cut-line {
    position: absolute;
    background: #e74c3c;
    z-index: 10;
}

.configurator-sheets .cut-line.horizontal {
    height: 2px;
    left: 0;
    right: 0;
}

.configurator-sheets .cut-line.vertical {
    width: 2px;
    top: 0;
    bottom: 0;
}

.configurator-sheets .form-group {
    margin-bottom: 25px;
}

.configurator-sheets .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.configurator-sheets .form-group select,
.configurator-sheets .form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 2px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.configurator-sheets .form-group select:focus,
.configurator-sheets .form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.configurator-sheets .cuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.configurator-sheets .cut-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 2px;
}

.configurator-sheets .cut-input input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 2px;
    text-align: center;
}

.configurator-sheets .price-summary {
    background: #e8f6f3;
    border: 2px solid #1abc9c;
    border-radius: 2px;
    padding: 25px;
    margin-top: 30px;
}

.configurator-sheets .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.configurator-sheets .price-row.total {
    border-top: 2px solid #1abc9c;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #27ae60;
}

.configurator-sheets .add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 20px;
}

.configurator-sheets .add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.configurator-sheets .info-panel {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 2px;
    padding: 15px;
    margin: 20px 0;
}

.configurator-sheets .info-panel h4 {
    color: #856404;
    margin-bottom: 10px;
}

.configurator-sheets .shipping-options {
    margin-top: 20px;
}

.configurator-sheets .shipping-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #e9ecef;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.configurator-sheets .shipping-option:hover {
    background-color: #f8f9fa;
}

.configurator-sheets .shipping-option.selected {
    border-color: #3498db;
    background-color: #e3f2fd;
}

@media (max-width: 768px) {
    .configurator-sheets .main-content {
        grid-template-columns: 1fr;
    }

    .configurator-sheets .preview-section {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .configurator-sheets .cuts-grid {
        grid-template-columns: 1fr;
    }
}
