/* Sepet ve ödeme */
.checkout { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.checkout h2 { font-size: 18px; margin: 0 0 12px; }
.cart-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.cart-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-row:last-child { border-bottom: none; }
.cart-row small { color: var(--muted); display: block; }
.link-btn { background: none; border: none; color: var(--danger); cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
.qty-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; padding: 10px 12px; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit;
}
.field textarea { min-height: 80px; resize: vertical; }
.consents { margin-top: 14px; display: grid; gap: 8px; font-size: 13px; }
.consents label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.pay-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.pay-btn { padding: 12px 20px; border-radius: 12px; border: none; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; }
.pay-btn:disabled { opacity: .4; cursor: not-allowed; }
.pay-note { font-size: 12px; color: var(--muted); }
.pay-status { margin-top: 10px; font-size: 13px; color: var(--ok); min-height: 1.4em; font-weight: 500; }
.pay-status.err { color: var(--danger); }

.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sp { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.sp.active { border-color: var(--text); color: var(--text); font-weight: 600; }
.sp.done { color: var(--ok); border-color: var(--ok); }
.stage[hidden], .checkout[hidden], [hidden] { display: none !important; }
.cart-go { margin-top: 8px; width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--text); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.back-btn { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.seller-note { font-size: 13px; font-weight: 600; margin-bottom: 8px; }

footer { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; font-size: 13px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.foot-grid h3 { font-size: 13px; color: var(--text); margin: 0 0 8px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid button.flink { background: none; border: none; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-align: left; }
.foot-grid button.flink:hover { color: var(--text); text-decoration: underline; }
.seller { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; font-size: 13px; }
.seller div b { color: var(--text); font-weight: 600; }
.legal-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-box h3 { color: var(--text); font-size: 16px; margin: 0 0 10px; }
.legal-box p { margin: 0 0 10px; color: var(--text); }
.copy { margin-top: 16px; font-size: 12px; }

/* Müşteri (User) Çekmecesi & iyzico Modal */
.backdrop { position: fixed; inset: 0; background: #00000066; z-index: 90; display: flex; justify-content: flex-end; }
.drawer { width: min(460px, 100vw); height: 100%; background: var(--surface); border-left: 1px solid var(--line); padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.drawer-head h2 { margin: 0; font-size: 18px; }
.close-btn { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; }
.order-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--bg); font-size: 13px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 6px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.warn { color: var(--danger); border-color: var(--danger); }

.modal-center { position: fixed; inset: 0; background: #00000077; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }

/* Gizli Admin Paneli (/admin) */
.admin-wrap { max-width: 1080px; margin: 0 auto; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.stock-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); font-size: 13px; }
.stock-item input { width: 82px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: right; font: inherit; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .modal-card { width: 100%; padding: 18px 14px; }
  .drawer { width: 100vw; padding: 16px 12px; }
  .pay-row { flex-direction: column; align-items: stretch; }
  .pay-btn { width: 100%; text-align: center; }
}
