/* =========================
   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: #2c3e50;
    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;
}

/* DROPDOWN */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 999;
}

.dropdown-menu li a {
    color: #333;
    padding: 10px 15px;
}

.dropdown-menu li a:hover {
    background: #f4f6f9;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* =========================
   ANA İÇERİK
========================= */
main {
    margin: 120px auto 40px auto;
}

/* KATEGORİ BLOK */
.kategori-blok {
    margin-bottom: 60px;
    margin-top: 60px;
}

.kategori-blok h2 {
    font-size: 22px;
    margin-bottom: 20px;
    border-left: 5px solid #1abc9c;
    padding-left: 12px;
    color: #2c3e50;
}

/* =========================
   ÜRÜN KARTLARI
========================= */
.urun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.urun-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform .2s, box-shadow .2s;
}

.urun-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.urun-card img {
    max-width: 100%;
    height: 150px;
    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;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: #2c3e50;
    padding: 40px 0;
    color: #fff;
    margin-top: 60px;
}

.site-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: #1abc9c;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .menu {
        gap: 15px;
    }

    .urun-card img {
        height: 130px;
    }

}

/* ======================
   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;
}

/* Kullanıcı Dropdown Stili */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none; /* Varsayılan olarak gizli */
    position: absolute;
    right: 0;
    background-color: #2c3e50; /* Header rengine uygun */
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
}

.dropdown-menu li a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.user-dropdown:hover .dropdown-menu {
    display: block; /* Üzerine gelince göster */
}

.dropdown-menu li a:hover {
    background-color: #34495e;
}