/* ============================================================
   Parcam Yedek Parça — marsmotorlari.com.tr esinli kurumsal tema
   Renk paleti: lacivert (#1D1B5E), mor, turuncu, yeşil; açık gri zemin
   ============================================================ */

:root {
    --brand: #1d1b5e;          /* koyu lacivert */
    --brand-2: #211f6d;
    --brand-3: #2c2a86;
    --brand-50: #eef0fb;
    --purple: #7c3aed;
    --orange: #f97316;
    --green: #22c55e;
    --wa-green: #25d366;
    --ink: #1f2430;
    --muted: #6b7280;
    --line: #e6e8ee;
    --page-bg: #f4f4f7;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 30px -14px rgb(23 25 60 / 0.25);
    --shadow-sm: 0 4px 14px -6px rgb(23 25 60 / 0.14);
}

html, body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--page-bg);
}

a { color: var(--brand); }
.text-brand { color: var(--brand); }

/* ============================================================
   Header (iki satır)
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px -8px rgb(23 25 60 / 0.15);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    flex-wrap: wrap;
}

/* Logo: üst satır kırmızı, alt satır lacivert (MARS MOTORLARI tarzı) */
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    margin-right: auto;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e11d48, #7f1d1d);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand-line-a {
    font-weight: 800;
    color: #e11d48;
    letter-spacing: 0.12em;
    font-size: 1.05rem;
}
.brand-line-b {
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

/* Arama çubuğu */
.header-search {
    display: flex;
    flex: 1 1 320px;
    min-width: 240px;
    max-width: 620px;
}
.search-wrap {
    position: relative;
    flex: 1;
}
.search-wrap input {
    width: 100%;
    border: 1px solid transparent;
    background: #f1f2f7;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 0.62rem 1rem;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-wrap input:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-50);
}
.search-btn {
    border: none;
    background: var(--brand);
    color: #fff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0 1.05rem;
    font-size: 1rem;
    transition: background 0.15s ease;
}
.search-btn:hover { background: var(--brand-2); }

.suggest-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.suggest-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
}
.suggest-item:hover { background: var(--brand-50); }
.suggest-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand);
    background: var(--brand-50);
    border-radius: 6px;
    padding: 2px 7px;
    white-space: nowrap;
}

/* Sağ ikonlar */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.header-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}
.header-action:hover { background: var(--brand-50); color: var(--brand); }
.header-action i { font-size: 1.15rem; }
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e11d48;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Menü satırı */
.header-nav-wrap {
    background: #fff;
    border-top: 1px solid var(--line);
}
.header-nav {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.2rem 0 0.6rem;
}
.header-nav.open { display: flex; }
.header-nav-link {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.header-nav-link:hover { color: var(--brand); background: var(--brand-50); }
.header-nav-link.active { color: var(--brand); }

.navbar-toggler { border: 1px solid var(--line); }

/* ============================================================
   Butonlar
   ============================================================ */
.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.15rem;
    transition: background 0.15s ease, transform 0.12s ease;
}
.btn-brand:hover, .btn-brand:focus {
    background: var(--brand-2);
    border-color: var(--brand-2);
    color: #fff;
}
.btn-brand:active { transform: translateY(1px); }
.btn-outline-brand {
    border: 1.5px solid var(--brand);
    color: var(--brand);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.15rem;
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--wa-green);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-wa:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }

/* ============================================================
   Hero & kampanya kartları
   ============================================================ */
.hero-grid { padding-top: 0.25rem; }

.hero-banner {
    position: relative;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 55%, #4532a8 100%);
    color: #fff;
    padding: 2.2rem;
    overflow: hidden;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgb(255 255 255 / 0.12), transparent 45%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 420px; }
