/* ==========================================================================
   TEKİL STİL DOSYASI (Ortak Header, Ana Sayfa, Sepet, Admin, Masalar, Ürünler)
   ========================================================================== */

/* --- 1. FONTLAR VE RENK DEĞİŞKENLERİ --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #d3ad7f;
    --secondary-color: #13131a;
    --bg-color: #0e0e11;
    --panel-bg: #0c0c0e; 
    --box-bg: #1e1e24;
    --card-bg: #16161a;
    --text-color: #ffffff;
    --light-text: #aaa;
    --main-color: #c0392b;
    --border: .1rem solid rgba(255,255,255,.1);
}

/* --- 2. GENEL AYARLAR (RESET) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none; 
    border: none;
    text-decoration: none;
    transition: .2s linear;
}

html {
    font-size: 62.5%; 
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: 'Nunito', sans-serif;
}

section {
    padding: 2rem 9%;
}

/* --- 3. BUTONLAR VE EFEKTLER --- */
.btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.7rem;
    color: #fff;
    background-color: var(--primary-color);
    cursor: pointer;
    border-radius: 5px;
    position: relative; 
    overflow: hidden;    
    z-index: 1;          
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.category-buttons .btn.active {
    background-color: #fff;
    color: var(--secondary-color);
    letter-spacing: .1rem;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateX(100%);
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
    letter-spacing: .2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn:hover::after {
    transform: translateX(0); 
}

/* --- 4. TÜM SAYFALAR İÇİN ORTAK HEADER (BAŞLIK) VE NAVİGASYON --- */
.header {
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 7%;
    border-bottom: var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.header .logo {
    flex: 1; /* Sol tarafı kaplaması için */
    font-size: 2.5rem;
    font-weight: bolder;
    color: #fff;
    font-family: 'Playfair Display', serif;
    text-transform: capitalize;
}

.header .logo i, .header .logo span {
    color: var(--primary-color);
}

.header {
    /* Başlığın kendi kodları kalsın, sadece şu satırı eklediğinden/olduğundan emin ol: */
    position: relative; 
}

.header .navbar {
    position: absolute; /* Menüyü başlığın tam merkezine sabitler */
    left: 50%;
    transform: translateX(-50%); /* Tam ortalamayı sağlar */
    display: flex;
    align-items: center;
    gap: 2rem; /* Linkler arası boşluk */
}

.header .navbar a {
    margin: 0;
    font-size: 1.6rem;
    color: #fff;
    text-transform: capitalize;
    white-space: nowrap; /* Alt alta kaymayı önler */
}

.header .navbar a:hover {
    color: var(--primary-color);
}

/* Admin Çıkış Butonu */
.logout-btn { 
    background: #e74c3c; 
    color: white !important; 
    padding: 8px 15px; 
    border-radius: 5px; 
    font-weight: bold;
    font-size: 1.4rem !important;
    margin-left: 2rem !important;
}

.logout-btn:hover {
    background: #c0392b;
    color: white !important;
}

/* Açılır Menü (Dropdown) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color); 
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 5px;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--secondary-color) !important; 
    padding: 12px 16px;
    display: block;
    font-size: 1.6rem;
    margin: 0 !important; 
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #fff; 
    color: var(--primary-color) !important;
    padding-left: 2rem;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* İkonlar (Sağ Taraf) */
.header .icons {
    flex: 1; /* Sağ tarafı kaplaması için */
    display: flex;
    justify-content: flex-end; /* İkonları en sağa dayar */
    align-items: center;
}

.header .icons div, .header .icons a, .header .icons .cart-btn {
    color: #fff;
    cursor: pointer;
    font-size: 2.5rem;
    margin-left: 2rem;
    position: relative;
    display: inline-block;
}

.header .icons a:hover, .header .icons div:hover, .header .icons .cart-btn:hover i {
    color: var(--primary-color);
}

.header .icons .cart-btn #cart-count, .header .icons a #cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--main-color);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    height: 2rem;
    width: 2rem;
    line-height: 2rem;
    text-align: center;
    border-radius: 50%;
    font-family: 'Nunito', sans-serif; 
    z-index: 100; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#menu-btn { 
    display: none; 
}

/* Arama Formu */
.header .search-form {
    position: absolute;
    top: 115%;
    right: 7%;
    background: #fff;
    width: 50rem;
    height: 5rem;
    display: flex;
    align-items: center;
    transform: scaleY(0);
    transform-origin: top;
    border-radius: 5px;
}

.header .search-form.active { 
    transform: scaleY(1); 
}

.header .search-form input {
    height: 100%;
    width: 100%;
    font-size: 1.6rem;
    color: var(--secondary-color);
    padding: 1rem;
    border-radius: 5px;
}

.header .search-form label {
    cursor: pointer;
    font-size: 2.2rem;
    margin-right: 1.5rem;
    color: var(--secondary-color);
}

.header .search-form label:hover { 
    color: var(--primary-color); 
}


/* --- 5. ANA SAYFA VE GENEL İÇERİK STİLLERİ --- */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/home-bg.gif') no-repeat;
    background-size: cover;
    background-position: center;
}

