/* KumasVitrin — yönetim paneli */
:root {
  --brand: #4A5233;
  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --bg: #F5F3EF;
  --surface: #FFFFFF;
  --line: #E4DFD6;
  --ink: #23221F;
  --muted: #6D685F;
  --danger: #B03A2E;
  --wa: #1E8A4C;
  --radius: 14px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sidebar-w: 248px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.1rem; margin-bottom: 12px; }
p { margin: 0 0 .8em; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 50%, white); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 600; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.right { text-align: right; }
.pad { padding: 0 18px 14px; margin: 0; }
.text-danger { color: var(--danger) !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
code { font-family: var(--mono); font-size: .88em; background: #F0ECE4; padding: 1px 6px; border-radius: 6px; }

/* Layout */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar__menu { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.topbar__title { font-weight: 700; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar-w); background: #1F1E1B; color: #E9E5DC;
  display: flex; flex-direction: column; padding: 18px 14px; transform: translateX(-100%); transition: transform .3s ease;
}
.sidebar.is-open { transform: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .35); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sidebar.is-open + .nav-backdrop { opacity: 1; pointer-events: auto; }
.sidebar__brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; border-bottom: 1px solid rgb(255 255 255 / .1); margin-bottom: 12px; }
.sidebar__brand small { display: block; color: #A9A396; font-size: .78rem; }
.sidebar__mark { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.sidebar__nav { display: grid; gap: 2px; }
.sidebar__nav a, .sidebar__foot a, .linklike {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px;
  color: #E9E5DC; text-decoration: none; font-weight: 500; background: none; border: 0; cursor: pointer; width: 100%; text-align: left;
}
.sidebar__nav a:hover, .sidebar__foot a:hover, .linklike:hover { background: rgb(255 255 255 / .07); }
.sidebar__nav a.is-active { background: var(--brand); color: #fff; }
.sidebar__foot { margin-top: auto; display: grid; gap: 2px; font-size: .9rem; border-top: 1px solid rgb(255 255 255 / .1); padding-top: 12px; }
.sidebar__foot form { margin: 0; }
.pill { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #E9C46A; color: #3A2C05; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.admin-main { padding: 18px 14px 64px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 960px) {
  .topbar, .nav-backdrop { display: none; }
  .sidebar { transform: none; }
  .has-sidebar .admin-main { margin-left: var(--sidebar-w); padding: 28px 32px 64px; max-width: none; }
}

/* Bileşenler */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; max-width: 70ch; }
.back { font-size: .88rem; text-decoration: none; display: inline-block; margin-bottom: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel--flush { padding: 0; overflow: hidden; }
.panel--danger { border-color: #EBC7C0; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel--flush .panel__head { padding: 16px 18px 0; }
.panel__head h2 { margin: 0; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #8E2D23; }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--link { background: none; color: var(--muted); padding: 0 8px; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row form { margin: 0; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: .95rem; }
.icon-btn:hover:not([disabled]) { border-color: var(--brand); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.icon-btn--danger:hover:not([disabled]) { border-color: var(--danger); color: var(--danger); }
form.inline { display: inline; margin: 0; }

.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-size: .94rem; }
.flash ul { margin: 0; padding-left: 1.1em; }
.flash--success { background: #E7F3EA; border-color: #BFDCC7; color: #1E5631; }
.flash--error { background: #FBE7E4; border-color: #F0C2BA; color: #7E2318; }
.flash--warning { background: #FDF3DC; border-color: #EED79F; color: #5C4510; }
.flash:empty, .flash.validation-summary-valid { display: none; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); }
.stat span { font-size: .85rem; color: var(--muted); }
.stat strong { font-size: 1.9rem; line-height: 1.1; }
.stat small { color: var(--muted); }
.stat--accent { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat--accent span { color: rgb(255 255 255 / .8); }
.stat--warn strong { color: var(--danger); }

/* Tablo (mobilde kart) */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFAF7; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: #FBFAF7; }
.table tr.is-muted td { color: var(--muted); }
.table tfoot td { border-bottom: 0; font-size: 1.05rem; }
.actions-cell { text-align: right; white-space: nowrap; }
@media (max-width: 720px) {
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td, .table--cards tfoot { display: block; width: 100%; }
  .table--cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table--cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table--cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .82rem; text-align: left; flex: none; }
  .table--cards td.actions-cell { justify-content: flex-end; padding-top: 8px; }
  .table--cards tfoot td.right { display: none; }
}

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pending { background: #FDF0D2; color: #8A5A00; }
.status--confirmed { background: #E2ECF8; color: #24518A; }
.status--done { background: #E3F2E6; color: #23683A; }
.status--cancelled { background: #EFECE7; color: #6D685F; }
.status--lg { font-size: .95rem; padding: 6px 14px; }

.toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px 0; font-size: .88rem; color: var(--muted); }
.toggle span { width: 34px; height: 20px; border-radius: 999px; background: #D6D0C5; position: relative; transition: background .2s; }
.toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.toggle.is-on { color: var(--ink); }
.toggle.is-on span { background: var(--brand); }
.toggle.is-on span::after { transform: translateX(14px); }

/* Formlar */
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: .86rem; font-weight: 600; }
.field input:not([type=checkbox]):not([type=file]):not([type=color]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 16px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field input.input-validation-error, .field select.input-validation-error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; }
.field-error:empty { display: none; }
.hint { color: var(--muted); font-size: .8rem; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin: 6px 0 12px; font-size: .94rem; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field--check { align-self: center; }
.form-title { margin: 10px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-actions { display: flex; gap: 8px; align-items: center; padding-top: 6px; }
.form-narrow { max-width: 520px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 12px; }
.filters { display: grid; gap: 0 12px; padding-bottom: 4px; }
.filters .field { margin-bottom: 12px; }
.filters__actions { display: flex; gap: 6px; align-items: end; margin-bottom: 12px; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type=color] { width: 56px; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: var(--surface); cursor: pointer; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.logo-preview { height: 56px; width: auto; max-width: 200px; object-fit: contain; background: #F4F1EB; border-radius: 8px; padding: 6px; }

.edit-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .edit-grid { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); } }
.main-col .panel:last-child, .side-col .panel:last-child { margin-bottom: 0; }

.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 14px; }
.dl dt { color: var(--muted); font-size: .85rem; }
.dl dd { margin: 0; word-break: break-word; }
.dl .note { white-space: pre-wrap; background: #FBF6EA; padding: 8px 10px; border-radius: 8px; }

/* Giriş */
.is-guest { min-height: 100vh; display: grid; background: radial-gradient(120% 80% at 0% 0%, var(--brand-soft), transparent 60%), var(--bg); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login__card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 20px 50px rgb(35 34 31 / .1); }
.login__card h1 { margin-bottom: 4px; }
.login__mark { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; }
.is-guest .admin-main { padding: 0; margin: 0; max-width: none; }

/* Bildirimler */
.push-status { margin-bottom: 6px; }
.device-list { list-style: none; padding: 0; margin: 0 0 12px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.device-list li:last-child { border-bottom: 0; }
.device-list form { margin: 0; }
.pill--muted { background: var(--brand-soft); color: var(--brand); }
.sw-update { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 95; display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-radius: 12px; background: #1F1E1B; color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .25); max-width: calc(100vw - 32px); }
.sw-update button { background: none; border: 0; color: #E9C46A; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- Revizyon: başlık, filtreler ---------- */
.page-head--row { align-items: center; }
.page-head h1 { font-size: clamp(1.35rem, 4.5vw, 1.6rem); }
.topbar__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__action { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 10px; }
.topbar__action:hover { background: #F2EEE6; }
body.nav-open { overflow: hidden; }
.filters .field--grow { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .filters { grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(160px, 1fr)); }
  .filters .field--grow { grid-column: auto; }
}
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: rgb(255 255 255 / .9) rgb(255 255 255 / .9) transparent transparent; animation: spin .7s linear infinite; }
.btn--ghost.is-loading::after, .btn--link.is-loading::after { border-color: var(--brand) var(--brand) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brand); border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -3px; }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: var(--danger); }
.form-error { background: #FBE7E4; border: 1px solid #F0C2BA; color: #7E2318; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; font-size: .92rem; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; z-index: 120; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 14px; background: #1F1E1B; color: #fff; box-shadow: 0 14px 36px rgb(0 0 0 / .22); font-size: .93rem; animation: toast-in .25s ease; }
.toast--success { border-left: 4px solid #7FB58A; }
.toast--error { border-left: 4px solid #E07A6B; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.toast__close { background: none; border: 0; color: #CFC9BD; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.toast__close:hover { color: #fff; background: rgb(255 255 255 / .08); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Diyalog (native <dialog>) ---------- */
body.is-locked { overflow: hidden; }
.dialog { border: 0; padding: 0; margin: auto; width: min(480px, calc(100vw - 24px)); max-height: min(88dvh, 860px); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .28); overflow: hidden; }
.dialog--wide { width: min(920px, calc(100vw - 24px)); }
.dialog::backdrop { background: rgb(31 30 27 / .48); backdrop-filter: blur(2px); }
.dialog[open] { animation: dialog-in .22s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.dialog__panel { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
.dialog__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dialog__head .dialog__title { flex: 1; margin: 0; }
.dialog__title { font-size: 1.15rem; margin: 0 0 6px; }
.dialog__scroll { overflow-y: auto; padding: 18px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.dialog__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #FBFAF7; }
.dialog__loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 8px 0 14px; }
.is-busy .form-block { opacity: .45; pointer-events: none; }
.dialog--confirm .dialog__body { padding: 24px 22px calc(20px + env(safe-area-inset-bottom)); margin: 0; text-align: center; }
.dialog__icon { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.dialog--danger .dialog__icon { background: #FBE7E4; color: var(--danger); }
.dialog__text { color: #4A473F; margin: 0 0 14px; }
.dialog__facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; background: #F7F4EE; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.dialog__facts dt { color: var(--muted); font-size: .85rem; }
.dialog__facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.dialog__note { font-size: .86rem; color: #5C4510; background: #FDF3DC; border-radius: 10px; padding: 10px 12px; text-align: left; margin: 0 0 14px; }
.dialog--danger .dialog__note { color: #7E2318; background: #FBE7E4; }
.dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.icon-btn { flex: none; }
.form-block { margin-bottom: 18px; }
.form-block__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.form-block--danger { border-top: 1px solid var(--line); padding-top: 16px; }
@media (min-width: 720px) { .form-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .dialog, .dialog--wide { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .dialog[open] { animation: sheet-in .28s ease; }
  .dialog__foot .btn { flex: 1; }
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: .6; } }

/* ---------- Görsel yükleyici ---------- */
.uploader__drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 14px; border: 2px dashed var(--line); border-radius: 14px; background: #FBFAF7; text-align: center; cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; }
.uploader__drop strong { color: var(--ink); font-size: .95rem; }
.uploader__drop span { font-size: .8rem; }
.uploader__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.uploader__drop:hover, .uploader__drop.is-over, .uploader__drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.uploader__drop.is-full { display: none; }
.uploader__grid { list-style: none; padding: 0; margin: 12px 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.uploader__grid:empty { display: none; }
.uploader__item { position: relative; border-radius: 12px; overflow: hidden; background: #EEE7DA; border: 2px solid transparent; cursor: grab; }
.uploader__item.is-cover { border-color: var(--brand); }
.uploader__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.uploader__badge, .uploader__new { position: absolute; top: 6px; left: 6px; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; }
.uploader__new { left: auto; right: 6px; background: #fff; color: var(--ink); }
.uploader__tools { display: flex; justify-content: space-between; gap: 2px; padding: 4px; background: var(--surface); }
.uploader__tools .icon-btn { width: 28px; height: 28px; font-size: .8rem; border-radius: 7px; }

/* ---------- Ürün kartları (mobil 2 sütun) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgb(35 34 31 / .04); transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: 0 10px 28px rgb(35 34 31 / .09); }
.pcard.is-inactive .pcard__media img, .pcard.is-inactive .pcard__swatch { filter: grayscale(.7) opacity(.7); }
.pcard__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: #EEE7DA; cursor: pointer; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__swatch { position: absolute; inset: 0; background: var(--swatch); background-image: repeating-linear-gradient(45deg, rgb(255 255 255 / .1) 0 2px, transparent 2px 7px), repeating-linear-gradient(-45deg, rgb(0 0 0 / .06) 0 2px, transparent 2px 7px); }
.pcard__badge { position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgb(255 255 255 / .92); }
.pcard__badge.is-on { color: #23683A; }
.pcard__badge.is-off { color: #6D685F; }
.pcard__body { padding: 10px 12px 4px; display: grid; gap: 2px; min-width: 0; }
.pcard__title { font-size: .95rem; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.6em; }
.pcard__meta, .pcard__stock { margin: 0; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__price { margin: 2px 0 0; font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__stock.is-out { color: var(--danger); font-weight: 600; }
.pcard__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px 10px; }
.pcard__actions form { margin: 0; }
.pcard__actions .btn--sm { min-height: 34px; padding: 0 12px; }
.toggle em { font-style: normal; }
@media (max-width: 380px) {
  .admin-main { padding-left: 10px; padding-right: 10px; }
  .product-grid { gap: 8px; }
  .pcard__body { padding: 8px 9px 2px; }
  .pcard__actions { padding: 6px 8px 8px; }
  .pcard__actions .btn--sm { padding: 0 9px; font-size: .8rem; }
  .toggle em { display: none; }
}

/* ---------- Liste kartları (kategoriler) ---------- */
.list-cards { list-style: none; padding: 0; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main actions" "meta actions"; gap: 6px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.list-card:last-child { border-bottom: 0; }
.list-card.is-inactive .list-card__text strong { color: var(--muted); }
.list-card__main { grid-area: main; display: flex; align-items: center; gap: 12px; min-width: 0; }
.list-card__order { width: 30px; height: 30px; flex: none; border-radius: 8px; background: #F2EEE6; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.list-card__text { display: grid; min-width: 0; }
.list-card__text strong, .list-card__text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-card__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-left: 42px; font-size: .88rem; }
.list-card__actions { grid-area: actions; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; }
.list-card__actions form { margin: 0; }
@media (min-width: 720px) {
  .list-card { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main meta actions"; }
  .list-card__meta { padding-left: 0; }
}

/* ---------- Sayfalama ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 4px 0 16px; }
.pager__info { margin: 0; font-size: .88rem; }
.pager__pages { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; }
.pager__btn { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 600; }
a.pager__btn:hover { border-color: var(--brand); color: var(--brand); }
.pager__btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager__btn.is-disabled { color: #B9B3A8; }
.pager__gap { display: inline-grid; place-items: center; min-width: 24px; height: 38px; color: var(--muted); }
.pager__size { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .85rem; color: var(--muted); }
.pager__size select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 16px; }
@media (max-width: 560px) {
  .pager { justify-content: center; text-align: center; }
  .pager__info { width: 100%; }
  .pager__num:not(:has(.is-current)) { display: none; }
}

/* ---------- Bildirim ayarları ---------- */
.settings-push { scroll-margin-top: 70px; }
.help summary { cursor: pointer; font-weight: 600; margin-top: 8px; }

/* Mobil filtreler: arama tam satır, seçimler yan yana */
@media (max-width: 719px) {
  .filters { grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 14px; }
  .filters .field { margin-bottom: 10px; }
  .filters .field--grow, .filters .filters__actions { grid-column: 1 / -1; }
  .filters .filters__actions { margin-bottom: 0; }
  .filters .filters__actions .btn { flex: 1; }
  .filters input[type=date] { min-width: 0; }
  .page-head { margin-bottom: 12px; }
  .topbar { gap: 6px; }
}

/* PWA yükleme */
.install-btn { color: #E9C46A !important; font-weight: 600; }
.login__install { display: grid; gap: 8px; margin-top: 10px; }
.login__install p { margin: 0; }
