:root {
    --cream: #f7f2e8; --paper: #fffdf8; --ink: #201d18; --muted: #6b655a;
    --green: #2f5d3a; --green-dark: #1f4029; --green-soft: #e3ecdf;
    --red: #b3262b; --red-soft: #fbeaea; --honey: #d9a441; --line: #e6dfcf;
    --wa: #147a3a; --wa-dark: #0f6a30;
    --radius: 16px;
    --serif: "Fraunces", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.5; padding-bottom: env(safe-area-inset-bottom); }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.wrap { width: min(720px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

.top { position: sticky; top: 0; z-index: 30; background: rgba(247, 242, 232, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 16px; }
.brand img { width: 72px; height: auto; border-radius: 50%; }
.ust-nav { display: flex; align-items: center; gap: 18px; }
.ust-nav a { text-decoration: none; font-weight: 500; font-size: 14px; }
.ust-nav a:hover { color: var(--green); }
.ust-nav button { background: none; border: 1.5px solid #cfc6b1; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.ust-nav button:hover { border-color: var(--green); color: var(--green); }

main { padding: 28px 0 80px; min-height: 60vh; }
.yukleniyor { text-align: center; color: var(--muted); padding: 60px 0; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }
h2.bolum { font-size: 20px; font-weight: 700; margin: 34px 0 12px; }

.banner { background: #f7ecd0; color: #6b4a08; border-radius: 14px; padding: 14px 18px; margin-bottom: 22px; font-size: 14.5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.banner a { color: inherit; font-weight: 700; text-decoration: underline; }

.kart { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.kart h3 { font-size: 17px; margin-bottom: 10px; }
.satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.satir b { font-weight: 600; }
.satir small { color: var(--muted); font-size: 13px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 48px; padding: 10px 13px; font-size: 15px; background: #fff;
    border: 1.5px solid #cfc6b1; border-radius: 12px;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 93, 58, .15); }
.satir2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
    border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; background: none;
}
.btn-green { background: var(--wa); color: #fff; }
.btn-green:hover { background: var(--wa-dark); }
.btn-line { border-color: #cfc6b1; background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--green); color: var(--green); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #971f24; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.linkbtn { background: none; border: 0; color: var(--muted); font-size: 13.5px; text-decoration: underline; padding: 4px; }
.linkbtn:hover { color: var(--red); }

.adres-liste, .siparis-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.adres-item { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.adres-item .ust { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.adres-item .rozet { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--green-soft); color: var(--green-dark); padding: 2px 8px; border-radius: 999px; }
.adres-item p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.adres-item .islemler { display: flex; gap: 14px; margin-top: 10px; }
.adres-item .islemler button { background: none; border: 0; color: var(--green); font-size: 13.5px; font-weight: 600; padding: 2px; cursor: pointer; }
.adres-item .islemler button.sil { color: var(--red); }

.siparis-item { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.siparis-item .ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.siparis-item small { color: var(--muted); font-size: 13px; }
.durum-rozet { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.durum-rozet.onay_bekliyor { background: #f7ecd0; color: #6b4a08; }
.durum-rozet.onaylandi { background: var(--green-soft); color: var(--green-dark); }
.durum-rozet.gonderildi { background: #dce9f5; color: #1f4a66; }
.durum-rozet.teslim_edildi { background: #eee8d8; color: var(--muted); }
.durum-rozet.iptal { background: var(--red-soft); color: #8f1d21; }
.banka-kutu { background: var(--green-soft); border-radius: 12px; padding: 14px 16px; margin-top: 10px; font-size: 14px; }
.banka-kutu b { display: block; margin-bottom: 4px; }
.banka-kutu code { font: 700 15px ui-monospace, Menlo, monospace; }

.bos { text-align: center; padding: 30px 16px; color: var(--muted); font-size: 14.5px; }

#toasts { position: fixed; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); max-width: 100%; }
.toast.err { background: var(--red); }

@media (max-width: 560px) {
    .satir2 { grid-template-columns: 1fr; }
    .brand span { display: none; }
}