.home .content { 
    max-width: 60rem; 
}

.home .content h3 {
    font-size: 6rem;
    text-transform: uppercase;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.home .content p {
    font-size: 2rem;
    font-weight: lighter;
    line-height: 1.8;
    padding: 1rem 0;
    color: #eee;
}

/* Sayfa Başlıkları (Masalar, Ürünler vs.) */
.page-title {
    text-align: center;
    font-size: 3.8rem;
    color: var(--primary-color); 
    margin-top: 4rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem; 
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Kısım Başlıkları (Menü, Hakkımızda vs.) */
.heading {
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    padding-bottom: 3.5rem;
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
}

.heading span { 
    color: var(--primary-color); 
}

.menu .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
}

.menu .box-container .box {
    padding: 3rem;
    text-align: center;
    border: var(--border);
    background-color: var(--box-bg);
    border-radius: 1rem;
}

.menu .box-container .box:hover { 
    background-color: #fff; 
}
.menu .box-container .box:hover h3, .menu .box-container .box:hover .price { 
    color: var(--secondary-color); 
}
.menu .box-container .box:hover .price span { 
    color: #666; 
}
.menu .box-container .box:hover .btn { 
    background-color: var(--secondary-color); 
    color: #fff; 
}

.menu .box-container .box .image {
    height: 15rem;
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu .box-container .box .image img {
    height: 100%;
    object-fit: contain;
}

.menu .box-container .box h3, .menu .box-container .box .price {
    color: #fff;
    font-size: 2.5rem;
    padding: 1rem 0;
    font-family: 'Playfair Display', serif;
    text-transform: capitalize;
}

.menu .box-container .box .price span {
    font-size: 1.5rem;
    text-decoration: line-through;
    font-weight: lighter;
    margin-left: 1rem;
}

.menu .box-container .box .stars { 
    padding: 1rem 0; 
}
.menu .box-container .box .stars i { 
    font-size: 1.7rem; 
    color: var(--primary-color); 
}

.menu-separator {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem 0 3rem 0; 
    gap: 2rem;
}

.menu-separator h3 {
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-weight: bold;
}

.menu-separator .line {
    height: 3px;
    background: #fff;
    flex: 1;
    max-width: 150px;
    border-radius: 5px;
    opacity: 0.5;
}

.about .row, .contact .row {
    display: flex;
    align-items: center;
    background: var(--secondary-color);
    flex-wrap: wrap;
    border-radius: 1rem;
    overflow: hidden;
    gap: 1rem;
}

.about .row .image, .about .row .content, .contact .row .map, .contact .row form {
    flex: 1 1 45rem;
}

.about .row .image img { 
    width: 100%; 
    object-fit: cover; 
    height: 50rem; 
}

.about .row .content { 
    padding: 4rem; 
}
.about .row .content h3 { 
    font-size: 3rem; 
    color: #fff; 
    font-family: 'Playfair Display', serif; 
    margin-bottom: 1.5rem; 
    text-transform: capitalize;
}
.about .row .content p { 
    font-size: 1.6rem; 
    color: #ccc; 
    line-height: 1.8; 
    padding: 1rem 0; 
}

.contact .row .map { 
    width: 100%; 
    object-fit: cover; 
    min-height: 40rem; 
}
.contact .row form { 
    padding: 5rem 2rem; 
    text-align: center; 
}
.contact .row form h3 { 
    text-transform: uppercase; 
    font-size: 3.5rem; 
    color: #fff; 
    font-family: 'Playfair Display', serif; 
    margin-bottom: 2rem; 
}

.contact .row form .inputBox, .checkout-form .inputBox {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: var(--bg-color);
    border: var(--border);
    padding: 1.5rem;
    border-radius: 5px;
}

.contact .row form .inputBox span, .checkout-form .inputBox span {
    color: #fff;
    font-size: 2rem;
    padding-left: 1rem;
    margin-right: 1rem;
}

.contact .row form .inputBox input, .checkout-form .inputBox input, .checkout-form .inputBox textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.7rem;
    color: #fff;
    background: none;
}

.contact .row form .inputBox:focus-within, .checkout-form .inputBox:focus-within { 
    border-color: var(--primary-color); 
}

/* --- 6. SEPET VE ÖDEME SAYFASI --- */
.cart-section {
    min-height: 100vh;
    padding-top: 10rem;
    background-image: url('images/arkafoto2.png'); 
    background-position: left bottom;              
    background-repeat: no-repeat;                  
    background-size: 400px;                        
}

.cart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.cart-items-wrapper {
    flex: 1 1 40rem;
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 1rem;
    border: var(--border);
    background-image: url('images/arkafoto2.png');
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 200px; 
}

#cart-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%; 
}

