﻿/* Palet */
:root {
    --card-radius:.85rem;
    --surface:#fff;
    --border:#e7e9ee;
    --muted:#6c757d;
    --brand:#0d6efd;
}

/* Bölüm başlığı satırı (ikon + başlık + sağda ok) */
.section-row {
    background: #f1f3f7;
    border: 1px solid var(--border);
    border-radius: .65rem;
    padding: .55rem .6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    user-select: none;
}

/* Küçük yeşil toggle butonu */
.mini-toggle {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: .45rem;
    background: #0ba158;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .mini-toggle svg {
        width: 14px;
        height: 14px;
        transition: transform .2s ease;
    }

    .mini-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

/* İçteki kart görünümü */
.range-wrap {
    background: linear-gradient(180deg,#fff,#fafbfe);
    border: 1px solid var(--border);
    border-radius: .75rem;
    padding: .9rem 1rem;
}

/* Yardımcı metin ve alt etiketler */
.small.text-muted {
    color: var(--muted) !important;
}

.range-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .9rem;
}

/* Slider (Bootstrap form-range üzerine ufak dokunuş) */
input.form-range {
    height: .5rem;
}

    input.form-range::-webkit-slider-thumb {
        background: var(--brand);
    }

    input.form-range::-moz-range-thumb {
        background: var(--brand);
    }

/* Bölüm dış boşluk */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-2 {
    margin-top: .5rem !important;
}

/* İkon hizası */
.section-row img {
    vertical-align: -3px;
}

/* ListView İçindeki KM Yeşil olan */
.proximity-pill {
    background: #e8fff3;
    color: #0f5132;
    border: 1px solid #b7f0d0;
    font-weight: 700;
    padding: .25rem .5rem;
    border-radius: .5rem;
    width: 100px;
}

    .proximity-pill img {
        height: 18px;
        margin-right: .25rem;
        vertical-align: -3px;
    }

/* GEÇİCİ TEŞHİS: taşıyan eleman kırmızı çerçeveyle görünür */
/*@media (max-width: 768px){
  body * { outline: 1px solid rgba(255,0,0,.25); }
}*/



/* =========================================
   GLOBAL OVERFLOW-FIX (DENGELİ SÜRÜM) BAŞLANGIÇ 06-10-2025 de eklendi: Neden: Mobilede Tasarımda sağdan kaymo oluyordu. Düzeldi.
   ========================================= */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

/* Genel taşma ve scrollbar telafisi düzeltme */
body {
    position: relative;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* --- SADECE MOBİLDE overflow fix aktif --- */
@media (max-width: 991.98px) {

    /* Mobilde taşma kaynaklarını tamamen kapat */
    html, body, .main, .container, .row, .header, footer, section {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    /* Mobilde row marjinlerini sıfırla */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Container'lar tam genişlikte olsun */
    .container, .section-box, .main {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* --- MASAÜSTÜ için normal boşluklar korunur --- */
@media (min-width: 992px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 1320px; /* Bootstrap 5 default */
    }
}

/* Sticky header durumuna özel düzeltme */
.header.sticky-bar.sticky {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* Offcanvas ve preloader güvenliği */
.offcanvas, #preloader-active {
    max-width: 100%;
    overflow-x: hidden;
}

/* =========================================
   GLOBAL OVERFLOW-FIX (DENGELİ SÜRÜM) BİTİŞ 06-10-2025 de eklendi: Neden: Mobilede Tasarımda sağdan kaymo oluyordu. Düzeldi.
   ========================================= */

/* === Modern Arama Çubuğu - Görseldeki ile bire bir === */
#navSearch {
    position: relative;
    width: 100%;
    max-width: 720px;
    border: 1px solid #e7ebee;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
}

    /* Input alanı */
    #navSearch .form-control {
        border: none;
        background: transparent;
        height: 48px;
        padding: 0 20px 0 45px;
        font-size: 16px;
        font-weight: 600;
        color: #2f2f2f;
        box-shadow: none;
        outline: none;
    }

        #navSearch .form-control::placeholder {
            color: #8a939b;
            font-weight: 500;
        }

    /* Sağdaki "Ara" butonu */
    #navSearch .btn {
        height: 48px;
        background-color: #198754;
        color: #fff;
        font-weight: 800;
        border: none;
        border-radius: 0;
        padding: 0 24px;
        cursor: pointer;
        transition: filter 0.2s ease, box-shadow 0.2s ease;
    }

        #navSearch .btn:hover {
            filter: brightness(0.95);
            box-shadow: 0 4px 10px rgba(25, 135, 84, 0.25);
        }

    /* Soltaki büyüteç ikonu (saf CSS) */
    #navSearch::before {
        content: '';
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        background-repeat: no-repeat;
        background-size: contain;
        opacity: 0.55;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%238b9299' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    }

    /* Focus efekti: kutunun tamamı vurgulanır */
    #navSearch:focus-within {
        border-color: #d9e2e6;
        box-shadow: 0 4px 12px rgba(25, 135, 84, 0.18);
    }

