

/* Start:/constructor/css/style.css?178699428636145*/
.constructor-wrapper {
    display: flex;
    height: 100vh;
    max-width: 100%;
    overflow: hidden;
}

/* Левая панель с шагами */
.constructor-sidebar {
    width: 450px;
    min-width: 380px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow: hidden;
    height: 100vh;
}

/* Индикатор шагов */
.steps-indicator {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.steps-list {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 10px;
}

.steps-list::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.3);
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.step-item.active .step-number {
    background: white;
    color: #667eea;
}

.step-item.completed .step-number {
    background: #4CAF50;
}

.step-label {
    font-size: 11px;
    opacity: 0.8;
    text-align: center;
}

.step-item.active .step-label {
    opacity: 1;
    font-weight: bold;
}

/* Контент шагов */
.steps-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-content h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

/* Сетка продуктов */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Карточки продуктов */
.product-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.product-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card.selected {
    border-color: #667eea;
    background: #f0f2ff;
}

.product-image-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 12px;
    text-align: center;
}

.product-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.product-price {
    color: #667eea;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.product-variants-count {
    font-size: 12px;
    color: #667eea;
    background: #f0f2ff;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.product-sides-info {
    font-size: 12px;
    color: #999;
}

.product-description {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    line-height: 1.4;
}

/* Стиль для карточек с вариантами */
.product-card.has-variants {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    position: relative;
}

.product-card.has-variants::after {
    content: '▼';
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #667eea;
    font-size: 12px;
    background: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для карточек вариантов */
.variant-card {
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.variant-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.variant-card.selected {
    border-color: #667eea;
    background: #f0f2ff;
}

.variant-card .product-image-container {
    height: 180px;
}

/* Кнопка назад */
.back-to-products {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.back-to-products:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateX(-5px);
}

.variants-header {
    margin-bottom: 15px;
}

/* Тип вышивки */
.embroidery-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.embroidery-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.embroidery-card:hover {
    border-color: #667eea;
}

.embroidery-card.selected {
    border-color: #667eea;
    background: #f0f2ff;
}

.embroidery-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Загрузка изображения */
.upload-area {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Информация о загруженном файле */
.uploaded-info {
    display: none;
    background: #f0f2ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.uploaded-info.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uploaded-info .file-name {
    font-weight: 500;
    color: #667eea;
}

.uploaded-info .remove-file {
    color: #ff4444;
    cursor: pointer;
    font-size: 20px;
}

/* Текстовые настройки */
.text-editor {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.text-input-group {
    margin-bottom: 15px;
}

.text-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.text-input-group input,
.text-input-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.text-input-group input:focus,
.text-input-group select:focus {
    outline: none;
    border-color: #667eea;
}

.format-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.format-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.format-btn:hover {
    border-color: #667eea;
}

.format-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.color-size-row {
    display: flex;
    gap: 10px;
}

.color-size-row .text-input-group {
    flex: 1;
}

.add-text-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-text-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Вкладки сторон */
.sides-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 10px;
    flex-wrap: wrap;
}

.sides-tabs:empty {
    display: none;
}

.side-tab {
    flex: 1;
    min-width: 60px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    background: transparent;
    border: none;
}

.side-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.side-tab.has-content::after {
    content: ' ✓';
    color: #4CAF50;
}

/* Кнопки навигации */
.steps-navigation {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    background: white;
}

.nav-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.prev-btn {
    background: #f0f0f0;
    color: #666;
}

.prev-btn:hover {
    background: #e0e0e0;
}

.prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.finish-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    display: none;
}

.finish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Правая часть - Превью */
.constructor-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    position: relative;
    min-width: 0;
    height: 100vh;
    overflow: hidden;
}

.preview-header {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-title {
    font-weight: 600;
    color: #333;
}

.preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #f0f0f0;
}

.canvas-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
    min-height: 0;
}

.canvas-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

