/* Genel Ayarlar */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: hsl(220, 18%, 15%); /* Koyu mavi-gri */
    color: hsl(0, 0%, 90%); /* Genel metin rengi açık ton */
    line-height: 1.6;
}

/* Navbar (Üst Gezinme Çubuğu) Stilleri */
.navbar.is-custom-dark {
    background-color: #4361ee; /* Itemsatış'ın koyu lacivert/gri rengi*/
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-height: 4.5rem;
    padding: 0.75rem 0;
    position: relative;
    z-index: 99;
    /* justify-content: space-between; /* Navbar içeriğini yaymak için */
}



/* Navbar Brand (Sol Logo Alanı) */
.navbar-brand {
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    flex-shrink: 0;
}
/* TreloryanShop yazısının hover rengini sabitle */
.navbar-brand .navbar-item:hover .icon-text,
.navbar-brand .navbar-item:hover .icon-text span,
.navbar-brand .navbar-item:hover .icon-text .icon {
    color: inherit !important;
}

/* Ayrıca navbar item hover arkaplan rengini de kaldıralım */
.navbar-brand .navbar-item:hover {
    background-color: transparent !important;
}
.navbar-brand .navbar-item .has-text-weight-bold {
    
    color: #ffffff;
    font-size: 1.8rem !important;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}
.navbar-brand .navbar-item .has-text-weight-bold .icon {
    font-size: 1.6rem;
    margin-right: 0.5rem;
    color: hsl(171, 100%, 41%);
}



/* Navbar End (Sağ Taraftaki Kullanıcı Alanı) - BULMA DEFAULT KULLANIYORUZ ARTIK */
/* .navbar-end-custom adını navbar-end olarak değiştirdik ve bu CSS artık kullanılmıyor */

/* Kullanıcı Bilgileri (Tags) */
.user-info-group { /* Sadece user-info-group olarak bırakıldı */
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    /* margin-right: 1.5rem; Bunu kaldırdım, gap ile yöneteceğiz */
}
.user-info-group:hover {
    opacity: 0.8;
}

.user-info-group .icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 0.5rem;
}

.user-info-group .tags.has-addons {
    margin-bottom: 0;
}

.user-info-group .tags.has-addons .tag {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    font-weight: 500;
    background-color: hsl(230, 20%, 25%);
    color: rgba(255, 255, 255, 0.8);
    height: auto;
}
.user-info-group .tags.has-addons .tag:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
.user-info-group .tags.has-addons .tag:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.user-info-group .tags.has-addons .tag .icon {
    font-size: 0.9em;
    margin-right: 0.25em;
    color: inherit;
}
.user-info-group .tags.has-addons .tag.is-info {
    background-color: hsl(204, 86%, 53%);
    color: #fff;
}
.user-info-group .tags.has-addons .tag.is-info .icon {
    color: #fff;
}


/* Giriş yapmamış kullanıcılar için metin ve ikon */
.anonymous-user-area {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    gap: 0.5rem; /* Öğeler arasına boşluk */
}

.anonymous-user-area .icon {
    font-size: 1.7rem;
    color: rgba(255, 255, 255, 0.7);
    /* margin-bottom: 0.2rem; Mobil için kaldırdım, flex row olduğu için gereksiz */
}
.anonymous-user-area a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.anonymous-user-area a:hover {
    color: hsl(171, 100%, 41%);
    text-decoration: underline;
}
.anonymous-user-area small {
    display: inline-block; /* Yan yana durması için */
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
}


/* Kullanıcı butonu grubu */
.navbar-user-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Butonlar arasına boşluk */
    /* margin-left: 1.5rem; Bu satır artık gerekli değil */
}

.navbar-user-buttons .button {
    background-color: hsl(230, 20%, 25%);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    height: auto;
    transition: background-color 0.2s ease, color 0.2s ease;
    /* margin-left: 0.5rem; Bu satır kaldırıldı, gap ile yönetiliyor */
}
.navbar-user-buttons .button:hover {
    background-color: hsl(230, 20%, 30%);
    color: #fff;
}
.navbar-user-buttons .button .icon {
    margin-right: 0.25rem;
}
.navbar-user-buttons .button.is-success {
    background-color: hsl(141, 71%, 48%);
    color: #fff;
}
.navbar-user-buttons .button.is-success:hover {
    background-color: hsl(141, 71%, 43%);
}
.navbar-user-buttons .button.is-warning {
    background-color: hsl(48, 100%, 67%);
    color: hsl(0, 0%, 21%);
}
.navbar-user-buttons .button.is-warning:hover {
    background-color: hsl(48, 100%, 62%);
}
.navbar-user-buttons .button.is-danger {
    background-color: hsl(348, 86%, 61%);
    color: #fff;
}
.navbar-user-buttons .button.is-danger:hover {
    background-color: hsl(348, 86%, 56%);
}

