/* =========================================================
   MOTOKARŞILAŞTIR — Tasarım Sistemi v3
   ========================================================= */
:root {
    --bg:          #ECEEF2;
    --bg-alt:      #F8F9FB;
    --bg-raised:   #FFFFFF;
    --line:        #D8DBE4;
    --line-soft:   #E8EAF0;

    --accent:      #D93A0C;
    --accent-hover:#B83009;
    --accent-soft: #F59E0B;

    --text:      #0E1117;
    --text-dim:  #4A5163;
    --text-faint:#8E95A6;

    --radius: 4px;
    --font-display: 'Rajdhani', 'Arial Narrow', sans-serif;
    --font-body:    'Inter', 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;

    --shadow-sm: 0 1px 4px rgba(0,0,0,.07);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------
   NAVBAR
   --------------------------------------------------------- */
.navbar {
    background: #fff;
    border-bottom: 3px solid var(--accent);
    padding: 0 36px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.brand-logo-img { height: 48px; width: auto; display: block; }
.brand-text { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: .4px; color: var(--text); }
.brand-text strong { color: var(--accent); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
    color: var(--text-dim); font-weight: 600; font-size: 13px;
    text-transform: uppercase; letter-spacing: .5px;
    padding: 8px 13px; border-radius: 6px;
    transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg); }
.nav-link.nav-cta {
    background: var(--accent); color: #fff;
    display: flex; align-items: center; gap: 6px;
    margin-left: 8px; box-shadow: 0 2px 8px rgba(217,58,12,.25);
}
.nav-link.nav-cta:hover { background: var(--accent-hover); color: #fff; }
.nav-link.nav-admin { font-size: 11px; color: var(--text-faint); margin-left: 4px; }
.nav-link.nav-admin:hover { color: var(--text-dim); }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px;
    width: 40px; height: 40px;
    background: none; border: none; cursor: pointer;
    padding: 8px; border-radius: 6px; flex-shrink: 0;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform .25s, opacity .25s;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobil menü */
.mobile-menu {
    display: none;
    position: fixed; inset: 0;
    background: rgba(14,17,23,.97);
    z-index: 190;
    flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .25s;
}
.mobile-menu.open { display: flex; opacity: 1; }
body.menu-open { overflow: hidden; }

.mobile-menu-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 24px 32px; max-height: 100vh; overflow-y: auto; }
.mobile-nav-link {
    display: block; width: 100%; text-align: center;
    font-family: var(--font-display); font-size: 30px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: rgba(255,255,255,.75);
    padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08);
    transition: color .15s;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: #fff; }

/* ---------------------------------------------------------
   HEADER MEGA MENÜ — Marka → Model → Önizleme
   --------------------------------------------------------- */
.nav-mega { position: relative; }
.nav-mega-trigger { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-family: inherit; }
.mega-chevron { transition: transform .2s; flex-shrink: 0; }
.nav-mega.is-open .nav-mega-trigger { color: var(--text); background: var(--bg); }
.nav-mega.is-open .mega-chevron { transform: rotate(180deg); }

.mega-panel {
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
    width: min(760px, 90vw);
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex; overflow: hidden;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 250;
}
.nav-mega.is-open .mega-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }

.mega-col { padding: 10px; overflow-y: auto; max-height: 360px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-brands  { flex: 0 0 34%; }
.mega-models  { flex: 0 0 36%; }
.mega-preview { flex: 0 0 30%; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg-alt); }

.mega-brand-item {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
    text-align: left; background: none; border: none; border-left: 3px solid transparent; cursor: pointer;
    padding: 10px 12px; font-family: var(--font-display); font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .3px; color: var(--text-dim);
    border-radius: 0 6px 6px 0; transition: background .15s, color .15s, border-color .15s;
}
.mega-brand-item:hover { background: var(--bg); color: var(--text); }
.mega-brand-item.is-active { border-left-color: var(--accent); color: var(--accent); background: #fff5f3; }
.mega-brand-count { font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--text-faint); }
.mega-brand-item.is-active .mega-brand-count { color: var(--accent); }

