﻿
:root {
    --antrasit: #2C3E50;
    --turuncu: #F96302;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* --- ORİJİNAL BİLGİSAYAR TASARIMI ELEMENTLERİ --- */
.header-search-input {
    border: 2px solid #f1f1f1 !important;
    background-color: #f8f9fa !important;
    border-radius: 50px !important;
    padding: 12px 50px 12px 25px !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: var(--antrasit);
}

    .header-search-input:focus {
        background-color: #fff !important;
        border-color: var(--turuncu) !important;
        box-shadow: 0 8px 20px rgba(249, 99, 2, 0.15) !important;
        outline: none;
    }

.header-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--turuncu) !important;
    color: white !important;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.auth-link-minimal {
    text-decoration: none !important;
    color: var(--antrasit) !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.auth-orange-icon {
    color: var(--turuncu);
    margin-right: 4px;
}

.profile-avatar-circle {
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 991.98px) {
    .navbar-container-custom {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-action-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .auth-text, .profile-name-text, .desktop-only-text {
        display: none !important;
    }
}


header {
    position: sticky;
    top: 0;
    z-index: 1030; /* Bootstrap'in default navbar z-index'i */
}

.navbar {
    /* Mevcut sticky-top sınıfını garantiye alıyoruz */
    /*position: fixed !important;*/
    position: sticky !important;
    top: 0;
    background-color: white !important; /* Arka planın saydam kalmaması için */
}

/* Mobil görünümde arama çubuğu ve menü de dahil tüm header'ın yapışık kalması için */
@media (max-width: 991.98px) {
    header {
        position: sticky;
        top: 0;
        z-index: 1050;
    }
}


.search-results-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 10px;
    display: none; /* Başlangıçta gizli */
    z-index: 2000;
    overflow: hidden;
    border: 1px solid #eee;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--antrasit);
    transition: background 0.2s;
    border-bottom: 1px solid #f8f9fa;
}

    .search-result-item:hover {
        background-color: #fff5ef;
        color: var(--turuncu);
    }

    .search-result-item img {
        width: 45px;
        height: 45px;
        object-fit: cover;
        border-radius: 8px;
        margin-right: 15px;
    }

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
}

.search-result-price {
    font-size: 12px;
    color: var(--turuncu);
    font-weight: 700;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none !important;
    color: var(--antrasit);
    transition: all 0.25s ease-in-out;
    border-bottom: 1px solid #f1f1f1;
}

    .search-result-item:hover {
        background-color: #fff9f5; /* Çok hafif turuncu-beyaz karışımı */
        padding-left: 20px; /* Sağa kayma efekti */
    }

        .search-result-item:hover .search-result-name {
            color: var(--turuncu);
        }

        .search-result-item:hover .search-go-icon {
            opacity: 1 !important;
            color: var(--turuncu);
            transform: translateX(5px);
        }

.search-go-icon {
    transition: all 0.25s ease;
    font-size: 0.8rem;
}

/* Panel için yuvarlatılmış köşeleri ve gölgeyi güçlendirelim */
.search-results-panel {
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}





/*Sepet Özeti*/
/* MINI CART DRAWER STYLES */
/* 1. ANA DRAWER YAPISI */
.mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh; /* Ekranın tam boyu */
    background: #fff;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* KRİTİK AYARLAR: Butonları sabitlemek için flex kullanıyoruz */
    display: flex;
    flex-direction: column;
}

    .mini-cart-drawer.active {
        right: 0;
    }

/* 2. BAŞLIK KISMI (SABİT) */
.mini-cart-header {
    flex-shrink: 0; /* Boyutunun küçülmesini engeller */
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* 3. ÜRÜN LİSTESİ (KAYDIRILABİLİR ALAN) */
.mini-cart-content {
    flex-grow: 1; /* Kalan tüm boşluğu bu alan doldurur */
    overflow-y: auto; /* Ürün çoksa dikey kaydırma açar */
    overflow-x: hidden;
    padding: 20px;
    /* Şık bir kaydırma çubuğu (scrollbar) */
    scrollbar-width: thin;
    scrollbar-color: var(--marka-turuncu) #f1f1f1;
}

    /* Chrome ve Safari için Scrollbar şıklığı */
    .mini-cart-content::-webkit-scrollbar {
        width: 5px;
    }

    .mini-cart-content::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .mini-cart-content::-webkit-scrollbar-thumb {
        background: var(--marka-turuncu);
        border-radius: 10px;
    }

/* 4. FOOTER KISMI (HER ZAMAN EN ALTTA SABİT) */
.mini-cart-footer {
    flex-shrink: 0; /* Boyutunun değişmesini engeller */
    background: #fff;
    border-top: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.03); /* Üste hafif gölge verir ki ayrışsın */
    position: relative;
}

/* 5. DİĞER YARDIMCI STİLLER (Senin mevcut yapın) */
.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44, 62, 80, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

    .mini-cart-overlay.active {
        display: block;
        opacity: 1;
    }

.btn-close-cart {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--antrasit);
    transition: 0.3s;
}

    .btn-close-cart:hover {
        color: var(--marka-turuncu);
        transform: rotate(90deg);
    }

.btn-turuncu-ral {
    background-color: var(--marka-turuncu);
    color: white !important;
    border: none;
}

.btn-outline-antrasit {
    border: 2px solid var(--antrasit);
    color: var(--antrasit);
    background: transparent;
}

    .btn-outline-antrasit:hover {
        background: var(--antrasit);
        color: white;
    }

.mini-cart-item .text-danger {
    transition: all 0.2s ease;
    opacity: 0.6;
}

.mini-cart-item:hover .text-danger {
    opacity: 1;
    transform: scale(1.1);
}

.item-img {
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}



@media (max-width: 576px) {
    .mini-cart-drawer {
        width: 100%;
        right: -100%;
    }
}