#designCanvas {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Панель инструментов канваса */
.canvas-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.tool-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Индикатор загрузки */
.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loading.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Калькулятор */
.price-overlay {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 15px 20px;
    z-index: 15;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.total-price {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.price-details-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.price-details-btn:hover {
    background: #f0f0f0;
}

.price-breakdown {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.price-breakdown.show {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

/* Модальное окно */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlide 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal h2 {
    margin-bottom: 20px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input.error {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

.modal-btn.cancel {
    background: #f0f0f0;
    color: #666;
}

.modal-btn.submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-btn.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Сводка заказа */
.order-summary {
    margin-bottom: 20px;
}

/* Fullscreen режим */
.fullscreen-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-preview.active {
    display: flex;
}

.fullscreen-canvas-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
}

.fullscreen-canvas-wrapper canvas {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 90vw;
    max-height: 80vh;
}

.fullscreen-toolbar {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.fullscreen-toolbar .tool-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-toolbar .tool-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    z-index: 10;
}

.fullscreen-close:hover {
    background: rgba(255,0,0,0.5);
    border-color: red;
}

/* Адаптивность fullscreen */
@media (max-width: 768px) {
    .fullscreen-toolbar {
        gap: 5px;
        padding: 10px;
    }
    
    .fullscreen-toolbar .tool-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .fullscreen-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (min-width: 1400px) {
    .constructor-sidebar {
        width: 500px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1024px) {
    .constructor-wrapper {
        flex-direction: column;
    }
    
    .constructor-sidebar {
        width: 100%;
        max-height: 45vh;
        min-width: 0;
    }
    
    .constructor-preview {
        height: 100vh;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-image-container {
        height: 120px;
    }
	.price-overlay {
        left: 0;
        bottom: 0;
    }
    
    .canvas-container {
        margin-bottom: 70px;
    }
    
    .canvas-wrapper {
        padding: 15px;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    body {
        overflow: auto;
        height: auto;
    }
    
    .constructor-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    
    .constructor-sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    
    .steps-content {
        overflow: visible;
        max-height: none;
    }
    
    .constructor-preview {
        height: auto;
        min-height: 70vh;
        overflow: visible;
    }
    
    .canvas-wrapper {
        min-height: 400px;
        padding: 10px;
        background: #f5f5f5;
        overflow: visible;
    }
    
    .canvas-container {
        width: 95% !important;
        max-width: 95%;
        margin: 0 auto;
    }
    
    #designCanvas {
        width: 100% !important;
        height: auto !important;
    }
    
    /* Уменьшаем блок загрузки */
    .upload-area {
        padding: 20px 15px;
    }
    
    .upload-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .upload-area p {
        font-size: 13px;
        margin: 5px 0;
    }
    
    /* Компактные карточки продуктов */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-image-container {
        height: 100px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 13px;
    }
    
    /* Убираем лишние отступы */
    .step-content {
        padding: 10px 0;
    }
    
    .step-content h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    /* Компактная панель инструментов */
    .canvas-toolbar {
        flex-direction: row;
        top: 5px;
        right: 5px;
        gap: 3px;
    }
    
    .tool-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    /* Ценовой блок фиксирован снизу */
    .price-overlay {
        position: sticky;
        bottom: 0;
        z-index: 20;
        padding: 10px;
    }
    
    .steps-navigation {
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 19;
        padding: 10px 15px;
    }
	.page-hero__title {
		font-size: 24px !important;
		line-height: 1.2;
	}
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .product-image-container {
        height: 80px;
    }
	
	.upload-area {
        padding: 15px 10px;
    }
	
	.upload-icon {
        font-size: 28px;
    }
	
	.size-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .steps-list {
        flex-wrap: wrap;
    }
    
    .step-label {
        font-size: 8px;
    }
    
    .canvas-toolbar {
        top: 3px;
        right: 3px;
    }
    
    .tool-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .format-buttons {
        gap: 5px;
    }
    
    .format-btn {
        width: 35px;
        height: 35px;
    }
    
    .color-size-row {
        flex-direction: column;
    }
	
	.canvas-wrapper {
        padding-bottom: 120px;
    }
    
    /*.canvas-container {
        width: 98% !important;
        max-width: 98%;
        margin-bottom: 30px;
    }*/
    
    .canvas-toolbar {
        top: 3px;
        right: 3px;
        gap: 2px;
    }
    
    .tool-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 5px;
    }
    
    .price-overlay {
        padding: 8px 10px;
    }
    
    .total-price {
        font-size: 16px;
    }
    
    .price-summary {
        gap: 5px;
    }
    
    .action-btn {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    .side-tab {
        padding: 5px 6px;
        font-size: 10px;
        min-width: 40px;
    }
}
/* Исправление для ландшафтной ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .constructor-wrapper {
        flex-direction: row;
    }
    
    .constructor-sidebar {
        width: 40%;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .constructor-preview {
        width: 60%;
        height: 100vh;
    }
    
    .canvas-wrapper {
        height: calc(100vh - 80px);
        padding-top: 45px;
        padding-bottom: 70px;
    }
    
    /*.canvas-container {
        width: 90% !important;
        margin-bottom: 50px;
    }*/
    
    .price-overlay {
        left: 40%;
    }
}

/* ===== Модальное окно конструктора (уникальные классы) ===== */
.constructor-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.constructor-modal-overlay.active {
    display: flex !important;
    animation: constructorFadeIn 0.3s ease;
}

@keyframes constructorFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.constructor-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: constructorSlideUp 0.3s ease;
    overflow: hidden;
}

@keyframes constructorSlideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.constructor-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.constructor-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.constructor-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.constructor-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.constructor-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.constructor-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.constructor-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.constructor-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.constructor-btn-cancel:hover {
    background: #e0e0e0;
}

.constructor-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.constructor-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Информация о заказе в модальном окне */
.constructor-order-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.constructor-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.constructor-info-label {
    color: #666;
    font-size: 14px;
}

.constructor-info-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.constructor-divider {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 10px 0;
}

.constructor-total-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f0f2ff 0%, #f8f9ff 100%);
    border-radius: 12px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.constructor-total-price {
    font-size: 24px;
    color: #667eea;
}

/* Адаптивность для модального окна */
@media (max-width: 576px) {
    .constructor-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }
    
    .constructor-modal {
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        animation: constructorSlideUpMobile 0.3s ease;
    }
    
    @keyframes constructorSlideUpMobile {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .constructor-modal-header {
        padding: 16px 20px;
    }
    
    .constructor-modal-body {
        padding: 20px;
        max-height: 50vh;
    }
    
    .constructor-modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .constructor-btn {
        padding: 14px;
    }
}

.price-notice {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
    padding: 8px;
    background: #fffbe6;
    border-radius: 8px;
    border: 1px solid #ffe58f;
}

#sidesDetail {
    padding-left: 15px;
    font-size: 12px;
    color: #888;
    border-left: 2px solid #e0e0e0;
    margin: 5px 0;
}

#sidesDetail .price-item {
    margin-bottom: 3px;
}

#programPrice {
    color: #667eea;
    font-weight: 600;
}

/* Стили для поля количества */
#orderQuantity {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.3s;
}

#orderQuantity:focus {
    outline: none;
    border-color: #667eea;
}

#discountInfo {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f0f2ff;
    transition: all 0.3s;
}

