/* ========================================
   СТРАНИЦА ЗАКАЗА - КАТАЛОГ С КОРЗИНОЙ
   ======================================== */

/* Hero секция */
.order-hero {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    padding: 48px 0;
    text-align: center;
}

.order-hero h1 {
    color: white;
    font-size: 42px;
    margin-bottom: 16px;
}

.order-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
}

/* Основная сетка - каталог + корзина */
.order-form-section {
    padding: 48px 0;
    background: #f8fafc;
    min-height: calc(100vh - 200px);
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    margin-bottom: 32px;
}

/* ===== КАТАЛОГ МОДЕЛЕЙ ===== */
.order-catalog {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.catalog-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
}

.add-model-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.add-model-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

/* Список моделей */
.models-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.empty-models {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.btn-add-first {
    margin-top: 16px;
    padding: 10px 24px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    color: #f97316;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-add-first:hover {
    background: #f97316;
    color: white;
}

/* Карточка модели */
.model-item {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.model-item:hover {
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Превью модели */
.model-preview {
    position: relative;
    width: 100px;
    flex-shrink: 0;
}

.model-thumbnail {
    width: 100px;
    height: 100px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.thumbnail-placeholder {
    font-size: 40px;
    color: #cbd5e1;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.model-badge.loading {
    background: #fef3c7;
    color: #d97706;
}

.model-badge.success {
    background: #d1fae5;
    color: #059669;
}

.model-badge.error {
    background: #fee2e2;
    color: #dc2626;
}

.model-actions {
    position: absolute;
    top: -8px;
    right: -8px;
}

.model-remove {
    width: 28px;
    height: 28px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #94a3b8;
}

.model-remove:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #dc2626;
}

/* Информация модели */
.model-info {
    flex: 1;
}

.model-name-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.model-file {
    margin-bottom: 12px;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #e2e8f0;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-label:hover {
    background: #f97316;
    color: white;
}

.file-name-display {
    font-size: 12px;
    color: #64748b;
    margin-left: 8px;
}

.model-progress {
    margin-top: 8px;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #f97316;
    transition: width 0.3s;
}

/* Параметры модели */
.model-params {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.param-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.param-row select,
.param-row input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    background: white;
}

.param-infill {
    display: flex;
    align-items: center;
    gap: 8px;
}

.param-infill label {
    font-size: 12px;
    white-space: nowrap;
    color: #475569;
}

.param-infill input {
    flex: 1;
}

/* Цена и статус модели */
.model-price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.model-status {
    font-size: 12px;
}

.model-price .price-label {
    font-size: 12px;
    color: #64748b;
}

.model-price .price-value {
    font-size: 18px;
    font-weight: 700;
    color: #f97316;
}

/* ===== КОРЗИНА ===== */
.order-cart {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
}

.cart-count {
    background: #f97316;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #f97316;
}

/* Итог корзины */
.cart-summary {
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    margin-top: 12px;
    color: #1e293b;
}

.summary-row.total strong {
    color: #f97316;
    font-size: 22px;
}

.summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249,115,22,0.3);
}

.cart-note {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-top: 12px;
}

/* ===== КОНТАКТНАЯ ИНФОРМАЦИЯ ===== */
.contact-info-section {
    margin-top: 32px;
}

.contact-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1e293b;
}

.submit-order-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34,197,94,0.3);
}

.submit-order-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* ===== САЙДБАР ИНФОРМАЦИЯ ===== */
.order-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f6;
    color: #1e293b;
}

/* Шаги работы */
.work-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.work-step {
    display: flex;
    gap: 12px;
}

.step-icon {
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: #f97316;
}

.step-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.step-content span {
    font-size: 12px;
    color: #6b7280;
}

/* Преимущества */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
}

.benefit-icon {
    font-size: 14px;
}

/* Контакты */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.contact-link.telegram {
    background: #e8f4ff;
    color: #0088cc;
}

.contact-link.whatsapp {
    background: #e8f5e8;
    color: #25D366;
}

.contact-link.phone {
    background: #f3f4f6;
    color: #374151;
}

.contact-link:hover {
    transform: translateX(4px);
}

/* ===== ОБЩИЕ КОМПОНЕНТЫ ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0;
}

.checkbox-wrapper input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #f97316;
}

.checkbox-wrapper label {
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
}

.checkbox-wrapper a {
    color: #f97316;
    text-decoration: none;
}

/* Анимации */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-cart {
        position: static;
    }
}