.mega-model-item {
    display: block; padding: 10px 12px; border-radius: 6px; font-size: 13px; font-weight: 600;
    color: var(--text-dim); transition: background .15s, color .15s;
}
.mega-model-item:hover, .mega-model-item.is-active { background: #fff5f3; color: var(--accent); }
.mega-model-year { font-weight: 400; color: var(--text-faint); font-size: 12px; }
.mega-model-item.is-active .mega-model-year, .mega-model-item:hover .mega-model-year { color: var(--accent); opacity: .75; }

.mega-preview-link { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mega-preview-img-box {
    width: 100%; aspect-ratio: 4/3; max-width: 190px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.mega-preview-img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.mega-preview-name { font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--text); }
.mega-preview-name .mega-model-year { font-family: var(--font-body); text-transform: none; }
.mega-preview-empty, .mega-loading, .mega-empty { color: var(--text-faint); font-size: 12px; text-align: center; padding: 20px 10px; width: 100%; }

/* ── Mobil akordeon versiyonu ─────────────────────────── */
.mobile-mega-trigger { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: none; border: none; cursor: pointer; font-family: inherit; }
.mobile-mega-trigger .mega-chevron { color: rgba(255,255,255,.75); transition: transform .2s; }
.mobile-mega-trigger.open .mega-chevron { transform: rotate(180deg); }

.mobile-mega-panel { display: none; width: 100%; max-height: 42vh; overflow-y: auto; margin-bottom: 4px; }
.mobile-mega-trigger.open + .mobile-mega-panel { display: block; }

.mobile-mega-brand-block { border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-mega-brand {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: none; border: none; cursor: pointer; font-family: var(--font-body);
    font-size: 15px; font-weight: 600; color: rgba(255,255,255,.6); padding: 12px 0;
}
.mobile-mega-brand .mega-brand-count { color: rgba(255,255,255,.35); }
.mobile-mega-brand.open { color: var(--accent); }

.mobile-mega-models { display: none; flex-direction: column; align-items: center; padding-bottom: 8px; }
.mobile-mega-models.open { display: flex; }
.mobile-mega-model { color: rgba(255,255,255,.5); font-size: 13px; padding: 8px 0; }
.mobile-mega-model:hover { color: #fff; }

@media (max-width: 900px) {
    .mega-panel { width: min(560px, 92vw); }
    .mega-preview { display: none; }
    .mega-brands { flex: 0 0 44%; }
    .mega-models { flex: 1; }
}
@media (max-width: 768px) {
    .nav-mega { display: none; } /* masaüstü mega menü gizlenir, mobil akordeon devreye girer */
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero-wrapper { max-width: 1200px; margin: 28px auto 0; padding: 0 24px; }
.hero {
    display: flex; align-items: stretch; min-height: 380px;
    background: var(--text); overflow: hidden; position: relative;
    /* Sağ-üst köşe kasıtlı olarak keskin (0) bırakıldı: .hero::after'daki köşe-kesme
       üçgeni tam 90° bir köşe varsayıyor. border-radius o köşede de yuvarlatırsa
       overflow:hidden üçgenin ucunu kırpıp kopuk/jagged bir görünüm oluşturuyordu. */
    border-radius: 6px 0 6px 6px;
}
.hero::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 0; height: 0; border-style: solid;
    border-width: 0 48px 48px 0;
    border-color: transparent var(--bg) transparent transparent;
    z-index: 10; pointer-events: none;
}
.hero-inner { flex: 1 1 55%; padding: 60px 44px 52px 40px; position: relative; z-index: 1; }
.hero-img-panel {
    flex: 0 0 44%;
    background: var(--accent);
    clip-path: polygon(6% 0, 100% 0, 100% 100%, 0% 100%);
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero-img {
    width: 100%;
    height: 108%;
    object-fit: contain;
    object-position: center 92%;
    display: block;
    filter:
        drop-shadow(-30px 8px 42px rgba(0,0,0,.88))
        drop-shadow(-8px 2px 14px rgba(0,0,0,.55));
    transform: perspective(1100px) rotateY(-7deg) scale(1.10);
    transform-origin: center bottom;
}
.hero-img.is-svg { object-fit: contain; padding: 16px; background: #1e2028; }
.hero-img-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; color: rgba(255,255,255,.9); text-align: center; padding: 24px;
}
.hero-img-placeholder span { font-family: var(--font-mono); font-size: 14px; font-weight: 700; background: rgba(0,0,0,.25); padding: 8px 16px; border-radius: 4px; letter-spacing: 1px; }
.hero-img-placeholder small { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.7; }

.hero-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-soft); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent-soft); display: inline-block; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1.03; text-transform: uppercase; letter-spacing: .5px; color: #fff; }
.hero h1 .accent { color: var(--accent-soft); }
.hero p.lead { margin-top: 20px; color: rgba(255,255,255,.65); font-size: 16px; max-width: 480px; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 44px; display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; }
.hero-stats .stat-num { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: #fff; }
.hero-stats .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.4); margin-top: 4px; }

/* ---------------------------------------------------------
   CONTAINER & SECTION BAŞLIKLARI
   --------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.section-head .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; display: block; }
.page-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text); }
.page-subtitle { color: var(--text-dim); margin-top: 6px; font-size: 15px; }

/* ---------------------------------------------------------
   FİLTRE
   --------------------------------------------------------- */
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-bar label.fl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }
.filter-bar select { background: var(--bg-raised); border: 1px solid var(--line); color: var(--text); padding: 9px 14px; border-radius: var(--radius); font-size: 14px; box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------
   MOTOSİKLET KARTLARI
   --------------------------------------------------------- */
.moto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.moto-card {
    background: var(--bg-raised); border: 1px solid var(--line);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.moto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.moto-card:has(.moto-check:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(217,58,12,.25), var(--shadow-md); }

.moto-card .img-wrap {
    background: linear-gradient(150deg, var(--bg) 0%, var(--line-soft) 100%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-bottom: 1px solid var(--line-soft);
    position: relative; aspect-ratio: 16/10;
}
.moto-card .img-wrap::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.moto-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.moto-card img[src$=".svg"] { object-fit: contain; padding: 8px; background: var(--bg); }
.moto-card .no-img { font-family: var(--font-mono); color: var(--text-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; }

.moto-card .info { padding: 18px 18px 12px; flex: 1; }
.moto-card .brand-name { font-family: var(--font-mono); color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.moto-card .model-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-top: 4px; color: var(--text); text-transform: uppercase; line-height: 1.1; }
.moto-card .model-year { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 5px; }

.moto-card .select-row { padding: 12px 18px; border-top: 1px solid var(--line-soft); background: var(--bg-alt); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.moto-card .select-row input { appearance: none; width: 17px; height: 17px; border: 2px solid var(--line); border-radius: 3px; cursor: pointer; position: relative; flex-shrink: 0; transition: border-color .15s, background .15s; }
.moto-card .select-row input:checked { background: var(--accent); border-color: var(--accent); }
.moto-card .select-row input:checked::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; }

/* Kart detay link */
.card-link-area { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card-detail-hint { display: block; font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 10px; font-family: var(--font-mono); letter-spacing: .3px; opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; }
.moto-card:hover .card-detail-hint { opacity: 1; transform: translateX(0); }

/* ---------------------------------------------------------
   BUTONLAR
   --------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: #fff;
    padding: 12px 24px; border-radius: var(--radius); border: none;
    cursor: pointer; font-family: var(--font-body); font-size: 13px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
    transition: background .18s, transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(217,58,12,.25);
}
.btn:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(217,58,12,.35); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn.outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); box-shadow: none; }
.btn.outline:hover { background: var(--accent); color: #fff; }
.btn.secondary { background: var(--bg-raised); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-raised); transform: none; }
.btn.success { background: var(--accent-soft); color: #1a0f00; box-shadow: 0 2px 8px rgba(245,158,11,.25); }
.btn.success:hover { background: #e08d00; }
.btn.small { padding: 7px 14px; font-size: 12px; }
.btn.danger { background: transparent; border: 1px solid #e5bbb4; color: var(--accent); box-shadow: none; }
.btn.danger:hover { background: #fff0ee; transform: none; }

/* ---------------------------------------------------------
   KARŞILAŞTIRMA SEÇIM ÇUBUĞU
   --------------------------------------------------------- */
.compare-bar { position: sticky; bottom: 0; background: var(--text); color: #fff; padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; margin-top: 28px; border-top: 3px solid var(--accent); }
.compare-bar span { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; }
.compare-bar b { color: var(--accent-soft); font-size: 15px; }

/* ---------------------------------------------------------
   KARŞILAŞTIRMA SAYFASI — Setup
   --------------------------------------------------------- */
.compare-setup { background: var(--bg-raised); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 28px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }

.share-box { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-top: 32px; box-shadow: var(--shadow-sm); }
.share-box-label { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-faint); margin-bottom: 14px; }
.share-link-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.share-link-row input { flex: 1; min-width: 220px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); color: var(--text-dim); font-family: var(--font-mono); font-size: 12px; }
.share-social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-social-btn { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--radius); font-size: 12px; font-weight: 600; color: #fff; transition: opacity .15s; }
.share-social-btn:hover { opacity: .85; }
.share-social-btn.is-wa { background: #25D366; }
.share-social-btn.is-x  { background: #000000; }
.share-social-btn.is-fb { background: #1877F2; }
.share-social-btn.is-tg { background: #229ED9; }
@media (max-width: 640px) {
    .share-box { padding: 18px 16px; }
    .share-link-row { flex-direction: column; }
}
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.slot-grid label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); display: block; margin-bottom: 7px; }
.slot-grid select { width: 100%; background: var(--bg-alt); border: 1px solid var(--line); color: var(--text); padding: 11px 13px; border-radius: var(--radius); font-size: 14px; }
.slot-grid select:focus { outline: none; border-color: var(--accent); }
#loadingMsg { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .5px; }

/* ---------------------------------------------------------
   KAZANAN BANNER
   --------------------------------------------------------- */
.winner-banner { background: var(--text); border-left: 5px solid var(--accent-soft); color: #fff; padding: 22px 26px; border-radius: var(--radius); margin-bottom: 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.winner-banner .flag { font-size: 26px; flex-shrink: 0; }
.winner-banner .wb-text { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.5); }
.winner-banner b.wb-name { font-family: var(--font-display); font-size: 24px; color: #fff; text-transform: uppercase; display: block; margin-top: 2px; }
.winner-banner .wb-score { margin-left: auto; font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--accent-soft); line-height: 1; }
.winner-banner .wb-score small { font-size: 11px; color: rgba(255,255,255,.4); display: block; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; font-weight: 400; }

/* ---------------------------------------------------------
   KARŞILAŞTIRMA TABLOSU
   --------------------------------------------------------- */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.compare-table { width: 100%; border-collapse: collapse; background: var(--bg-raised); min-width: 560px; }

table.compare-table thead th { padding: 0; vertical-align: bottom; border-bottom: 3px solid var(--accent); background: var(--text); }
table.compare-table thead th.compare-th-label { padding: 18px 16px; vertical-align: middle; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.5); font-weight: 600; min-width: 130px; max-width: 160px; }

/* Motor görseli thumbnail */
.compare-th-img-wrap { display: flex; justify-content: center; padding-top: 18px; }
.compare-th-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center; border: 3px solid var(--accent); background: #2a2d35; display: block; }
.compare-th-img.is-svg { object-fit: contain; padding: 8px; background: #1e2028; }
.compare-th-meta { padding: 10px 14px 14px; text-align: center; }
.compare-th-meta small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--accent-soft); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.compare-th-meta strong { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #fff; }
.compare-th-year { display: inline-block; margin-top: 4px; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: 1px; }

table.compare-table th:first-child, table.compare-table td:first-child { text-align: left; }
table.compare-table thead th:first-child { background: #1a1c22; }
table.compare-table td { padding: 15px 16px; text-align: center; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.compare-table tbody td:first-child { background: var(--bg-alt); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); font-weight: 700; border-right: 1px solid var(--line); }
table.compare-table tbody tr:last-child td { border-bottom: none; }
table.compare-table tbody tr:hover td { background: #fafbfd; }
table.compare-table tbody tr:hover td:first-child { background: var(--bg-alt); }

.simple-value { font-family: var(--font-mono); font-size: 15px; color: var(--text); }

/* Gauge */
.gauge-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gauge { --pct: 0; width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(var(--gauge-color, var(--accent)) calc(var(--pct) * 1%), var(--line) 0); display: flex; align-items: center; justify-content: center; position: relative; }
.gauge::before { content: ''; position: absolute; inset: 7px; background: var(--bg-raised); border-radius: 50%; box-shadow: inset 0 1px 3px rgba(0,0,0,.08); }
.gauge .gauge-label { position: relative; z-index: 1; font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--text); }
.gauge.is-best { --gauge-color: var(--accent-soft); }
.gauge.is-best .gauge-label { color: #a66800; }
.gauge-raw { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.gauge-raw.is-best { color: #a66800; font-weight: 700; }
.gauge-raw .star { color: var(--accent-soft); }

/* Skor */
tr.score-row td { background: var(--bg-alt); padding-top: 20px; padding-bottom: 20px; border-top: 2px solid var(--line); }
tr.score-row td:first-child { font-size: 12px; }
.score-pill { display: inline-flex; align-items: baseline; gap: 3px; font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text-dim); padding: 6px 16px; border-radius: 30px; border: 1.5px solid var(--line); background: var(--bg); }
.score-pill.is-winner { color: #fff; background: var(--text); border-color: var(--text); }
.score-pill span { font-size: 12px; opacity: .6; }

.empty-state { text-align: center; padding: 64px 20px; color: var(--text-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; border: 1.5px dashed var(--line); border-radius: var(--radius); }

/* ---------------------------------------------------------
   ALERTS
   --------------------------------------------------------- */
.alert { padding: 13px 18px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; font-size: 14px; border: 1px solid; }
.alert.success { background: #fffbee; color: #8a5c00; border-color: #fde68a; }
.alert.error { background: #fff5f3; color: var(--accent); border-color: #ffc9be; }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
footer.site-footer { text-align: center; padding: 28px; color: var(--text-faint); font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1.5px; border-top: 1px solid var(--line); background: var(--bg-raised); }
.footer-trust-text { text-transform: none; letter-spacing: normal; font-family: var(--font-body); font-size: 12px; color: var(--text-dim); margin: 0 0 10px; }
.footer-legal-row { text-transform: none; letter-spacing: normal; margin: 0 0 12px; }
.footer-legal-row a { color: var(--text-faint); font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1.5px; transition: color .15s; }
.footer-legal-row a:hover { color: var(--accent); }

/* ---------------------------------------------------------
   BREADCRUMB
   --------------------------------------------------------- */
.breadcrumb-bar { background: var(--bg-raised); border-bottom: 1px solid var(--line); padding: 12px 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; font-family: var(--font-mono); flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.breadcrumb a { color: var(--text-faint); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--line); }
.breadcrumb span { color: var(--text-dim); font-weight: 600; }

/* ---------------------------------------------------------
   MOTOR DETAY SAYFASI
   --------------------------------------------------------- */
.moto-hero { background: var(--bg-raised); border-bottom: 1px solid var(--line); }
.moto-hero-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: flex; gap: 48px; align-items: flex-start; }
.moto-hero-img { flex: 0 0 420px; height: 280px; background: linear-gradient(150deg, var(--bg) 0%, var(--line-soft) 100%); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; }
.moto-hero-img::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.moto-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.moto-hero-img.is-default img { object-fit: contain; padding: 16px; }
.no-img-lg { font-family: var(--font-mono); color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }
.moto-hero-info { flex: 1; min-width: 0; }
.brand-badge { display: inline-block; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 5px 12px; border-radius: 2px; margin-bottom: 12px; }
.moto-hero-title { font-family: var(--font-display); font-size: clamp(30px, 5vw, 50px); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text); line-height: 1.05; }
.moto-hero-year { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }
.moto-hero-desc { margin-top: 16px; color: var(--text-dim); font-size: 15px; line-height: 1.7; max-width: 520px; }

.spec-highlights { display: flex; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-hl-item { flex: 1; padding: 16px; text-align: center; border-right: 1px solid var(--line); background: var(--bg-alt); }
.spec-hl-item:last-child { border-right: none; }
.spec-hl-val { display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.spec-hl-val small { font-size: 12px; color: var(--text-faint); font-weight: 400; margin-left: 2px; }
.spec-hl-name { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-top: 5px; font-family: var(--font-mono); }

.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 32px; }
.spec-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: border-color .15s; }
.spec-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--line-soft); transition: background .15s; }
.spec-card:hover::after { background: var(--accent); }
.spec-card-name { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 8px; }
.spec-card-val { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.1; }
.spec-card-unit { font-size: 13px; color: var(--text-faint); font-weight: 400; margin-left: 3px; }
.spec-card-hint { font-size: 11px; font-family: var(--font-mono); margin-top: 8px; letter-spacing: .5px; }
.spec-card-hint.up   { color: #16a34a; }
.spec-card-hint.down { color: var(--accent); }

/* ---------------------------------------------------------
   İLETİŞİM SAYFASI
   --------------------------------------------------------- */
.contact-intro { color: var(--text-dim); font-size: 15px; max-width: 620px; margin-top: 6px; line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.contact-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.contact-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--line-soft); transition: background .15s; }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-card:hover::after { background: var(--accent); }
.contact-icon {
    width: 46px; height: 46px; min-width: 46px; border-radius: 50%;
    background: var(--bg-alt); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.contact-card-primary { grid-column: 1 / -1; }
.contact-card-primary .contact-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-card-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-faint); margin-bottom: 4px; }
.contact-card-value { font-size: 15px; font-weight: 700; color: var(--text); word-break: break-word; }
.contact-card-value.sm { font-size: 13px; font-weight: 600; color: var(--text-dim); }

/* Footer — hızlı iletişim şeridi */
.footer-contact-row { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-contact-row a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 12px; font-weight: 600; transition: color .15s; text-transform: none; letter-spacing: normal; }
.footer-contact-row a:hover { color: var(--accent); }
.footer-contact-row svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------------------------------------------------------
   BLOG
   --------------------------------------------------------- */
.tag-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--bg-raised); color: var(--text-dim); font-size: 13px; font-weight: 600;
    transition: border-color .15s, color .15s, background .15s;
}
.tag-pill:hover { border-color: var(--accent); color: var(--accent); }
.tag-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag-pill.sm { padding: 4px 10px; font-size: 11px; font-weight: 600; background: var(--bg-alt); border-color: transparent; }
.tag-pill-count { font-family: var(--font-mono); font-size: 11px; opacity: .7; }

.blog-tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 32px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.blog-card {
    display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s; color: var(--text);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 16/9; background: linear-gradient(150deg, var(--bg) 0%, var(--line-soft) 100%); overflow: hidden; position: relative; }
.blog-card-img::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); z-index: 1; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }
.blog-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-date { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }
.blog-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--text); }
.blog-card-excerpt { font-size: 13px; color: var(--text-dim); line-height: 1.6; flex: 1; }
.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.blog-pagination { display: flex; justify-content: center; gap: 8px; margin: 8px 0 40px; }
.blog-page-link { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--text-dim); font-weight: 600; font-size: 13px; }
.blog-page-link:hover { border-color: var(--accent); color: var(--accent); }
.blog-page-link.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.blog-post-container { max-width: 780px; }
.blog-post-meta { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.blog-post-meta-tag { color: var(--accent); font-weight: 600; margin-left: 6px; }
.blog-post-hero { border-radius: var(--radius); overflow: hidden; margin: 24px 0; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.blog-post-hero img { width: 100%; height: auto; display: block; }

.blog-post-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.blog-post-content h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 32px 0 14px; color: var(--text); }
.blog-post-content h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 26px 0 12px; color: var(--text); }
.blog-post-content p { margin-bottom: 18px; }
.blog-post-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 20px 0; border: 1px solid var(--line); }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 18px 22px; }
.blog-post-content li { margin-bottom: 8px; }
.blog-post-content a { color: var(--accent); text-decoration: underline; }
.blog-post-content blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 20px 0; color: var(--text-dim); font-style: italic; }

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   AD ALANLARI
   --------------------------------------------------------- */
