:root {
    /* Daikin kurumsal: lacivert zemin + Daikin mavisi vurgu + beyaz yazı */
    --bg: #0b1a2b;
    --surface: #12273f;
    --surface2: #1b3552;
    --border: #28415f;
    --text: #f1f6fc;
    --muted: #93a8c4;
    --primary: #0a93e0;        /* Daikin mavisi */
    --primary-hover: #0a7cc0;
    --accent: #00c2ff;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 6px 28px rgba(0,0,0,.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.25rem;
    display: flex;
    gap: .75rem;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.brand-icon { font-size: 1.75rem; }
.sidebar-brand strong { display: block; font-size: .95rem; }
.sidebar-brand small { color: var(--muted); font-size: .75rem; }

.sidebar-nav { flex: 1; padding: .75rem 0; }
.nav-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1.25rem;
    color: var(--muted);
    text-decoration: none;
    font-size: .875rem;
    transition: all .15s;
}
.nav-item:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.nav-item.active { background: rgba(10,147,224,.15); color: var(--primary); border-right: 3px solid var(--primary); }

.sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.user-info strong { display: block; font-size: .85rem; }
.user-info small { color: var(--muted); font-size: .75rem; }

.main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.topbar {
    padding: 1.25rem 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1 { font-size: 1.35rem; font-weight: 600; }
.topbar-meta { color: var(--muted); font-size: .875rem; }

.content { padding: 1.5rem 2rem 3rem; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.card h2, .card h3 { margin-bottom: 1rem; font-size: 1.1rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Hamburger ve backdrop varsayılan gizli (masaüstü) */
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; margin-right: .75rem; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }
.sidebar-backdrop.show { display: block; }

@media (max-width: 768px) {
    .sidebar {
        width: 84%; max-width: 320px; height: 100vh; position: fixed; top: 0; left: 0;
        transform: translateX(-100%); transition: transform .25s ease; z-index: 100;
    }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hamburger { display: inline-block; }
    .topbar { padding: .9rem 1rem; }
    .topbar h1 { font-size: 1.05rem; }
    .topbar-meta { display: none; }
    .content { padding: 1rem .8rem 4rem; }
    .card { padding: 1rem .85rem; }
}

.stat-card {
    background: linear-gradient(135deg, var(--surface2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.stat-card .value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .label { color: var(--muted); font-size: .85rem; margin-top: .25rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #111; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-sm { padding: .35rem .65rem; font-size: .8rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .35rem; font-size: .875rem; color: var(--muted); }
.form-control {
    width: 100%;
    padding: .6rem .75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: .9rem;
}
.form-control:focus { outline: none; border-color: var(--primary); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 90px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: .75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
tr:hover td { background: rgba(255,255,255,.02); }

.badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}
.badge-success { background: rgba(34,197,94,.2); color: var(--success); }
.badge-warning { background: rgba(245,158,11,.2); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,.2); color: var(--danger); }
.badge-info { background: rgba(10,147,224,.2); color: var(--primary); }

.alert {
    padding: .85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.alert-success { background: rgba(34,197,94,.15); border: 1px solid var(--success); color: var(--success); }
.alert-error, .alert-danger { background: rgba(239,68,68,.15); border: 1px solid var(--danger); color: var(--danger); }
.alert-warning { background: rgba(245,158,11,.15); border: 1px solid var(--warning); color: var(--warning); }
.alert-info { background: rgba(10,147,224,.15); border: 1px solid var(--primary); color: var(--primary); }

.actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.filters {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: flex-end;
}
.filters .form-group { margin-bottom: 0; flex: 1; min-width: 150px; }

#qr-reader { border-radius: var(--radius); overflow: hidden; max-width: 500px; }
#qr-reader video { border-radius: var(--radius); }

.qr-preview { text-align: center; padding: 1rem; }
.qr-preview img { max-width: 200px; border-radius: 8px; background: #fff; padding: 8px; }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal h3 { margin-bottom: 1rem; }

.report-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    line-height: 1.7;
}
.report-content h3 { color: var(--primary); margin: 1rem 0 .5rem; }
.report-content ul { padding-left: 1.25rem; }
.report-content li { margin-bottom: .35rem; }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1419 0%, #1a2a4a 100%);
}
.login-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}
.login-box h1 { text-align: center; margin-bottom: .5rem; font-size: 1.5rem; }
.login-box .subtitle { text-align: center; color: var(--muted); margin-bottom: 1.5rem; font-size: .9rem; }

.product-img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--surface2); }
.product-img-lg { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }

.empty-state { text-align: center; padding: 3rem; color: var(--muted); }

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}
.permission-grid label {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem;
    background: var(--bg);
    border-radius: 6px;
    font-size: .85rem;
    cursor: pointer;
}
@media (max-width: 600px) { .permission-grid { grid-template-columns: 1fr; } }

/* ===== Daiki revize: ek bileşenler ===== */
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text); text-decoration: none; }
.btn-lg { padding: .7rem 1.15rem; font-size: .95rem; }

