/* =========================================================
   OKUT.NET.TR – Sipariş (checkout) sayfası
   style.css üzerine eklenir
   ========================================================= */

.checkout-page { background: var(--brand-50); }

/* Header */
.co-header { background: #fff; border-bottom: 1px solid var(--brand-100); padding: 14px 0; position: sticky; top: 0; z-index: 1030; }
.co-secure { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: #008a6e; background: #dcf7f0; padding: 7px 14px; border-radius: 999px; }

.co-main { padding: 34px 0 70px; position: relative; }
.co-main::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 320px; pointer-events: none;
  background: radial-gradient(ellipse at 80% 0%, rgba(155, 92, 246, .16), transparent 60%);
}
.co-main > .container { position: relative; }

/* Başlık & adımlar */
.co-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 28px; }
.co-back { flex-basis: 100%; font-size: .9rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.co-back:hover { color: var(--brand); }
.co-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; margin: 0; margin-right: auto; }
.co-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.co-steps li { display: flex; align-items: center; gap: 8px; }
.co-steps li + li::before { content: ""; width: 28px; height: 2px; background: var(--brand-100); margin-right: 2px; }
.co-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--brand-100); font-size: .8rem; }
.co-steps .done { color: var(--ink); }
.co-steps .done span { background: var(--green); border-color: var(--green); color: #fff; }
.co-steps .current { color: var(--brand); }
.co-steps .current span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.co-steps .done + li::before, .co-steps .current + li::before { background: var(--brand-100); }
.co-steps .done + .current::before { background: var(--green); }

/* Kart */
.co-card { background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--brand-100); margin-bottom: 22px; }
.co-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--brand-50); }
.cch-ic { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-100); color: var(--brand); font-size: 1.25rem; }
.co-card-head h2 { font-size: 1.2rem; margin: 2px 0 2px; }
.co-card-head p { margin: 0; font-size: .88rem; color: var(--muted); }