.cart-item-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: .5rem;
    width: 100%;
    animation: fadeIn 0.5s ease forwards; 
    margin-bottom: 1rem;      
    position: relative;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item-box img {
    height: 6rem;             
    width: 6rem;              
    object-fit: cover;
    border-radius: 50%;       
    border: 2px solid var(--primary-color); 
}

.cart-item-info h3, .cart-item-box .detail h4 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: .5rem;
    text-transform: capitalize;
}

.cart-item-info .price, .cart-item-box .detail .price {
    color: var(--primary-color); 
    font-size: 1.6rem;
    font-weight: bold;
}

.cart-item-box .fa-trash-alt, .cart-item-box .remove-btn {
    color: #c0392b;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    background: #222;         
    border-radius: 50%;
}

.cart-item-box .fa-trash-alt:hover, .cart-item-box .remove-btn:hover {
    color: #fff;
    background: crimson;      
    transform: rotate(90deg) scale(1.1); 
}

.cart-total h3 {
    text-align: right;
    color: #fff;
    font-size: 2rem;
    margin-top: 2rem;
}

.cart-total span { 
    color: var(--primary-color); 
}

.checkout-form {
    flex: 1 1 35rem;
    background: var(--box-bg);
    padding: 2rem;
    border-radius: 1rem;
    height: fit-content;
}

.checkout-form h3 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: capitalize;
}

.checkout-form .inputBox textarea {
    height: 8rem;
    resize: none;
    padding-top: 0.5rem;
}

/* --- 7. YÖNETİM PANELİ (Admin, Masalar, Ürünler) İÇERİK STİLLERİ --- */
body.admin-page {
    background-color: var(--panel-bg);
    font-family: 'Poppins', sans-serif;
    padding: 2rem;
    text-align: center;
}

.admin-page h1, .admin-page h2 {
    color: var(--primary-color);
    text-transform: uppercase;
    margin-top: 30px;
    margin-bottom: 30px;
}

