/* =====================================================================
   Aksu Çorap Bayi Paneli — tasarım sistemi (v2, sade & okunur)
   Marka: #EC566F ana renk, #484848 koyu gri, sıcak kırık beyaz zemin
   Fontlar: Lexend (başlık) + Cabin (gövde)   ·   Boşluk: 8px ölçeği
   ===================================================================== */
:root {
  --brand: #EC566F;
  --brand-600: #D93F5A;
  --brand-700: #B72E46;
  --brand-100: #FBE3E8;
  --brand-50: #FFF4F6;
  --ink: #232326;
  --ink-2: #4E4E56;      /* yardımcı metin — okunur koyulukta */
  --ink-3: #6B6B74;      /* çok ikincil meta */
  --bg: #F8F5F2;
  --surface: #FFFFFF;
  --line: #E9E1DC;
  --line-2: #F1EBE7;
  --ok: #178A55; --ok-bg: #E3F5EB;
  --warn: #8A5200; --warn-bg: #FFF1DD;
  --danger: #CC3A3A; --danger-bg: #FDE9E9;
  --info: #2B63B8; --info-bg: #E8F0FB;
  --r: 14px; --r-sm: 10px; --r-lg: 20px;
  --shadow: 0 6px 20px rgba(120, 50, 65, .08);
  --shadow-lg: 0 20px 50px rgba(120, 50, 65, .16);
  --font-head: 'Lexend', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Cabin', 'Segoe UI', Arial, sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px;
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 var(--s2); letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 28px; } h2 { font-size: 21px; } h3 { font-size: 17px; } h4 { font-size: 15px; }
p { margin: 0 0 var(--s2); }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-600); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: .01em; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--sm { width: 16px; height: 16px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--s2); }
@media (min-width: 768px) { .container { padding-inline: var(--s3); } }
.page { padding-block: var(--s3) var(--s6); }
.stack > * + * { margin-top: var(--s2); }
.row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mt-1 { margin-top: var(--s1); } .mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); }
.mb-1 { margin-bottom: var(--s1); } .mb-2 { margin-bottom: var(--s2); } .mb-3 { margin-bottom: var(--s3); }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 44px; border-radius: 12px; border: 1px solid transparent; font-family: var(--font-head); font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; background: var(--brand); color: #fff; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px rgba(236, 86, 111, .28); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: var(--brand-50); color: var(--brand-700); }
.btn--ghost:hover { background: var(--brand-100); color: var(--brand-700); box-shadow: none; }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--bg); color: var(--ink); border-color: #D6C9C1; box-shadow: none; }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: #000; box-shadow: none; }
.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #B02F2F; box-shadow: none; }
.btn--sm { padding: 6px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 14px 24px; min-height: 52px; font-size: 16px; }
.btn--block { width: 100%; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-done { background: var(--ok); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s; }
.iconbtn:hover { background: var(--line-2); color: var(--ink); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .label { font-family: var(--font-head); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.input, .select, .textarea { width: 100%; padding: 11px 14px; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; outline: none; font-size: 16px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.input:disabled { background: var(--bg); color: var(--ink-2); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E4E56' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.input--sm, .select--sm { min-height: 38px; padding: 6px 10px; font-size: 15px; border-radius: 10px; }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-icon > .input { padding-left: 44px; }
.input-icon > .iconbtn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; }
.input-icon > .input.has-btn { padding-right: 46px; }
.hint { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.hint--ok { color: var(--ok); } .hint--err { color: var(--danger); }
.grid-2 { display: grid; gap: 0 var(--s2); grid-template-columns: minmax(0, 1fr); }
.grid-3 { display: grid; gap: 0 var(--s2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.input.is-saving { border-color: var(--warn); }

.switch { position: relative; display: inline-block; width: 46px; height: 27px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #D6CDC7; border-radius: 27px; transition: background .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(19px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-100); }

.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); height: 44px; }
.qty button { width: 42px; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--brand-50); color: var(--brand-700); }
.qty input { width: 56px; border: 0; text-align: center; font-weight: 600; font-family: var(--font-head); outline: none; -moz-appearance: textfield; font-size: 16px; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty--sm { height: 40px; } .qty--sm button { width: 36px; } .qty--sm input { width: 46px; }

/* ---------- Kart, rozet, tablo ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.stack, .card__body { min-width: 0; }
.credit__value { overflow-wrap: anywhere; }
.card__body { padding: var(--s3); }
.card__head { padding: 18px var(--s3); border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.card__head h2, .card__head h3 { margin: 0; }
@media (max-width: 639px) { .card__body { padding: 18px var(--s2); } .card__head { padding: 14px var(--s2); } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; font-family: var(--font-head); line-height: 1.5; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--danger { background: var(--danger-bg); color: var(--danger); }
.pill--info { background: var(--info-bg); color: var(--info); }
.pill--muted { background: var(--line-2); color: var(--ink-2); }
.pill--brand { background: var(--brand-100); color: var(--brand-700); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; font-family: var(--font-head); font-style: normal; }
.stock { font-size: 14px; font-weight: 600; font-family: var(--font-head); display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--ok); } .stock--out { color: var(--danger); } .stock--low { color: var(--warn); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-family: var(--font-head); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FCFAF8; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFAF8; }
.table tr.is-passive td { opacity: .5; }
.table tr.is-overdue td { background: #FFF5F5; }
.table .thumb { width: 52px; min-width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--line-2); }
.table .cell-name { min-width: 220px; }
.table .cell-name a { color: var(--ink); font-weight: 500; font-family: var(--font-head); }
.table .cell-name a:hover { color: var(--brand-700); }
.table .cell-name small { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.table--clickable tbody tr { cursor: pointer; }
.price { font-family: var(--font-head); font-weight: 600; }
.price--big { font-size: 30px; color: var(--brand-700); }
.price--strike { text-decoration: line-through; color: var(--ink-3); font-weight: 400; font-size: 14px; }
.code { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; line-height: 1.5; }

/* ---------- Flash & toast ---------- */
.flashes { margin-bottom: var(--s2); display: flex; flex-direction: column; gap: 8px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; font-size: 15px; border: 1px solid transparent; transition: opacity .4s, transform .4s; }
.flash.is-out { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.flash .i { margin-top: 2px; }
.flash span { flex: 1; }
.flash__close { border: 0; background: transparent; cursor: pointer; color: inherit; opacity: .6; padding: 10px; margin: -10px; display: inline-flex; border-radius: 10px; }
.flash--success { background: var(--ok-bg); color: #145A3B; border-color: #C3E6D3; }
.flash--error { background: var(--danger-bg); color: #8F2525; border-color: #F1C4C4; }
.flash--info { background: var(--info-bg); color: #1B4585; border-color: #C5D7F2; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
@media (max-width: 899px) { .toasts { bottom: 84px; left: 16px; right: 16px; } }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.is-in { opacity: 1; transform: none; }
.toast--success .i { color: #6EE7A8; } .toast--error .i { color: #FF8A8A; } .toast--info .i { color: #9CC3FF; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 15px; border: 1px solid; margin-bottom: var(--s3); line-height: 1.5; }
.notice--warn { background: var(--warn-bg); border-color: #F0D5A8; color: #6E4306; }
.notice--info { background: var(--info-bg); border-color: #C5D7F2; color: #1B4585; }
.notice .i { flex: none; margin-top: 2px; }
.notice a { font-weight: 600; text-decoration: underline; color: inherit; }

/* ---------- Onay penceresi ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--s2); opacity: 0; transition: opacity .18s; }
.modal.is-in { opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(35, 35, 38, .55); backdrop-filter: blur(3px); }
.modal__box { position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--r-lg); padding: var(--s4) var(--s3) var(--s3); box-shadow: var(--shadow-lg); text-align: center; transform: translateY(12px) scale(.98); transition: transform .18s; }
.modal.is-in .modal__box { transform: none; }
.modal__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s2); }
.modal__icon .i { width: 30px; height: 30px; stroke-width: 1.6; }
.modal__icon--danger { background: var(--danger-bg); color: var(--danger); }
.modal__title { margin-bottom: 8px; font-size: 21px; }
.modal__text { color: var(--ink-2); font-size: 16px; margin-bottom: var(--s3); }
.modal__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.modal__actions .btn { min-width: 140px; }
body.modal-open { overflow: hidden; }
@media (max-width: 480px) { .modal__actions { flex-direction: column-reverse; } .modal__actions .btn { width: 100%; } }

/* ---------- Boş durum ---------- */
.empty { text-align: center; padding: var(--s6) var(--s2); color: var(--ink-2); }
.empty .i { width: 48px; height: 48px; color: var(--brand); margin: 0 auto var(--s2); stroke-width: 1.4; }
.empty h3 { color: var(--ink); }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: var(--s4); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-family: var(--font-head); font-size: 15px; }
.pagination a:hover { border-color: var(--brand); color: var(--brand-700); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .dots { border: 0; background: transparent; }

/* =====================================================================
   BAYİ ARAYÜZÜ
   ===================================================================== */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header__row { display: flex; align-items: center; gap: var(--s2); height: var(--header-h); }
.header__logo img { height: 42px; width: auto; }
.header__search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid transparent; border-radius: 12px; padding: 0 14px; height: 46px; max-width: 480px; transition: border-color .15s, box-shadow .15s, background .15s; }
.header__search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); background: #fff; }
.header__search .i { color: var(--ink-3); }
.header__search input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; font-size: 15.5px; }
.header__nav { display: none; align-items: center; gap: 2px; margin-left: auto; }
.header__nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; color: var(--ink-2); font-family: var(--font-head); font-size: 15px; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.header__nav a:hover { background: var(--bg); color: var(--ink); }
.header__nav a.is-active { color: var(--brand-700); background: var(--brand-50); }
.header__nav a.is-active .i { color: var(--brand); }
.header__cart { background: var(--ink) !important; color: #fff !important; margin-left: 8px; }
.header__cart:hover { background: #000 !important; }
.header__cart .badge { position: absolute; top: -6px; right: -6px; border: 2px solid #fff; }
.header__user { display: none; align-items: center; gap: 6px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.header__user span { font-size: 14px; color: var(--ink-2); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header__user form { display: inline; }
.header__user button { border: 0; background: transparent; cursor: pointer; color: var(--ink-3); display: inline-flex; padding: 8px; border-radius: 10px; }
.header__user button:hover { color: var(--brand-700); background: var(--bg); }
@media (min-width: 1000px) { .header__nav, .header__user { display: flex; } }
@media (max-width: 999px) { .header__row { height: 64px; } .header__logo img { height: 36px; } .header__search { height: 42px; } }

.tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0, 0, 0, .04); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; font-size: 12px; font-family: var(--font-head); font-weight: 500; color: var(--ink-3); position: relative; }
.tabbar a.is-active { color: var(--brand-700); }
.tabbar .i { width: 24px; height: 24px; }
.tabbar .badge { position: absolute; top: 5px; left: calc(50% + 6px); }
@media (min-width: 1000px) { .tabbar { display: none; } }
@media (max-width: 999px) { .dealer-body .page { padding-bottom: 100px; } .footer { display: none; } }
.mobile-contact { display: none; justify-content: center; padding: var(--s3) 0 0; }
@media (max-width: 999px) { .mobile-contact { display: flex; } }
.mobile-logout { display: none; text-align: center; padding: var(--s2) 0 0; }
.mobile-logout button { border: 0; background: transparent; color: var(--ink-3); font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; }
.mobile-logout button:hover { color: var(--brand-700); background: var(--surface); }
@media (max-width: 999px) { .mobile-logout { display: block; } }
.footer { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; padding-block: var(--s3) var(--s4); font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); }

.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.pagehead h1 { margin: 0; }
.pagehead__sub { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 15px; margin-bottom: var(--s2); }
.backlink:hover { color: var(--brand-700); }
.section-title { display: flex; align-items: center; gap: 12px; margin: var(--s3) 0 var(--s2); }
.section-title h2 { margin: 0; font-size: 17px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Katalog: kategori seçici (masaüstünde açılır panel, mobilde alttan sayfa) */
.catalog { display: block; }
.catpick { position: relative; }
.chip--pick { background: var(--surface); border-color: #D9CCC4; color: var(--ink); padding-right: 10px; }
.chip--pick.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip--pick span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catpanel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 50; width: min(720px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: min(70vh, 560px); }
.catpanel__head { display: flex; gap: 8px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line-2); }
.catpanel__list { overflow-y: auto; padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; align-content: start; }
.catpanel__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-family: var(--font-head); font-size: 15px; }
.catpanel__item small { color: var(--ink-3); font-size: 13px; }
.catpanel__item:hover { background: var(--bg); color: var(--ink); }
.catpanel__item.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.catpanel__item.is-active small { color: var(--brand-700); }
.catpanel__empty { grid-column: 1 / -1; padding: 24px; text-align: center; }
.catpanel__backdrop { position: fixed; inset: 0; z-index: 49; background: transparent; }
@media (max-width: 767px) {
  .catpanel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 82vh; border-radius: var(--r-lg) var(--r-lg) 0 0; z-index: 210; padding-bottom: env(safe-area-inset-bottom); animation: sheetUp .22s ease-out; }
  .catpanel__list { grid-template-columns: 1fr 1fr; }
  .catpanel__backdrop { background: rgba(35, 35, 38, .5); z-index: 205; backdrop-filter: blur(2px); }
  body.sheet-open { overflow: hidden; }
}
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s2); }
.toolbar__count { color: var(--ink-2); font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-2); font-family: var(--font-head); font-weight: 500; }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover { border-color: var(--brand); color: var(--brand-700); }
.chip.is-active:hover { color: #fff; }

.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: var(--s2); } }
@media (min-width: 1000px) { .grid-products { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .grid-products { grid-template-columns: repeat(5, 1fr); } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard__img { position: relative; aspect-ratio: 1; background: var(--line-2); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pcard:hover .pcard__img img { transform: scale(1.03); }
.pcard__flag { position: absolute; top: 10px; left: 10px; }
.pcard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__sku { font-size: 13px; color: var(--ink-3); font-family: var(--font-head); order: 2; }
.pcard__name { font-family: var(--font-head); font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; order: 1; }
.pcard__name:hover { color: var(--brand-700); }
.pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; order: 3; }
.pcard__price { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--brand-700); }
.pcard__price small { font-weight: 500; font-size: 13px; color: var(--ink-3); }
.pcard__add { display: flex; gap: 8px; align-items: center; order: 4; }
.pcard__add .qty { height: 40px; flex: 1; } .pcard__add .qty input { width: 100%; min-width: 30px; } .pcard__add .qty button { width: 34px; }
.pcard__add .btn { padding: 0; width: 44px; min-height: 40px; flex: none; border-radius: 10px; }
.pcard .btn--block { order: 4; }
.pcard__price, .pcard__meta .stock { white-space: nowrap; }
@media (max-width: 400px) { .pcard__add { flex-wrap: wrap; } .pcard__add .qty { width: 100%; flex: none; } .pcard__add .btn { width: 100%; } }
@media (max-width: 639px) {
  .pcard__body { padding: 10px 12px 12px; }
  .pcard__price { font-size: 16px; white-space: normal; }
  .pcard__price small { display: none; }
  .pcard__name { font-size: 14px; }
  .pcard__meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .pcard__meta .stock { font-size: 13px; }
  .toolbar { flex-wrap: nowrap; }
  .toolbar form label { display: none; }
  .toolbar .select--sm { min-height: 40px; }
}

/* Ürün detay */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); } }
.gallery__main { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 2px solid transparent; cursor: pointer; flex: none; background: var(--surface); }
.gallery__thumbs img.is-selected, .gallery__thumbs img:hover { border-color: var(--brand); }
.product__cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.product__title { font-size: 24px; margin-bottom: 6px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .product__title { font-size: 30px; } }
.pricebox { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: var(--s2) 0 8px; }
.pricebox__label { font-size: 14px; color: var(--ink-2); font-family: var(--font-head); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 var(--s2); }
.variant { padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-family: var(--font-head); font-size: 14.5px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; transition: border-color .15s, background .15s; }
.variant small { font-size: 12.5px; color: var(--ink-2); font-family: var(--font-body); }
.variant:hover { border-color: var(--brand); }
.variant.is-selected { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); box-shadow: 0 0 0 3px var(--brand-100); }
.variant:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.buybar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.buybar .btn { flex: 1; min-width: 180px; }
.desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.desc h1, .desc h2, .desc h3 { font-size: 16px; margin: var(--s2) 0 8px; }
.desc img { border-radius: 10px; }
.desc table { max-width: 100%; }
.related { margin-top: var(--s6); }

/* Sepet */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: var(--s2) 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--line-2); }
.cart-item__name { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--ink); }
.cart-item__var { font-size: 14px; color: var(--ink-2); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.cart-item__line { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.cart-item__unit { font-size: 13.5px; color: var(--ink-2); }
.cart-item__remove { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; display: inline-flex; padding: 8px; border-radius: 10px; }
.cart-item__remove:hover { color: var(--danger); background: var(--danger-bg); }
.cart-item__problem { color: var(--danger); font-size: 14px; font-weight: 600; margin-top: 4px; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary__line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s2) 0; border-top: 1px solid var(--line); margin-top: 8px; font-family: var(--font-head); font-weight: 700; font-size: 22px; }

/* Sipariş */
.order-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.timeline { display: flex; margin: var(--s2) 0; }
.timeline__step { flex: 1; text-align: center; font-size: 13.5px; font-family: var(--font-head); color: var(--ink-3); position: relative; padding-top: 24px; }
.timeline__step::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--line); z-index: 1; }
.timeline__step::after { content: ''; position: absolute; top: 12px; left: 50%; right: -50%; height: 2px; background: var(--line); }
.timeline__step:last-child::after { display: none; }
.timeline__step.is-done { color: var(--ok); }
.timeline__step.is-done::before, .timeline__step.is-done::after { background: var(--ok); }
.timeline__step.is-current { color: var(--brand-700); font-weight: 600; }
.timeline__step.is-current::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.kv { display: grid; grid-template-columns: 1fr; gap: 4px 18px; font-size: 15px; }
.kv dt { color: var(--ink-2); font-size: 14px; font-family: var(--font-head); margin-top: 8px; }
.kv dd { margin: 0; }
@media (min-width: 640px) { .kv { grid-template-columns: max-content 1fr; } .kv dt { margin-top: 0; } }