/* Form alanları */
.checkout-page .form-control, .checkout-page .form-select {
  border: 1.5px solid #e3def8; border-radius: 14px; color: var(--ink); font-weight: 500; background-color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.checkout-page .form-control:hover, .checkout-page .form-select:hover { border-color: #cfc5f7; }
.checkout-page .form-control:focus, .checkout-page .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(106, 73, 242, .14); }
.checkout-page .form-floating > label { color: var(--muted); font-weight: 400; }
.checkout-page .form-floating > .form-control:focus ~ label,
.checkout-page .form-floating > .form-control:not(:placeholder-shown) ~ label,
.checkout-page .form-floating > .form-select ~ label { color: var(--brand); }
.checkout-page .form-floating > .form-control:focus ~ label::after,
.checkout-page .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.checkout-page .form-floating > .form-select ~ label::after { background: transparent; }
.checkout-page .form-select:disabled { background-color: #f7f6fc; color: var(--muted); }
.checkout-page .was-validated .form-control:valid, .checkout-page .was-validated .form-select:valid { border-color: #b7e9dc; }
.checkout-page .form-control.is-invalid, .checkout-page .was-validated .form-control:invalid,
.checkout-page .was-validated .form-select:invalid { border-color: var(--red); }
.invalid-feedback { font-size: .8rem; }

.phone-group .input-group-text { border: 1.5px solid #e3def8; border-right: 0; background: var(--brand-50); color: var(--ink); font-weight: 600; border-radius: 14px 0 0 14px; }
.phone-group .form-control { border-radius: 0 14px 14px 0 !important; }
.phone-group:focus-within .input-group-text { border-color: var(--brand); }
.was-validated .phone-group:has(:invalid) .input-group-text { border-color: var(--red); }
.was-validated .phone-group:has(:invalid) .invalid-feedback { display: block; }

/* Ödeme seçeneği */
.pay-option {
  display: flex; align-items: center; gap: 14px; cursor: pointer; flex-wrap: wrap;
  border: 2px solid #e3def8; border-radius: 16px; padding: 18px 20px; transition: all .2s;
}
.pay-option:hover { border-color: #cfc5f7; }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 4px rgba(106,73,242,.08); }
.pay-option .form-check-input { width: 1.3rem; height: 1.3rem; margin: 0; flex-shrink: 0; border-width: 2px; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(106,73,242,.18); border-color: var(--brand); }
.po-body { flex: 1; min-width: 160px; }
.po-body b { display: block; color: var(--ink); font-size: .98rem; }
.po-body small { color: var(--muted); font-size: .82rem; }
.po-cards { display: flex; gap: 6px; }
.cb { height: 28px; min-width: 44px; padding: 0 8px; border-radius: 6px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: #fff; border: 1px solid #e6e3f3; }
.cb-visa { color: #1a1f71; font-style: italic; letter-spacing: .02em; }
.cb-troy { color: #00a3a1; text-transform: lowercase; }
.cb-mc { display: flex; align-items: center; justify-content: center; }
.cb-mc i { width: 14px; height: 14px; border-radius: 50%; background: #eb001b; }
.cb-mc i + i { background: #f79e1b; margin-left: -6px; mix-blend-mode: multiply; }
.pay-trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .82rem; color: var(--muted); }
.pay-trust i { color: var(--green); margin-right: 4px; }

/* Özet */
/* Özet, ekrana sığacak kadar yüksek ekranlarda yapışkan olur (aksi halde buton ekran dışında kalabilir) */
@media (min-width: 992px) and (min-height: 1100px) { .co-summary { position: sticky; top: 90px; } }
.sum-card { padding: 26px; }
.sum-title { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.sum-title i { color: var(--brand); }
.sum-product { display: flex; align-items: center; gap: 14px; }
.sum-product b { display: block; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.sum-product small { color: var(--muted); font-size: .8rem; }
.sp-thumb { position: relative; width: 62px; height: 62px; border-radius: 16px; flex-shrink: 0; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 20px rgba(106,73,242,.3); }
.sp-qty { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.sp-price { margin-left: auto; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sum-features { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px dashed var(--brand-100); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: .82rem; color: var(--text); }
.sum-features li { display: flex; gap: 6px; align-items: flex-start; }
.sum-features i { color: var(--green); }

.coupon { margin: 20px 0 6px; border: 1.5px dashed #d6ccfb; border-radius: 14px; background: #fcfbff; }
.coupon-toggle { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 13px 16px; font-weight: 600; font-size: .9rem; color: var(--brand); text-align: left; }
.coupon-toggle .bi-chevron-down { transition: transform .25s; }
.coupon-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.coupon-row { display: flex; gap: 8px; padding: 0 12px 12px; }
.coupon-row .form-control { text-transform: uppercase; letter-spacing: .04em; border-radius: 12px; }
.coupon-row .form-control::placeholder { text-transform: none; letter-spacing: 0; }
.coupon-row .btn { border-radius: 12px; padding: .55rem 1.2rem; box-shadow: none; }

.sum-lines { margin: 14px 0 18px; }
.sum-lines > div { display: flex; justify-content: space-between; padding: 9px 0; font-size: .93rem; }
.sum-lines dt { font-weight: 400; color: var(--text); }
.sum-lines dd { margin: 0; font-weight: 600; color: var(--ink); }
.sum-lines .free { color: #008a6e; }
.sum-total { border-top: 1px solid var(--brand-100); margin-top: 6px; padding-top: 16px !important; align-items: baseline; }
.sum-total dt { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.sum-total dd { font-size: 1.6rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }

.agree { background: var(--brand-50); border-radius: 12px; padding: 12px 14px 12px 42px; margin-bottom: 16px; font-size: .88rem; }
.agree .form-check-input { margin-left: -28px; width: 1.15rem; height: 1.15rem; margin-top: .15rem; }
.agree a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.agree .form-check-input.is-invalid ~ .invalid-feedback { display: block; }
.agree:has(.is-invalid) { background: #fff5f6; box-shadow: inset 0 0 0 1.5px #f7b3bc; }

.co-submit { border-radius: 16px; padding: 1rem 1.2rem; font-size: 1.02rem; }
.co-submit .btn-loading { display: none; align-items: center; gap: 10px; }
.co-submit.loading .btn-label { display: none; }
.co-submit.loading .btn-loading { display: inline-flex; }
.sum-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; line-height: 1.6; }
.sum-note i { color: var(--brand); }
.sum-note b { color: var(--ink); font-weight: 600; }

.sum-trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sum-trust li { background: #fff; border: 1px solid var(--brand-100); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.sum-trust i { font-size: 1.3rem; color: var(--brand); }
.sum-trust b { display: block; font-size: .8rem; color: var(--ink); line-height: 1.2; }
.sum-trust small { font-size: .7rem; color: var(--muted); }

/* Mobil katlanır özet */
.co-mobile-summary { background: #fff; border: 1px solid var(--brand-100); border-radius: 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.cms-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; padding: 14px 18px; font-weight: 600; color: var(--brand); font-size: .92rem; }
.cms-toggle b { color: var(--ink); font-size: 1.1rem; }
.cms-chev { transition: transform .25s; display: inline-block; }
.cms-toggle[aria-expanded="true"] .cms-chev { transform: rotate(180deg); }
.cms-body { padding: 4px 18px 18px; border-top: 1px solid var(--brand-50); padding-top: 16px; }

/* KVKK modal */
.kvkk-modal { border: 0; border-radius: 22px; }
.kvkk-modal .modal-header { border-bottom: 1px solid var(--brand-50); padding: 20px 24px; }
.kvkk-modal .modal-title { font-size: 1.1rem; display: flex; gap: 10px; align-items: center; }
.kvkk-modal .modal-title i { color: var(--brand); }
.kvkk-modal .modal-body { padding: 22px 24px; color: var(--text); font-size: .93rem; }
.kvkk-modal .modal-body h3 { font-size: 1rem; margin: 18px 0 6px; }
.kvkk-modal .modal-footer { border-top: 1px solid var(--brand-50); padding: 14px 24px; }

/* Footer */
.co-footer { border-top: 1px solid var(--brand-100); background: #fff; padding: 20px 0; font-size: .85rem; color: var(--muted); }
.co-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.co-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.co-footer a { color: var(--muted); }
.co-footer a:hover { color: var(--brand); }

/* Duyarlı */
@media (max-width: 991.98px) {
  .co-summary { position: static; }
  .co-head { margin-bottom: 20px; }
}
@media (max-width: 575.98px) {
  .co-header { padding: 10px 0; }
  .co-secure span { display: none; }
  .co-secure { padding: 8px 10px; }
  .co-main { padding: 20px 0 40px; }
  .co-steps { width: 100%; justify-content: space-between; }
  .co-steps li + li::before { width: 100%; min-width: 14px; flex: 1; }
  .co-steps li { flex: 1; }
  .co-steps li:first-child { flex: 0 0 auto; }
  .co-card { padding: 20px 16px; border-radius: 18px; }
  .co-card-head { margin-bottom: 18px; padding-bottom: 14px; }
  .sum-card { padding: 20px 16px; }
  .sum-features { grid-template-columns: 1fr; }
  .po-cards { width: 100%; padding-left: 34px; }
  .sum-trust li { padding: 10px 6px; }
  .co-footer .container { justify-content: center; text-align: center; }
}
