/* ════════════════════════════════════════════════════════
   SMY Tedarikçi Paneli - Tasarım Sistemi (light, gradient YOK)
   ════════════════════════════════════════════════════════ */
:root {
  --bg: #f1f5f9;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #e2e8f0;
  --border: #e2e8f0;
  --border-soft: #eef2f6;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --brand: #4f46e5;
  --brand-2: #4338ca;
  /* gradient kullanılmıyor - düz marka rengi */
  --brand-grad: #4f46e5;
  --pos: #16a34a;
  --neg: #dc2626;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.14);
  --nav-h: 64px;
  --header-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Uygulama kabuğu ──────────────────────────────────── */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* Üst bar (mobil) */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .tb-title { font-size: 17px; font-weight: 700; flex: 1; }
.topbar .tb-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 18px;
}
.topbar .tb-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
}
.tb-logo.has-img { background: transparent !important; overflow: hidden; }
.tb-logo.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth-logo.has-img { background: transparent !important; overflow: hidden; padding: 6px; }
.auth-logo.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Bildirim zili (geciken teslim) */
.tb-bell { position: relative; }
.tb-bell.has-alert i { color: var(--neg); }
.tb-bell-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--neg); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg); }
.sb-alert { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; padding: 11px 14px; border-radius: 12px;
  background: rgba(220,38,38,.1); color: #b91c1c; border: 1px solid rgba(220,38,38,.25); font-size: 13.5px; font-weight: 600; }
.sb-alert i { font-size: 17px; }

/* Geciken teslim uyarı banner'ı (dashboard) */
.overdue-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px;
  border-radius: var(--radius); background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.28);
  box-shadow: var(--shadow); transition: transform .12s; }
.overdue-banner:active { transform: scale(.99); }
.overdue-banner .ob-ico { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center;
  background: rgba(220,38,38,.14); color: var(--neg); font-size: 20px; }
.overdue-banner .ob-body { flex: 1; min-width: 0; }
.overdue-banner .ob-title { font-weight: 700; font-size: 14.5px; color: #991b1b; }
.overdue-banner .ob-sub { font-size: 12.5px; color: #b91c1c; opacity: .9; margin-top: 1px; }
.overdue-banner .ob-arrow { color: #dc2626; font-size: 18px; }
.late-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  background: rgba(220,38,38,.12); color: var(--neg); border: 1px solid rgba(220,38,38,.3);
  font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.late-badge i { font-size: 11px; }
.order-card.is-overdue { border-color: rgba(220,38,38,.35); }

/* Ürün görseli koruması (sürükle/uzun-bas/seç) - kesin değil, caydırıcı; asıl koruma filigran */
.item-thumb, .lb-stage img {
  -webkit-user-drag: none; -khtml-user-drag: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* Ürün görseli büyüteç (lightbox) */
.item-thumb { transition: transform .15s; }
.item-thumb.zoomable { cursor: zoom-in; }
@media (min-width: 860px) { .item-thumb.zoomable:hover { transform: scale(1.06); } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.82); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-stage { max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-stage img { max-width: 92vw; max-height: 80vh; border-radius: 12px; background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-title { color: #fff; font-weight: 600; font-size: 15px; text-align: center; }
.lb-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 19px; display: grid; place-items: center; z-index: 201; }

/* İçerik alanı */
.main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 20px); }

/* Masaüstü yan menü (mobilde gizli) */
.sidebar { display: none; }

/* ── Alt navigasyon (mobil) ───────────────────────────── */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-dim); font-size: 11px; font-weight: 600;
  position: relative; transition: color .15s;
}
.bottomnav a i { font-size: 21px; }
.bottomnav a.active { color: var(--brand); }
.bottomnav a.active::before {
  content: ''; position: absolute; top: 0; width: 28px; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--brand);
}
.bottomnav a .badge-dot {
  position: absolute; top: 8px; left: 50%; margin-left: 6px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}

/* ── Kartlar ──────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }
.card-flat { background: var(--surface-2); border-color: var(--border-soft); box-shadow: none; }

.section-title { font-size: 13px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em; margin: 22px 4px 10px; }
.section-title:first-child { margin-top: 4px; }

/* ── Özet istatistik kartları ─────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.stat .stat-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-size: 19px; margin-bottom: 10px;
}
.stat .stat-val { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stat .stat-lbl { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.stat.accent { background: var(--brand); border: none; }
.stat.accent .stat-lbl, .stat.accent .stat-val { color: #fff; }
.stat.accent .stat-ico { background: rgba(255,255,255,.18); color:#fff; }
.tone-brand { background: rgba(79,70,229,.12); color: #4f46e5; }
.tone-success { background: rgba(22,163,74,.12); color: #16a34a; }
.tone-warning { background: rgba(217,119,6,.13); color: #d97706; }
.tone-info { background: rgba(8,145,178,.12); color: #0891b2; }
.tone-danger { background: rgba(220,38,38,.12); color: #dc2626; }

/* ── Durum rozeti ─────────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: color-mix(in srgb, var(--pill) 14%, transparent);
  color: var(--pill); border: 1px solid color-mix(in srgb, var(--pill) 32%, transparent);
}
.status-pill i { font-size: 13px; }
.status-pill.lg { padding: 6px 14px; font-size: 13.5px; }

/* ── Sipariş / kalem satırı ───────────────────────────── */
.order-card { display: block; transition: transform .12s, border-color .12s, box-shadow .12s; }
.order-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.order-card:active { transform: scale(.99); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-code { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.order-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--text-muted); font-size: 13px; }
.order-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* İlerleme çubuğu */
.progress { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .4s; }
.progress-lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); margin-top: 6px; }