.hero-title {
    font-weight: 800;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    letter-spacing: -0.02em;
    line-height: 1.12;
}
.hero-title .text-accent { color: #ffd166; }
.hero-sub {
    color: rgb(255 255 255 / 0.82);
    margin: 0.7rem 0 1.2rem;
    font-size: 0.98rem;
    max-width: 380px;
}
.btn-hero-white {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-hero-white:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--brand); }
.hero-chips { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hero-chip {
    font-size: 0.75rem;
    color: #fff;
    background: rgb(255 255 255 / 0.14);
    border: 1px solid rgb(255 255 255 / 0.25);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    text-decoration: none;
    transition: background 0.15s ease;
}
.hero-chip:hover { background: rgb(255 255 255 / 0.28); color: #fff; }
.hero-img {
    position: absolute;
    right: -1.5rem;
    bottom: 0;
    width: 46%;
    max-width: 340px;
    opacity: 0.92;
    pointer-events: none;
}
.hero-img img { width: 100%; display: block; filter: drop-shadow(0 20px 30px rgb(0 0 0 / 0.3)); }

/* Kampanya kartları */
.promo-card {
    border-radius: var(--radius);
    color: #fff;
    padding: 1.4rem;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.promo-card h3 {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}
.promo-card p { font-size: 0.85rem; margin-bottom: 0.8rem; color: rgb(255 255 255 / 0.85); }
.promo-card .promo-link { color: #fff; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.promo-card .promo-link:hover { text-decoration: underline; }

.promo-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.promo-purple::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.12);
}
.promo-orange { background: linear-gradient(135deg, #ea580c, #f97316); }
.promo-green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.promo-dark { background: linear-gradient(135deg, #23263a, #3a3f5c); }

/* ============================================================
   Bölüm başlıkları
   ============================================================ */
.section-title-line {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
}
.section-title-line::before {
    content: '';
    width: 5px;
    height: 22px;
    border-radius: 999px;
    background: var(--brand);
}
.link-more {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
}
.link-more:hover { text-decoration: underline; }

/* ============================================================
   Ürün kartı
   ============================================================ */
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-img-wrap {
    background: var(--page-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 1rem;
}
.product-img-wrap.big { aspect-ratio: 1 / 1; }
.product-img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-body {
    padding: 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-stock {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.product-stock::before { content: '●'; font-size: 0.7rem; }
.stock-ok { color: var(--green); }
.stock-low { color: #d97706; }
.stock-out { color: #dc2626; }
.product-code { font-weight: 800; color: var(--brand); font-size: 0.9rem; }
.product-name { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.product-name:hover { color: var(--brand); }
.product-meta { color: var(--muted); font-size: 0.8rem; margin: 0.15rem 0 0.5rem; }
.product-price { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.product-price.lg { font-size: 1.35rem; }

.product-buy { margin-top: 0.9rem; }
.product-buy .btn {
    display: block;
    width: 100%;
    border: none;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.8rem;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease;
}
.product-buy .btn:hover { background: var(--brand-2); color: #fff; }
.product-buy .btn:disabled { background: #cbd2e0; cursor: not-allowed; }

/* ============================================================
   Kartlar & formlar (diğer sayfalar)
   ============================================================ */
.card-soft {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.section-title {
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
    color: var(--ink);
    font-size: 0.95rem;
}
.spec-table th,
.crosses-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--brand-50);
}
.spec-table td { font-weight: 600; }
.link-brand { color: var(--brand); text-decoration: none; font-weight: 600; }
.link-brand:hover { text-decoration: underline; }
.cross-link { font-size: 0.92rem; }
.app-item { border-left: 3px solid var(--brand); }

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--line);
    padding: 0.6rem 0.85rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-50);
}

/* Sepet */
.cart-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: var(--page-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    padding: 4px;
}
.qty-input { width: 76px; }

/* ============================================================
   WhatsApp banner
   ============================================================ */
.whatsapp-banner {
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    color: #fff;
    padding: 2rem 2.2rem;
    box-shadow: var(--shadow);
}
.whatsapp-banner h3 { font-weight: 800; font-size: 1.3rem; }
.whatsapp-banner p { color: rgb(255 255 255 / 0.82); margin: 0.3rem 0 0; }

/* ============================================================
   E-bülten
   ============================================================ */
.newsletter {
    border-radius: var(--radius);
    background: linear-gradient(120deg, #f3e8ff, #ede9fe);
    border: 1px solid #e9d5ff;
    padding: 2rem 2.2rem;
}
.newsletter h2 { font-weight: 800; font-size: 1.3rem; color: #4c1d95; }
.newsletter p { color: #6b21a8; margin: 0.25rem 0 0; }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input {
    flex: 1;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
}
.newsletter-form input:focus { outline: 3px solid rgb(124 58 237 / 0.25); }

/* ============================================================
   Durum ekranları
   ============================================================ */
.empty-state { color: var(--muted); }
.icon-circle {
    width: 72px;
    height: 72px;
    margin-inline: auto;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.text-ink { color: var(--ink); }
.chip {
    display: inline-flex;
    align-items: center;
    background: var(--page-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.chip-lg { padding: 0.55rem 1.2rem; font-size: 0.95rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #16182b; color: #c7cad9; }
.footer-brand .brand-line-a { color: #f43f5e; }
.footer-brand .brand-line-b { color: #fff; }
.site-footer h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #c7cad9; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.social-links { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.15s ease;
}
.social-links a:hover { background: var(--brand); }
.footer-bottom {
    border-top: 1px solid rgb(255 255 255 / 0.1);
    padding: 1rem 0;
    font-size: 0.82rem;
    color: #9aa0b5;
}

/* ============================================================
   Admin
   ============================================================ */
.admin-login-bg {
    background: linear-gradient(160deg, var(--brand-50) 0%, #ffffff 100%);
}
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px -8px rgb(23 25 60 / 0.15);
}
.site-nav .navbar-brand { color: var(--brand); font-weight: 800; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .hero-img { opacity: 0.25; }
    .header-top { gap: 0.6rem; }
    .brand { margin-right: 0; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .header-nav { flex-direction: column; padding: 0.2rem 0 0.6rem; }
    .newsletter-form { flex-direction: column; }
    .hero-banner { min-height: 260px; padding: 1.6rem; }
}

@media (min-width: 992px) {
    .navbar-toggler { display: none; }
    .header-nav {
        display: flex;
        flex-direction: row;
        gap: 0.25rem;
        padding: 0.35rem 0;
    }
}

/* ============================================================
   Faz 2: mega menü, hesap paneli, dil/para seçici, canlı arama, liste satırı
   ============================================================ */

/* Mega menü */
.mega-wrap { position: relative; }
.has-mega { display: flex; align-items: center; gap: 0.3rem; }
.mega-chevron { font-size: 0.7rem; transition: transform 0.15s ease; }
.mega-wrap:hover .mega-chevron { transform: rotate(180deg); }
.mega-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 640px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.6rem;
    z-index: 1060;
}
.mega-wrap:hover .mega-panel, .mega-wrap:focus-within .mega-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.1rem;
}
.mega-wrap:hover .mega-link-all { grid-column: 1 / -1; }
@media (max-width: 1199.98px) {
    .mega-panel { width: 480px; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
    .mega-panel {
        position: static;
        width: 100%;
        display: block;
        grid-template-columns: 1fr;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        padding-top: 0.15rem;
    }
    .mega-wrap:hover .mega-panel { display: block; }
    .mega-link-all { grid-column: auto; }
}
.mega-link {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.mega-link:hover { background: var(--brand-50); color: var(--brand); }
.mega-link-all { font-weight: 700; color: var(--brand); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 0.25rem; padding-top: 0.6rem; }

/* Hesap paneli */
.acc-wrap { position: relative; }
.acc-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    z-index: 1060;
}
.acc-wrap:hover .acc-panel, .acc-wrap:focus-within .acc-panel { display: block; }
.acc-link {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.88rem;
}
.acc-link:hover { background: var(--brand-50); color: var(--brand); }

/* Dil / para birimi seçici (modern dropdown) */
.pref-bar { display: flex; align-items: center; gap: 0.5rem; }
.pref-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--page-bg);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.pref-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.pref-btn-label { text-transform: uppercase; letter-spacing: 0.02em; }
.pref-menu {
    min-width: 150px;
    border-radius: 12px;
    padding: 0.4rem;
    border: 1px solid var(--line);
}
.pref-menu .dropdown-item { border-radius: 8px; font-size: 0.88rem; padding: 0.45rem 0.7rem; color: var(--ink); }
.pref-menu .dropdown-item.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.flag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 18px;
    background: var(--brand);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    border-radius: 4px;
    margin-right: 0.35rem;
}

/* Kategori ağacı (kategori sayfası sol kenar) */
.cat-tree { list-style: none; margin: 0; padding: 0; }
.cat-tree > li { margin-bottom: 0.15rem; }
.cat-tree ul { list-style: none; padding-left: 0.85rem; margin: 0.15rem 0 0.4rem; }
.cat-tree-sub { display: none; }
.cat-tree-sub.open { display: block; }
.cat-tree-link {
    display: block;
    padding: 0.32rem 0.55rem;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    flex: 1;
}
.cat-tree-link:hover { background: var(--brand-50); color: var(--brand); }
.cat-tree-link.active { background: var(--brand); color: #fff; font-weight: 600; }
.cat-tree-sub .cat-tree-link { font-size: 0.83rem; font-weight: 400; }
.cat-toggle {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
}
.cat-toggle:hover { background: var(--brand-50); color: var(--brand); }
.cat-toggle i { transition: transform 0.15s ease; display: inline-block; }
.cat-toggle.open i { transform: rotate(180deg); }

/* Liste/ızgara görünüm seçici */
.view-toggle .btn { border-radius: 8px !important; }

/* Ürün galerisi küçük resimleri */
.gallery-thumbs { background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.g-thumb {
    width: 60px;
    height: 60px;
    padding: 3px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.g-thumb img { width: 100%; height: 100%; object-fit: contain; }
.g-thumb:hover { border-color: var(--brand); }
.g-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }

/* Anasayfa canlı arama sonuçları */
.live-search-box { position: relative; }
.live-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.live-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0.9rem;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--surface);
}
.live-item:hover { background: var(--brand-50); }
.live-item img { width: 42px; height: 42px; object-fit: contain; background: var(--page-bg); border-radius: 8px; padding: 3px; }
.live-item .li-code { font-weight: 700; color: var(--brand); font-size: 0.8rem; }
.live-item .li-name { font-size: 0.85rem; }
.live-item .li-price { margin-left: auto; font-weight: 800; color: var(--ink); white-space: nowrap; font-size: 0.9rem; }
.live-all {
    display: block;
    text-align: center;
    padding: 0.6rem;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.88rem;
}
.live-all:hover { background: var(--brand-50); }

/* Liste görünümü ürün satırı */
.product-row {
    display: flex;
    flex-direction: row; /* Bootstrap .card'ın column yönünü ez */
    align-items: center;
    gap: 1.1rem;
    padding: 0.9rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease;
}
.product-row:hover { box-shadow: var(--shadow); }
.row-img { flex: 0 0 110px; height: 90px; background: var(--page-bg); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.row-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.row-body { flex: 1; min-width: 0; }
.row-buy { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }

@media (max-width: 575.98px) {
    .product-row { flex-wrap: wrap; }
    .row-img { flex-basis: 80px; height: 70px; }
    .row-buy { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
    .mega-panel, .acc-panel { position: static; box-shadow: none; border: none; padding-left: 1rem; }
    .pref-bar { width: 100%; justify-content: flex-start; flex-wrap: wrap; padding: 0.4rem 0; }
}


/* Mega Menü Başlık Alanı - Tüm grid sütunlarını (3 sütun) kaplaması için */
.mega-header {
    grid-column: 1 / -1; /* En önemli kısım: Tam satırı kapla */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.85rem 1rem 0.85rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.5rem;
}

.mega-title {
    font-weight: 800;
    color: var(--ink);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.mega-view-all {
    font-size: 0.85rem;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.mega-view-all:hover {
    color: var(--brand-2);
    text-decoration: underline;
}

/* Profesyonel Araç Bulucu Banner Stilleri */
.vehicle-finder-banner {
    background: linear-gradient(135deg, #0d233a 0%, #0b5ed7 50%, #38bdf8 100%);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(11, 94, 215, 0.15);
    position: relative;
}

.vehicle-finder-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.vehicle-hero-img {
    max-height: 210px; /* Görsel büyütülerek alan dolduruldu */
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

.vehicle-hero-img:hover {
    transform: scale(1.02);
}

.custom-select-box {
    border: 1px solid #dee2e6;
    border-radius: 0.6rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}

.custom-select-box:focus {
    border-color: #0b5ed7;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
    background-color: #fff;
}