.ad-slot { border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; position: relative; color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.ad-slot-horizontal { min-height: 100px; margin-bottom: 32px; }
.ad-slot-banner, .ad-slot-code { border: none; background: transparent; overflow: hidden; }
.ad-slot-banner img { max-width: 100%; width: 100%; height: auto; border-radius: var(--radius); display: block; }
.ad-slot-code { display: block; text-align: center; }
.ad-label { position: absolute; top: 6px; left: 10px; font-size: 9px; letter-spacing: 2px; color: var(--line); text-transform: uppercase; }

/* ---------------------------------------------------------
   SENTİMENT BADGE
   --------------------------------------------------------- */
.sentiment-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.sentiment-pos { background: #ECFDF5; color: #166534; border: 1px solid #BBF7D0; }
.sentiment-neg { background: #FFF5F3; color: #991B1B; border: 1px solid #FECACA; }
.sentiment-neu { background: #F8F9FB; color: var(--text-faint); border: 1px solid var(--line); }
table.compare-table .sentiment-badge { font-size: 10px; padding: 3px 8px; }

/* ---------------------------------------------------------
   DEFAULT GÖRSEL
   --------------------------------------------------------- */
.moto-hero-img.is-default { background: var(--bg); }
.moto-hero-img .default-img { object-fit: contain; padding: 16px; }

/* ---------------------------------------------------------
   DONANIMSAL ÖZELLİKLER
   --------------------------------------------------------- */
.equip-category { margin-bottom: 28px; }
.equip-cat-title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-faint); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.equip-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 14px; font-weight: 500; background: var(--bg-raised); box-shadow: var(--shadow-sm); }
.equip-item.has { border-color: #BBF7D0; background: #F0FDF4; }
.equip-item.missing { opacity: .55; background: var(--bg-alt); }
.equip-icon { font-size: 12px; font-weight: 700; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.equip-item.has .equip-icon     { background: #16a34a; color: #fff; }
.equip-item.missing .equip-icon { background: var(--line); color: var(--text-faint); }
.equip-name { color: var(--text); }
.equip-item.missing .equip-name { color: var(--text-faint); }
.equip-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; font-size: 13px; }
.equip-badge.has     { background: #16a34a; color: #fff; }
.equip-badge.missing { background: var(--line); color: var(--text-faint); }

/* Admin donanım checkbox */
.equip-checkbox-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 13px; font-weight: 500; background: var(--bg-alt); transition: border-color .15s, background .15s; user-select: none; }
.equip-checkbox-label:hover { border-color: var(--accent); }
.equip-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.equip-checkbox-label:has(input:checked) { border-color: #16a34a; background: #F0FDF4; color: #166534; }

/* =========================================================
   ADMIN PANELİ
   ========================================================= */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font-body); }
.admin-sidebar { width: 230px; background: var(--text); color: #fff; padding: 20px 0; flex-shrink: 0; }
.admin-sidebar .logo { padding: 0 20px 20px; font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px; }
.admin-sidebar a { display: block; padding: 11px 20px; color: rgba(255,255,255,.55); font-weight: 500; font-size: 14px; border-left: 3px solid transparent; transition: all .15s; }
.admin-sidebar a:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-sidebar a.active { color: #fff; border-left-color: var(--accent); background: rgba(255,255,255,.08); }

.sidebar-group summary { display: block; padding: 11px 20px; color: rgba(255,255,255,.55); font-weight: 500; font-size: 14px; border-left: 3px solid transparent; cursor: pointer; list-style: none; }
.sidebar-group summary::-webkit-details-marker { display: none; }
.sidebar-group summary::after { content: '▾'; float: right; transition: transform .15s; opacity: .6; }
.sidebar-group[open] summary::after { transform: rotate(180deg); }
.sidebar-group summary:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-group summary.active { color: #fff; border-left-color: var(--accent); background: rgba(255,255,255,.08); }
.sidebar-subgroup { background: rgba(0,0,0,.15); }
.sidebar-subgroup a { padding: 9px 20px 9px 40px; font-size: 13px; }
.admin-content { flex: 1; padding: 32px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; letter-spacing: .4px; }
.admin-topbar span { color: var(--text-dim); font-size: 14px; }

.card-box { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.card-box h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; font-weight: 700; margin-bottom: 14px; }

/* Dashboard — birleşik istatistik şeridi */
.stat-summary-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.stat-summary-head h3 { margin: 0; font-size: 15px; }
.stat-summary { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-summary-item { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-right: 1px solid var(--line); }
.stat-summary-item:last-child { border-right: none; }
.stat-summary-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.stat-summary-value { font-family: var(--font-mono); font-size: 26px; font-weight: 700; line-height: 1; color: var(--text); }
.stat-summary-label { font-size: 12px; color: var(--text-dim); margin-top: 5px; }
@media (max-width: 760px) {
    .stat-summary { grid-template-columns: repeat(2, 1fr); }
    .stat-summary-item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .stat-summary-item:nth-child(2n) { border-right: none; }
    .stat-summary-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 460px) {
    .stat-summary { grid-template-columns: 1fr; }
    .stat-summary-item { border-right: none !important; }
    .stat-summary-item:last-child { border-bottom: none; }
}

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 14px; }
table.admin-table th { background: var(--bg-alt); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-faint); font-weight: 700; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: var(--text-dim); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); background: var(--bg-alt); color: var(--text); border-radius: var(--radius); font-size: 14px; font-family: var(--font-body); transition: border-color .15s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.status-select { padding: 10px 13px; border: 1.5px solid var(--line); background: var(--bg-alt); color: var(--text); border-radius: var(--radius); font-size: 14px; font-family: var(--font-body); }
.status-select:focus { outline: none; border-color: var(--accent); }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* Reklam Alanları — admin tür seçici */
.adslot-type-picker { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.adslot-type-picker label { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--text-dim); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.adslot-type-picker input { accent-color: var(--accent); }
.adslot-type-picker label:has(input:checked) { border-color: var(--accent); color: var(--accent); background: #fff5f3; }
.adslot-fields { display: none; padding-top: 4px; }
.adslot-fields.is-active { display: block; }
.adslot-preview { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; font-size: 12px; color: var(--text-dim); }
.adslot-preview img { max-width: 140px; max-height: 60px; border-radius: 4px; border: 1px solid var(--line); }
.adslot-preview code { display: block; background: var(--bg-raised); padding: 8px; border-radius: 4px; font-size: 11px; max-height: 60px; overflow: hidden; white-space: pre-wrap; word-break: break-all; }

/* Dışa Aktarma — filtre/sütun seçim ızgarası */
.export-subhead { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.export-subhead:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.export-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.export-checkbox-item { display: flex; align-items: center; gap: 8px; padding: 7px 4px; font-size: 13px; color: var(--text-dim); cursor: pointer; border-radius: 6px; transition: background .12s; }
.export-checkbox-item:hover { background: var(--bg-alt); }
.export-checkbox-item input { accent-color: var(--accent); flex-shrink: 0; }
.export-checkbox-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-left: auto; }

/* Admin login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--text); }
.login-box { background: var(--bg-raised); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 44px; border-radius: var(--radius); width: 360px; box-shadow: var(--shadow-md); }
.login-box h2 { margin-bottom: 24px; text-align: center; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 24px; color: var(--text); }

/* Badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; font-family: var(--font-mono); text-transform: uppercase; }
.badge.number { background: #e8f0ff; color: #2a5bd4; }
.badge.text   { background: #f0e8ff; color: #6a24cc; }
.badge.up     { background: #fff8e0; color: #8a5c00; }
.badge.down   { background: #fff0ee; color: var(--accent); }

/* Admin Onay Modalı */
.confirm-modal { display: none; position: fixed; inset: 0; background: rgba(14,17,23,.75); z-index: 9999; align-items: center; justify-content: center; }
.confirm-modal.open { display: flex; }
.confirm-box { background: var(--bg-raised); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 32px; width: 380px; max-width: calc(100vw - 32px); box-shadow: var(--shadow-md); text-align: center; }
.confirm-icon { font-size: 36px; margin-bottom: 12px; }
.confirm-msg { font-size: 15px; color: var(--text); margin-bottom: 24px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }

/* =========================================================
   RESPONSIVE — MOBİL
   ========================================================= */
@media (max-width: 768px) {
    body { overflow-x: hidden; }

    /* Navbar */
    .navbar { padding: 0 18px; height: 56px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }

    /* Container */
    .container { padding: 28px 16px; }

    /* Hero */
    .hero-wrapper { padding: 14px 14px 0; margin-top: 16px; }
    .hero { flex-direction: column; min-height: auto; }
    .hero-inner { padding: 36px 22px 28px; }
    .hero h1 { font-size: clamp(26px, 9vw, 40px); }
    .hero p.lead { font-size: 14px; }
    .hero-actions { gap: 10px; }
    .hero-img-panel { flex: 0 0 200px; clip-path: none; min-height: 200px; overflow: hidden; }
    /* Mobilde 3D transform ve taşma kaldırılır — görsel kutu içinde tam gösterilir */
    .hero-img {
        height: 100%;
        object-fit: contain;
        object-position: center center;
        transform: none;
        filter: none;
    }
    .hero-stats { gap: 18px; padding-top: 18px; }
    .hero-stats .stat-num { font-size: 22px; }

    /* Grid */
    .moto-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    /* Compare seçim */
    .compare-setup { padding: 18px 16px; }
    .slot-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* ── COMPARE TABLOSU MOBİL ──────────────────────── */
    .compare-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Yatay scroll hint */
        background:
            linear-gradient(to right, var(--bg-raised) 30%, transparent),
            linear-gradient(to left,  var(--bg-raised) 30%, transparent) 100%,
            radial-gradient(farthest-side at 0   50%, rgba(0,0,0,.12), transparent),
            radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.12), transparent) 100%;
        background-repeat: no-repeat;
        background-size: 60px 100%, 60px 100%, 20px 100%, 20px 100%;
        background-attachment: local, local, scroll, scroll;
    }
    table.compare-table { min-width: 420px; }

    /* İlk sütun sabit */
    table.compare-table thead th:first-child,
    table.compare-table tbody  td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        box-shadow: 2px 0 6px rgba(0,0,0,.06);
    }
    table.compare-table thead th:first-child { z-index: 4; min-width: 100px; max-width: 110px; padding: 12px 10px; }

    /* Thumbnail küçüt */
    .compare-th-img { width: 44px; height: 44px; border-width: 2px; }
    .compare-th-meta { padding: 8px 10px 12px; }
    .compare-th-meta strong { font-size: 12px; }
    .compare-th-meta small  { font-size: 9px; letter-spacing: 1px; }
    .compare-th-year        { font-size: 9px; }
    .compare-th-img-wrap    { padding-top: 12px; }

    /* Gauge küçüt */
    .gauge { width: 46px; height: 46px; }
    .gauge::before { inset: 5px; }
    .gauge .gauge-label { font-size: 10px; }
    .gauge-raw { font-size: 10px; }

    table.compare-table td  { padding: 12px 10px; }
    .score-pill { font-size: 16px; padding: 5px 12px; }

    /* Kazanan banner */
    .winner-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .winner-banner .wb-score { margin-left: 0; font-size: 24px; }

    /* Motor detay hero */
    .moto-hero-inner { flex-direction: column; gap: 22px; padding: 28px 16px; }
    .moto-hero-img   { flex: none; width: 100%; height: 210px; }
    .spec-highlights { flex-wrap: wrap; }
    .spec-hl-item    { flex: 1 1 30%; }
    .specs-grid      { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
    .equip-grid      { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }

    /* Admin */
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; flex-wrap: wrap; padding: 8px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .admin-sidebar .logo { display: none; }
    .admin-sidebar a { padding: 8px 10px; border-left: none; border-bottom: 2px solid transparent; font-size: 12px; }
    .admin-sidebar a.active { border-left: none; border-bottom-color: var(--accent); }
    .sidebar-group { width: 100%; }
    .sidebar-group summary { padding: 8px 10px; border-left: none; border-bottom: 2px solid transparent; font-size: 12px; }
    .sidebar-group summary.active { border-left: none; border-bottom-color: var(--accent); }
    .sidebar-subgroup { display: flex; flex-wrap: wrap; }
    .sidebar-subgroup a { padding: 8px 10px 8px 20px; }
    .admin-content { padding: 18px 14px; }
    .form-row { flex-direction: column; gap: 0; }
    .admin-topbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .moto-grid  { grid-template-columns: 1fr; }
    .slot-grid  { grid-template-columns: 1fr; }
    table.compare-table { min-width: 340px; }
    table.compare-table thead th:first-child { min-width: 85px; max-width: 95px; font-size: 10px; }
    .hero-wrapper { padding: 10px 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* =========================================================
   MARKA KARUSELİ
   ========================================================= */
.brands-section {
    margin-bottom: 36px;
}
.brands-section-head {
    margin-bottom: 18px;
}
.brands-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text);
}

/* Sarmalayıcı: ok butonları + şerit */
.brand-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Ok butonları */
.carousel-arrow {
    flex-shrink: 0;
    width: 38px; height: 38px;
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
    box-shadow: var(--shadow-sm);
    user-select: none;
}
.carousel-arrow:hover { background: var(--accent); transform: scale(1.08); }

/* Kaydırma şeridi */
.brand-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 2px 12px;
    flex: 1;
    /* Kaydırma çubuğunu gizle */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.brand-carousel::-webkit-scrollbar { display: none; }

/* Marka kartı */
.brand-card {
    flex-shrink: 0;
    width: 140px;
    background: var(--bg-raised);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, transform .18s;
    position: relative;
    overflow: hidden;
}
.brand-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    transition: background .18s;
}
.brand-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 18px rgba(217,58,12,.12);
    transform: translateY(-3px);
}
.brand-card:hover::after { background: var(--accent); }

.brand-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 4px 18px rgba(217,58,12,.15);
}
.brand-card.active::after { background: var(--accent); }

/* Logo kutusu */
.brand-logo-box {
    width: 80px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}
.brand-logo-img {
    max-width: 80px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Logo yoksa baş harf */
.brand-initial {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

/* İsim ve adet */
.brand-card-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}
.brand-card-count {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-faint);
}
.brand-card.active .brand-card-name { color: var(--accent); }

/* Aktif marka başlık animasyonu */
#currentBrandTag { transition: color .2s; }
#currentBrandTitle { transition: opacity .2s; }

/* Mobil */
@media (max-width: 768px) {
    .brand-card { width: 120px; padding: 14px 10px 12px; }
    .brand-logo-box { width: 64px; height: 40px; }
    .brand-logo-img { max-width: 64px; max-height: 40px; }
    .brand-initial { font-size: 22px; }
    .carousel-arrow { width: 32px; height: 32px; font-size: 18px; }
    .brands-title { font-size: 22px; }
}

/* =========================================================
   SAYFALAMA
   ========================================================= */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 8px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.pagination-info {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-faint);
}