/* Стили для отображения уровней скидок */
.discount-levels {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.discount-levels-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-level {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    font-size: 13px;
}

.discount-level:last-child {
    margin-bottom: 0;
}

.discount-check {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.discount-label {
    flex: 1;
    font-weight: 500;
    color: #555;
}

.discount-value {
    font-weight: 600;
    color: #999;
}

/* Стили для достигнутых уровней */
.discount-level.reached {
    background: #f0fff0;
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.discount-level.reached .discount-check {
    color: #4CAF50;
    animation: checkPulse 0.5s ease;
}

.discount-level.reached .discount-label {
    color: #2E7D32;
    font-weight: 700;
}

.discount-level.reached .discount-value {
    color: #4CAF50;
    font-weight: 700;
}

/* Стили для активного (текущего) уровня */
.discount-level.active {
    background: #e8f5e9;
    border-color: #4CAF50;
    border-width: 2px;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.discount-level.active .discount-check {
    transform: scale(1.2);
}

/* Анимация появления галочки */
@keyframes checkPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .discount-levels {
        padding: 12px;
    }
    
    .discount-level {
        padding: 8px 10px;
        gap: 8px;
        font-size: 12px;
    }
    
    .discount-check {
        font-size: 18px;
        min-width: 20px;
    }
}

@media (max-width: 480px) {
    .discount-level {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .discount-value {
        width: 100%;
        padding-left: 32px;
    }
}

/* Стили для группы ввода количества */
.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.quantity-input-group:focus-within {
    border-color: #667eea;
}

.quantity-input-group input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.quantity-input-group input:focus {
    outline: none;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f5f5f5;
    color: #333;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #667eea;
    color: white;
}

.quantity-btn:active {
    background: #5a6fd6;
    transform: scale(0.95);
}

/* Стили для выбора размера вышивки */
.embroidery-size-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.embroidery-size-info {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fffbe6;
    border-radius: 6px;
    border: 1px solid #ffe58f;
}

.size-row {
    display: flex;
    gap: 15px;
}

.size-group {
    flex: 1;
}

.size-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.size-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.size-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Предпросмотр размера */
.size-preview {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.size-preview-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 13px;
}

.size-preview-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    min-height: 150px;
}

.size-rectangle {
    position: relative;
    border: 2px dashed #667eea;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.size-label-height {
    position: absolute;
    left: -45px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
    white-space: nowrap;
}

.size-label-width {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
    white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 768px) {
    .size-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .size-preview-canvas {
        min-height: 120px;
        padding: 15px;
    }
    
    .size-label-height {
        left: -35px;
        font-size: 10px;
    }
    
    .size-label-width {
        bottom: -20px;
        font-size: 10px;
    }
}
/* Улучшенные стили для мобильной версии canvas */
@media (max-width: 768px) {
    /* Увеличиваем размер canvas на мобильных */
    .canvas-wrapper {
        padding: 10px;
        min-height: 450px;
        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
    }
    
    .canvas-container {
        width: 95% !important;
        max-width: 95%;
        margin: 0 auto;
        touch-action: manipulation;
    }
    
    #designCanvas {
        width: 100% !important;
        height: auto !important;
        touch-action: manipulation;
    }
    
    /* Увеличиваем контрольные точки на canvas */
    .canvas-container .canvas-controls {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 8px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
    
    /* Увеличиваем кнопки инструментов */
    .canvas-toolbar {
        flex-direction: row !important;
        top: auto !important;
        bottom: -75px !important;
        right: -8px !important;
        gap: 6px !important;
        background: rgba(255, 255, 255, 0.95);
        padding: 8px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    
    .tool-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
        border-radius: 10px !important;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Увеличиваем контрольные углы у объектов на canvas */
    .canvas-container .fabric-controls {
        transform: scale(1.5) !important;
    }
}

/* Показывать кнопки только на мобильных */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
}
/* End */
/* /constructor/css/style.css?178699428636145 */
