/* === YENİ MODERN GÖRÜNÜM === */
:root {
    --primary-color: #2c3e50;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1300px;
    margin: 30px auto;
    padding: 25px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
img {
    max-width: 100%;
    height: auto;
}

/* === SİTE NAVİGASYONU (VİTRİN) === */
.site-nav {
    background-color: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-nav .logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 700;
}
.site-nav .nav-links {
    list-style: none;
    display: flex;
}
.site-nav .nav-links li {
    margin-left: 30px;
}
.site-nav .nav-links li a {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent;
}
.site-nav .nav-links li a:hover {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* === ÜRÜN KARTI LİNKİ === */
.product-card-link {
    text-decoration: none; /* Link alt çizgisini kaldır */
    color: inherit; /* Yazı rengini karttan al */
}

/* === ÜRÜN KARTI === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    border: none;
    border-radius: 12px;
    text-align: left;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; 
}
.product-card-link:hover .product-card { /* Linkin üzerine gelince kartı büyüt */
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.product-card .product-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}
.product-card .product-info {
    padding: 20px;
}
.product-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card p {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
    height: 40px;
    overflow: hidden;
}

/* === SİTE FOOTER (VİTRİN) === */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #222;
    color: #aaa;
    margin-top: 40px;
}
.site-footer p {
    color: #fff;
    font-weight: 500;
}


/* === ÜRÜN DETAY SAYFASI VE SLIDER === */
.product-detail-layout {
    display: flex;
    flex-wrap: wrap; /* Mobilde alt alta geç */
    gap: 40px;
}
/* Sol Taraf (Slider) */
.product-slider-container {
    flex: 2; /* 2 birim yer kapla */
    min-width: 300px;
}
.slider-main-image {
    width: 100%;
    height: 500px; /* Ana resim alanı */
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slider-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer; 
}
.slider-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Yanyana 5 küçük resim */
    gap: 10px;
}
.thumbnail-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.thumbnail-image:hover {
    border-color: var(--primary-color);
}
/* Sağ Taraf (Bilgi) */
.product-detail-info {
    flex: 1; /* 1 birim yer kapla */
    min-width: 300px;
}
.product-detail-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}
.detail-divider {
    border: 0;
    border-top: 2px solid var(--light-gray);
    margin: 20px 0;
}
.product-detail-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.product-detail-info p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}


/* === ADMIN PANELİ STİLLERİ === */
.admin-body {
    background-color: #f0f2f5;
    font-family: 'Montserrat', sans-serif;
}
.admin-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
}
.admin-header h1 { margin: 0; text-align: center; font-size: 1.5rem; }
.admin-header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: #34495e;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
}
.admin-header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}
.admin-header nav ul li a:hover { background-color: #4a627a; }
.admin-main {
    max-width: 900px;
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--white);
    min-height: 60vh;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.admin-footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #aaa;
    margin-top: 20px;
}
.admin-footer p { color: white; }
.admin-form {
    background-color: #fdfdfd;
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
}
.admin-form h3 { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
.admin-form div { margin-bottom: 18px; }
.admin-form label { display: block; margin-bottom: 6px; font-weight: 600; color: #444; }
.admin-form input[type="text"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(44, 62, 80, 0.2);
    outline: none;
}
.admin-form textarea { min-height: 150px; }
.admin-form button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.admin-form button:hover { background-color: #3a506b; }
.hata-mesaji {
    color: #d9534f;
    font-weight: bold;
    background-color: #f9eaea;
    border: 1px solid #d9534f;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #34495e;
    font-family: 'Montserrat', sans-serif;
}
.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}
.login-container form div { margin-bottom: 15px; }
.login-container label { display: block; margin-bottom: 5px; }
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}
.login-container button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 5px;
}

/* === MODAL (LIGHTBOX) STİLLERİ === */
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85); 
    justify-content: center;
    align-items: center;
}
.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: auto;
    max-width: 80vw; 
    max-height: 90vh; 
}
.modal-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh; 
    border-radius: 5px;
}
.modal-close {
    position: absolute;
    top: -30px; 
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* === WHATSAPP BUTONU === */
.whatsapp-button {
    display: inline-block;
    background-color: #25D366; 
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px; 
}
.whatsapp-button:hover {
    background-color: #128C7E; 
    transform: translateY(-2px);
    color: #ffffff; 
}

/* === YENİ: HARİTA STİLLERİ === */
.map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 oran (height/width) */
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* === EKSİK HAMBURGER MENÜ STİLLERİ === */
/* (BU BLOK YENİ EKLENDİ) */
.menu-toggle {
    display: none; /* Varsayılan olarak gizli (PC'de) */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Menü linklerinin üstünde kalması için */
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color); /* Ana menü rengi */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
/* === EKSİK STİLLERİN SONU === */


/* === MOBİL UYUMLULUK === */
@media (max-width: 768px) {
    .site-nav {
        padding: 15px 5%;
    }
    .menu-toggle {
        display: flex; /* MOBİLDE GÖSTER (BU SATIR ZATEN VARDI) */
    }
    .site-nav .nav-links {
        display: none; 
        flex-direction: column; 
        width: 100%;
        position: absolute;
        top: 70px; 
        left: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
    }
    .site-nav .nav-links.active {
        display: flex; 
    }
    .site-nav .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .site-nav .nav-links li a {
        padding: 15px;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }
    .site-nav .nav-links li a:hover {
        background-color: var(--light-gray);
        border-bottom: 1px solid var(--light-gray);
    }
    .product-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .product-card .product-image {
        height: 300px; 
    }
    .slider-main-image {
        height: 350px; 
    }
    .slider-thumbnails {
        grid-template-columns: repeat(4, 1fr); 
    }
    .product-detail-info h1 {
        font-size: 1.5rem; 
    }
    .container {
        padding: 15px;
        margin: 20px auto;
        width: 95%; 
    }
    .modal-content {
        max-width: 90vw; 
    }
    .map-container {
        padding-top: 75%; /* Mobilde haritayı biraz daha kare yap */
    }
}