.pagination-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1.5px solid var(--line);
    background: var(--bg-raised);
    color: var(--text-dim);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--accent);
    color: var(--accent);
}
.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.page-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.page-btn.page-nav {
    font-size: 18px;
    font-weight: 400;
    min-width: 38px;
}
.page-dots {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-faint);
    padding: 0 2px;
    line-height: 38px;
}

@media (max-width: 480px) {
    .pagination-wrap {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .page-btn { min-width: 34px; height: 34px; font-size: 12px; }
    .page-btn.page-nav { font-size: 16px; }
}

/* =========================================================
   ARAMA ÇUBUĞU
   ========================================================= */
.search-bar-wrap {
    margin-bottom: 24px;
}
.search-bar-inner {
    position: relative;
    max-width: 420px;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 13px;
    color: var(--text-faint);
    pointer-events: none;
    flex-shrink: 0;
}
#motoSearch {
    width: 100%;
    padding: 11px 40px 11px 38px;
    border: 1.5px solid var(--line);
    border-radius: 30px;
    background: var(--bg-raised);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
#motoSearch:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217,58,12,.1);
}
#motoSearch::placeholder { color: var(--text-faint); }
.search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    transition: color .15s, background .15s;
}
.search-clear:hover { color: var(--accent); background: rgba(217,58,12,.08); }

