/* Flexbox layout for sticky footer */
#footer-bottom {

    bottom: 0;
    width: 100%;
}

#header {
    /*position: fixed;*/
    top: 9vh;
    left: 0;
    width: 100%;
    background-color: #f3f2ec;
    z-index: 1000; /* Diğer öğelerin üzerinde görünmesini sağlar */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Menü altına hafif gölge ekler */
    transition: top 0.3s ease-in-out;

}

/*.body-2 {*/
/*    padding-top: 11vh; !* Menü sabitlendiğinde içerik altına kaymasın diye üstten biraz boşluk bırakılır *!*/
/*}*/

/* Hamburger menü stil */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobil açılır menü */
.mobile-dropdown {
    display: none;
    position: absolute;
    right: 0;

    border-radius: 5px;
    z-index: 1000;
}

.mobile-dropdown li {
    list-style: none;
}

.mobile-dropdown li a, .logout-btn {
    display: block;
    text-decoration: none;
    color: #333;

    width: 100%;
    text-align: left;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin: 0;
    height: 54px;
    padding-top: 0;
    padding-left: 20px;
}

button > svg {
    width: 15px;
}

/* Mobilde hamburger görünür olsun */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .menu-list {
        display: none;
    }
}

/* Yatay kaydırmayı engelle */
body, html {
    overflow-x: hidden; /* Yatay kaydırmayı engeller */
}

/* Dikey kaydırma için özel stil */
body {
    overflow-y: scroll; /* Dikey kaydırma her zaman aktif olacak */
}

/* Özel kaydırma çubuğu */
::-webkit-scrollbar {
    width: 10px; /* Kaydırma çubuğunun genişliği */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Kaydırma çubuğunun arka planı */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888; /* Kaydırma çubuğunun rengi */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* Kaydırma çubuğunun üzerine gelindiğinde rengi değişir */
}

body, * {
    font-family: 'Poppins', sans-serif !important;
    color: #333;
    line-height: 1.6;
}

/* Mobil Menüde Alt Menü */
.menu-item.has-sub > a::after {
    font-size: 12px;
    margin-left: 5px;
}


.menu-item ul {
    display: none; /* Başlangıçta gizli */
    position: absolute;
    background-color: #ffffff; /* Arka plan rengini beyaz yap */
    padding: 10px 15px; /* İçerik etrafında boşluk */
    border-radius: 8px; /* Köşeleri yuvarlat */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Daha belirgin gölge */
    z-index: 1000;
    min-width: 250px; /* Minimum genişlik artırıldı */
}

.menu-item:hover > ul {
    display: block; /* Üzerine gelindiğinde göster */
}

.menu-item ul li {
    list-style: none;
    margin: 5px 0;
}

.menu-item ul li a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px; /* Daha fazla iç boşluk */
    display: block;
    transition: background-color 0.3s ease; /* Geçiş efekti */
}

.menu-item ul li a:hover {
    background-color: #f0f0f0; /* Üzerine gelindiğinde arka plan rengi */
}

/* Menüden açıldığını belirtmek için */
.menu-item:hover > a {
    background-color: #e0e0e0; /* Menü öğesi üzerine gelindiğinde arka plan rengi */
    border-radius: 8px; /* Köşeleri yuvarlat */
}

/* Mobilde alt menü */
@media (max-width: 768px) {
    .menu-item ul {
        position: static;
        box-shadow: none;
        background-color: transparent; /* Mobilde arka planı şeffaf yap */
    }
}

@media (max-width: 768px) {
    .right-element {
        display: none;

    }

}

/* Başlıklar için stil */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #222;
}

/* Menü stil ayarları */
.menu-item a {
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
}



/* Alt menü stil ayarları */
.menu-item ul {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.menu-item ul li a {
    color: #444;
}

.discount-label {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    background-color: rgba(255, 0, 0, 0.7); /* Kırmızı arka plan */
    color: white; /* Beyaz yazı rengi */
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.custom-cart-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 5px 0;
}

.custom-form-group {
    display: flex;
    align-items: center;
}

.custom-form-control {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    width: 80px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.custom-form-control:focus {
    border-color: #007bff;
    outline: none;
}

.custom-btn-primary {
    background-color: #007bff;
    height: 38px;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0;
    transition: background-color 0.3s ease;
}

.custom-btn-primary:hover {
    background-color: #0056b3;
}

.custom-cart-form .custom-form-group input[type="number"] {
    width: 60px;
}

@media (max-width: 600px) {
    .custom-cart-form {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sepet animasyonları için stiller */
.cart-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-icon {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Sepete Ekleme Animasyonu */
.cart-add-animation .cart-icon {
    animation: moveRight 1s ease;
}

@keyframes moveRight {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(200px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Sepet Güncelleme Animasyonu */
.cart-update-animation .cart-icon {
    animation: moveRightUpdate 1s ease;
}

@keyframes moveRightUpdate {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(200px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Sepetten Silme Animasyonu */
.cart-remove-animation .cart-icon {
    animation: moveRightRemove 0.5s ease-in-out;
}

@keyframes moveRightRemove {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(200px);
    }
    100% {
        transform: translateX(0);
    }
}




.cart-total.highlight-add , .card-total.highlight-add > .cart-amount {
    color: #4CAF50;
    font-weight: bold;
}

.cart-total.highlight-update , .card-total.highlight-update > .cart-amount {
    color: #2196F3;
    font-weight: bold;
}

.cart-total.highlight-remove, .card-total.highlight-remove > .cart-amount {
    color: #f44336;
    font-weight: bold;
}
.cart-total.highlight-add .cart-amount, .card-total.highlight-add .cart-amount {
    color: #4CAF50;
    font-weight: bold;
}

.cart-total.highlight-update .cart-amount, .card-total.highlight-update .cart-amount {
    color: #2196F3;
    font-weight: bold;
}

.cart-total.highlight-remove .cart-amount, .card-total.highlight-remove .cart-amount {
    color: #f44336;
}

/* Mobil menü için özel stiller */
.mobile-dropdown .sub-menu {
    display: none;
    width: 100%;
    position: relative;
    background: #f8f9fa;
    padding: 0;
    margin: 0;
    list-style: none;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.05);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-dropdown {
    background: white;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-dropdown li {
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
    position: relative;
    width: 100%;
}

.mobile-dropdown .sub-menu li {
    border-bottom: none;
    border-top: 1px solid #eee;
    width: 100%;
}

.mobile-dropdown .sub-menu a {
    padding-left: 30px;
    font-size: 13px;
    width: 100%;
    display: block;
    color: #333;
}

.mobile-dropdown .has-sub > a {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown .has-sub > a:after {
    content: "+";
    margin-left: 5px;
    float: right;
    transition: transform 0.3s ease;
}

.mobile-dropdown .has-sub.active > a:after {
    content: "-";
    transform: rotate(0deg);
}

.mobile-dropdown .sub-menu .sub-menu {
    background: #f1f1f1;
}

.mobile-dropdown .sub-menu .sub-menu a {
    padding-left: 45px;
}

/* Açılış/kapanış animasyonları için stiller */
.mobile-dropdown .sub-menu.opening {
    opacity: 0;
    display: block;
}

.mobile-dropdown .sub-menu.open {
    opacity: 1;
    display: block;
}

.mobile-dropdown .sub-menu.closing {
    opacity: 0;
}