.admin-page h2 {
    border-left: 5px solid #d3ad7f;
    padding-left: 15px;
    text-align: left;
}

.admin-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #2a2a2e;
}

/* Masalar */
.konteynir { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 25px; 
    padding: 40px 7%; 
}

.masa { 
    padding: 40px 20px; 
    border-radius: 15px; 
    border: 2px solid #d3ad7f; 
    color: #d3ad7f; 
    cursor: default; 
    transition: 0.4s;
    font-weight: bold;
    font-size: 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.masa i { 
    font-size: 2.5rem; 
}
.bos { 
    background: rgba(211, 173, 127, 0.05); 
}
.dolu { 
    background: white !important; 
    color: black !important; 
    border-color: white; 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.05); 
}

/* Masa Butonları ve Detay */
.masa-btn { 
    background: #1e1e24;
    color: #ffffff !important;
    padding: 1.5rem; 
    margin: 1rem 0; 
    display: flex;
    justify-content: space-between;
    border-radius: 0.8rem; 
    cursor: pointer; 
    border: 1px solid #d3ad7f55;
    font-weight: bold;
}

.masa-btn:hover {
    background: var(--primary-color);
    color: #000 !important;
}

.detail-box {
    display: none;
    background: #000;
    padding: 1.5rem;
    border: 1px solid #333;
    border-radius: 0 0 1rem 1rem;
}

.btn-check {
    background: #27ae60;
    color: white;
    padding: 10px;
    display: block;
    text-align: center;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
}

