﻿/* ── Reset & Temel ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:            #f1f5f9;
    --surface:       #ffffff;
    --border:        #e2e8f0;
    --border-focus:  #93c5fd;
    --text:          #0f172a;
    --text-muted:    #64748b;
    --sidebar-bg:    #1e293b;
    --sidebar-hover: #334155;
    --sidebar-text:  #94a3b8;
    --sidebar-active-bg:   rgba(37,99,235,.18);
    --sidebar-active-text: #e2e8f0;
    --primary:       #2563eb;
    --primary-h:     #1d4ed8;
    --danger:        #dc2626;
    --success:       #16a34a;
    --warning-bg:    #fef3c7;
    --warning-border:#fcd34d;
    --warning-text:  #92400e;
    --gold:          #c9a260;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow:        0 4px 16px rgba(0,0,0,.07);
    --radius:        8px;
    --radius-lg:     12px;
    --header-h:      56px;
    --sidebar-w:     224px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Giriş Sayfası ──────────────────────────────────────────────────────────── */
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
}

.login-card {
    width: min(100%, 420px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px 36px 36px;
}

.login-logo {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.login-card h1 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

/* ── Admin Body / Shell ─────────────────────────────────────────────────────── */
.admin-body { min-height: 100vh; }

.admin-shell {
    display: flex;
    padding-top: var(--header-h);
    min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.admin-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text);
    min-width: calc(var(--sidebar-w) - 20px);
    flex-shrink: 0;
}

.brand-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.admin-welcome {
    color: var(--text-muted);
    font-size: 0.8125rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 12px 10px 24px;
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-group-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #475569;
    padding: 16px 10px 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.13s, color 0.13s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.sidebar-item:hover {
    background: var(--sidebar-hover);
    color: #e2e8f0;
}

.sidebar-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
}

.sidebar-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-item.active svg { opacity: 1; }

.sidebar-badge {
    margin-left: auto;
    background: rgba(255,255,255,.1);
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}

.sidebar-item.active .sidebar-badge {
    background: rgba(37,99,235,.35);
    color: #bfdbfe;
}

/* ── Ana İçerik ──────────────────────────────────────────────────────────────── */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 24px;
    min-width: 0;
}

/* ── Bölümler ────────────────────────────────────────────────────────────────── */
.admin-section[hidden] { display: none; }

.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.section-toolbar h2 {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--text);
}

/* ── Kartlar ─────────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-body { padding: 20px; }

/* ── Ekleme Paneli ───────────────────────────────────────────────────────────── */
.add-panel { margin-bottom: 16px; }

.add-panel > .card { border-top: 3px solid var(--primary); }

.add-panel-inner { padding: 20px; }

.add-panel-inner h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

/* ── Tablolar ────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.products-table {
    table-layout: auto;
}

.data-table th {
    padding: 9px 14px;
    background: #f8fafc;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    text-align: left;
    white-space: nowrap;
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover > td { background: #fafafa; }

.col-id      { width: 48px; color: var(--text-muted); font-size: 0.75rem; }
.col-thumb   { width: 135px; }
.col-actions { width: 120px; }

.products-table .col-category {
    width: 190px;
    white-space: nowrap;
}

.products-table .col-price {
    width: 120px;
    text-align: right;
    white-space: nowrap;
}

.products-table .col-actions,
.products-table .col-actions-cell {
    width: 120px;
    text-align: right;
}

/* ── Butonlar ────────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.13s;
    font-family: inherit;
}

.btn-primary:hover { background: var(--primary-h); }

.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--success);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.13s;
    font-family: inherit;
}

.btn-success:hover { opacity: 0.85; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.13s, color 0.13s;
    font-family: inherit;
}

.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.13s, color 0.13s, border-color 0.13s;
    font-family: inherit;
    padding: 0;
    flex-shrink: 0;
}

.btn-icon:hover { background: var(--bg); color: var(--text); }

.btn-edit-icon:hover {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
}

.btn-delete-icon:hover {
    background: #fef2f2;
    color: var(--danger);
    border-color: #fecaca;
}

.actions-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

/* Header action butonları */
.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 11px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background: var(--surface);
    color: var(--text);
    transition: background 0.13s;
    white-space: nowrap;
    font-family: inherit;
}

.btn-header:hover { background: var(--bg); }