/* Kalem (ürün) satırı */
.item-row { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border-soft); }
.item-row:first-child { border-top: none; }
.item-thumb {
  width: 56px; height: 56px; border-radius: 12px; flex: 0 0 auto;
  background: var(--surface-2); border: 1px solid var(--border); object-fit: cover;
}
.item-body { flex: 1; min-width: 0; }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.item-top .item-model { flex: 1; min-width: 0; }
.item-top .status-trigger { flex: 0 0 auto; white-space: nowrap; }
.item-model { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.item-sub { color: var(--text-muted); font-size: 12.5px; margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.item-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px; padding: 3px 9px; font-size: 12px; color: var(--text-muted); }
.item-chip i { font-size: 12px; color: var(--text-dim); }
.item-price { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }

/* ── Butonlar ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; color: var(--text); background: var(--surface-2);
  border-color: var(--border); transition: filter .15s, transform .1s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); border: none; color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-success { background: var(--success); border: none; color: #04210f; }
.btn-danger { background: rgba(220,38,38,.1); border-color: rgba(220,38,38,.32); color: #b91c1c; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; }
.btn:disabled { opacity: .55; pointer-events: none; }

/* Durum güncelle butonu (kalem) */
.status-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: color-mix(in srgb, var(--pill) 14%, transparent);
  color: var(--pill); border: 1px solid color-mix(in srgb, var(--pill) 34%, transparent);
}
.status-trigger i.caret { font-size: 11px; opacity: .8; }

/* ── Formlar ──────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border); color: var(--text);
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.input::placeholder { color: var(--text-dim); }
.input-group { position: relative; }
.input-group .input { padding-right: 46px; }
.input-group .ig-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 9px; border: none; background: transparent;
  color: var(--text-dim); font-size: 17px; display: grid; place-items: center;
}

/* ── Bildirim / boş durum ─────────────────────────────── */
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 9px; align-items: flex-start; }
.alert i { font-size: 17px; margin-top: 1px; }
.alert-success { background: rgba(22,163,74,.1); color: #166534; border: 1px solid rgba(22,163,74,.25); }
.alert-danger { background: rgba(220,38,38,.08); color: #991b1b; border: 1px solid rgba(220,38,38,.22); }
.alert-info { background: rgba(8,145,178,.08); color: #155e75; border: 1px solid rgba(8,145,178,.2); }

.empty { text-align: center; padding: 56px 20px; color: var(--text-dim); }
.empty i { font-size: 52px; opacity: .45; display: block; margin-bottom: 14px; }
.empty h5 { color: var(--text-muted); margin: 0 0 6px; font-size: 16px; }
.empty p { margin: 0; font-size: 13.5px; }

/* ── Bottom-sheet (durum seçici) ──────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.4);
  backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
  background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(20px + var(--safe-b)); box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1);
  max-width: 520px; margin: 0 auto; max-height: 82vh; overflow-y: auto;
}
.sheet.open { transform: translateY(0); }
.sheet-grab { width: 40px; height: 4px; border-radius: 99px; background: var(--surface-3); margin: 6px auto 14px; }
.sheet-title { font-size: 15px; font-weight: 700; margin: 0 4px 12px; }
.sheet-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 12px; border-radius: 13px; border: 1px solid var(--border-soft);
  background: var(--surface-2); margin-bottom: 8px; color: var(--text); font-size: 15px; font-weight: 600;
}
.sheet-opt .so-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; }
.sheet-opt .so-check { margin-left: auto; color: var(--success); font-size: 18px; opacity: 0; }
.sheet-opt.current { border-color: color-mix(in srgb, var(--pill) 50%, transparent); }
.sheet-opt.current .so-check { opacity: 1; }

/* ── Yardımcı sınıflar ────────────────────────────────── */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}
.text-muted { color: var(--text-muted); } .text-dim { color: var(--text-dim); }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; }
.fw-700 { font-weight: 700; } .text-right { text-align: right; }
.text-pos { color: var(--pos); } .text-neg { color: var(--neg); } .text-brand { color: var(--brand); }
.divider { height: 1px; background: var(--border-soft); margin: 14px 0; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + var(--safe-b)); transform: translateX(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 420px; }
.toast { background: var(--surface); color: var(--text); padding: 12px 16px; border-radius: 12px;
  box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 9px; align-items: center;
  border: 1px solid var(--border); }
.toast.ok { border-color: rgba(22,163,74,.4); } .toast.ok i { color: var(--pos); }
.toast.err { border-color: rgba(220,38,38,.4); } .toast.err i { color: var(--neg); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.toast { animation: toastIn .25s ease; }

/* ── Masaüstü (≥860px): sidebar düzeni ────────────────── */
@media (min-width: 860px) {
  .bottomnav { display: none; }
  .topbar { display: none; }
  .app { flex-direction: row; }
  .sidebar {
    display: flex; flex-direction: column; width: 240px; flex: 0 0 240px;
    position: sticky; top: 0; height: 100vh; padding: 20px 14px;
    background: var(--bg-2); border-right: 1px solid var(--border);
  }
  .sidebar .sb-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 20px; }
  .sidebar .sb-brand .tb-logo { width: 36px; height: 36px; font-size: 16px; }
  .sidebar .sb-brand b { font-size: 15px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 4px; }
  .sidebar nav a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
    color: var(--text-muted); font-weight: 600; font-size: 14.5px; position: relative;
  }
  .sidebar nav a i { font-size: 19px; width: 22px; text-align: center; }
  .sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
  .sidebar nav a.active { background: var(--brand); color: #fff; }
  .sidebar nav a .nav-badge { margin-left: auto; background: var(--danger); color: #fff;
    font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px;
    display: grid; place-items: center; padding: 0 5px; }
  .sidebar nav a.active .nav-badge { background: rgba(255,255,255,.25); }
  .sidebar .sb-foot { margin-top: auto; }
  .main { padding: 28px 32px 40px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .toast-wrap { bottom: 24px; left: auto; right: 24px; transform: none; }
  .sheet { border-radius: 18px; bottom: auto; top: 50%; left: 50%; right: auto;
    width: min(520px, calc(100vw - 64px)); margin: 0;
    transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: opacity .2s, transform .2s; }
  .sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .sheet-backdrop { backdrop-filter: blur(4px); }
  .desk-hide { display: none; }
}
@media (max-width: 859px) { .mob-hide { display: none; } }

/* Giriş ekranı */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 18px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 30px 26px; box-shadow: var(--shadow-lg); }
.auth-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--brand);
  display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 800; margin: 0 auto 16px; }
