/* =========================
   RESET & GENEL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f6f9;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 1200px;
    max-width: 95%;
    margin: auto;
}

/* =========================
   HEADER
========================= */
.site-header {
    background: #000000;
    padding: 15px 0;
    position: sticky;   /* SABİT */
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

/* MENU */
.menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu li {
    position: relative;
}

.menu a {
    color: #fff;
    font-weight: 500;
    padding: 8px 0;
    display: block;
}

.menu a:hover {
    color: #1abc9c;
}

/* =========================
   ANA İÇERİK & VİTRİN (YENİ)
========================= */
main {
    margin: 40px auto; /* Header sticky olduğu için margin ayarlandı */
}

/* Hero Banner Alanı */
.hero-banner {
    background: linear-gradient(135deg, #8f0000 0%, #000000 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 50px;
}

.hero-banner h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 15px; 
}

/* KATEGORİ BLOK */
.kategori-blok {
    margin-bottom: 60px;
}

.kategori-blok h2 {
    font-size: 22px;
    margin-bottom: 20px;
    border-left: 5px solid #1abc9c;
    padding-left: 12px;
    color: #2c3e50;
}

/* =========================
   ÜRÜN KARTLARI & IZGARA
========================= */
.urun-grid, .vitrin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.urun-card, .vitrin-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    overflow: hidden;
}

.urun-card:hover, .vitrin-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.urun-card img, .vitrin-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.urun-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.urun-card .marka {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.urun-card .fiyat {
    font-size: 18px;
    font-weight: bold;
    color: #1abc9c;
    margin-bottom: 5px;
}

.urun-card .stok {
    font-size: 12px;
    color: #888;
}

/* Vitrin Butonu */
.vitrin-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 10px;
}

.vitrin-btn:hover { 
    background: #ff4747; 
    transform: scale(1.05); 
}

/* =========================
   GÜNCELLENMİŞ SİYAH FOOTER TASARIMI (AliExpress Stil)
========================= */
.site-footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 60px 0 30px 0 !important;
    margin-top: 50px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #f39c12 !important; 
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbbbbb !important;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: block;
}

.footer-col ul li a:hover {
    color: #ffffff !important;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 40px;
    padding-top: 20px;
    color: #666;
    font-size: 0.85rem;
}

/* ======================
   AUTH (LOGIN / REGISTER)
====================== */
.auth-body {
    background: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,.1);
}

.auth-card h2 { text-align: center; margin-bottom: 5px; }
.auth-subtitle { text-align: center; color: #777; margin-bottom: 20px; }
.auth-card label { display: block; margin-top: 15px; font-weight: 600; }
.auth-card input { width: 100%; padding: 10px; margin-top: 5px; border-radius: 8px; border: 1px solid #ccc; }
.auth-card button { width: 100%; margin-top: 25px; }
.auth-footer { text-align: center; margin-top: 15px; font-size: 14px; }
.auth-footer a { color: #27ae60; font-weight: 600; text-decoration: none; }

.alert-error {
    background: #ffe5e5;
    color: #c0392b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

/* ==========================================================================
   DROPDOWN MENÜ KESİN TAMİR
========================= */
.user-dropdown, .dropdown {
    position: relative;
    display: inline-block;
}

/* Fare ile üzerine gelince dropdown listesini aç */
.menu li.dropdown:hover > .dropdown-menu,
.menu li.user-menu:hover > .dropdown-menu,
.user-dropdown:hover .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000000 !important;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5) !important;
    z-index: 10000;
    list-style: none;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.dropdown-menu li a {
    color: #ffffff !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #222;
}

.dropdown-menu li a:hover {
    background-color: #f39c12 !important; 
    color: #000000 !important;
    padding-left: 20px;
}

.dropdown-menu li:last-child a { border-bottom: none; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .menu { gap: 15px; }
    .urun-card img { height: 130px; }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-col { margin-bottom: 40px; }
}