/* Telefonda tablo → kart (sipariş kalemleri) */
@media (max-width: 639px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tfoot, .table--stack tr { display: block; width: 100%; }
  .table--stack tbody tr { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .table--stack tbody td { display: block; padding: 0; border: 0; }
  .table--stack td.stack-img { grid-row: 1 / span 3; }
  .table--stack td.stack-main { grid-column: 2; }
  .table--stack td[data-label] { grid-column: 2; display: flex; justify-content: space-between; text-align: left; font-size: 14.5px; }
  .table--stack td[data-label]::before { content: attr(data-label); color: var(--ink-3); }
  .table--stack tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding: 14px; }
  .table--stack tfoot td { border: 0; padding: 0; }
  .table--stack tbody tr:hover td { background: transparent; }
}

/* Sipariş geçmişi */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.events li { display: grid; grid-template-columns: 1fr; gap: 2px; padding-left: 18px; position: relative; font-size: 14.5px; }
.events li::before { content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.events li + li::after { content: ''; position: absolute; left: 4px; top: -8px; height: 8px; width: 1px; background: var(--line); }
.events__time { font-size: 13px; color: var(--ink-3); }
.events__who { font-size: 13px; color: var(--ink-2); }
@media (min-width: 640px) { .events li { grid-template-columns: 130px 1fr auto; gap: 12px; align-items: baseline; } }

/* Cari / kredi limiti */
.credit__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .credit__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.credit__item { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--bg); border-radius: 12px; }
.credit__label { font-size: 13px; color: var(--ink-2); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.credit__value { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.credit__value--debt { color: var(--warn); } .credit__value--ok { color: var(--ok); } .credit__value--danger { color: var(--danger); }
.meter { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 12px; }
.meter > span { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s; }
.meter > span.meter--warn { background: var(--warn); }
.meter > span.meter--danger { background: var(--danger); }

/* =====================================================================
   GİRİŞ EKRANLARI
   ===================================================================== */
.auth-body { background: var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .auth-wrap { grid-template-columns: 5fr 7fr; } }
.auth-side { display: none; background: linear-gradient(160deg, #F0607A 0%, var(--brand) 45%, #C93552 100%); color: #fff; position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -180px; top: -180px; }
.auth-side::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(0, 0, 0, .08); left: -120px; bottom: -160px; }
@media (min-width: 900px) { .auth-side { display: flex; align-items: center; } }
.auth-side__inner { position: relative; z-index: 1; padding: var(--s8) var(--s6); max-width: 520px; }
.auth-logo { height: 56px; width: auto; }
.auth-side .auth-logo { background: #fff; padding: 10px 14px; border-radius: 14px; height: 76px; margin-bottom: var(--s4); }
.auth-side__title { color: #fff; font-size: 34px; margin-bottom: var(--s2); }
.auth-side__text { font-size: 16.5px; opacity: .94; margin-bottom: var(--s3); line-height: 1.6; }
.auth-side__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-side__list li { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 15.5px; }
.auth-side__list .i { width: 38px; height: 38px; padding: 9px; background: rgba(255, 255, 255, .16); border-radius: 12px; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--s4) var(--s2); }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--shadow); }
@media (max-width: 639px) { .auth-card { padding: var(--s3) var(--s2); } }
.auth-logo--mobile { margin: 0 auto var(--s3); }
@media (min-width: 900px) { .auth-logo--mobile { display: none; } }
.auth-card h1 { font-size: 25px; margin-bottom: 6px; }
.auth-card .lead { color: var(--ink-2); margin-bottom: var(--s3); font-size: 15.5px; }
.auth-foot { margin-top: var(--s3); font-size: 14px; color: var(--ink-3); }
.auth-links { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); font-size: 15px; }

/* =====================================================================
   YÖNETİCİ ARAYÜZÜ
   ===================================================================== */
.admin { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) { .admin { grid-template-columns: 250px 1fr; } }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .25s; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: 0; height: 100vh; width: auto; transform: none; } }
.sidebar-open .sidebar { transform: none; }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(35, 35, 38, .45); z-index: 55; display: none; }
.sidebar-open .sidebar-backdrop { display: block; }
@media (min-width: 1024px) { .sidebar-backdrop { display: none !important; } }
.sidebar__brand { padding: var(--s3) var(--s3) var(--s2); display: flex; align-items: center; justify-content: space-between; }
.sidebar__brand img { height: 40px; width: auto; }
.sidebar__tag { font-size: 11.5px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--brand-700); background: var(--brand-50); padding: 4px 9px; border-radius: 8px; }
.sidebar__nav { padding: var(--s1) var(--s2); display: flex; flex-direction: column; gap: 2px; }
.sidebar__nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--ink-2); font-family: var(--font-head); font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.sidebar__nav a:hover { background: var(--bg); color: var(--ink); }
.sidebar__nav a.is-active { background: var(--brand-50); color: var(--brand-700); }
.sidebar__nav a.is-active .i { color: var(--brand); }
.sidebar__foot { margin-top: auto; padding: var(--s2); border-top: 1px solid var(--line-2); display: grid; gap: 12px; }
.sidebar__user { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); padding-left: 6px; }
.admin__main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 var(--s2); background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
@media (min-width: 768px) { .topbar { padding: 0 var(--s4); } }
.topbar__menu { display: inline-flex; }
@media (min-width: 1024px) { .topbar__menu { display: none; } }
.topbar__title { font-size: 20px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__site { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.topbar__site .i { width: 14px; height: 14px; }
.admin-body .page { padding: var(--s3) var(--s2) var(--s8); max-width: 1400px; }
@media (min-width: 768px) { .admin-body .page { padding: var(--s4) var(--s4) var(--s8); } }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: var(--s3); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat__label { font-size: 14px; color: var(--ink-2); font-family: var(--font-head); display: flex; align-items: center; gap: 6px; }
.stat__label .i { width: 17px; height: 17px; }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.1; }
.stat__foot { font-size: 13.5px; color: var(--ink-2); }
.stat--brand { border-color: var(--brand-100); background: linear-gradient(180deg, #fff, var(--brand-50)); }
.stat--brand .stat__value { color: var(--brand-700); }
.stat--warn .stat__value { color: var(--warn); }
.stat a { color: inherit; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: 3fr 2fr; } }

.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: var(--s2); }
.filterbar .input, .filterbar .select { width: auto; min-width: 170px; }
.filterbar .input-icon { flex: 1; min-width: 220px; }
.filterbar .input-icon .input { width: 100%; }
.bulkbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 12px; margin-bottom: var(--s2); font-size: 15px; }
.bulkbar .btn { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: var(--s2); }
.tabs a { padding: 10px 14px; font-family: var(--font-head); font-size: 15px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a.is-active { color: var(--brand-700); border-color: var(--brand); }
.tabs a .pill { padding: 1px 8px; font-size: 12px; }
.inline-price { width: 116px; text-align: right; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-items: start; }
@media (min-width: 1000px) { .two-col { grid-template-columns: minmax(0, 1fr) 380px; } }

/* Telefonda sipariş listesi → kart */
@media (max-width: 639px) {
  .table--rows thead { display: none; }
  .table--rows, .table--rows tbody, .table--rows tr { display: block; width: 100%; }
  .table--rows tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
  .table--rows td { display: block; padding: 0; border: 0; }
  .table--rows td.rows-main { grid-column: 1; }
  .table--rows td.rows-side { grid-column: 2; grid-row: 1; text-align: right; }
  .table--rows td[data-label] { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 14.5px; }
  .table--rows td[data-label]::before { content: attr(data-label); color: var(--ink-3); }
  .table--rows td.rows-hide { display: none; }
  .table--rows [data-rows-date] { display: inline !important; }
}
.contactbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--ink-2); }
.contactbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.contactbar a:hover { color: var(--brand-700); }
.bankbox { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; line-height: 1.6; }
.bankbox .mono { font-size: 15px; font-weight: 600; letter-spacing: .03em; user-select: all; }