/* Ana Kullanıcı Aksiyonları Grubu (masaüstü) */
.user-desktop-actions {
    gap: 1.5rem; /* Kullanıcı bilgileri ile butonlar arasında boşluk */
}


/* --- Alt Menü (Kategoriler/Servisler) --- */
.bottom-navbar {
    background-color: hsl(230, 20%, 20%); /* Biraz daha açık koyu renk */
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky; /* Sayfa kaydırılsa da üstte kalsın */
    top: 0;
    z-index: 90; /* Üst navbar'ın altında olsun */
}

.bottom-navbar .container {
    display: flex;
    justify-content: space-between; /* Öğeleri yay */
    align-items: center;
    overflow-x: auto; /* Yatay kaydırma gerekirse */
    -webkit-overflow-scrolling: touch; /* iOS için kaydırma pürüzsüzleştirme */
    padding-bottom: 0.5rem; /* Kaydırma çubuğu için boşluk */
}
.bottom-navbar .container::-webkit-scrollbar {
    height: 6px; /* Kaydırma çubuğu yüksekliği */
}
.bottom-navbar .container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.bottom-navbar .container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
.bottom-navbar .container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}


.bottom-navbar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 6px;
    flex-shrink: 0; /* Küçülmesini engelle */
}
.bottom-navbar .nav-item:hover {
    color: #fff;
    background-color: hsl(230, 20%, 25%);
}

.bottom-navbar .nav-item .icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: inherit; /* Metin rengini takip etsin */
}

.bottom-navbar .nav-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* "+ Button" */
.bottom-navbar .plus-button {
    background-color: hsl(250, 80%, 65%); /* Morumsu bir renk */
    color: #fff;
    border-radius: 50%; /* Yuvarlak buton */
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.bottom-navbar .plus-button:hover {
    background-color: hsl(250, 80%, 70%);
    transform: translateY(-2px);
}


/* --- Ürün Kartları İyileştirmeleri (Öncekiyle aynı) --- */
.section {
    padding-top: 2rem; /* Navbar'ın altına boşluk */
    padding-bottom: 3rem;
}
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: hsl(230, 20%, 25%); /* Koyu kart arka planı */
    color: hsl(0, 0%, 90%); /* Kart içindeki metin rengi */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(230, 20%, 30%); /* Resim arkaplanı */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-image::before {
    content: attr(data-label);
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 0, 150, 0.8);
    color: #fff;
    padding: 0.25em 0.75em;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 700;
    z-index: 10;
    display: var(--label-display, none);
}

.card[data-is-featured="true"] .card-image::before {
    --label-display: block;
}

.card-content {
    flex-grow: 1;
    padding: 1.5rem;
}

.card-content .title.is-5 {
    margin-bottom: 0.5rem;
    color: #fff; /* Başlık rengi */
    font-size: 1.15rem;
}

