@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

body {
    font-family: "Nunito", sans-serif; 
    font-weight: 400; 
    font-style: normal; 
    padding-top: 0px;
    background-color: #f8f9fa;
    margin: 0px;
}

a { 
    text-decoration: none !important; 
    color: #383e42; 
    transition-duration: 0.4s; 
}
a:link {
    text-decoration: none;
}

/* Sayfa Karartma Perdesi */
#backdrop-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#backdrop-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   MASAÜSTÜ LOGO STİLLERİ (992px ve üzeri ekranlarda geçerli)
   ========================================================================== */
@media (min-width: 992px) {
    .desktop-logo-img {
        width: 280px !important;        /* Masaüstü logo genişliği */
        max-height: 80px !important;    /* Masaüstü logo maksimum yüksekliği */
        margin-top: 0px !important;     /* Masaüstü logo üst boşluğu */
        object-fit: contain !important;
    }
}

/* ==========================================================================
   MOBİL LOGO STİLLERİ VE ORTALAMA (991px ve altı ekranlarda geçerli)
   ========================================================================== */
@media (max-width: 991px) {
    .mobile-logo-wrapper {
        position: absolute !important;
        left: 47% !important;
        transform: translateX(-50%) !important;
        display: inline-block !important;
        line-height: 0 !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-logo-img {
        width: auto !important;
        height: auto !important;
        max-height: 70px !important;  /* Mobil logo maksimum yüksekliği */
        margin-top: 0px !important;   /* Mobil logo üst boşluğu */
        object-fit: contain !important;
    }
}

/* ==========================================================================
   KÜÇÜK TELEFONLAR İÇİN ÖZEL STİLLER (576px ve altı çok küçük ekranlar)
   ========================================================================== */
@media (max-width: 576px) {
    .mobile-logo-wrapper {
        left: 46% !important; 
    }

    .mobile-logo-img {
        max-height: 62px !important;  /* Küçük ekranlarda logonun taşmaması için yükseklik ayarı */
        margin-top: -6px !important;   /* Küçük ekranlar için üst boşluk */
    }
} 

@media (max-width: 330px) {
    .mobile-logo-wrapper {
        left: 46% !important; 
    }

    .mobile-logo-img {
        max-height: 50px !important;  /* Küçük ekranlarda logonun taşmaması için yükseklik ayarı */
        margin-top: -8px !important;   /* Küçük ekranlar için üst boşluk */
    }
}   

@media (max-width: 280px) {
    .mobile-logo-wrapper {
        left: 46% !important; 
    }

    .mobile-logo-img {
        max-height: 44px !important;  /* Küçük ekranlarda logonun taşmaması için yükseklik ayarı */
        margin-top: -6px !important;   /* Küçük ekranlar için üst boşluk */
    }
}

/* Arama Kutusu Temel Ayarı (Mobil ve küçük ekranlar için) */
.ozel-arama-alani .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 550px;
    margin-left: 0; /* Mobilde sola/ortaya yaslı */
}

.search-input {
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 8px 15px;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.search-btn {
	margin-left:4px;
    background-color: #ffffff;
    color: #198754;
    border: 1px solid #198754;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #198754;
    color: #ffffff;
}

/* ==========================================
   ÇÖZÜNÜRLÜĞE GÖRE MARGIN-LEFT (LEFT) AYARLARI
========================================== */

/* 1. Tabletler ve Küçük Ekranlar (992px altı) */
@media (max-width: 991px) {
    .ozel-arama-alani .search-box {
        margin-left: 0 !important;
        margin-right: auto;
    }
}

/* 2. 1024px Laptop ekranları (992px - 1199px arası) */
@media (min-width: 992px) and (max-width: 1199px) {
    .ozel-arama-alani .search-box {
        margin-left: 50px; 
    }
}

/* 3. 17 inç ve 19 inç Ekranlar (1200px - 1439px arası) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .ozel-arama-alani .search-box {
        margin-left: 110px; 
    }
}


/* Kompakt Sepet İkonu */
.cart-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #dc3545;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    text-decoration: none;
    color: #dc3545;
    font-size: 18px;
    transition: all 0.2s ease;
}

.cart-wrapper:hover {
    background-color: #6cd900;
    color: #ffffff;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #343a40;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Sol Kategori Menüsü (Yükseklik 400px ve dikeyde esnek) */
.category-menu-wrapper {
    position: relative;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.05);
    height: 400px; /* Slayt ile tam eşit yükseklik */
    overflow-y: auto;
}

.category-menu-wrapper::-webkit-scrollbar {
    width: 5px;
}
.category-menu-wrapper::-webkit-scrollbar-thumb {
    background: #cccccc;
}

.category-list {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.category-item {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

/* Kategori linklerinin dikey boşlukları */
.category-link {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 15px; /* Dikey yüksekliği artırmak için padding */
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 1;
    transition: color 0.2s ease-in-out;
}

.category-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0px;
    width: 100%;
    height: 0px;
    background-color: #000000;
    z-index: -1;
    transition: height 0.25s ease-in-out, top 0.25s ease-in-out;
}

.category-item:hover > .category-link::before {
    top: 0px;
    height: 100%;
}

.category-item:hover > .category-link {
    color: #ffffff !important;
}

/* Carousel Görsel Yüksekliği */
.carousel-inner img {
    height: 400px;
    object-fit: cover;
}

/* Mobil Menü ve Sağ Sepet Offcanvas */
@media (max-width: 991px) {
    .category-menu-wrapper {
        position: fixed;
        top: 0px;
        left: -300px;
        width: 280px;
        height: 100%;
        max-height: 100% !important;
        z-index: 1050;
        transition: left 0.3s ease-in-out;
        box-shadow: 5px 0px 15px rgba(0,0,0,0.2);
    }
    .category-menu-wrapper.mobile-open {
        left: 0px;
    }

    #carouselCol {
        margin-top: 25px !important;
    }
}

/* Masaüstü and Mobil Ana İçerik Boşlukları */
.main-content-container {
    max-width: 1320px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-top: 10px !important;
}

@media (max-width: 991px) {
    .main-content-container {
        margin-top: -18px !important;
    }
}