@media (max-width: 768px) {
    .order-hero h1 {
        font-size: 32px;
    }

    .order-hero p {
        font-size: 16px;
    }

    .order-form-section {
        padding: 32px 0;
    }

    .order-catalog,
    .order-cart {
        padding: 20px;
    }

    .model-item {
        flex-direction: column;
    }

    .model-preview {
        width: 100%;
    }

    .param-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-card {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .catalog-header {
        flex-direction: column;
        gap: 12px;
    }

    .add-model-btn {
        width: 100%;
        justify-content: center;
    }
}/* Компактный выбор материала */
.param-material-wrapper {
    flex: 1;
}

.param-material {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.param-material:hover {
    border-color: #f97316;
}

.param-material:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249,115,22,0.1);
}

/* Вторая строка параметров */
.param-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.param-row:last-child {
    margin-bottom: 0;
}

.param-infill {
    display: flex;
    align-items: center;
    gap: 8px;
}

.param-infill label {
    font-size: 12px;
    white-space: nowrap;
    color: #475569;
}

.param-infill input {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
}

.param-color {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
}

@media (max-width: 640px) {
    .param-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ===== БЛОК СПРАВОЧНИКА МАТЕРИАЛОВ (ПОСЛЕ ЗАКАЗА) ===== */
.materials-reference {
    padding: 60px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.materials-reference-header {
    text-align: center;
    margin-bottom: 40px;
}

.materials-reference-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.materials-reference-header p {
    font-size: 16px;
    color: #64748b;
}

.materials-reference-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.material-reference-card {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.material-reference-card:hover {
    transform: translateY(-4px);
    border-color: #f97316;
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
}

.material-reference-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.material-reference-icon i {
    font-size: 32px;
}

.material-reference-content {
    flex: 1;
}

.material-reference-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.material-reference-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.material-reference-price {
    font-size: 16px;
    font-weight: 700;
    color: #f97316;
}

.material-reference-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Характеристики */
.material-reference-specs {
    margin-bottom: 16px;
}

.spec-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.spec-label {
    width: 90px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}

.spec-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.spec-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #ea580c);
    border-radius: 10px;
}

.spec-value {
    width: 45px;
    font-size: 11px;
    color: #475569;
    text-align: right;
}

/* Подсказки */
.material-reference-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tip {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 12px;
}

.tip.good {
    background: #d1fae5;
    color: #065f46;
}

.tip.good strong {
    color: #059669;
}

.tip.warning {
    background: #fee2e2;
    color: #991b1b;
}

.tip.warning strong {
    color: #dc2626;
}

/* Адаптивность */
@media (max-width: 900px) {
    .materials-reference-grid {
        grid-template-columns: 1fr;
    }

    .material-reference-card {
        padding: 20px;
    }

    .material-reference-icon {
        width: 52px;
        height: 52px;
    }

    .material-reference-icon i {
        font-size: 26px;
    }

    .material-reference-name {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .materials-reference {
        padding: 40px 0;
    }

    .materials-reference-header h3 {
        font-size: 24px;
    }

    .material-reference-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .spec-label {
        width: 80px;
    }
}

/* ===== ЗАПОЛНЕНИЕ ===== */
/* ===== СЛАЙДЕР ЗАПОЛНЕНИЯ ===== */
.infill-block {
    flex: 1;
}

.infill-block__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.infill-block__label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.infill-block__value {
    font-size: 16px;
    font-weight: 700;
    color: #f97316;
}

/* Слайдер */
.infill-slider {
    margin-bottom: 8px;
}

.infill-slider__track {
    position: relative;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
}

.infill-slider__fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #f97316, #ea580c);
    border-radius: 10px;
    pointer-events: none;
}

.infill-slider__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: transparent;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.infill-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #f97316;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(249,115,22,0.3);
    border: 2px solid white;
}

.infill-slider__thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #f97316;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(249,115,22,0.3);
    border: 2px solid white;
    pointer-events: none;
    transition: left 0.05s linear;
}

/* Подсказки */
.infill-hints {
    position: relative;
    height: 20px;
    margin-top: 8px;
}

.infill-hints__item {
    position: absolute;
    transform: translateX(-50%);
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
}

.infill-hints__item:first-child {
    transform: translateX(0);
}

.infill-hints__item:last-child {
    transform: translateX(-100%);
}

@media (max-width: 640px) {
    .infill-hints__item:nth-child(2),
    .infill-hints__item:nth-child(4) {
        display: none;
    }
}

