/* Lucas Elektrik Public Catalog — temel tema */
:root {
    --lucas-primary: #00923f;
    --lucas-primary-hover: #007a35;
    --lucas-text: #2b2b2b;
    --lucas-muted: #6b7280;
    --lucas-bg: #f5f6f8;
    --lucas-border: #e3e6ec;
}

* { box-sizing: border-box; }
/* SweetAlert2 ikonu: animasyonlu native ikon (global stillerle) bozuluyordu —
   sade ve sağlam Remix glyph ile değiştir */
.swal2-icon { border: 0 !important; position: relative; }
.swal2-icon .swal2-success-ring,
.swal2-icon .swal2-success-circular-line-left,
.swal2-icon .swal2-success-circular-line-right,
.swal2-icon .swal2-success-fix,
.swal2-icon [class^="swal2-success-line"],
.swal2-icon .swal2-x-mark,
.swal2-icon .swal2-x-mark-line-left,
.swal2-icon .swal2-x-mark-line-right { display: none !important; }
.swal2-icon::before {
    font-family: "remixicon" !important;
    font-weight: normal; font-style: normal;
    font-size: 4.4em; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}
.swal2-icon.swal2-success { color: #00923f; }
.swal2-icon.swal2-success::before { content: "\eb80"; }
.swal2-icon.swal2-warning { color: #f0ad4e; }
.swal2-icon.swal2-warning::before { content: "\eca0"; }
.swal2-icon.swal2-error { color: #dc3545; }
.swal2-icon.swal2-error::before { content: "\eb96"; }
.swal2-icon.swal2-info,
.swal2-icon.swal2-question { color: #0073d3; }
.swal2-icon.swal2-info::before,
.swal2-icon.swal2-question::before { content: "\ee58"; }
/* İkon üste çok dayalı kalmasın — butonlu/butonsuz tüm popup'lar (gerçek toast hariç) */
.swal2-popup:not(.swal2-toast) { padding-top: 1.4em !important; }
.swal2-popup:not(.swal2-toast) .swal2-icon { margin-top: .55em !important; margin-bottom: .5em !important; }

body.catalog-body {
    margin: 0;
    background: var(--lucas-bg);
    color: var(--lucas-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    /* Yazı seçme/kopyalama kapalı */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
/* Arama input'unda yazma için seçim açık kalsın */
body.catalog-body input,
body.catalog-body textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.catalog-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px;
    position: relative;
}

/* Header bandı — full width beyaz arka plan */
.catalog-header-band {
    background: #ffffff;
    border-bottom: 1px solid var(--lucas-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    position: relative;
}

/* Sağ üst butonlar — header bandının sağ üstüne sabit */
.catalog-topbar {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}
.catalog-topbar .btn {
    padding: 10px 16px;
    line-height: 1;
    font-size: 18px;
    border-radius: 6px;
}
.catalog-topbar .btn i {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}
.btn-lucas {
    background: var(--lucas-primary);
    color: #fff;
    border: 1px solid var(--lucas-primary);
}
.btn-lucas:hover, .btn-lucas:focus {
    background: var(--lucas-primary-hover);
    border-color: var(--lucas-primary-hover);
    color: #fff;
}

/* ===== Topbar aksiyon butonları — içeriğe göre renk + hover'da etiket ===== */
.catalog-topbar .tb-btn {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.catalog-topbar .tb-btn i { font-size: 20px; line-height: 1; vertical-align: middle; }
.catalog-topbar .tb-btn .tb-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    overflow: hidden;
    transition: max-width .28s ease, opacity .2s ease, margin-left .2s ease;
}
.catalog-topbar .tb-btn:hover .tb-label,
.catalog-topbar .tb-btn:focus .tb-label {
    max-width: 220px;
    opacity: 1;
    margin-left: 8px;
}
.catalog-topbar .tb-btn:hover { box-shadow: 0 2px 8px rgba(0,0,0,.18); color: #fff; }

/* İçeriğe göre renkler */
.catalog-topbar .tb-web      { background: #475569; border-color: #475569; }  /* dış site — slate */
.catalog-topbar .tb-web:hover { background: #334155; border-color: #334155; }
.catalog-topbar .tb-register { background: #00923f; border-color: #00923f; }  /* yeni üye — yeşil */
.catalog-topbar .tb-register:hover { background: #007a35; border-color: #007a35; }
.catalog-topbar .tb-login    { background: #1565c0; border-color: #1565c0; }  /* giriş — mavi */
.catalog-topbar .tb-login:hover { background: #0d47a1; border-color: #0d47a1; }
.catalog-topbar .tb-basket   { background: #f59e0b; border-color: #f59e0b; }  /* katalog listesi — turuncu */
.catalog-topbar .tb-basket:hover { background: #d97706; border-color: #d97706; }
.catalog-topbar .tb-logout   { background: #dc3545; border-color: #dc3545; }  /* çıkış — kırmızı */
.catalog-topbar .tb-logout:hover { background: #b02a37; border-color: #b02a37; }

/* Header banner — full width içinde ortalı görsel */
.catalog-header {
    text-align: center;
    padding: 12px 16px;
    margin: 0;
}
.catalog-header img {
    max-width: 100%;
    height: auto;
}

/* Dil çubuğu */
.catalog-lang-bar {
    display: flex;
    justify-content: center;
    margin: 8px 0 22px;
}
.catalog-lang-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--lucas-border);
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.catalog-lang-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--lucas-text);
    font-weight: 500;
    border-radius: 999px;
    transition: background-color 0.15s;
}
.catalog-lang-list a:hover {
    background: rgba(0, 146, 63, 0.08);
}
.catalog-lang-list li.active a {
    background: var(--lucas-primary);
    color: #fff;
}
.catalog-lang-list img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

/* Mobil — diller alt satıra sarınca hap radius'u kötü görünüyordu;
   köşeleri yumuşat, satır arası boşluğu artır, her dil net bir kutu olsun */
@media (max-width: 575.98px) {
    .catalog-lang-bar { margin: 8px 0 16px; }
    .catalog-lang-list {
        border-radius: 10px;
        gap: 4px;
        row-gap: 5px;
        padding: 5px;
        justify-content: center;
        width: 100%;
    }
    .catalog-lang-list a {
        border-radius: 7px;
        padding: 4px 7px;
        font-size: 12px;
        gap: 4px;
        background: var(--lucas-bg);
    }
    .catalog-lang-list img { width: 16px; height: 11px; }
    .catalog-lang-list li.active a { background: var(--lucas-primary); color: #fff; }
}

/* Arama formu */
.catalog-search {
    background: #fff;
    border: 1px solid var(--lucas-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.catalog-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}
.catalog-search-form .input-group {
    flex: 1 1 360px;
    display: flex;
}
.catalog-search-form input.form-control {
    flex: 1 1 auto;
    border: 1px solid var(--lucas-border);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    padding: 12px 16px;
    font-size: 16px;
    text-transform: uppercase;
}
.catalog-search-form input.form-control:focus {
    outline: none;
    border-color: var(--lucas-primary);
    box-shadow: 0 0 0 3px rgba(0, 146, 63, 0.15);
}
.catalog-search-form button.btn-search {
    background: var(--lucas-primary);
    color: #fff;
    border: 1px solid var(--lucas-primary);
    border-radius: 0 6px 6px 0;
    padding: 12px 22px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.15s;
}
.catalog-search-form button.btn-search:hover {
    background: var(--lucas-primary-hover);
    border-color: var(--lucas-primary-hover);
}
.catalog-search-form .btn-advanced {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s;
}
.catalog-search-form .btn-advanced:hover {
    background: #c82333;
    border-color: #c82333;
    color: #fff;
}

/* Arama sonuçları tablo */
.catalog-results {
    background: #fff;
    border: 1px solid var(--lucas-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.catalog-results table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.catalog-results th,
.catalog-results td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--lucas-border);
    vertical-align: middle;
}
.catalog-results thead th {
    background: #f0f3f5;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.3px;
    color: #495057;
}
.catalog-results tbody tr:hover {
    background: rgba(0, 146, 63, 0.03);
}
.catalog-results tbody tr:last-child td {
    border-bottom: 0;
}
.catalog-results .product-img {
    width: 110px;
    height: 80px;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.catalog-results .stok-kodu {
    font-weight: 600;
    color: var(--lucas-primary);
    text-decoration: none;
}
.catalog-results .stok-kodu:hover {
    text-decoration: underline;
}
.catalog-results .actions {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    align-items: center;
}
.catalog-results .actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    font-size: 34px;
    line-height: 1;
    transition: opacity 0.15s, transform 0.15s;
}
.catalog-results .actions a:hover {
    background: transparent;
    opacity: 0.78;
    transform: scale(1.06);
}
.catalog-results .actions .act-view { color: var(--lucas-primary); }
.catalog-results .actions .act-pdf { color: #d6362c; }

/* Bilgi metni / boş durum */
.catalog-intro {
    background: #fff;
    border: 1px solid var(--lucas-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.catalog-intro h3 {
    margin: 0 0 10px;
    color: var(--lucas-primary);
    font-size: 18px;
}
.catalog-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--lucas-muted);
    background: #fff;
    border: 1px dashed var(--lucas-border);
    border-radius: 8px;
}
.catalog-empty .badge {
    display: inline-block;
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid #f5c2c7;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
}

/* Loading */
.catalog-loading {
    text-align: center;
    padding: 40px 20px;
}
.catalog-loading img { max-width: 60px; }
.catalog-loading p {
    color: var(--lucas-muted);
    margin-top: 10px;
}

/* ================== ProductDetail ================== */
.pd-page {
    background: #fff;
    border: 1px solid var(--lucas-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pd-tabs {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f0f3f5;
    border-bottom: 1px solid var(--lucas-border);
    position: sticky;
    top: 0;
    z-index: 20;
}
.pd-tabs .nav-item { margin: 0; }
.pd-tabs .nav-link {
    display: inline-block;
    padding: 14px 24px;
    color: #444;
    text-decoration: none;
    border: 0;
    border-right: 1px solid var(--lucas-border);
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.pd-tabs .nav-link:hover { background: rgba(0,146,63,0.06); color: var(--lucas-text); }
.pd-tabs .nav-link.active {
    background: #fff;
    color: var(--lucas-primary);
    font-weight: 700;
}
.pd-tab-pdf {
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-right: 1px solid var(--lucas-border);
}
.pd-tab-pdf a {
    font-size: 38px;
    color: #d6362c;
    text-decoration: none;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.pd-tab-pdf a:hover { opacity: 0.78; transform: scale(1.05); }

.pd-tab-content {
    padding: 14px 18px;
    background: #fff;
}

.pd-banner {
    text-align: center;
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
}
.pd-banner.danger { background: #fdecea; color: #b3261e; border: 1px solid #f5c2c7; }
.pd-banner.warning { background: #fff7e0; color: #8a6d11; border: 1px solid #ffe58a; }
.pd-yg-link {
    display: inline-block;
    margin: 0 0 0 8px;
    padding: 4px 10px;
    background: var(--lucas-primary);
    border: 1px solid var(--lucas-primary);
    border-radius: 4px;
    text-decoration: none;
    color: #fff !important;
    font-weight: 600;
}
.pd-yg-link:hover { background: #007a34; border-color: #007a34; color: #fff !important; }

.pd-detail-row { margin: 0; }

.pd-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}
.pd-table td {
    padding: 4px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    line-height: 1.35;
}
.pd-table td.pd-label {
    width: 160px;
    font-weight: 600;
    color: #555;
}
.pd-table td.pd-value {
    color: var(--lucas-text);
}
.pd-stok-kodu {
    font-size: 18px;
    font-weight: 700;
    color: var(--lucas-primary) !important;
    letter-spacing: 0.3px;
}
.pd-icon-yes { color: #00923f; font-size: 22px; }
.pd-icon-no { color: #999; font-size: 18px; }
.pd-group { display: inline-block; margin-right: 8px; }
.pd-group-icon {
    height: 22px; width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.pd-sketch-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}
.pd-sketch { max-width: 180px; height: auto; }
.pd-plug { max-width: 130px; height: auto; }

.pd-main-image {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

.pd-stok-header {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--lucas-primary);
    letter-spacing: 0.3px;
}

.pd-data-table {
    width: 100%;
    border-collapse: collapse;
}
.pd-data-table th {
    background: #f0f3f5;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    /* text-transform:uppercase KALDIRILDI: Türkçe i→I (noktasız) bozuyordu + Title Case kuralı. Başlıklar kayıtlı haliyle gelir. */
    color: #495057;
    border-bottom: 1px solid var(--lucas-border);
}
.pd-data-table td {
    padding: 5px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.pd-data-table tbody tr:hover { background: rgba(0,146,63,0.03); }
.pd-data-table tbody tr:last-child td { border-bottom: 0; }
.pd-link { color: var(--lucas-primary); font-weight: 600; text-decoration: none; }
.pd-link:hover { text-decoration: underline; }

.pd-empty {
    text-align: center;
    margin: 30px 0;
    padding: 14px 16px;
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .pd-tabs { overflow-x: auto; }
    .pd-tabs .nav-link { padding: 12px 14px; font-size: 13px; }
    .pd-tab-content { padding: 16px; }
    .pd-table td.pd-label { width: 110px; font-size: 13px; }
}

/* ================== Detaylı Arama formu ================== */
.adv-search-wrap { padding: 8px 0; }
.adv-form-card {
    background: #fff;
    border: 1px solid var(--lucas-border);
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.adv-form-title {
    margin: 0 0 18px;
    font-size: 18px;
    color: var(--lucas-primary);
    font-weight: 600;
}
.adv-form-group { margin-bottom: 14px; }
.adv-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}
.adv-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--lucas-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--lucas-text);
    background: #fff;
}
.adv-select:focus {
    outline: none;
    border-color: var(--lucas-primary);
    box-shadow: 0 0 0 3px rgba(0,146,63,0.15);
}
.adv-select[multiple] {
    height: auto;
    min-height: 90px;
    padding: 6px 8px;
}

/* Filtre select kutuları — Select2 wrapper genişliği vs. */
.adv-filter-select { width: 100%; }

.adv-radio-row { display: flex; gap: 18px; margin-top: 4px; }
.adv-radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.adv-form-actions {
    text-align: center;
    margin-top: 20px;
}
.btn-adv-submit {
    background: var(--lucas-primary);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}
.btn-adv-submit:hover { background: var(--lucas-primary-hover); }

.adv-side-card {
    text-align: center;
    padding: 28px 16px;
}
.btn-adv-side {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #dc3545;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s;
}
.btn-adv-side:hover { background: #c82333; color: #fff; }

/* ================== Detaylı Arama Sonucu — Lucas katalog formatı ================== */

/* Üst banner — logo + kategori adı + sketch görsel */
.lucas-result-banner {
    display: grid;
    grid-template-columns: 280px 1fr 200px auto;
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 2px solid #d0d3d8;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 14px;
}
.lucas-result-banner .banner-logo img {
    max-width: 240px;
    max-height: 64px;
    display: block;
}
.lucas-result-banner .banner-title {
    font-size: 18px;
    line-height: 1.35;
    color: #444;
}
.lucas-result-banner .banner-title strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #2b2b2b;
}
.lucas-result-banner .banner-marka {
    font-size: 14px;
    color: var(--lucas-primary);
    font-weight: 600;
    margin-top: 4px;
}
.lucas-result-banner .banner-sketch {
    text-align: right;
}
.lucas-result-banner .banner-sketch img {
    max-height: 90px;
    max-width: 200px;
}
.lucas-result-banner .banner-pdf a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: #f0f3f5;
    color: #d6362c;
    font-size: 36px;
    text-decoration: none;
    transition: all 0.15s;
}
.lucas-result-banner .banner-pdf a:hover { background: #d6362c; color: #fff; }

/* 3 kolonlu yeşil header */
.lucas-result-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--lucas-primary);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}
.lucas-result-header .hdr-cell {
    padding: 14px 16px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.lucas-result-header .hdr-cell:last-child { border-right: 0; }

/* Ürün satırı */
.lucas-result-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    background: #fff;
    border: 1px solid #d0d3d8;
    border-radius: 6px;
    margin-bottom: 4px;
}
.lucas-result-row .cell {
    padding: 10px 14px;
    border-right: 1px solid #d0d3d8;
}
.lucas-result-row .cell:last-child { border-right: 0; }

/* ÜRÜN NUMARASI & BİLGİSİ */
.cell-info {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px;
    align-items: start;
}
.cell-info .info-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cell-info .info-image img {
    max-width: 130px;
    max-height: 110px;
    object-fit: contain;
}
.cell-info .info-data { display: flex; flex-direction: column; gap: 2px; }
.cell-info .stok-no {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}
.cell-info .stok-no a { color: #2b2b2b; text-decoration: none; }
.cell-info .stok-no a:hover { color: var(--lucas-primary); }
.cell-info .filter-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 14px;
    font-weight: 500;
    color: #2b2b2b;
    margin-bottom: 2px;
}
.cell-info .filter-compact .sep { color: #888; }
.cell-info .filter-line {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}
.cell-info .filter-line .lbl { color: #666; }
.cell-info .filter-line .val { color: #2b2b2b; }
.cell-info .cart-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.cell-info .cart-link-add { color: var(--lucas-primary); }
.cell-info .cart-link-add:hover { color: var(--lucas-primary-hover); text-decoration: underline; }
.cell-info .cart-link-remove { color: #d6362c; }
.cell-info .cart-link-remove:hover { color: #b32a22; text-decoration: underline; }

/* REFERANSLAR — kompakt 2 sütun */
.cell-refs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
    align-content: start;
}
.cell-refs .ref-line {
    font-size: 12px;
    color: #333;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* UYGULAMALAR — sıkı satır aralığı */
.cell-apps .app-line {
    font-size: 12.5px;
    color: #333;
    font-weight: 500;
    line-height: 1.35;
    text-transform: uppercase;
}

/* SweetAlert toast — küçük, ekleme/çıkartma için */
.lucas-swal-toast .swal2-html-container,
.lucas-swal-toast .swal2-content {
    font-size: 14px !important;
    margin: 4px 0 !important;
}
.lucas-swal-toast .swal2-icon {
    width: 44px !important;
    height: 44px !important;
    margin: 12px auto 4px !important;
}

.adv-result-empty {
    text-align: center;
    padding: 40px;
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    font-weight: 500;
}

@media (max-width: 992px) {
    .lucas-result-banner { grid-template-columns: 1fr; gap: 10px; }
    .lucas-result-banner .banner-sketch { text-align: left; }
    .lucas-result-header,
    .lucas-result-row { grid-template-columns: 1fr; }
    .lucas-result-row .cell { border-right: 0; border-bottom: 1px solid #d0d3d8; }
    .lucas-result-row .cell:last-child { border-bottom: 0; }
    .cell-refs { grid-template-columns: 1fr; }
}

/* ================== UserBasket / Çalışma Sayfası ================== */
.basket-actionbar {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--lucas-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: sticky;
    top: 8px;
    z-index: 5;
}
.btn-basket-back, .btn-basket-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: 0;
}
.btn-basket-back { background: #f0f3f5; color: var(--lucas-text); }
.btn-basket-back:hover { background: #e3e6ec; }
.btn-basket-export { background: var(--lucas-primary); color: #fff; }
.btn-basket-export:hover { background: var(--lucas-primary-hover); color: #fff; }

.basket-table-wrap {
    background: #fff;
    border: 1px solid var(--lucas-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.basket-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.basket-table th, .basket-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}
.basket-table thead th {
    background: #f0f3f5;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #495057;
}
.basket-table tbody tr:hover { background: rgba(0,146,63,0.03); }
.basket-table tbody tr:last-child td { border-bottom: 0; }

/* Basket inputs — kaydetme feedback'i */
.basket-table .form-control {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--lucas-border);
    border-radius: 6px;
    transition: all 0.2s;
}
.basket-table .form-control:focus {
    outline: none;
    border-color: var(--lucas-primary);
    box-shadow: 0 0 0 3px rgba(0, 146, 63, 0.15);
}
.basket-table .basket-saved {
    border-color: var(--lucas-primary) !important;
    background: rgba(0, 146, 63, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(0, 146, 63, 0.2) !important;
}

/* Basket aksiyon butonları — daha büyük ve belirgin */
.basket-actions {
    white-space: nowrap;
}
.basket-actions .btn {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    margin-right: 6px;
}
.basket-actions .btn:last-child { margin-right: 0; }
.basket-actions .btn i {
    font-size: 16px;
    margin-right: 4px;
    vertical-align: middle;
}
.basket-actions .btn-success i,
.basket-actions .btn-danger i { margin-right: 0; }
.basket-actions .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.basket-actions .btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}
.basket-actions .btn-success {
    background: var(--lucas-primary);
    border-color: var(--lucas-primary);
    color: #fff;
    width: 42px;
    padding: 8px;
    text-align: center;
}
.basket-actions .btn-success:hover {
    background: var(--lucas-primary-hover);
    border-color: var(--lucas-primary-hover);
    color: #fff;
}

.basket-export-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.basket-export-row .btn { flex: 1 1 auto; padding: 12px 16px; font-weight: 600; }

/* ================== UserAuth (Login/Register) ================== */
.auth-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 16px;
    min-height: 100%;
}
.auth-card {
    width: 100%;
    max-width: 410px;
    background: #fff;
    border: 1px solid var(--lucas-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}
/* Markalı başlık şeridi */
.auth-brand {
    background: linear-gradient(135deg, #00a847 0%, #00923f 55%, #007a35 100%);
    padding: 26px 28px 22px;
    text-align: center;
    color: #fff;
}
.auth-brand-ico {
    width: 60px; height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff;
    box-shadow: 0 0 0 6px rgba(255,255,255,0.10);
}
.auth-brand h2 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 0.3px; }
.auth-brand .auth-sub { margin: 5px 0 0; font-size: 12.5px; color: rgba(255,255,255,0.85); }

.auth-body { padding: 24px 26px 22px; }

.auth-card .form-group { margin-bottom: 16px; }
.auth-card .form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.auth-card .auth-hint {
    color: #d6362c;
    font-weight: 500;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 8px;
}
/* İkon önekli giriş alanı */
.auth-field { position: relative; }
.auth-field > i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    font-size: 18px; color: #9aa3af; pointer-events: none;
    transition: color 0.15s;
}
.auth-field:focus-within > i { color: var(--lucas-primary); }
.auth-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--lucas-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--lucas-text);
    background: #fbfbfc;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--lucas-primary);
    box-shadow: 0 0 0 3px rgba(0,146,63,0.13);
}

.auth-actions {
    display: flex;
    justify-content: flex-end;
    margin: 6px 0 14px;
    font-size: 13px;
}
.auth-link {
    color: #555;
    text-decoration: none;
}
.auth-link:hover { color: var(--lucas-primary); }
.auth-link-strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lucas-primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-link-strong:hover { text-decoration: underline; }

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 14px;
    background: linear-gradient(135deg, #00a847, #00923f);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: filter 0.15s, transform 0.05s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(0,146,63,0.30);
}
.auth-submit:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(0,146,63,0.38); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit-blue { background: linear-gradient(135deg, #1e88e5, #0073d3); box-shadow: 0 4px 14px rgba(0,115,211,0.30); }

.auth-checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13px;
    color: #444;
    margin-bottom: 14px;
    cursor: pointer;
    line-height: 1.4;
}
.auth-checkbox input { margin-top: 1px; width: 16px; height: 16px; flex-shrink: 0; accent-color: #00923f; }

.auth-alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.auth-alert i { font-size: 16px; line-height: 1.4; }
.auth-alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c2c7; }
.auth-alert-info { background: #e7f4ec; color: #0e6e34; border: 1px solid #b6dfc6; }

.auth-muted { color: var(--lucas-muted); font-size: 13px; margin-bottom: 14px; }

.auth-footer {
    text-align: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef0f3;
    font-size: 13px;
    color: #6b7280;
}
.auth-forgot h3 { font-size: 16px; color: var(--lucas-text); margin: 0 0 6px; }

/* Modal layout içinde — kart modalı tam doldurur, alt boşluk olmaz */
body.catalog-modal-body .auth-wrap { padding: 0; background: #fff; min-height: auto; }
body.catalog-modal-body .auth-card { max-width: 100%; box-shadow: none; border: 0; border-radius: 0; }

/* ================== SweetAlert — Lucas info popup ================== */
.lucas-swal-info .swal2-html-container,
.lucas-swal-info .swal2-content {
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    margin: 12px 0 6px !important;
}
.lucas-swal-info .swal2-actions {
    margin-top: 14px !important;
}
.lucas-swal-info .swal2-confirm {
    padding: 8px 22px !important;
    font-size: 15px !important;
}

/* ================== Ürün detay modal (iframe) ================== */
.lucas-product-modal .modal-dialog {
    max-width: 1024px;
    width: 96vw;
    margin: 5vh auto;
}
.lucas-product-modal .modal-content {
    height: 90vh;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #fff;
}
.lucas-product-modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* Modal açıkken arka planı bulanıklaştır */
.modal-backdrop.show {
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lucas-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #444;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: background-color 0.15s, color 0.15s;
}
.lucas-modal-close:hover {
    background: #dc3545;
    color: #fff;
}
@media (max-width: 768px) {
    .lucas-product-modal .modal-dialog { max-width: 100vw; width: 100vw; margin: 0; }
    .lucas-product-modal .modal-content { height: 100vh; border-radius: 0; }
}

/* Auth modal — giriş/kayıt için orta boy */
.lucas-auth-modal .modal-dialog {
    max-width: 440px;
    width: 94vw;
    margin: 6vh auto;
}
.lucas-auth-modal .modal-content {
    height: auto;                /* içeriğe göre — alt boşluk olmasın */
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
}
.lucas-auth-modal iframe {
    width: 100%;
    height: 560px;               /* JS yüklenince içeriğe göre güncellenir */
    border: 0;
    display: block;
}
@media (max-width: 768px) {
    .lucas-auth-modal .modal-dialog { max-width: 100vw; width: 100vw; margin: 0; }
    .lucas-auth-modal .modal-content { min-height: 100vh; border-radius: 0; }
    .lucas-auth-modal iframe { height: 100vh; }
}

/* Footer */
.catalog-footer {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin: 30px 0 10px;
    line-height: 1.6;
}

/* Cookie consent custom */
.cc-window {
    border-radius: 8px !important;
    background: rgba(0,0,0,0.92) !important;
    color: #fff !important;
}
.cc-btn {
    background: var(--lucas-primary) !important;
    color: #fff !important;
    border-radius: 4px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .catalog-topbar {
        position: static;
        justify-content: flex-end;
        padding: 8px 12px;
        background: #fff;
        border-bottom: 1px solid var(--lucas-border);
    }
    .catalog-header { padding: 8px 12px; }
    .catalog-search-form input.form-control { font-size: 14px; padding: 10px 12px; }
    .catalog-search-form button.btn-search { padding: 10px 16px; }
    .catalog-search-form .btn-advanced { width: 100%; justify-content: center; }
    .catalog-results th:nth-child(1),
    .catalog-results td:nth-child(1) { display: none; }
}
