/* ═══════════════════════════════════════════════════════════════════════
   ARAÇ MODELLERİ — Marka → Model (kart) → Paket (27.09.2026)
   Köşeler her yerde düz (border-radius: 0) — proje kuralı.
   ═══════════════════════════════════════════════════════════════════════ */

.am-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 14px 16px;
    gap: 12px;
    background: var(--yl-bg, #f5f7fa);
}

/* ── Başlık ── */
.am-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--yl-border, #dfe4ec);
}
.am-header-sol { display: flex; align-items: center; gap: 12px; }
.am-header-ikon { width: 30px; height: 30px; color: var(--yl-primary, #1a3a6b); }
.am-header h3 { margin: 0; font-size: 1.12rem; font-weight: 700; color: #0f172a; }
.am-alt { margin: 2px 0 0; font-size: 0.78rem; color: var(--yl-text-light, #64748b); }
.am-header-sag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.am-arama {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    max-width: 100%;
}
.am-arama svg { position: absolute; left: 9px; width: 15px; height: 15px; color: #94a3b8; }
.am-arama input {
    width: 100%;
    height: 34px;
    padding: 0 30px 0 32px;
    border: 1px solid var(--yl-border, #dfe4ec);
    border-radius: 0;
    font-size: 0.84rem;
}
.am-arama-temizle {
    position: absolute; right: 6px;
    border: none; background: none; font-size: 1.1rem; color: #94a3b8; cursor: pointer;
}

/* ── Düğmeler ── */
.am-btn {
    height: 30px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--yl-border, #dfe4ec);
    border-radius: 0;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    white-space: nowrap;
}
.am-btn:hover:not(:disabled) { background: #f3f6fa; }
.am-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.am-btn-birincil { background: var(--yl-primary, #1a3a6b); border-color: var(--yl-primary, #1a3a6b); color: #fff; }
.am-btn-birincil:hover:not(:disabled) { background: #14305a; }
.am-btn-ghost { background: transparent; }
.am-btn-sil { color: #b91c1c; border-color: #fecaca; }
.am-btn-sil:hover:not(:disabled) { background: #fef2f2; }
.am-btn-sil-dolu { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.am-link { border: none; background: none; padding: 0; font-size: 0.74rem; color: var(--yl-primary, #1a3a6b); cursor: pointer; }
.am-link:hover { text-decoration: underline; }
.am-link-sil { color: #b91c1c; }

/* ── Bildirim ── */
.am-toast {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 12px; font-size: 0.82rem; border: 1px solid;
}
.am-toast.ok   { background: #f0fdf4; border-color: #86efac; color: #166534; }
.am-toast.hata { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.am-toast button { border: none; background: none; font-size: 1rem; cursor: pointer; color: inherit; }

/* ── Gövde: markalar + kartlar ── */
.am-govde {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 12px;
}
.am-markalar {
    background: #fff;
    border: 1px solid var(--yl-border, #dfe4ec);
    padding: 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.am-markalar-baslik { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; color: #94a3b8; padding: 4px 6px 6px; }
.am-marka {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 7px 8px;
    border: none; border-left: 3px solid transparent;
    background: none; text-align: left; font-size: 0.84rem; color: #1f2937; cursor: pointer;
}
.am-marka:hover { background: #f3f6fa; }
.am-marka.secili { background: #eef3fb; border-left-color: var(--yl-primary, #1a3a6b); font-weight: 700; color: var(--yl-primary, #1a3a6b); }
.am-sayi { font-size: 0.7rem; font-weight: 700; color: #64748b; background: #eef2f7; padding: 0 6px; }

.am-icerik { min-height: 0; overflow-y: auto; }
.am-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    align-items: start;
}
.am-bos {
    padding: 40px 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.86rem;
    background: #fff;
    border: 1px dashed var(--yl-border, #dfe4ec);
    line-height: 1.6;
}
.am-bos-baslik { font-size: 1rem; font-weight: 700; color: #1f2937; margin-bottom: 6px; }

/* ── Model kartı ── */
.am-kart {
    display: flex;
    flex-direction: column;
    min-width: 0;   /* uzun urun kodu karti telefonda tasirmasin */
    background: #fff;
    border: 1px solid var(--yl-border, #dfe4ec);
    transition: box-shadow .15s ease, transform .15s ease;
}
.am-kart:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); transform: translateY(-1px); }
.am-kapak {
    position: relative;
    height: 160px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-bottom: 1px solid var(--yl-border, #dfe4ec);
    overflow: hidden;
}
.am-kapak img { max-width: 100%; max-height: 100%; object-fit: contain; }
.am-kapak svg { width: 74px; height: 74px; color: #cbd5e1; }
.am-tip {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
    color: #fff; background: var(--yl-primary, #1a3a6b);
}
.am-kart-govde { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.am-kart-marka { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; }
.am-kart-model { font-size: 1.08rem; font-weight: 800; color: #0f172a; line-height: 1.25; }
.am-kart-spec { font-family: Consolas, "Courier New", monospace; font-size: 0.74rem; color: #475569; overflow-wrap: anywhere; }
.am-kart-aciklama {
    margin-top: 2px; font-size: 0.78rem; color: #475569;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.am-paketler { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.am-paketler-baslik { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; color: #94a3b8; }
.am-paket {
    padding: 8px 10px;
    border: 1px solid #e5eaf1;
    border-left: 3px solid var(--yl-primary, #1a3a6b);
    background: #fbfcfe;
}
.am-paket-ust { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.am-paket-ad {
    border: none; background: none; padding: 0;
    font-size: 0.92rem; font-weight: 700; color: #0f172a; cursor: pointer; text-align: left;
}
.am-paket-ad:hover { color: var(--yl-primary, #1a3a6b); text-decoration: underline; }
.am-paket-fiyat { font-size: 0.9rem; font-weight: 800; color: var(--yl-primary, #1a3a6b); white-space: nowrap; }
.am-paket-meta { margin-top: 2px; font-size: 0.72rem; color: #64748b; }
.am-paket-aksiyon { margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap; }
.am-paket-aksiyon .am-btn { height: 26px; padding: 0 10px; font-size: 0.72rem; }
.am-paket-yok { font-size: 0.76rem; color: #94a3b8; font-style: italic; }

.am-kart-alt {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 14px;
    border-top: 1px solid #eef2f6;
    font-size: 0.72rem; color: #64748b;
}
.am-kart-alt-sag { display: flex; gap: 12px; }

/* ── Modallar ── */
.am-perde {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(15, 23, 42, 0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.am-modal {
    width: 460px; max-width: 100%; max-height: 92vh;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--yl-border, #dfe4ec);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}
.am-modal-genis { width: 920px; }
.am-modal-baslik {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--yl-border, #dfe4ec);
}
.am-modal-ust { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.am-modal-ad { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.am-modal-fiyat { font-size: 1.1rem; font-weight: 800; color: var(--yl-primary, #1a3a6b); white-space: nowrap; }
.am-modal-fiyat small { font-size: 0.68rem; font-weight: 600; color: #94a3b8; margin-left: 4px; }
.am-modal-govde { padding: 14px 16px; overflow-y: auto; font-size: 0.84rem; color: #1f2937; }
.am-modal-alt {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--yl-border, #dfe4ec);
}

.am-form { display: flex; flex-direction: column; gap: 10px; }
.am-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.76rem; font-weight: 600; color: #475569; }
.am-form input, .am-form textarea {
    padding: 7px 9px; font-size: 0.86rem; font-weight: 400; color: #0f172a;
    border: 1px solid var(--yl-border, #dfe4ec); border-radius: 0;
}
.am-form-hata { font-size: 0.8rem; color: #b91c1c; }
.am-form-ipucu { font-size: 0.76rem; color: #64748b; line-height: 1.5; background: #f8fafc; border: 1px solid #e5eaf1; padding: 8px 10px; }

/* ── Paket detayı ── */
.am-detay-izgara { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.am-detay-kutu { border: 1px solid #e5eaf1; padding: 10px; background: #fbfcfe; }
.am-detay-kutu-baslik { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; color: #94a3b8; margin-bottom: 6px; }
.am-detay-satir { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed #eef2f6; font-size: 0.8rem; }
.am-detay-satir span { color: #64748b; }
.am-detay-satir strong { color: #0f172a; text-align: right; }
.am-detay-not { margin-top: 6px; font-size: 0.78rem; color: #475569; font-style: italic; }
.am-detay-bolum { margin: 14px 0 6px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; color: #94a3b8; }
.am-gorseller { display: flex; flex-wrap: wrap; gap: 10px; }
.am-gorseller figure { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.am-gorseller img { height: 96px; width: auto; max-width: 180px; object-fit: contain; border: 1px solid #e5eaf1; background: #fff; }
.am-gorseller figcaption { font-size: 0.68rem; color: #94a3b8; }
.am-bolumler { display: flex; flex-wrap: wrap; gap: 6px; }
.am-bolum { padding: 3px 8px; font-size: 0.74rem; background: #eef3fb; color: #1e3a5f; border: 1px solid #d6e2f3; }
.am-bolum em { font-style: normal; font-weight: 700; margin-left: 4px; color: var(--yl-primary, #1a3a6b); }
.am-opsiyonlar { display: flex; flex-direction: column; }
.am-opsiyon { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid #f1f4f8; font-size: 0.8rem; }
.am-opsiyon.dahil span:last-child { color: #16a34a; font-weight: 700; }

/* ── Telefon / tablet ── */
@media (max-width: 900px) {
    .am-govde { grid-template-columns: 1fr; }
    .am-markalar { flex-direction: row; flex-wrap: wrap; overflow: visible; }
    .am-markalar-baslik { width: 100%; }
    .am-detay-izgara { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .am-shell { padding: 10px; }
    .am-izgara { grid-template-columns: minmax(0, 1fr); }
    .am-arama { width: 100%; }
}

/* ── Paket fiyatı + toplu fiyat (baz fiyat, 02.10.2026) ── */
.am-fiyat { display: flex; flex-direction: column; gap: 8px; }
/* Pencere govdesi kayar; ogeler EZILMESIN (yoksa fiyat gecmisi listesi 0 yukseklige iniyordu). */
.am-fiyat > * { flex-shrink: 0; }
.am-fiyat-bilgi {
    font-size: 0.78rem; color: #1e3a5f; line-height: 1.5;
    background: #eff6ff; border: 1px solid #bfdbfe; padding: 7px 10px;
}
.am-fiyat-ust { display: grid; grid-template-columns: 220px 140px; gap: 10px; }
.am-fiyat-ust label, .am-fiyat-not {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 0.76rem; font-weight: 600; color: #475569;
}
.am-fiyat-ust input, .am-fiyat-ust select, .am-fiyat-not input {
    padding: 7px 9px; font-size: 0.86rem; font-weight: 400; color: #0f172a;
    border: 1px solid var(--yl-border, #dfe4ec); border-radius: 0; background: #fff; min-width: 0;
}
.am-fiyat-bolum { margin: 8px 0 0; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; color: #94a3b8; }
.am-fiyat-bolum small { font-size: 0.72rem; font-weight: 400; letter-spacing: 0; color: #94a3b8; }
.am-fiyat-ozet { display: flex; flex-direction: column; border: 1px solid #e5eaf1; background: #fbfcfe; padding: 6px 10px; }
.am-fiyat-ozet > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 0.82rem; }
.am-fiyat-ozet > div span { color: #64748b; }
.am-fiyat-ozet > div b { color: #0f172a; white-space: nowrap; }
.am-fiyat-ozet .iskonto b { color: #b91c1c; }
.am-fiyat-ozet .toplam { border-top: 1px solid #dfe4ec; margin-top: 2px; padding-top: 5px; }
.am-fiyat-ozet .toplam span, .am-fiyat-ozet .toplam b { color: var(--yl-primary, #1a3a6b); font-weight: 800; }
.am-fiyat-ozet .not span { font-size: 0.74rem; font-style: italic; }
.am-fiyat-secim { display: flex; align-items: flex-start; gap: 6px; font-size: 0.82rem; color: #334155; cursor: pointer; }
.am-fiyat-secim input { margin: 2px 0 0; flex: 0 0 auto; }
.am-fiyat-secim small { color: #94a3b8; }
.am-fiyat-gecmis { display: flex; flex-direction: column; border: 1px solid #eef2f6; max-height: 220px; overflow-y: auto; }
.am-fiyat-gecmis-bos { font-size: 0.78rem; color: #94a3b8; }
.am-fiyat-gecmis-satir {
    display: grid; grid-template-columns: 112px 140px 70px 1fr; gap: 2px 10px;
    padding: 5px 8px; border-bottom: 1px solid #f1f4f8; font-size: 0.78rem; color: #334155;
}
.am-fiyat-gecmis-satir .tarih, .am-fiyat-gecmis-satir .kim { color: #64748b; }
.am-fiyat-gecmis-satir .tur { font-weight: 700; color: #475569; }
.am-fiyat-gecmis-satir .deger small { color: #94a3b8; }
.am-fiyat-gecmis-satir .not { grid-column: 1 / -1; font-style: italic; color: #64748b; }
.am-fiyat-uyari {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
    padding: 8px 16px; font-size: 0.8rem; color: #92400e;
    background: #fffbeb; border-top: 1px solid #fde68a;
}
.am-fiyat-uyari span { margin-right: auto; }
.am-toplu-liste { display: flex; flex-direction: column; border: 1px solid #eef2f6; max-height: 300px; overflow-y: auto; }
.am-toplu-satir {
    display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
    padding: 6px 8px; border-bottom: 1px solid #f1f4f8; font-size: 0.8rem; cursor: pointer;
}
.am-toplu-satir .ad { min-width: 0; overflow-wrap: anywhere; }
.am-toplu-satir .fiyat { color: #64748b; white-space: nowrap; }
.am-toplu-satir .yeni { color: #166534; white-space: nowrap; }

@media (max-width: 600px) {
    .am-fiyat-ust { grid-template-columns: 1fr 1fr; }
    .am-fiyat-gecmis-satir { grid-template-columns: 1fr 1fr; }
    .am-toplu-satir { grid-template-columns: auto 1fr; }
    .am-toplu-satir .fiyat, .am-toplu-satir .yeni { grid-column: 2; }
    .am-modal-alt { flex-wrap: wrap; }
}