/* Genel hizalama (header uyumu) */
.header .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 991.98px) {
    #navSearch {
        display: none;
    }
}

.cursor-pointer {
    cursor: pointer;
}

/* ===== Masaüstü arama çubuğu (mobilde zaten gizli) ===== */
#navSearch {
    position: relative;
    width: 100%;
    max-width: 720px;
    border: 1px solid #e7ebee;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,.05);
    overflow: hidden;
    display: flex;
    align-items: center;
}

    #navSearch .form-control {
        border: 0;
        box-shadow: none;
        outline: 0;
        background: transparent;
        height: 46px;
        padding: 0 22px 0 46px;
        font-size: 16px;
        font-weight: 600;
        color: #2f2f2f;
    }

        #navSearch .form-control::placeholder {
            color: #8a939b;
            font-weight: 500;
        }

    #navSearch .btn {
        height: 46px;
        padding: 0 22px;
        border: 0;
        border-radius: 0;
        background: #198754;
        color: #fff;
        font-weight: 800;
    }

    #navSearch::before {
        content: '';
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        opacity: .55;
        background-size: contain;
        background-repeat: no-repeat;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%238b9299' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    }

/* ===== Sağdaki küçük ikon butonları (çerçevesiz, sade) ===== */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    transition: background-color .15s ease, transform .1s ease;
    cursor: pointer;
}

    .icon-btn:hover {
        background: #f6f7f9;
    }

    .icon-btn:active {
        transform: scale(.98);
    }

/* ===== Header yükseklik: utilities ile ayarlı (py-1 / py-xl-2) ===== */
/* Yalnız mobilde logoyu biraz küçültelim ki yükseklik kompakt kalsın */
@media (max-width: 991.98px) {
    .header-logo img {
        height: 46px;
    }
    /* mobil logo */
    .header-right {
        gap: -20px;
        margin-right: -30px;
    }
    /* ikonlar biraz sağda */
}

/* ===== Mobil arama modalı ===== */
.search-modal-content {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    border: 0;
}

.search-modal-box {
    position: relative;
    width: min(680px, 92vw);
    background: #fff;
    border: 1px solid #e7ebee;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    padding: 8px 12px;
}

.search-modal-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .6;
    display: flex;
    align-items: center;
}

.search-modal-input {
    width: 100%;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 110px 0 46px;
    font-size: 16px;
    font-weight: 600;
    color: #2f2f2f;
}

    .search-modal-input::placeholder {
        color: #8a939b;
        font-weight: 500;
    }

.search-modal-submit {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    background: #198754;
    color: #fff;
    font-weight: 700;
}

.search-modal-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    border: 1px solid #e6eaee;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
/* Masaüstünde modal genişliği daha dar olsun (isteğe bağlı) */
@media (min-width: 992px) {
    #searchModal .modal-dialog {
        max-width: 760px;
    }
}

/* ==== Giriş Yap (Hesap) Butonu ==== */
.btn-account {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    border-radius: 50px;
    height: 48px;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 14px rgba(103, 58, 183, 0.3);
    overflow: hidden;
}

    /* Hover animasyonu: parlama efekti */
    .btn-account::before {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: rgba(255, 255, 255, 0.25);
        transform: skewX(-25deg);
        transition: left 0.6s ease;
    }

    .btn-account:hover::before {
        left: 125%;
    }

    .btn-account:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 117, 252, 0.4);
    }

    /* Dokunmatik cihazlarda tıklama efekti */
    .btn-account:active {
        transform: scale(0.98);
    }

/* Mobilde biraz daha küçük */
@media (max-width: 575.98px) {
    .btn-account {
        height: 44px;
        font-size: 15px;
    }
}