.btn-header svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-header-sync {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning-text);
}
.btn-header-sync:hover { background: #fde68a; }

.btn-header-live {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}
.btn-header-live:hover { background: #dbeafe; }

.btn-header-logout {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.btn-header-logout:hover { background: #fee2e2; }

.btn-header-sync.is-busy {
    pointer-events: none;
    opacity: 0.6;
}

/* ── Formlar ─────────────────────────────────────────────────────────────────── */
.stack-form { display: grid; gap: 14px; }

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-field label,
.field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="email"],
textarea,
select {
    font: inherit;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 10px;
    color: var(--text);
    background: var(--surface);
    width: 100%;
    transition: border-color 0.13s, box-shadow 0.13s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

input[type="file"] { font: inherit; font-size: 0.875rem; }
textarea { resize: vertical; min-height: 70px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.field-full { grid-column: 1 / -1; }

.form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 4px;
}

.checkline {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}

.inline-form { display: contents; }

/* ── Flash Mesajları ─────────────────────────────────────────────────────────── */
.flash-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 24px 16px;
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
}

.flash-bar.flash-ok  { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flash-bar.flash-err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash-bar.flash-purple {
    background: #7e22ce;
    border-color: #7e22ce;
    color: #ffffff;
    border-radius: 9999px;
    padding: 12px 24px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.25);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ── Rozetler / Küçük Etiketler ──────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.badge-flavors { background: var(--warning-bg); color: var(--warning-text); }

/* ── Ürün Küçük Resim ────────────────────────────────────────────────────────── */
.product-thumb {
    width: 108px;
    height: 108px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
}

.emoji-thumb {
    font-size: 3rem;
    line-height: 1;
    display: block;
    text-align: center;
    width: 108px;
}

.no-img { color: var(--text-muted); font-size: 0.75rem; }

/* ── Satır İçi Kategori Düzenleme ────────────────────────────────────────────── */
.inline-edit-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.inline-edit-form input[type="text"] {
    min-width: 160px;
    width: auto;
    flex: 1;
}

/* ── Ürün Düzenleme Satırı ────────────────────────────────────────────────────── */
.product-edit-row > td {
    background: #f8fafc;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    padding: 0;
}

.product-edit-row[hidden] { display: none; }

.product-edit-wrap { padding: 18px 16px; }

.product-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.product-image-preview { margin-top: 8px; }

.product-image-preview img {
    width: 270px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* ── Filtre Çipleri ──────────────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-chip {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.13s;
    font-family: inherit;
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.filter-chip:hover:not(.active) {
    background: var(--bg);
    border-color: #94a3b8;
    color: var(--text);
}

/* ── Boş Durum ────────────────────────────────────────────────────────────────── */
.empty-state {
    padding: 36px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ── Senkronizasyon Overlay ──────────────────────────────────────────────────── */
.sync-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    background: rgba(15,23,42,.65);
    backdrop-filter: blur(3px);
}

.sync-overlay[hidden] { display: none !important; }

.sync-modal {
    width: min(90vw, 420px);
    background: linear-gradient(135deg, #7e22ce, #6b21a8);
    border: 1px solid rgba(126, 34, 206, 0.5);
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    box-shadow: 0 20px 50px rgba(126, 34, 206, 0.35);
    text-align: center;
    color: #fff;
}

.sync-pulse {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.sync-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.sync-status {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    margin-bottom: 14px;
}

.sync-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    overflow: hidden;
}

.sync-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 999px;
    transition: width 0.26s ease;
    width: 0;
}

.sync-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

/* ── Görsel Kırpma Modal ─────────────────────────────────────────────────────── */
.crop-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    background: rgba(15,23,42,.75);
    backdrop-filter: blur(4px);
}
.crop-overlay { display: none; }
.crop-overlay.is-open { display: grid; }

.crop-modal {
    width: min(92vw, 640px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.crop-modal h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.crop-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0f172a;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.crop-canvas-wrap:active { cursor: grabbing; }

.crop-canvas-wrap canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: none;
    max-height: none;
    user-select: none;
    -webkit-user-drag: none;
}

.crop-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 2px dashed rgba(255,255,255,.7);
    box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
    z-index: 2;
}

.crop-frame::after {
    content: '4:3';
    position: absolute;
    top: 6px; right: 8px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    background: rgba(0,0,0,.45);
    padding: 2px 6px;
    border-radius: 4px;
}

.crop-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.crop-controls label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.crop-controls input[type="range"] {
    flex: 1;
    min-width: 120px;
}

.crop-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Dosya input + preview */
.image-upload-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-preview-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview-box .empty-label {
    color: var(--text-muted);
    font-size: .8125rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }

    .admin-sidebar {
        width: 224px;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        z-index: 200;
    }

    .admin-sidebar.open { transform: translateX(0); }

    .admin-main { margin-left: 0; padding: 16px; }

    .admin-header { padding: 0 14px; }

    .admin-welcome { display: none; }

    .product-form-grid { grid-template-columns: 1fr; }

    .flash-bar { margin: 0 16px 14px; }
}

/* ── Mevcut Toggle ─────────────────────────────────────────────────────────────── */
.avail-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 38px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.avail-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.avail-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s;
}

.avail-toggle-slider::before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.avail-toggle input:checked + .avail-toggle-slider {
    background: var(--success);
}

.avail-toggle input:checked + .avail-toggle-slider::before {
    transform: translateX(18px);
}

.avail-toggle input:not(:checked) + .avail-toggle-slider {
    background: var(--danger);
}

@media (max-width: 480px) {
    .btn-header .btn-label { display: none; }
    .admin-header-actions { gap: 4px; }
}

/* Mevcut olmayan ürün satırı */
.product-unavailable {
    opacity: 0.5;
    background: rgba(239, 68, 68, 0.05);
}

.product-unavailable td {
    text-decoration: line-through;
    color: var(--danger);
}

.product-unavailable .col-thumb img,
.product-unavailable .col-thumb .emoji-thumb {
    opacity: 0.4;
    filter: grayscale(100%);
}

/* Aroma mevcut değil butonu */
.btn-unavailable-icon {
    color: var(--danger);
}

.btn-unavailable-icon:hover {
    background: var(--danger);
    color: #fff;
}

/* Çeviri Eşle butonu */
.btn-sync-icon {
    color: var(--gold);
}

.btn-sync-icon:hover {
    background: var(--gold);
    color: #fff;
}

/* Spinner animasyonu */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sync product button in edit form */
.sync-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(201,162,96,.35);
    background: rgba(201,162,96,.08);
    color: var(--gold);
    cursor: pointer;
    transition: all .2s;
}

.sync-product-btn:hover {
    background: var(--gold);
    color: #fff;
}

.sync-product-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Sürükle-bırak sıralama stilleri */
.product-summary-row {
    cursor: grab;
    transition:
                background 0.2s ease,
                box-shadow 0.2s ease,
                opacity 0.2s ease;
    position: relative;
}

.product-summary-row .col-thumb {
    position: relative;
}

.product-summary-row .col-thumb::before {
    content: '::';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(148, 163, 184, 0.4);
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-summary-row:hover .col-thumb::before {
    opacity: 1;
}

.product-summary-row:active {
    cursor: grabbing;
}

/* S?r?klenen sat?r */
.product-summary-row.dragging {
    opacity: 0.72;
    background: linear-gradient(135deg, rgba(201, 162, 96, 0.12), rgba(201, 162, 96, 0.04));
    box-shadow: inset 0 0 0 2px rgba(201, 162, 96, 0.35);
}

.product-summary-row.dragging .col-thumb::before {
    opacity: 1;
    color: var(--gold);
}

/* Hedef sat?r */
.product-summary-row.drag-target-above {
    box-shadow: inset 0 2px 0 0 rgba(201, 162, 96, 0.95);
}

.product-summary-row.drag-target-below {
    box-shadow: inset 0 -2px 0 0 rgba(201, 162, 96, 0.95);
}

/* B?rakma g?stergesi ?izgisi */
.drop-indicator {
    position: fixed;
    height: 3px;
    background: linear-gradient(90deg, rgba(201, 162, 96, 0.45), var(--gold), rgba(201, 162, 96, 0.45));
    border-radius: 2px;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.drop-indicator.active {
    opacity: 1;
    transform: scaleX(1);
}

.drop-indicator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(201, 162, 96, 0.5);
}

.drop-indicator::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(201, 162, 96, 0.5);
}

.product-summary-row[data-editing="true"] {
    cursor: default;
}

.product-summary-row[data-editing="true"] .col-thumb::before {
    display: none;
}

/* ── Toast Notification ── */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 480px;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
}

.toast.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast.info {
    background: linear-gradient(135deg, rgba(201, 162, 96, 0.95), rgba(180, 140, 80, 0.95));
    border: 1px solid rgba(201, 162, 96, 0.3);
}

.toast.purple {
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.95), rgba(107, 33, 168, 0.95));
    border: 1px solid rgba(126, 34, 206, 0.3);
}

.toast.hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