.form-control-lg { padding: .8rem .9rem; font-size: 1rem; }
.big-label { font-size: .9rem !important; color: var(--text) !important; font-weight: 600; margin-bottom: .45rem !important; }
.muted-help { color: var(--muted); font-size: .85rem; display: inline-block; margin: .25rem 0; }

/* Standart filtre inputları: büyük, net etiketli */
.filters .form-group label { font-weight: 600; color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; }
.filters .form-control { padding: .7rem .8rem; font-size: .92rem; }

.direct-ship-banner {
    margin-top: .5rem; padding: .85rem 1rem; border-radius: 8px;
    background: rgba(10,147,224,.12); border: 1px solid var(--primary); color: var(--text); font-size: .9rem;
}

.empty-hint { text-align: center; color: var(--muted); padding: 2rem; border: 1px dashed var(--border); border-radius: 8px; }

/* İrsaliye satırları */
.line-item { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; margin-bottom: .85rem; }
.line-head { display: flex; align-items: center; gap: 1rem; }
.line-name { flex: 1; }
.line-name strong { display: block; }
.line-name small { color: var(--muted); }
.line-qty { display: flex; flex-direction: column; width: 110px; }
.line-qty label { font-size: .72rem; color: var(--muted); margin-bottom: .2rem; }
.line-qty input { width: 100%; }

.units-toggle {
    margin-top: .85rem; padding: .6rem .8rem; background: var(--surface2); border-radius: 8px;
    cursor: pointer; display: flex; align-items: center; gap: .55rem; font-size: .9rem; user-select: none;
}
.units-toggle .arrow { transition: transform .15s; display: inline-block; font-size: .7rem; }
.units-toggle .arrow.open { transform: rotate(90deg); }
.units-toggle .serial-progress { margin-left: auto; background: rgba(245,158,11,.2); color: var(--warning); padding: .15rem .5rem; border-radius: 12px; font-size: .78rem; font-weight: 600; }
.units-toggle .serial-progress.done { background: rgba(22,163,74,.2); color: var(--success); }

/* Toplu seri okutma butonu + kamera sayacı */
.btn-batch { width: 100%; margin-top: .85rem; font-size: 1rem; padding: .8rem; font-weight: 600; }
.cam-counter { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: .55rem .8rem; margin-bottom: .75rem; text-align: center; font-size: .95rem; }
.cam-counter.done { background: rgba(22,163,74,.15); border-color: var(--success); color: var(--success); }

