/* =====================================================
   ÖDEME / CHECKOUT SAYFASI STÜLLERI
   ===================================================== */

.checkout-page-main {
    padding: 40px 0;
    padding-top: 40px;
}

.checkout-header-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease-out;
    border-bottom: 3px solid #ff6a00;
    padding-bottom: 25px;
    padding-top: 20px;
}

.checkout-header-section h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #ff6a00;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* LAYOUT */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 45px;
    margin-bottom: 50px;
}

/* FORM BÖLÜMÜ */
.checkout-form-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkout-form-group {
    background: white;
    border: 2px solid #ffe8d6;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(255, 106, 0, 0.12);
    transition: all 0.3s;
    animation: slideInUp 0.5s ease-out;
}

.checkout-form-group:hover {
    border-color: #ff6a00;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.15);
}

.form-section-title {
    font-size: 1.3em;
    margin-bottom: 25px;
    color: #ff6a00;
    font-weight: 800;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffe8d6;
}

.form-group-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FORM ALANLAR */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 700;
    color: #333;
    font-size: 0.9em;
}

.form-field input,
.form-field textarea {
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s;
    color: #333;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #ff6a00;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.form-field textarea {
    resize: vertical;
}

/* KARGO SEÇENEKLERİ */
.shipping-option {
    position: relative;
}

.shipping-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.shipping-option label {
    display: block;
    padding: 16px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.shipping-option input[type="radio"]:checked + label {
    border-color: #ff6a00;
    background: #fff8f3;
    box-shadow: 0 2px 12px rgba(255, 106, 0, 0.15);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.option-header strong {
    color: #333;
    font-weight: 800;
}

.option-time {
    font-size: 0.85em;
    color: #666;
    font-weight: 600;
}

.option-price {
    color: #ff6a00;
    font-weight: 800;
}

.option-desc {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* ÖDEME YÖNTEMİ */
.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-option label {
    display: block;
    padding: 16px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.payment-option input[type="radio"]:checked + label {
    border-color: #ff6a00;
    background: #fff8f3;
    box-shadow: 0 2px 12px rgba(255, 106, 0, 0.15);
}

/* ÖZET BÖLÜMÜ */
.checkout-summary-section {
    height: fit-content;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-card {
    background: white;
    border: 2px solid #ffe8d6;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(255, 106, 0, 0.12);
    transition: all 0.3s;
}

.summary-card:hover {
    border-color: #ff6a00;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.15);
}

.summary-card h2 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #ff6a00;
    font-weight: 800;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 0.85em;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.item-info strong {
    color: #333;
    font-weight: 700;
}

.item-qty {
    color: #999;
    font-size: 0.75em;
    margin-top: 2px;
}

.item-price {
    font-weight: 700;
    color: #0066cc;
    white-space: nowrap;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8e8e8, transparent);
    margin: 15px 0;
}

.summary-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #333;
    font-size: 0.9em;
}

.summary-detail strong {
    font-weight: 700;
}

.grand-total {
    font-size: 1.2em;
    padding-top: 15px;
    border-top: 2px solid #333;
    color: #0066cc;
    font-weight: 800;
}

/* GÜVENLİK BİLGİSİ */
.security-info {
    background: linear-gradient(135deg, #fff8f3 0%, #ffe8d6 100%);
    border: 2px solid #ff6a00;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    color: #ff6a00;
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* BUTONLAR */
.btn-pay-now,
.btn-back-to-cart {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 800;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.btn-pay-now {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8c26 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.btn-pay-now:hover,
.btn-pay-now:focus {
    background: linear-gradient(135deg, #ff8c26 0%, #ffaa4f 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.4);
    color: white;
}

.btn-pay-now:active {
    transform: translateY(-1px);
}

.btn-back-to-cart {
    background: #fff8f3;
    color: #ff6a00;
    border: 2px solid #ff6a00;
}

.btn-back-to-cart:hover,
.btn-back-to-cart:focus {
    background: #ff6a00;
    color: white;
    transform: translateY(-2px);
}

/* MOBİL DUYARLı */
@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .checkout-summary-section {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .checkout-page-main {
        padding-top: 50px;
    }

    .checkout-header-section {
        margin-bottom: 30px;
        padding-top: 15px;
        padding-bottom: 20px;
    }

    .checkout-header-section h1 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-form-group {
        padding: 20px;
        margin-bottom: 15px;
    }

    .form-section-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .form-field label {
        font-size: 0.9em;
    }

    .form-field input,
    .form-field textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .summary-card {
        padding: 20px;
    }

    .summary-card h2 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .order-items {
        max-height: 250px;
        margin-bottom: 15px;
    }

    .order-item {
        padding: 10px;
        font-size: 0.9em;
    }

    .summary-line {
        font-size: 0.9em;
        padding: 8px 0;
    }

    .btn-pay-now,
    .btn-back-to-cart {
        padding: 14px;
        font-size: 0.9em;
    }

    .shipping-option label,
    .payment-option label {
        padding: 14px 12px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .checkout-page-main {
        padding: 15px 0;
    }

    .checkout-header-section {
        margin-bottom: 20px;
    }

    .checkout-header-section h1 {
        font-size: 1.3em;
    }

    .breadcrumb {
        font-size: 0.8em;
    }

    .checkout-form-group {
        padding: 15px;
        margin-bottom: 12px;
    }

    .form-section-title {
        font-size: 1em;
        margin-bottom: 12px;
    }

    .form-field label {
        font-size: 0.85em;
    }

    .form-field input,
    .form-field textarea {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    .form-group-content {
        gap: 15px;
    }

    .option-header {
        font-size: 0.85em;
    }

    .option-desc {
        font-size: 0.8em;
    }

    .summary-card {
        padding: 15px;
    }

    .summary-card h2 {
        font-size: 1em;
        margin-bottom: 12px;
    }

    .order-items {
        max-height: 200px;
        gap: 10px;
        margin-bottom: 12px;
    }

    .order-item {
        padding: 8px;
        font-size: 0.85em;
        flex-direction: column;
        align-items: flex-start;
    }

    .item-info strong {
        font-size: 0.9em;
    }

    .summary-line {
        font-size: 0.85em;
        padding: 6px 0;
    }

    .grand-total-line {
        font-size: 0.95em;
    }

    .grand-total {
        font-size: 1em;
    }

    .btn-pay-now,
    .btn-back-to-cart {
        padding: 12px;
        font-size: 0.85em;
        margin-bottom: 8px;
    }

    .shipping-option label,
    .payment-option label {
        padding: 12px 10px;
        font-size: 0.85em;
    }
}