/* ===== ВЫБОР ЦВЕТА ===== */
.param-color-wrapper {
    flex: 1;
}

.param-color-wrapper label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.color-select {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.param-color-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

.param-color-select:focus {
    outline: none;
    border-color: #f97316;
}

.param-color-custom {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
}

.param-color-custom:focus {
    outline: none;
    border-color: #f97316;
}

.color-custom-btn {
    padding: 8px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.color-custom-btn:hover {
    background: #fff7ed;
    border-color: #f97316;
    color: #f97316;
}


/* ===== ДОСТАВКА ===== */
.delivery-section {
    margin-top: 32px;
}

.delivery-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.delivery-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.delivery-methods {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.delivery-method {
    flex: 1;
    cursor: pointer;
}

.delivery-method input {
    display: none;
}

.delivery-method-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.2s;
}

.delivery-method-content i {
    font-size: 24px;
    color: #94a3b8;
}

.delivery-method-content strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
}

.delivery-method-content span {
    font-size: 12px;
    color: #64748b;
}

.delivery-method input:checked + .delivery-method-content {
    border-color: #f97316;
    background: #fff7ed;
}

.delivery-method input:checked + .delivery-method-content i {
    color: #f97316;
}

/* Самовывоз */
.city-selector {
    margin-bottom: 20px;
}

.city-selector label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #475569;
}

.city-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
}

.pickup-points-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pickup-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.pickup-point:hover {
    border-color: #f97316;
    background: #fff7ed;
}

.pickup-point.selected {
    border-color: #f97316;
    background: #fff7ed;
}

.pickup-point-icon {
    font-size: 20px;
    color: #f97316;
}

.pickup-point-info {
    flex: 1;
}

.pickup-point-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.pickup-point-address {
    font-size: 12px;
    color: #64748b;
}

.pickup-point-working {
    font-size: 11px;
    color: #10b981;
    margin-top: 4px;
}
/* Карта */
.pickup-map-container {
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
}

.pickup-map {
    height: 400px;  /* было 300px, увеличили до 400px */
    width: 100%;
    z-index: 1;
}

/* Для планшетов */
@media (max-width: 768px) {
    .pickup-map {
        height: 350px;
    }
}

/* Для мобильных */
@media (max-width: 640px) {
    .pickup-map {
        height: 280px;
    }
}

/* Курьер */
.courier-block .address-input {
    margin-bottom: 16px;
}

.courier-block .address-input input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
}

.address-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
}

.delivery-price-info {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
}

.delivery-price-info strong {
    color: #f97316;
    font-size: 18px;
}

/* Разделители между блоками */
.delivery-section,
.contact-info-section {
    margin-bottom: 24px;
}

.submit-order-section {
    margin-top: 16px;
    margin-bottom: 40px;
    text-align: center;
}

/* ===== КАСТОМНЫЙ POPUP ДЛЯ LEAFLET ===== */

/* Контейнер карты */
.pickup-map {
    height: 300px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* Обертка popup */
.leaflet-popup {
    margin-bottom: 0px!important;
    bottom: 10px !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 20px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    overflow: hidden;
    background: white !important;
    max-height: 280px;
}

/* Стрелка popup */
.leaflet-popup-tip {
    background: white !important;
    box-shadow: none !important;
}

/* Контент popup */
.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 240px;
    max-width: 280px;
    max-height: 260px;
    overflow-y: auto;
}

/* Стилизация скроллбара внутри popup */
.leaflet-popup-content::-webkit-scrollbar {
    width: 4px;
}

.leaflet-popup-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.leaflet-popup-content::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 4px;
}

/* Кастомный popup */
.custom-popup {
    font-family: 'Inter', sans-serif;
}

/* Заголовок popup */
.popup-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    padding: 12px 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.popup-header i {
    font-size: 18px;
}

.popup-header strong {
    font-size: 14px;
    font-weight: 600;
}

/* Тело popup */
.popup-body {
    padding: 10px 16px;
}

.popup-address,
.popup-metro,
.popup-working,
.popup-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 11px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.popup-address:last-child,
.popup-metro:last-child,
.popup-working:last-child,
.popup-phone:last-child {
    border-bottom: none;
}

.popup-address i,
.popup-metro i,
.popup-working i,
.popup-phone i {
    width: 16px;
    color: #f97316;
    font-size: 11px;
}

.popup-metro i {
    color: #8b5cf6;
}