/* =========================================================
   SEÇİLİ KART BADGE
   ========================================================= */
.moto-card.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(217,58,12,.25), var(--shadow-md);
}
.moto-card.is-selected .select-row {
    background: rgba(217,58,12,.06);
    color: var(--accent);
    font-weight: 600;
}
.moto-card.is-selected .select-row input:checked {
    background: var(--accent);
    border-color: var(--accent);
}

/* ── Mobil ── */
@media (max-width: 768px) {
    .search-bar-inner { max-width: 100%; }
    #motoSearch { font-size: 16px; } /* iOS zoom engeli */
}

/* =========================================================
   IMPORT SAYFASI — Drop Zone
   ========================================================= */
.import-drop-zone {
    position: relative;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    background: var(--bg-alt);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.import-drop-zone:hover,
.import-drop-zone.drag-over {
    border-color: var(--accent);
    background: rgba(217,58,12,.04);
}
.import-drop-zone.has-file {
    border-color: #16a34a;
    background: #f0fdf4;
}
.import-drop-icon { font-size: 36px; margin-bottom: 10px; }
.import-drop-text {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}
.import-drop-sub {
    font-size: 13px;
    color: var(--text-faint);
    font-family: var(--font-mono);
}
.import-file-name {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

/* =========================================================
   MOTOZR DÜKKAN — E-Ticaret
   ========================================================= */

/* ── Header: sepet ikonu / rozeti ── */
/* ── Dükkan sayfalarına özel üst menü (sepet erişimi buradan) ── */
.shop-subnav {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.shop-subnav-home { font-family: var(--font-display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); }
.shop-subnav-home:hover { color: var(--accent); }
.shop-subnav-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-subnav-track {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 20px;
    font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.shop-subnav-track:hover { border-color: var(--accent); color: var(--accent); }
.shop-subnav-cart {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 20px;
    font-size: 13px; font-weight: 600; color: var(--text-dim);
}
.shop-subnav-cart:hover { border-color: var(--accent); color: var(--accent); }
.nav-cart-badge {
    position: absolute; top: 2px; right: 0;
    background: var(--accent); color: #fff;
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.mobile-nav-link { position: relative; }

/* ── Ürün kartı (dükkan grid) ── */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 10px; }
.shop-product-card {
    display: flex; flex-direction: column;
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.shop-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.shop-product-img { position: relative; aspect-ratio: 1 / 1; background: var(--bg-alt); overflow: hidden; }
.shop-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-badge-oos {
    position: absolute; top: 10px; left: 10px;
    background: var(--text); color: #fff; font-family: var(--font-mono); font-size: 10px;
    text-transform: uppercase; letter-spacing: 1px; padding: 4px 9px; border-radius: 20px;
}
.shop-product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.shop-product-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); text-transform: uppercase; line-height: 1.25; }
.shop-product-desc { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shop-product-price { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-weight: 700; font-size: 16px; color: var(--accent); }

/* ── Ürün detay sayfası ── */
.shop-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-faint); margin-bottom: 24px; }
.shop-breadcrumb a:hover { color: var(--accent); }
.shop-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; }
.shop-gallery-main { aspect-ratio: 1/1; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.shop-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.shop-gallery-thumb { width: 68px; height: 68px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); background: none; padding: 0; cursor: pointer; flex-shrink: 0; }
.shop-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-gallery-thumb.is-active { border-color: var(--accent); }

.shop-detail-title { font-family: var(--font-display); font-size: 30px; font-weight: 700; text-transform: uppercase; margin: 8px 0 10px; line-height: 1.1; }
.shop-detail-short { color: var(--text-dim); font-size: 15px; margin-bottom: 18px; }
.shop-detail-price { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.shop-stock-ok { color: #16a34a; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.shop-stock-out { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 18px; padding: 12px 16px; background: #fff5f3; border-radius: var(--radius); border: 1px solid #ffc9be; }

.shop-add-form { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.shop-add-form label { font-weight: 600; font-size: 13px; color: var(--text-dim); width: 100%; }
.shop-qty-row { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shop-qty-btn { width: 38px; height: 42px; background: var(--bg-alt); border: none; font-size: 18px; font-weight: 700; color: var(--text-dim); cursor: pointer; }
.shop-qty-btn:hover { background: var(--bg); color: var(--accent); }
.shop-qty-row input { width: 52px; height: 42px; border: none; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield; }
.shop-qty-row input::-webkit-outer-spin-button, .shop-qty-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-add-btn { flex: 1; min-width: 160px; }
.shop-add-msg { width: 100%; font-size: 13px; font-weight: 600; }

.shop-trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--text-dim); }

.shop-section-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; margin-bottom: 18px; }
.shop-detail-desc { margin-top: 48px; }
.shop-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-soft); }