.units-panel { margin-top: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.serial-box { display: flex; align-items: center; gap: .6rem; }
.serial-box .serial-no { width: 28px; color: var(--muted); font-weight: 600; text-align: right; }
.serial-scan-field { flex: 1; position: relative; border-radius: 8px; }
.serial-scan-field input { width: 100%; }
.serial-scan-field.filled input { border-color: var(--success); }

/* Kamera modalı + overlay okuma çerçevesi (banka tarzı ince uzun alan) */
.modal-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; max-width: 460px; width: 100%; max-height: 92vh; overflow-y: auto;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.modal-head .modal-close { background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.scanner-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 56vh; margin: 0 auto; }
#cam-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Karartılmış overlay + ortada şeffaf okuma penceresi (dışarısı kararır) */
.scan-frame {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    border: 1.5px solid rgba(0,194,255,.55); border-radius: 12px;
    box-shadow: 0 0 0 2000px rgba(4,11,20,.68); pointer-events: none;
    transition: width .2s ease, aspect-ratio .2s ease;
}
/* Model: dikdörtgen (~1.8:1) — seriden ~2 kat yüksek, çok kare değil */
.scan-frame.model  { width: 84%; aspect-ratio: 1 / 0.56; }
/* Seri: GENİŞ ve ALÇAK (uzun ince seri/üretim etiketi) */
.scan-frame.serial { width: 92%; aspect-ratio: 1 / 0.30; }
/* Parlak köşe işaretleri (native tarayıcı hissi) */
.scan-frame .c { position: absolute; width: 24px; height: 24px; border: 3px solid var(--accent); }
.scan-frame .c.tl { top: -2px; left: -2px;  border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.scan-frame .c.tr { top: -2px; right: -2px; border-left: 0;  border-bottom: 0; border-radius: 0 10px 0 0; }
.scan-frame .c.bl { bottom: -2px; left: -2px;  border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.scan-frame .c.br { bottom: -2px; right: -2px; border-left: 0;  border-top: 0; border-radius: 0 0 10px 0; }
.scan-hint-mode { text-align: center; font-size: .82rem; color: var(--accent); margin: .5rem 0 .25rem; font-weight: 600; }

/* Büyük "OKU" yakalama butonu (kamera ile fotoğraf çek) */
.cam-capture {
    width: 100%; margin-top: .75rem; padding: 1rem; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: #fff;
    font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: .55rem; box-shadow: 0 4px 16px rgba(10,147,224,.4); transition: transform .08s;
}
.cam-capture:active { transform: scale(.97); }
.cam-capture[disabled] { opacity: .55; cursor: not-allowed; }
.cam-secondary { margin-top: .7rem; border-top: 1px solid var(--border); padding-top: .7rem; }
.cam-secondary summary { color: var(--muted); font-size: .85rem; cursor: pointer; list-style: none; }
.cam-secondary summary::-webkit-details-marker { display: none; }

/* Toplu seçim çubuğu */
.bulk-bar {
    display: none; align-items: center; gap: 1rem; padding: .7rem 1rem; margin-bottom: 1rem;
    background: rgba(10,147,224,.12); border: 1px solid var(--primary); border-radius: 8px;
}
.bulk-bar .count-pill { background: var(--primary); color: #fff; padding: .15rem .6rem; border-radius: 12px; font-weight: 600; font-size: .82rem; }
td.check-col, th.check-col { width: 38px; text-align: center; }
.trash-row td { opacity: .75; }

.topbar-meta { display: flex; align-items: center; gap: 1rem; }
/* Tarama geri bildirim balonu (sayfayı kilitlemez) */
.scan-toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.9);
    z-index: 9999; padding: .9rem 1.4rem; border-radius: 12px; font-weight: 700; font-size: 1rem;
    color: #fff; pointer-events: none; opacity: 0; transition: opacity .15s, transform .15s; box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.scan-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.scan-toast.ok { background: #16a34a; }
.scan-toast.no { background: #dc2626; }
.scan-toast { text-align: center; }
.scan-code { margin-top: .3rem; font-family: monospace; font-size: 1.05rem; letter-spacing: .04em; background: rgba(0,0,0,.25); padding: .2rem .5rem; border-radius: 6px; }

.bell { position: relative; font-size: 1.25rem; text-decoration: none; }
.bell-badge {
    position: absolute; top: -6px; right: -10px; background: var(--danger); color: #fff;
    font-size: .65rem; font-weight: 700; padding: .05rem .3rem; border-radius: 10px; min-width: 16px; text-align: center;
}

/* ===== Mobil ince ayar ===== */
@media (max-width: 768px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }   /* durum kartları 2'li */
    .stat-card .value { font-size: 1.5rem; }
    .stat-card { padding: .9rem .5rem; }

    /* Filtreler dikey, tam genişlik, büyük dokunma alanı */
    .filters { flex-direction: column; align-items: stretch; gap: .6rem; }
    .filters .form-group { width: 100%; min-width: 0; }
    .filters .btn { width: 100%; justify-content: center; }
    .form-control, .form-control-lg, .btn { font-size: 16px; }  /* iOS zoom engeli */
    .btn { padding: .7rem 1rem; }

    /* İrsaliye satırları dikey */
    .line-head { flex-wrap: wrap; gap: .6rem; }
    .line-qty { width: 100%; flex-direction: row; align-items: center; gap: .5rem; }
    .line-qty input { width: 90px; }
    .serial-box { flex-wrap: nowrap; }
    .serial-box .serial-no { width: 22px; }

    /* Kamera modalı tam ekran benzeri */
    .modal-box { max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
    .scanner-wrap { min-height: 60vh; }
    .scan-frame { width: 80%; max-width: 300px; }

    /* Tablolar: yatay kaydırma + biraz sıkı */
    .table-wrap { -webkit-overflow-scrolling: touch; }
    th, td { padding: .55rem .5rem; font-size: .82rem; }

    /* Toplu seçim çubuğu sabit alt bar gibi */
    .bulk-bar { flex-wrap: wrap; gap: .5rem; }

    .modal { max-width: 100%; }
    .form-row { gap: .6rem; }
}

@media (max-width: 420px) {
    .grid-4 { grid-template-columns: 1fr; }
    .sidebar { width: 90%; }
}

/* ===================== SweetAlert — Daikin lacivert/beyaz tema ===================== */
.swal2-popup {
    background: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow) !important;
    font-size: .95rem !important;
    padding: 1.4rem 1.4rem 1.2rem !important;
}
.swal2-title { color: #fff !important; font-size: 1.18rem !important; font-weight: 700 !important; padding: .2rem 0 .3rem !important; }
.swal2-html-container { color: var(--text) !important; font-size: .94rem !important; margin: .4rem 0 0 !important; line-height: 1.45 !important; }
.swal2-html-container b, .swal2-html-container strong { color: #fff; font-weight: 700; }
.swal2-actions { gap: .5rem !important; margin-top: 1.1rem !important; }
.swal2-actions { flex-wrap: wrap !important; gap: .45rem !important; }
.swal2-styled { border-radius: 9px !important; font-weight: 600 !important; font-size: .86rem !important; padding: .55rem .85rem !important; margin: 0 !important; box-shadow: none !important; transition: filter .15s; }
.swal2-styled:focus { box-shadow: none !important; }
.swal2-confirm { background: var(--primary) !important; color: #fff !important; }
.swal2-confirm:hover { filter: brightness(1.08); }
.swal2-cancel  { background: var(--surface2) !important; color: var(--text) !important; border: 1px solid var(--border) !important; }
.swal2-deny    { background: var(--warning) !important; color: #11202e !important; }
.swal2-input, .swal2-select, .swal2-textarea {
    background: var(--bg) !important; color: var(--text) !important;
    border: 1px solid var(--border) !important; border-radius: 8px !important;
    box-shadow: none !important; font-size: 1rem !important;
}
.swal2-input::placeholder { color: var(--muted) !important; }
.swal2-input:focus, .swal2-select:focus { border-color: var(--primary) !important; }
.swal2-icon { transform: scale(.82); margin: .6rem auto .2rem !important; }
.swal2-loader { border-color: var(--primary) transparent var(--primary) transparent !important; }
.swal2-timer-progress-bar { background: var(--primary) !important; }
.swal2-close { color: var(--muted) !important; }
.swal2-close:hover { color: #fff !important; }
@media (max-width: 768px) {
    .swal2-popup { font-size: .92rem !important; width: 92% !important; }
    .swal2-title { font-size: 1.08rem !important; }
}

/* ===================== Model okut / tarama düzeni (taşma engeli) ===================== */
.scan-input-row { display: flex; gap: .5rem; align-items: stretch; width: 100%; }
.scan-input-row > input.form-control { flex: 1 1 0%; min-width: 0; width: auto; }
.scan-input-row > .btn { flex: 0 0 auto; width: auto; white-space: nowrap; padding-left: 1.1rem; padding-right: 1.1rem; }
.scan-actions { display: flex; flex-direction: column; gap: .55rem; }
.scan-actions > .btn { width: 100%; justify-content: center; }
.line-item { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: .9rem; }
.line-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.line-name { flex: 1 1 200px; min-width: 0; }
.line-name strong { display: block; font-weight: 700; color: #fff; font-size: 1rem; line-height: 1.25; }
.line-name small { color: var(--muted); display: inline-flex; gap: .4rem; align-items: center; margin-top: .25rem; flex-wrap: wrap; }
.line-qty { display: flex; flex-direction: column; gap: .2rem; }
.line-qty label { font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.line-qty input { width: 84px; text-align: center; font-weight: 700; }
.empty-hint { color: var(--muted); text-align: center; padding: 1.5rem; font-size: .9rem; }
.direct-ship-banner { padding: .85rem 1rem; border-radius: 10px; background: rgba(10,147,224,.12); border: 1px solid var(--primary); color: var(--text); font-size: .9rem; margin-top: .75rem; }

/* API hata bandı (sol üstte, dikkat çekici) */
.api-error-banner {
    background: linear-gradient(90deg, rgba(239,68,68,.95), rgba(239,68,68,.8));
    color: #fff; padding: .7rem 1.5rem; font-size: .9rem; font-weight: 600;
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.api-error-banner a { color: #fff; text-decoration: underline; margin-left: auto; font-weight: 700; }
@media (max-width: 768px) { .api-error-banner { padding: .6rem .8rem; font-size: .82rem; } }

/* Ürün görseli + lightbox (büyüteç) */
.product-img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.product-img-lg { max-width: 180px; max-height: 180px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
img.zoomable { cursor: zoom-in; transition: transform .1s; }
img.zoomable:hover { transform: scale(1.04); }
.img-lightbox { position: fixed; inset: 0; background: rgba(4,11,20,.93); display: none; align-items: center; justify-content: center; z-index: 10000; cursor: zoom-out; padding: 1.5rem; }
.img-lightbox.show { display: flex; }
.img-lightbox img { max-width: 96%; max-height: 96%; border-radius: 10px; box-shadow: 0 12px 50px rgba(0,0,0,.6); }
.img-lightbox-close { position: absolute; top: 1rem; right: 1.3rem; color: #fff; font-size: 1.6rem; font-weight: 700; }

/* Asistan sohbet kutusu */
.chat-box { min-height: 260px; max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; padding: .5rem; }
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble { max-width: 82%; padding: .6rem .85rem; border-radius: 13px; font-size: .92rem; line-height: 1.45; }
.chat-msg.user .chat-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg.bot .chat-bubble { background: var(--surface2); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.chat-suggest { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