.card-content .content {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7); /* İçerik metin rengi */
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-footer {
    border-top: 1px solid hsl(230, 20%, 35%); /* Daha koyu border */
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-footer-item {
    flex-grow: 1;
    text-align: center;
    padding: 0.75rem 1rem;
}

.card-footer-item:not(:last-child) {
    border-right: 1px solid hsl(230, 20%, 35%);
}

.card-footer-item span {
    display: block;
}

.card-footer .button.is-primary {
    background-color: hsl(171, 100%, 41%);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    margin: 0.5rem 1rem;
}
.card-footer .button.is-primary:hover {
    background-color: hsl(171, 100%, 36%);
}


/* Ana Başlıklar ve Genel İçerik Kutuları */
.title {
    color: #fff; /* Koyu arka planda başlıklar beyaz */
    font-weight: 700;
}

.title.is-1 {
    font-size: 3.5rem;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.subtitle.has-text-centered {
    color: rgba(255, 255, 255, 0.7); /* Alt başlık rengi */
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.box {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    background-color: hsl(230, 20%, 25%); /* Koyu kutu arka planı */
    color: hsl(0, 0%, 90%);
}

/* Tablo Stilleri */
.table.is-fullwidth {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: hsl(230, 20%, 25%); /* Koyu tablo arkaplanı */
}

.table thead { background-color: hsl(230, 20%, 30%); } /* Başlık kısmı biraz daha koyu */
.table th { color: #fff; font-weight: 600; font-size: 0.95rem; padding: 1.25rem 1rem; }
.table td { padding: 1rem 1rem; vertical-align: middle; border-color: hsl(230, 20%, 35%); color: hsl(0, 0%, 90%); }
.table tr:hover { background-color: hsl(230, 20%, 30%); } /* Satır hover rengi */

/* Sipariş Durumu Etiketleri */
.status-tag {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.5em 1em; border-radius: 290486px; font-size: 0.85rem; font-weight: 700;
    color: #fff; text-transform: uppercase; min-width: 110px; text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.status-tag.is-warning { background-color: hsl(34, 100%, 53%); color: #fff; }
.status-tag.is-danger { background-color: hsl(348, 86%, 61%); color: #fff; }
.status-tag.is-success { background-color: hsl(141, 71%, 48%); color: #fff; }
.status-tag.is-info { background-color: hsl(204, 86%, 53%); color: #fff; }

/* Footer Stilleri */
.footer {
    padding: 3rem 1.5rem;
    background-color: hsl(230, 20%, 20%); /* Koyu footer */
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid hsl(230, 20%, 25%);
    margin-top: 4rem;
}

/* Form Elemanları */
.input, .textarea, select {
    border-radius: 6px; border: 1px solid hsl(230, 20%, 30%); /* Koyu border */
    padding: 0.75rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    background-color: hsl(230, 20%, 25%); /* Koyu input arkaplanı */
    color: #fff;
}
.input::placeholder, .textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.input:focus, .textarea:focus, select:focus {
    border-color: hsl(217, 71%, 53%); box-shadow: 0 0 0 0.125em hsla(217, 71%, 53%, 0.25);
    background-color: hsl(230, 20%, 28%); /* Odaklanınca biraz açık */
}


/* Bildirimler */
.notification {
    border-radius: 6px; margin-bottom: 1.5rem; padding: 1.25rem 2.5rem 1.25rem 1.5rem; font-weight: 500;
}
.notification.is-success { background-color: hsl(141, 71%, 30%); color: #fff; border-color: hsl(141, 71%, 25%); }
.notification.is-danger { background-color: hsl(348, 86%, 40%); color: #fff; border-color: hsl(348, 86%, 35%); }
.notification.is-warning { background-color: hsl(48, 100%, 40%); color: hsl(0, 0%, 21%); border-color: hsl(48, 100%, 35%); }
.notification.is-info { background-color: hsl(204, 86%, 40%); color: #fff; border-color: hsl(204, 86%, 35%); }

/* Font Awesome İkon Boyutları */
.icon-text .icon { margin-right: 0.25rem; }
.icon-text .icon.is-small { font-size: 0.8em; }
.icon-text .icon.is-medium { font-size: 1.2em; }
.icon-text .icon.is-large { font-size: 1.5em; }

/* Admin Paneli İkonları */
.admin-section h2 i { color: hsl(217, 71%, 53%); }


/* --- MOBİL DUYARLILIK --- */
/* Masaüstü görünümü (769px ve üzeri) */
@media screen and (min-width: 769px) {
    .navbar-burger {
        display: none;
    }
    .navbar-menu {
        /* Bulma varsayılanı olarak flex-grow: 1; ve justify-content: flex-end; uygular */
        background-color: transparent !important;
        box-shadow: none !important;
        opacity: 1 !important;
        max-height: none !important;
        display: flex !important; /* Her zaman görünür olsun */
        flex-grow: 1; /* Mevcut alanı kapla */
        align-items: center;
        /* justify-content: space-between; Eğer start ve end arasında boşluk istiyorsanız bunu kullanın */
    }
    
    /* Masaüstünde kullanıcı aksiyonları grubunu sağa hizalamak için */
    .user-desktop-actions {
        display: flex;
        align-items: center;
        gap: 1.5rem; /* Kullanıcı bilgileri ve butonlar arasında boşluk */
    }
    
    .navbar-item.navbar-search { /* Eğer arama çubuğu kullanılıyorsa */
        flex-grow: 1;
        max-width: 500px;
    }
}

/* Mobil Duyarlılık (768px ve altı) */
@media screen and (max-width: 768px) {
    .navbar.is-custom-dark {
        min-height: 3.75rem;
    }
    .navbar-brand {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .navbar-brand .navbar-item .has-text-weight-bold {
        font-size: 1.5rem !important;
    }
    .navbar-brand .navbar-item .has-text-weight-bold .icon {
        font-size: 1.3rem;
    }

    .lang-selector {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .navbar-burger {
        margin-right: 0.5rem;
        display: flex;
    }

    /* BURGER BUTONU İÇİN KRİTİK AYARLAR */
.navbar-burger {
    display: flex; /* Mobil görünümde burger butonu GÖRÜNÜR olmalı */
    align-items: center;
    justify-content: center;
    height: 4.5rem;
    width: 4.5rem;
    margin-left: auto;
    margin-right: 0;
    color: #ffffff;
    border: none;
    background-color: transparent;
    cursor: pointer;
}
.navbar-burger span {
    background-color: #ffffff;
    height: 2px;
    width: 20px;
    display: block;
    position: absolute;
    transition: all 0.3s ease;
}