/* Ürünler Form ve Tablo */
.admin-page form {
    background: var(--card-bg); 
    padding: 25px; 
    border-radius: 8px; 
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-page input, .admin-page select { 
    padding: 12px; 
    background: #000; 
    border: 1px solid #333; 
    color: white; 
    border-radius: 5px; 
    flex: 1;
    min-width: 150px;
}

.btn-add { 
    background: #27ae60; 
    color: white; 
    padding: 12px 25px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold;
    transition: 0.3s;
}

.btn-add:hover { 
    background: #219150; 
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    background: var(--card-bg); 
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

th, td { 
    padding: 18px; 
    border-bottom: 1px solid #2a2a2e; 
    text-align: left; 
}

th { 
    background: var(--primary-color); 
    color: #000; 
    text-transform: uppercase;
    font-weight: bold;
}

tr:hover { 
    background: var(--box-bg); 
}

.btn-delete { 
    color: #e74c3c; 
    font-weight: bold; 
    padding: 5px 10px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-delete:hover {
    background: #e74c3c;
    color: white;
}

.btn-edit:hover {
    text-decoration: underline;
    color: #fff !important;
}

#vazgec-btn:hover { background: #444 !important; }

/* --- 8. MOBİL UYUMLULUK (MEDIA QUERIES) --- */
@media (max-width: 991px) {
    html { font-size: 55%; }
    .header { padding: 1.5rem 2rem; }
}

@media (max-width: 768px) {
    #menu-btn { 
        display: inline-block; 
    }
    
    .header .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        background: #fff;
        width: 30rem;
        height: auto; 
        min-height: calc(100vh - 9.5rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .header .navbar.active { 
        right: 0; 
    }
    
    .header .navbar a, .header .navbar .dropdown .dropbtn {
        color: var(--secondary-color);
        display: block;
        margin: 1.5rem;
        padding: .5rem;
        font-size: 2rem;
    }

    /* Mobilde Dropdown */
    .dropdown {
        display: block;
        width: 100%;
        text-align: center;
    }
    .dropdown-content {
        position: relative;
        min-width: 100%;
        box-shadow: none;
        background-color: #f9f9f9;
    }
    .dropdown-content a {
        padding-left: 0;
        text-align: center;
    }
    
    .admin-container { 
        grid-template-columns: 1fr; 
    }
}

/* --- ŞIK BİLDİRİM (TOAST) ANİMASYONU --- */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast-msg {
    background: var(--box-bg, #1e1e24);
    color: #fff;
    padding: 1.5rem 2.5rem;
    border-radius: 0.8rem;
    border-left: 5px solid var(--primary-color, #d3ad7f);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Tatlı bir yaylanma efekti */
}

.toast-msg.show {
    transform: translateX(0);
}

.toast-msg.error {
    border-left-color: #e74c3c; /* Hata için kırmızı çizgi */
}

.toast-msg.success {
    border-left-color: #27ae60; /* Başarı için yeşil çizgi */
}

.toast-msg i {
    font-size: 2rem;
}

/* --- ŞIK BAŞARI BİLDİRİMİ (TOAST) --- */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.toast-msg {
    background: #1e1e24; /* Koyu arka plan */
    color: #fff;
    padding: 1.5rem 2.5rem;
    border-radius: 0.8rem;
    border-left: 6px solid #27ae60; /* Başarı yeşili */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform: translateX(150%); /* Başlangıçta ekran dışında */
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-msg.show {
    transform: translateX(0); /* Ekrana giriş yap */
}

.toast-msg i {
    color: #27ae60;
    font-size: 2.2rem;
}

/* =========================================
   LOGİN (GİRİŞ) SAYFASI ÖZEL TASARIMI
   ========================================= */
.login-body { 
    background: #0c0c0e; 
    color: white; 
    font-family: sans-serif; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    margin: 0; 
}

.login-card { 
    background: #16161a; 
    padding: 40px; 
    border-radius: 10px; 
    border: 1px solid #d3ad7f; 
    width: 350px; 
    text-align: center; 
}

.login-card h2 { 
    color: #d3ad7f; 
    margin-bottom: 20px; 
}

.login-card input { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    background: #000; 
    border: 1px solid #333; 
    color: white; 
    border-radius: 5px; 
    box-sizing: border-box;
}

.login-card button { 
    width: 100%; 
    padding: 12px; 
    background: #d3ad7f; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 5px; 
    color: #000; 
}

.login-card .selection-btns { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin-top: 20px; 
}

.login-card .btn-panel { 
    padding: 15px; 
    background: #1e1e24; 
    color: #d3ad7f; 
    text-decoration: none; 
    border-radius: 5px; 
    border: 1px solid #d3ad7f; 
    font-weight: bold; 
    transition: 0.3s; 
}

.login-card .btn-panel:hover { 
    background: #d3ad7f; 
    color: #000; 
}

.login-card .error { 
    color: #e74c3c; 
    margin-bottom: 10px; 
}

/* =========================================
   ADMİN PANELİ / ÜRÜNLER SAYFASI ÖZEL TASARIMI
   ========================================= */
body.admin-body { 
    background: #0c0c0e; 
    color: white; 
    font-family: sans-serif; 
    margin: 0; 
    padding-bottom: 50px; 
}

.admin-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #16161a; 
    padding: 20px 40px; 
    border-bottom: 2px solid #d3ad7f; 
}

.admin-header .logo { 
    font-size: 24px; 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
}

.admin-header .logo span { 
    color: #d3ad7f; 
}

.admin-nav a { 
    color: white; 
    text-decoration: none; 
    margin-left: 20px; 
    font-weight: bold; 
    transition: 0.3s; 
}

.admin-nav a:hover { 
    color: #d3ad7f; 
}

.admin-nav .logout-btn { 
    background: #e74c3c; 
    padding: 8px 15px; 
    border-radius: 5px; 
    color: white; 
}

.admin-nav .logout-btn:hover { 
    background: #c0392b; 
    color: white; 
}

.admin-body .container { 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.form-card { 
    background: #16161a; 
    padding: 25px; 
    border-radius: 8px; 
    border: 1px solid #333; 
    margin-bottom: 40px; 
}

.form-row { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 15px; 
    flex-wrap: wrap; 
}

.form-group { 
    flex: 1; 
    min-width: 200px; 
    display: flex; 
    flex-direction: column; 
}

.form-group label { 
    color: #d3ad7f; 
    margin-bottom: 5px; 
    font-size: 14px; 
}

.form-group input, .form-group select { 
    padding: 12px; 
    background: #000; 
    border: 1px solid #333; 
    color: white; 
    border-radius: 5px; 
    width: 100%; 
    box-sizing: border-box; 
}

.form-actions { 
    display: flex; 
    gap: 10px; 
    margin-top: 10px; 
}

.btn-save { 
    background: #27ae60; 
    color: white; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold; 
}

.btn-cancel { 
    background: #555; 
    color: white; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold; 
}

.admin-body table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
    background: #16161a; 
    border-radius: 8px; 
    overflow: hidden; 
}

.admin-body th { 
    background: #d3ad7f; 
    color: black; 
    text-align: left; 
    padding: 15px; 
}

.admin-body td { 
    padding: 15px; 
    border-bottom: 1px solid #2a2a2e; 
    vertical-align: middle; 
}

.admin-body tr:hover { 
    background: #1e1e24; 
}

.action-btns button, .action-btns a { 
    background: none; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    margin-right: 15px; 
    font-size: 14px; 
}

.btn-edit { 
    color: #f39c12; 
}
.btn-delete { 
    color: #e74c3c; 
    text-decoration: none; 
}

/* Çıkış butonu özel stili */
.hdr-btn.logout {
    background-color: #e74c3c; /* Kırmızı renk */
    padding: 10px 20px;
    border-radius: 8px; /* Köşeleri yuvarlatılmış */
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.hdr-btn.logout:hover {
    opacity: 0.9;
}

/* Mobilde Dropdown (Açılır Menü) Görünümü */
.dropdown-content.show-mobile {
    display: block !important;
    position: relative;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding-left: 1rem;
}

/* --- MOBİL MENÜ STANDART AYARLARI --- */

/* 1. Masaüstünde menü butonu gizli olsun */
#menu-btn {
    display: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    margin-left: 2rem;
}

/* --- MOBİL MENÜ KESİN ÇÖZÜM --- */

/* 1. Masaüstünde hamburger butonu görünmesin */
#menu-btn {
    display: none;
}

/* --- KUSURSUZ MOBİL GÖRÜNÜM (SAĞDAN KAYARAK GELEN MENÜ) --- */
@media (max-width: 768px) {
    #menu-btn { display: inline-block !important; } /* İkonu zorla göster */
    
    .header .navbar {
        position: absolute;
        top: 100%; /* Header'ın bittiği yerden başlar */
        right: -120%; /* Başlangıçta ekranın GİZLİ SAĞ tarafında bekler */
        left: auto !important; /* Sola yaslanma inadını tamamen kırıyoruz */
        width: 30rem; /* Menünün genişliği */
        height: 100vh; /* Ekranın altını kaplasın */
        background: #13131a;
        display: flex; /* display:none KULLANMIYORUZ ki kayma animasyonu çalışsın */
        flex-direction: column;
        padding: 2rem 0;
        border-left: 2px solid #d3ad7f;
        transition: right 0.4s ease-in-out; /* Yağ gibi kayarak gelmesini sağlar */
    }
    
    /* Butona tıklanınca 'active' class'ı menüyü sağdan ekrana çeker */
    .header .navbar.active {
        right: 0 !important; 
    }
    
    .header .navbar a { margin: 1.5rem; text-align: center; display: block; }
    
    /* Mobil Dropdown (Alt Kategoriler) */
    .dropdown { width: 100%; text-align: center; }
    .dropdown-content {
        position: static !important; /* Menü içinde taşmayı engeller */
        width: 100%;
        display: none; 
        background: #0e0e11;
        border: none;
        box-shadow: none;
    }
    
    /* Alt menü açıldığında */
    .dropdown.active-mobile .dropdown-content {
        display: block !important;
    }
}