.popup-working i {
    color: #10b981;
}

.popup-phone i {
    color: #3b82f6;
}

/* Кнопка выбора */
.popup-select-btn {
    width: calc(100% - 32px);
    margin: 8px 16px 12px;
    padding: 8px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.popup-select-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(249,115,22,0.3);
}

.popup-select-btn i {
    font-size: 12px;
}

/* Анимация появления popup */
.leaflet-popup {
    animation: popupFadeIn 0.2s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Маркер */
.custom-marker-container {
    background: transparent;
}

.custom-marker {
    position: relative;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.marker-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(249,115,22,0.3);
    z-index: 2;
    transition: transform 0.2s;
}

.custom-marker:hover .marker-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(249,115,22,0.4);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Для мобильных устройств */
@media (max-width: 640px) {
    .leaflet-popup-content {
        max-width: 260px;
        max-height: 240px;
    }

    .popup-header {
        padding: 10px 14px;
    }

    .popup-header strong {
        font-size: 13px;
    }

    .popup-body {
        padding: 8px 14px;
    }

    .popup-select-btn {
        margin: 6px 14px 10px;
        padding: 7px;
        font-size: 11px;
    }
}

/* Контейнер карты */
.pickup-map-container {
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
}

.pickup-map {
    height: 300px;
    width: 100%;
    z-index: 1;
}

/* Чтобы popup не выходил за пределы */
.leaflet-popup {
    bottom: 5px !important;
}

/* Скрываем стандартный копирайт Leaflet */
.leaflet-control-attribution {
    display: none !important;
}

/* Добавляем свой копирайт (опционально) */
.pickup-map-container {
    position: relative;
}

.custom-map-attribution {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255,255,255,0.8);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    color: #64748b;
    z-index: 1000;
    pointer-events: none;
}

/* Фильтры пунктов выдачи */
.pickup-filters {
    margin-bottom: 20px;
}

.pickup-filters label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 10px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 6px 14px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #e2e8f0;
}

.filter-btn.active {
    background: #f97316;
    color: white;
}

/* Тип пункта */
.pickup-point-type {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 500;
}

.pickup-point-details {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 10px;
    color: #64748b;
}

.popup-type {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 500;
}

.popup-price,
.popup-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 11px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

/* Блок информации о выбранном пункте */
.selected-point-info {
    margin-top: 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.point-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

.point-icon {
    font-size: 24px;
}

.point-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.point-title span {
    font-size: 11px;
    opacity: 0.9;
}

.point-info-body {
    padding: 14px 16px;
}

.point-address,
.point-metro,
.point-working,
.point-price {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

.point-address:last-child,
.point-metro:last-child,
.point-working:last-child,
.point-price:last-child {
    border-bottom: none;
}

.point-address i,
.point-metro i,
.point-working i,
.point-price i {
    width: 20px;
    color: #f97316;
    font-size: 14px;
}

.point-metro i {
    color: #8b5cf6;
}

.point-working i {
    color: #10b981;
}

.point-price i {
    color: #f97316;
}

.point-select-btn {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.point-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

/* Для мобильных */
@media (max-width: 640px) {
    .point-info-header {
        padding: 10px 12px;
    }

    .point-title h4 {
        font-size: 14px;
    }

    .point-info-body {
        padding: 10px 12px;
    }

    .point-address,
    .point-metro,
    .point-working,
    .point-price {
        font-size: 12px;
        padding: 6px 0;
    }

    .point-select-btn {
        margin: 0 12px 12px;
        padding: 8px;
        font-size: 13px;
    }
}

/* Блок для неавторизованных пользователей */
.auth-required-section {
    padding: 60px 0;
    background: #f8fafc;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-required-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.auth-required-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.auth-required-card h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1e293b;
}

.auth-required-card p {
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.auth-required-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-login-lg,
.btn-register-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-login-lg {
    background: white;
    border: 2px solid #f97316;
    color: #f97316;
}

.btn-login-lg:hover {
    background: #f97316;
    color: white;
    transform: translateY(-2px);
}

.btn-register-lg {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.btn-register-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.auth-benefits {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.benefit i {
    font-size: 24px;
    color: #f97316;
}

@media (max-width: 640px) {
    .auth-required-card {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .auth-required-card h2 {
        font-size: 24px;
    }

    .auth-required-buttons {
        flex-direction: column;
    }

    .auth-benefits {
        gap: 20px;
    }
}
