/* Dilim — arayüz stilleri */
:root {
  --bg: #fffaf5;
  --surface: #ffffff;
  --ink: #2b2024;
  --muted: #76686c;
  --line: #eadfd6;
  --brand: #b8456b;
  --brand-dark: #963253;
  --brand-soft: #fbe9ef;
  --accent: #e9a03b;
  --ok: #2f7d57;
  --ok-soft: #e3f3ea;
  --warn: #9a6200;
  --warn-soft: #fdf1d8;
  --bad: #b3362f;
  --bad-soft: #fbe6e4;
  --info: #2d5f8a;
  --info-soft: #e5eff8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 30, 40, .06), 0 8px 24px rgba(60, 30, 40, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h2 { font-size: 1.5rem; margin-top: 1.6em; }
.h3, h3 { font-size: 1.15rem; }
.h4, h4 { font-size: 1rem; font-family: var(--sans); font-weight: 650; margin-top: 1em; }
p { margin: 0 0 .8em; }
code { background: #f3ebe4; padding: .1em .35em; border-radius: 5px; font-size: .9em; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding-top: 28px; padding-bottom: 28px; }
.pad-lg { padding-top: 64px; padding-bottom: 64px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.plain { list-style: none; padding: 0; margin: 0 0 .8em; }
.plain li { margin-bottom: .3em; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); }

/* Üst menü */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 700 1.35rem var(--serif); color: var(--brand); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.main-nav { display: flex; align-items: center; gap: 18px; flex: 1; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; }
.main-nav a:hover { color: var(--brand); }
.main-nav a.btn { color: #fff; padding: 8px 14px; }
.nav-spacer { flex: 1; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 12px 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.pill { background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; vertical-align: 1px; }
.inline { display: inline; }
.link-btn { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--brand-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.danger, .link-btn.danger { color: var(--bad); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a, .main-nav .link-btn { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .main-nav a.btn { margin-top: 12px; text-align: center; border: 0; }
  .nav-spacer { display: none; }
}

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: 999px; padding: 11px 22px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; min-height: 44px; transition: background .15s, transform .05s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-sm { padding: 6px 14px; min-height: 36px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--brand-dark); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-outline.danger { color: var(--bad); border-color: var(--bad); }
.btn-outline.danger:hover { background: var(--bad-soft); }
.btn-light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-light:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-dark); }

/* Bildirim kutuları ve rozetler */
.flashes { padding-top: 14px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; border: 1px solid transparent; }
.flash-success { background: var(--ok-soft); border-color: #bfe0cd; color: #1d5a3c; }
.flash-error { background: var(--bad-soft); border-color: #f0c2be; color: #8a241f; }
.flash-info { background: var(--info-soft); border-color: #c5d9ea; color: #204a6e; }
.flash-warn { background: var(--warn-soft); border-color: #f0dba6; color: #6d4600; }
.flash .btn { margin-left: 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-done { background: #e9e4f5; color: #4f3c8a; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-muted { background: #efe9e4; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag { background: #f5ece4; color: #6a5148; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.tag-ai { background: linear-gradient(90deg, #f3e3ff, #ffe3ee); color: #7a2f73; }
.stars { color: var(--accent); letter-spacing: 1px; }
.stars-off { color: #e3d8cf; }

/* Ana sayfa */
.hero { background: radial-gradient(1200px 400px at 10% -10%, #fde6ee 0, transparent 60%), radial-gradient(900px 400px at 100% 0, #fff0d9 0, transparent 55%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.lead { font-size: 1.1rem; color: #4d3f43; max-width: 56ch; }
.search { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.search select, .search input { flex: 1 1 160px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 58px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font: 700 1rem var(--serif); display: grid; place-items: center; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .93rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h1, .section-head h2 { margin: 0; }
.cta { background: var(--brand); color: #fff; border-radius: 20px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 .2em; }
.cta p { margin: 0; opacity: .92; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; gap: 24px; } }

/* Kartlar ve ızgaralar */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: block; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60,30,40,.08), 0 14px 32px rgba(60,30,40,.1); color: inherit; }
.card-media { aspect-ratio: 4 / 3; background: #f6ede6; }
.card-media img, .product-media img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 70% 93%), hsl(var(--h) 60% 85%)); color: hsl(var(--h) 45% 45%); }
.ph svg { width: 42%; max-width: 140px; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { margin: 0 0 2px; }
.card-body p { margin: 0 0 6px; font-size: .92rem; }
.price { font-weight: 700; font-size: 1.05rem !important; }
.price .muted { font-weight: 400; font-size: .85rem; }
.bakery-card { display: flex; gap: 14px; align-items: center; padding: 16px; }
.bakery-card h3 { margin: 0; }
.bakery-card p { margin: 0; font-size: .92rem; }
.bakery-logo { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font: 700 1.6rem var(--serif); }
.bakery-logo img { width: 100%; height: 100%; object-fit: cover; }
.bakery-logo-lg { width: 96px; height: 96px; font-size: 2.2rem; }
.bakery-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.info .h4 { margin-top: 0; }
.reviews { list-style: none; padding: 0; display: grid; gap: 10px; }
.reviews li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.reviews p { margin: .3em 0 0; }

/* Formlar */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .field > label { font-weight: 600; font-size: .93rem; display: grid; gap: 5px; }
.field small { color: var(--muted); font-size: .84rem; }
.field-error { color: var(--bad) !important; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], input[type="number"], input[type="date"], input[type="time"], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid #d9cbc0; border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(184, 69, 107, .25); border-color: var(--brand); }
input[disabled] { background: #f4eee9; color: var(--muted); }
input[type="file"] { font: inherit; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; padding: 4px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 16px; margin-bottom: 14px; }
.inline-set { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.inline-set legend { font-weight: 600; font-size: .93rem; padding: 0; margin-bottom: 4px; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.danger-zone { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 22px; }
.filters .field { flex: 1 1 180px; }
.auth { max-width: 440px; padding-top: 48px; padding-bottom: 48px; }
.auth-links { margin-top: 16px; text-align: center; font-size: .95rem; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 10px; }
.row .field { flex: 1 1 130px; }
.row .grow { flex: 3 1 220px; }
.row .check { align-self: center; }
.row .push { margin-left: auto; }
.thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
details .field { margin-top: 10px; }

/* Ürün sayfası / özelleştirici */
.product-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start; }
.product-side { position: sticky; top: 80px; }
.product-media { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #f6ede6; margin-bottom: 16px; box-shadow: var(--shadow); }
.facts { font-size: .93rem; color: var(--muted); }
.customizer { display: grid; gap: 16px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; min-width: 0; }
.group legend { font: 700 1.1rem var(--serif); padding: 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 .85rem var(--sans); display: inline-grid; place-items: center; }
.req { font: 600 .72rem var(--sans); color: var(--brand-dark); background: var(--brand-soft); padding: 2px 8px; border-radius: 99px; }
.hint { font: 400 .82rem var(--sans); color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.opts-row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.opt { display: block; position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt-body { display: grid; gap: 1px; border: 1.5px solid #dccfc5; border-radius: 12px; padding: 10px 12px; min-height: 56px; background: #fff; transition: border-color .12s, background .12s; }
.opt-body small { color: var(--muted); font-size: .8rem; }
.opt-body .opt-price { color: var(--brand-dark); font-weight: 650; }
.opt input:checked + .opt-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt input:disabled + .opt-body { opacity: .45; cursor: not-allowed; }
.intensity { margin-top: 6px; padding: 8px 12px 10px; background: #fdf6f0; border: 1px dashed #e4d3c5; border-radius: 10px; font-size: .86rem; }
.intensity label { font-weight: 600; }
.intensity output { color: var(--brand-dark); }
.intensity input[type="range"] { width: 100%; accent-color: var(--brand); min-height: 28px; margin: 2px 0 0; }
.ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.ai-box { border-color: #e3c8e6; background: linear-gradient(180deg, #fdf7ff, #fff); }
.design-status { margin: 8px 0 0; font-size: .93rem; min-height: 1.4em; }
.design-status.is-error { color: var(--bad); font-weight: 600; }
.design-status.is-ok { color: var(--ok); font-weight: 600; }
.design-status.is-loading::before { content: ""; display: inline-block; width: 14px; height: 14px; border: 2px solid var(--brand); border-right-color: transparent; border-radius: 50%; margin-right: 8px; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.design-grid:empty { display: none; }
.design-pick { padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden; background: #f6ede6; cursor: pointer; aspect-ratio: 1; position: relative; }
.design-pick img { width: 100%; height: 100%; object-fit: cover; }
.design-pick[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.design-pick[aria-pressed="true"]::after { content: "✓ Seçildi"; position: absolute; left: 8px; bottom: 8px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.buy-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: 0 -4px 20px rgba(60,30,40,.08); }
.buy-bar .qty { width: 84px; }
.buy-bar .total { flex: 1; display: grid; }
.buy-bar .total strong { font: 700 1.5rem var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.buy-bar .btn { white-space: nowrap; }
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-side { position: static; }
  .product-media { aspect-ratio: 16 / 10; }
  .buy-bar { gap: 10px; }
  .buy-bar .qty { width: 64px; }
  .buy-bar .total strong { font-size: 1.2rem; }
  .buy-bar .btn { padding: 11px 16px; }
  .buy-bar { margin: 0 -16px; border-radius: 14px 14px 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* Paneller, tablolar */
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel-card > .h3:first-child, .panel-card > h2:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.summary { position: sticky; top: 80px; }
@media (max-width: 860px) { .two-col, .checkout-grid { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }
.method-panel { margin-top: 14px; display: grid; gap: 12px; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 12px 0 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 700; font-size: 1.15rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fbf5f0; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.row-actions { white-space: nowrap; }
.row-actions a, .row-actions form { margin-right: 10px; }
.subnav-bar { background: #fbf2ec; border-bottom: 1px solid var(--line); }
.subnav, .tabs { display: flex; gap: 4px; overflow-x: auto; }
.subnav a, .tabs a { padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a[aria-current], .tabs a[aria-current] { border-bottom-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
.subnav-ext { margin-left: auto; color: var(--muted) !important; }
.tabs { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 16px 0 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; display: grid; gap: 2px; }
.stat span { color: var(--muted); font-size: .88rem; }
.stat strong { font: 700 1.6rem var(--serif); font-variant-numeric: tabular-nums; }
a.stat:hover { border-color: var(--brand); }
.todo { margin: 0; padding-left: 20px; }
.todo li { margin-bottom: 6px; }
.group-row { border-left: 4px solid var(--brand); }
.option-row, .size-row, .zone-row { padding: 8px 0; border-top: 1px dashed var(--line); margin-bottom: 0; }

/* Sepet ve sipariş */
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.cart-thumb { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #f6ede6; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h3 { margin: 0 0 4px; }
.recipe-inline { font-size: .92rem; }
.cart-actions { display: grid; gap: 6px; justify-items: end; align-content: start; }
.cart-actions strong { font-size: 1.1rem; }
.qty-form { display: flex; gap: 6px; }
.qty-form input { width: 70px; min-height: 36px; padding: 4px 8px; }
.cart-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 640px) { .cart-item { grid-template-columns: 72px 1fr; } .cart-thumb { width: 72px; height: 72px; } .cart-actions { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; } }
.level { display: inline-block; font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: #f1e7df; color: #6a5148; }
.level-1 { background: #eef3f7; color: #47637a; }
.level-3 { background: #fdebd2; color: #8a5200; }
.level-4 { background: #fbdada; color: #9c2a2a; }
.order-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.order-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.order-item-head h3 { margin: 0 0 10px; }
.order-item-body { display: flex; gap: 16px; flex-wrap: wrap; }
.recipe { flex: 1 1 280px; min-width: 0; }
.recipe-table { width: 100%; border-collapse: collapse; }
.recipe-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .88rem; padding: 6px 12px 6px 0; vertical-align: top; white-space: nowrap; width: 1%; }
.recipe-table td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.design-thumb { display: block; width: 150px; flex: none; text-decoration: none; font-size: .82rem; text-align: center; }
.design-thumb img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; width: 100%; }
.design-big { width: 300px; max-width: 100%; }
.progress { list-style: none; display: flex; padding: 0; margin: 8px 0 20px; gap: 4px; }
.progress li { flex: 1; text-align: center; font-size: .82rem; color: var(--muted); padding-top: 14px; border-top: 5px solid var(--line); }
.progress .done { border-top-color: var(--ok); color: var(--ok); }
.progress .current { border-top-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 6px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline time { display: block; color: var(--muted); font-size: .82rem; }
.timeline p { margin: 2px 0 0; font-size: .92rem; }
.reject { margin-top: 12px; }
.notif-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.notif-list a { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: inherit; }
.notif-list .unread a { border-left: 4px solid var(--brand); background: #fff7fa; }
.notif-list time { color: var(--muted); font-size: .82rem; }
.big-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; margin: 0 auto 16px; }
.big-icon.ok { background: var(--ok-soft); color: var(--ok); }
.big-icon.bad { background: var(--bad-soft); color: var(--bad); }
.error-code { font: 700 4rem var(--serif); color: var(--brand); margin: 0; }
.prose h2 { font-size: 1.15rem; }
.prose li { margin-bottom: .5em; }

/* Alt bilgi */
.site-footer { background: #2b2024; color: #e8dcd6; margin-top: 40px; padding: 28px 0; font-size: .93rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer p { margin: 4px 0 0; opacity: .8; }
.site-footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #f3d9c4; padding: 6px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: .01ms !important; } }
@media print {
  .site-header, .site-footer, .subnav-bar, aside, .btn, .crumbs, .flashes { display: none !important; }
  body { background: #fff; }
  .two-col { display: block; }
  .order-item { break-inside: avoid; border-color: #999; }
}