/* ── Sepet / Ödeme ortak layout ── */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }

.cart-row {
    display: grid; grid-template-columns: 72px 1fr auto auto 32px; gap: 16px; align-items: center;
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm);
}
.cart-row-img { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); flex-shrink: 0; }
.cart-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-row-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-row-name { font-weight: 700; font-size: 14.5px; color: var(--text); }
.cart-row-name:hover { color: var(--accent); }
.cart-row-unit-price { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }
.cart-row-qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row-qty .shop-qty-btn { width: 30px; height: 34px; font-size: 15px; }
.cart-row-qty input { width: 42px; height: 34px; border: none; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); text-align: center; font-weight: 700; font-size: 13px; -moz-appearance: textfield; }
.cart-row-qty input::-webkit-outer-spin-button, .cart-row-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-row-total { font-weight: 700; font-family: var(--font-mono); white-space: nowrap; }
.cart-row-remove { width: 28px; height: 28px; border-radius: 50%; border: none; background: none; color: var(--text-faint); font-size: 14px; cursor: pointer; }
.cart-row-remove:hover { color: var(--accent); background: #fff0ee; }

.cart-summary {
    background: var(--bg-raised); border: 1px solid var(--line); border-top: 3px solid var(--accent);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 20px;
}
.cart-summary h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-dim); padding: 6px 0; }
.cart-summary-total { font-size: 17px; font-weight: 700; color: var(--text); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.shop-checkout-btn { display: block; width: 100%; text-align: center; margin-top: 16px; }

/* ── Ödeme sayfası: teslimat/ödeme formu ── */
.checkout-form { gap: 22px; }
.checkout-payment-option {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
    border: 1.5px solid var(--accent); border-radius: var(--radius); background: rgba(217,58,12,.03); cursor: default;
}
.checkout-payment-option input { margin-top: 4px; accent-color: var(--accent); }
.checkout-payment-option p { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }

/* ── Sipariş başarı ── */
.order-success-head { text-align: center; margin-bottom: 36px; }
.order-success-icon {
    width: 64px; height: 64px; border-radius: 50%; background: #16a34a; color: #fff;
    font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.order-bank-box { display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); border-radius: var(--radius); padding: 16px 18px; }
.order-bank-box div { display: flex; justify-content: space-between; font-size: 14px; gap: 12px; flex-wrap: wrap; }
.order-bank-box span { color: var(--text-faint); }
.order-bank-box b { font-family: var(--font-mono); text-align: right; }

.payment-notify-box {
    margin-top: 16px; padding: 14px 16px; background: #fff8e0; border-radius: var(--radius);
    border: 1px solid #f5e0a3;
}
.payment-notify-box p { font-size: 13px; color: #7a5a00; margin-bottom: 10px; }
.payment-notify-box p:last-child { margin-bottom: 0; }

/* ── Sipariş durumu rozetleri ── */
.order-status-badge.status-pending   { background: #fff8e0; color: #8a5c00; }
.order-status-badge.status-confirmed { background: #e8f0ff; color: #2a5bd4; }
.order-status-badge.status-preparing { background: #f0e8ff; color: #6a24cc; }
.order-status-badge.status-shipped   { background: #e0f2fe; color: #0369a1; }
.order-status-badge.status-delivered { background: #dcfce7; color: #15803d; }
.order-status-badge.status-cancelled { background: #fff0ee; color: var(--accent); }

/* ── Sipariş takip adımları ── */
.order-track-steps { display: flex; justify-content: space-between; position: relative; margin-top: 8px; }
.order-track-steps::before { content: ''; position: absolute; top: 8px; left: 20px; right: 20px; height: 2px; background: var(--line); z-index: 0; }
.order-track-step { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.order-track-dot { width: 17px; height: 17px; border-radius: 50%; background: var(--bg-raised); border: 2.5px solid var(--line); }
.order-track-label { font-size: 11px; color: var(--text-faint); font-weight: 600; max-width: 90px; }
.order-track-step.is-done .order-track-dot { background: var(--accent); border-color: var(--accent); }
.order-track-step.is-done .order-track-label { color: var(--text-dim); }
.order-track-step.is-current .order-track-dot { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,58,12,.2); }
.order-track-step.is-current .order-track-label { color: var(--accent); font-weight: 700; }

/* ── Admin: ürün galerisi ── */
.shop-admin-gallery { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.shop-admin-gallery-item { position: relative; width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.shop-admin-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-admin-cover-badge { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 9px; text-align: center; padding: 2px 0; text-transform: uppercase; letter-spacing: 1px; }
.shop-admin-gallery-remove { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; cursor: pointer; line-height: 1; }
.shop-admin-gallery-remove:hover { background: var(--accent); }

/* ── Mobil uyumluluk ── */
@media (max-width: 860px) {
    .shop-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}
@media (max-width: 640px) {
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .shop-product-body { padding: 10px 12px 12px; }
    .shop-product-name { font-size: 14px; }
    .shop-detail-title { font-size: 24px; }
    .shop-detail-price { font-size: 24px; }
    .cart-row { grid-template-columns: 56px 1fr; grid-template-areas: "img info" "qty qty" "total remove"; row-gap: 10px; }
    .cart-row-img { grid-area: img; width: 56px; height: 56px; }
    .cart-row-info { grid-area: info; }
    .cart-row-qty { grid-area: qty; justify-self: start; }
    .cart-row-total { grid-area: total; }
    .cart-row-remove { grid-area: remove; justify-self: end; }
    .shop-add-form { flex-direction: column; align-items: stretch; }
    .shop-qty-row { align-self: flex-start; width: fit-content; }
    .shop-add-btn { width: 100%; }
    .order-track-label { display: none; }
    .order-track-steps::before { left: 8px; right: 8px; }
    .shop-subnav { flex-wrap: wrap; }
}