/* Mobil filtre paneli (tam ekran, gölgesiz, taşma yok) */
@media (max-width: 991.98px) {
    .filters-panel {
        position: fixed;
        inset: 0; /* tam ekran */
        left: 0 !important;
        right: 0 !important;
        width: 100vw; /* viewport genişliği */
        max-width: 100vw;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 56px 16px 16px; /* üstte X için alan bırak */
        background: #fff;
        border-radius: 0;
        transform: translateX(100%); /* kapalı */
        transition: transform .28s ease;
        z-index: 1085;
        overflow-y: auto;
        overflow-x: hidden; /* yatay taşma kapalı */
        box-shadow: none; /* gölge/karartı yok */
    }

        /* İç kapsayıcıların kenar boşluklarını sıfırla; genişlik tam olsun */
        .filters-panel .sidebar-shadow,
        .filters-panel .sidebar-filters,
        .filters-panel .filter-block {
            width: 100%;
            max-width: 100%;
            margin: 0;
            border-radius: 0;
            box-shadow: none;
        }

    /* Açık durum */
    #mobileFilters:target {
        transform: translateX(0);
    }

    /* Sağ üst kapat (iOS çentiğe uygun) */
    .filters-close {
        position: fixed;
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 12px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #e6eaee;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1090;
        box-shadow: none; /* gölge yok */
    }

    /* Body yatay kaymayı tamamen kapat */
    html, body {
        overflow-x: hidden !important;
    }
}

/* Masaüstü: normal sidebar */
@media (min-width: 992px) {
    .filters-panel {
        position: static;
        transform: none;
        background: transparent;
        padding: 0;
        margin: 0;
        box-shadow: none;
        width: auto;
        max-width: none;
    }

    .filters-close {
        display: none;
    }
}




.modern-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    border-radius: 999px;
    background: #ffffff;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    animation: googleShadow 6s linear infinite;
}

    /* Akan border */
    .modern-menu-btn::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: linear-gradient( 120deg, #4285F4, #34A853, #FBBC05, #EA4335, #4285F4 );
        background-size: 300% 300%;
        animation: googleBorder 6s linear infinite;
        border-radius: inherit;
        z-index: -2;
    }

    /* İç katman */
    .modern-menu-btn::after {
        content: "";
        position: absolute;
        inset: 2px;
        background: #ffffff;
        border-radius: inherit;
        z-index: -1;
    }

    /* === YAZI GRADIENT AKIŞI === */
    .modern-menu-btn .btn-text {
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0.2px;
        background: linear-gradient( 120deg, #4285F4, #34A853, #FBBC05, #EA4335, #4285F4 );
        background-size: 300% 300%;
        animation: googleBorder 6s linear infinite;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* SVG – kaybolmaz, akış hissi var */
    .modern-menu-btn img {
        width: 22px !important;
        height: auto;
        flex-shrink: 0;
        filter: hue-rotate(0deg) drop-shadow(0 0 2px rgba(0,0,0,0.2));
        animation: svgHueFlow 6s linear infinite;
    }

/* === ANİMASYONLAR === */
@keyframes googleBorder {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

@keyframes googleShadow {
    0% {
        box-shadow: 0 4px 12px rgba(66,133,244,0.25), 0 0 20px rgba(234,67,53,0.18);
    }

    50% {
        box-shadow: 0 6px 18px rgba(52,168,83,0.35), 0 0 28px rgba(251,188,5,0.25);
    }

    100% {
        box-shadow: 0 4px 12px rgba(66,133,244,0.25), 0 0 20px rgba(234,67,53,0.18);
    }
}

@keyframes svgHueFlow {
    from {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(360deg);
    }
}


/* UrunDetay sayfası için modern text - Başlangıç */
.sidebar-item-modern {
    display: flex;
    align-items: center; /* ikon + yazı dikey ortalı */
    gap: 10px; /* ikon - metin boşluğu */
    padding: 6px 2px;
}

    .sidebar-item-modern img {
        width: 34px !important;
        height: auto;
        transform: translateY(1px);
    }

    .sidebar-item-modern .text {
        font-size: 1.05rem;
        font-weight: 600;
        color: #bfc8cc; /* soft dijital gri */
        letter-spacing: 0.2px;
    }
/* UrunDetay sayfası için modern text - Bitiş */

/* Konum Kapat Butonu Style - Başlangıç */
/* Konumu kapat toggle satırı */
.loc-toggle-row {
    display: none; /* GPS açılınca JS ile flex yapılacak */
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
    font-size: 0.9rem;
    color: #111827;
}

    .loc-toggle-row .form-switch {
        padding-left: 0;
    }

    .loc-toggle-row .form-check-input {
        cursor: pointer;
    }

    .loc-toggle-row .form-check-label {
        cursor: pointer;
        font-weight: 500;
    }

/* Konum Kapat Butonu Style - Bitiş */