.auth-card h1 { text-align: center; font-size: 21px; margin: 0 0 4px; }
.auth-card .sub { text-align: center; color: var(--text-muted); font-size: 14px; margin: 0 0 22px; }
.auth-link { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--text-muted); }
.auth-link a { color: var(--brand); font-weight: 600; }

/* ── Panel ozellik turu (musteri kodu, kalem detay, urunler) ──── */
.chip-customer { background: rgba(79,70,229,.1); color: var(--brand); border-color: rgba(79,70,229,.25); font-weight: 700; }
.order-customers { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 8px 0 2px; font-size: 12px; color: var(--text-dim); }
.order-customers .cc-chip { background: rgba(79,70,229,.1); color: var(--brand); border: 1px solid rgba(79,70,229,.22);
  border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; }
.estimate-row > label { display: block; }

.item-detail-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 11px;
  border-radius: 10px; border: 1px solid var(--border-soft); background: var(--surface-2);
  color: var(--text-muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.item-detail-btn.has-data { border-color: rgba(79,70,229,.35); color: var(--brand); background: rgba(79,70,229,.06); }
.item-detail-btn .detail-flag { font-size: 12px; color: var(--brand); }

/* Urunlerim grid */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
.prod-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow); }
.prod-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-3); cursor: zoom-in; display: block; }
.prod-body { padding: 9px 10px; }
.prod-model { font-weight: 700; font-size: 13px; word-break: break-word; }
.prod-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: 11.5px; color: var(--text-muted); }
.prod-price { color: var(--pos); font-weight: 700; }
/* Urunlerim liste gorunumu */
.prod-list { display: flex; flex-direction: column; gap: 8px; }
.prod-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; box-shadow: var(--shadow); }
.prod-row-img { width: 54px; height: 54px; flex: 0 0 54px; object-fit: cover; border-radius: 8px; background: var(--surface-3); }
.prod-row-img.zoomable { cursor: zoom-in; }
.prod-row-body { flex: 1; min-width: 0; }
.prod-row-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.prod-row-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.prod-row-meta span { display: inline-flex; align-items: center; gap: 5px; }
/* Siparis kartinda not onizlemesi */
.order-note { display: flex; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 8px; padding: 6px 9px; }
.order-note i { flex: 0 0 auto; margin-top: 1px; }
.order-note span { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Kalemde gelen urun bazli not (salt-okunur, uretim talimati) */
.item-order-note { display: flex; gap: 7px; margin: 8px 0 2px; padding: 8px 10px; font-size: 13px; line-height: 1.45;
  color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-left: 3px solid var(--warning); border-radius: 8px; }
.item-order-note i { flex: 0 0 auto; margin-top: 1px; color: var(--warning); }
.item-order-note span { word-break: break-word; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 4px; }
