/* ===== СТИЛИ СТРАНИЦЫ ОФОРМЛЕНИЯ ЗАКАЗА ===== */

.main-content {
    min-height: calc(100vh - 200px);
    padding: 30px 0 60px;
    background: #fff;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 13px;
}

.breadcrumbs a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #e31e24;
}

.breadcrumbs .separator {
    color: #ccc;
}

.breadcrumbs .current {
    color: #e31e24;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Основная сетка */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: flex-start;
}

/* === ФОРМА ЗАКАЗА === */
.checkout-form-section {
    max-width: 500px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
    color: #333;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    border-bottom-color: #e31e24;
}

/* Способ оплаты */
.payment-section {
    margin-top: 20px;
}

.payment-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.payment-option input {
    display: none;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.payment-option input:checked + .radio-circle {
    border-color: #e31e24;
}

.payment-option input:checked + .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #e31e24;
    border-radius: 50%;
}

.payment-option input:checked ~ .payment-label {
    color: #333;
}

/* Мобильная сумма (скрыта на десктопе) */
.order-summary-mobile {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Кнопка заказа */
.order-btn {
    margin-top: 20px;
    padding: 16px 50px;
    background: #e31e24;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    width: fit-content;
}

.order-btn:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3);
}

/* === СОСТАВ ЗАКАЗА === */
.order-items-section {
    background: #fff;
}

.order-items-title {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.item-category {
    font-size: 13px;
    color: #999;
}

.item-quantity {
    font-size: 14px;
    color: #666;
    min-width: 50px;
    text-align: center;
}

.item-price {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    min-width: 80px;
    text-align: right;
}

/* Итого десктоп */
.order-total-desktop {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* ===== СТИЛИ УСПЕШНОГО ЗАКАЗА ===== */

.order-success-block {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.order-success-block.show {
    opacity: 1;
    transform: translateY(0);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease;
}

.success-icon i {
    font-size: 50px;
    color: #fff;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.success-number {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.success-number strong {
    color: #e31e24;
    font-size: 20px;
}

.success-text {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 40px;
}

.success-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
}

.success-btn.primary {
    background: #e31e24;
    color: #fff;
}

.success-btn.primary:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3);
}

.success-btn.secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.success-btn.secondary:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 576px) {
    .main-content{
        padding-top: 40px;
    }
    .order-success-block {
        padding: 40px 15px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-icon i {
        font-size: 40px;
    }

    .success-title {
        font-size: 24px;
    }

    .success-number {
        font-size: 16px;
    }

    .success-number strong {
        font-size: 18px;
    }

    .success-text {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .success-actions {
        flex-direction: column;
        gap: 12px;
    }

    .success-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
        font-size: 14px;
    }
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .checkout-form-section {
        max-width: 100%;
        order: 2;
    }

    .order-items-section {
        order: 1;
    }

    .order-total-desktop {
        display: none;
    }

    .order-summary-mobile {
        display: block;
    }

    .order-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .order-item {
        gap: 12px;
    }

    .item-image {
        width: 60px;
        height: 60px;
    }

    .item-name {
        font-size: 14px;
    }

    .item-quantity {
        font-size: 13px;
        min-width: 40px;
    }

    .item-price {
        font-size: 14px;
        min-width: 70px;
    }
}