@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #ffffff;
    --accent-color: #007bff;
    --text-color: #333;
    --text-light: #666;
    --light-gray: #f8f9fa;
    --border-color: #eaeaea;
    --container-width: 1280px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex-grow: 1;
}

h1, h2, h3 {
    font-weight: 600;
}

p {
    color: var(--text-light);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* --- ÜST BAR VE HEADER --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left { flex: 1 1 20%; }
.header-center { flex: 1 1 60%; display: flex; justify-content: center; }
.header-right { flex: 1 1 20%; display: flex; justify-content: flex-end; }

.logo.text-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

nav ul { list-style: none; display: flex; }
nav ul li { position: relative; margin: 0 22px; }
nav ul li a { color: var(--text-color); font-weight: 500; font-size: 0.9rem; padding: 10px 0; transition: color 0.3s; position: relative; }
nav ul li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 50%; transform: translateX(-50%); background-color: var(--primary-color); transition: width 0.3s ease; }
nav ul li a:hover { color: var(--primary-color); }
nav ul li a:hover::after { width: 100%; }

.dropdown-menu { display: none; opacity: 0; visibility: hidden; position: absolute; top: 150%; left: 50%; transform: translateX(-50%); background-color: var(--secondary-color); box-shadow: 0 10px 25px rgba(0,0,0,0.1); list-style: none; padding: 10px 0; min-width: 220px; border-radius: 5px; border: 1px solid var(--border-color); transition: all 0.3s ease; }
nav li.has-dropdown:hover > .dropdown-menu { display: block; opacity: 1; visibility: visible; top: 100%; }
.dropdown-menu li a { padding: 12px 20px; display: block; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 25px; }
.header-actions a { color: var(--primary-color); display: flex; align-items: center; transition: color 0.3s; }
.header-actions a:hover { color: var(--accent-color); }
.header-actions svg { stroke-width: 1.5; }
.mobile-menu-toggle { display: none; }

/* --- ANA SAYFA BÖLÜMLERİ --- */
.hero-section { background: var(--light-gray) url('https://images.unsplash.com/photo-1551489186-cf8726f514f8?q=80&w=2070') no-repeat center center/cover; height: calc(100vh - var(--header-height) - 41px); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--secondary-color); }
.hero-content { background-color: rgba(0,0,0,0.5); padding: 50px 80px; border-radius: 5px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }
.btn { display: inline-block; padding: 14px 32px; text-decoration: none; border-radius: 50px; font-weight: 500; transition: all 0.3s; margin-top: 20px; }
.btn-primary { background-color: var(--secondary-color); color: var(--primary-color); border: 1px solid var(--secondary-color); }
.btn-primary:hover { background-color: transparent; color: var(--secondary-color); }
.page-section { padding: 100px 0; text-align: center; }
.page-section h2 { font-size: 2.8rem; margin-bottom: 20px; }
.section-content { max-width: 750px; margin: 0 auto; font-size: 1.1rem; }
.featured-products { background-color: var(--light-gray); }

/* --- ÜRÜN LİSTELEME (GRID) VE KARTLARI --- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; text-align: left; }
.product-card { text-decoration: none; color: var(--text-color); display: block; background-color: var(--secondary-color); border-radius: 5px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.product-image { width: 100%; height: 350px; background-color: #eee; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 20px; }
.product-info h3 { font-size: 1rem; font-weight: 500; margin: 0; }
.product-grid > p { text-align: center; grid-column: 1 / -1; font-size: 1.1rem; color: var(--text-light); }

/* --- ÜRÜN DETAY SAYFASI --- */
.product-detail-page { padding: 60px 0; }
.product-detail-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }
.product-gallery .main-image { border-radius: 5px; overflow: hidden; margin-bottom: 15px; border: 1px solid var(--border-color); }
.product-gallery .main-image img { width: 100%; height: auto; display: block; }
.thumbnail-images { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.thumbnail { border: 1px solid var(--border-color); border-radius: 5px; overflow: hidden; cursor: pointer; transition: border-color 0.3s; }
.thumbnail:hover { border-color: var(--primary-color); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-details { text-align: left; }
.product-title { font-size: 2.5rem; font-weight: 600; margin-bottom: 20px; }
.product-description { font-size: 1rem; line-height: 1.8; color: var(--text-light); margin-bottom: 40px; }
.whatsapp-button { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; background-color: #25D366; color: white; text-decoration: none; font-weight: 600; border-radius: 50px; font-size: 1.1rem; transition: all 0.3s ease; }
.whatsapp-button:hover { background-color: #128C7E; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* --- KATEGORİ SAYFASI --- */
.category-page { padding: 60px 0; }
.category-header { text-align: center; margin-bottom: 50px; border-bottom: 1px solid var(--border-color); padding-bottom: 30px; }
.category-header h1 { font-size: 2.8rem; font-weight: 600; }
.category-header p { font-size: 1rem; color: var(--text-light); margin-top: 10px; }

/* --- GİRİŞ VE KAYIT SAYFALARI --- */
.auth-page { width: 100%; flex-grow: 1; display: flex; justify-content: center; align-items: center; background-color: var(--light-gray); padding: 40px 0; }
.auth-wrapper { display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; width: 100%; margin: 20px; background-color: #fff; box-shadow: 0 15px 50px rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; }
.auth-visual { background: url('https://images.unsplash.com/photo-1585487005247-49354c4a6313?q=80&w=1887') no-repeat center center/cover; }
.form-container { padding: 50px; }
.form-container h2 { text-align: center; margin-bottom: 30px; font-weight: 600; font-size: 1.8rem; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"] { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(0,123,255,0.15); }
.form-container button { width: 100%; padding: 15px; background-color: var(--primary-color); color: var(--secondary-color); border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; font-weight: 500; transition: background-color 0.3s; }
.form-container button:hover { background-color: #333; }
.form-message { padding: 15px; margin-bottom: 20px; border-radius: 4px; border: 1px solid transparent; }
.form-message.error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.form-message.success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.form-switch { text-align: center; margin-top: 25px; color: var(--text-light); }
.form-switch a { color: var(--primary-color); text-decoration: none; font-weight: 500; }

/* --- FOOTER --- */
footer { background-color: var(--light-gray); color: var(--text-light); text-align: center; padding: 40px 0; border-top: 1px solid var(--border-color); }

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 992px) {
    .header-center {
        display: none; 
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    .header-center.active {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .desktop-menu {
        flex-direction: column;
        padding: 10px 0;
    }
    .desktop-menu li {
        margin: 0;
        text-align: center;
    }
    .desktop-menu li a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }
    .desktop-menu li:last-child a {
        border-bottom: none;
    }
    .desktop-menu li a::after {
        display: none;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 30px;
        display: none; /* Mobilde alt menüleri gizle, ileride açılır yapılabilir */
        opacity: 1;
        visibility: visible;
        background-color: #fdfdfd;
    }
    li.has-dropdown:hover > .dropdown-menu {
        display: none; /* Mobilde hover ile açılmayı engelle */
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
        z-index: 10;
    }
  /* ... MOBİL UYUMLULUK ... bloğunun içinde .mobile-menu-toggle span stilini bul ve değiştir */
.mobile-menu-toggle span {
    display: block;
    width: 28px; /* Biraz daha geniş */
    height: 3px; /* Biraz daha kalın */
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-content { padding: 30px; }
    .hero-content h1 { font-size: 2.5rem; }
    .page-section { padding: 60px 0; }
    .page-section h2 { font-size: 2rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-layout { grid-template-columns: 1fr; gap: 40px; }
    .product-title { font-size: 2rem; }
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .account-layout { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .product-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4::after { margin-left: auto; margin-right: auto; }
}
/* --- HESABIM SAYFASI (MOBİL ÖNCELİKLİ KESİN ÇÖZÜM) --- */
.account-page {
    padding: 40px 0; /* Mobilde dikey boşluğu azalttık */
    background-color: var(--light-gray);
}

.account-header {
    text-align: center;
    margin-bottom: 30px;
}

.account-header h1 {
    font-size: 2.2rem; /* Mobilde başlığı biraz küçülttük */
}

.account-container {
    max-width: 800px; /* Maksimum genişlik */
    margin: 0 auto;
    display: grid;
    gap: 25px; /* Kartlar arası boşluk */
}

.card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Hesap Bilgileri Listesi */
.info-list {
    list-style: none;
    padding: 0;
}
.info-list li {
    display: flex;
    flex-direction: column; /* Mobilde alt alta gelsin */
    align-items: flex-start; /* Sola hizalı olsun */
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.info-list li:last-child {
    border-bottom: none;
}
.info-list li span {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.info-list li strong {
    font-weight: 500;
    font-size: 1.1rem;
    word-break: break-all;
}

/* Modern Buton Stili (Değişiklik yok, öncekiyle aynı) */
.button-modern {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.button-modern:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Çıkış Yap Butonu */
.logout-button {
    display: block; /* Tam genişlik kaplasın */
    text-align: center;
    width: 100%;
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.logout-button:hover {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}


/* BÜYÜK EKRAN AYARLARI (TABLET VE ÜSTÜ) */
@media (min-width: 768px) {
    .account-page {
        padding: 60px 0;
    }
    .account-header h1 {
        font-size: 2.8rem;
    }
    .card {
        padding: 35px;
    }
    .info-list li {
        flex-direction: row; /* Büyük ekranda yan yana gelsin */
        justify-content: space-between;
        align-items: center;
    }
    .info-list li span {
        margin-bottom: 0;
    }
}

/* Mobil Uyumluluk */
@media (max-width: 576px) {
    .account-cards-container {
        gap: 20px;
    }
    .card {
        padding: 20px;
    }
    .info-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .info-list li strong {
        font-size: 1.1rem;
    }
    .info-list li small {
        text-align: left;
    }
}

/* Hesabım sayfası mobil uyumluluk */
@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr; /* Mobilde her şey alt alta */
    }
}
/* --- YENİ HAKKIMIZDA BÖLÜMÜ STİLLERİ (GÜNCELLENMİŞ VE KESİN ÇÖZÜM) --- */
.page-section-about {
    padding: 100px 0;
    background-color: var(--secondary-color);
}
.section-title-center {
    text-align: center;
    margin-bottom: 60px;
}
.section-title-center h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}
.section-title-center p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; /* Boşluğu biraz artırdık */
    align-items: center;
    margin-bottom: 80px;
}
.about-row.image-right .about-image {
    order: 2; /* Resim sağda olan satırda resmi 2. sıraya al */
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    
    /* === SORUNU KESİN ÇÖZEN KODLAR BURADA === */
    aspect-ratio: 4 / 3; /* Kutunun en-boy oranını 4:3 olarak sabitler */
    width: 100%;         /* Genişlik %100 olsun */
    height: auto;        /* Yükseklik orana göre otomatik ayarlansın */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmin bu yeni kutuya taşmadan, oranını koruyarak sığmasını sağlar */
    display: block;
}
.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.about-text p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Mobil için hakkımızda bölümünü düzenle */
@media (max-width: 768px) {
    .about-row {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
        gap: 30px;
        text-align: center;
    }
    .about-row.image-right .about-image {
        order: 1; /* Mobilde her zaman önce resim gelsin */
    }
}
/* --- FOOTER STİLLERİ --- */
.main-footer {
    background-color: #1a1a1a; /* Koyu Gri / Siyah Tonu */
    color: #f0f0f0; /* Açık Gri Metin */
    padding: 60px 0 20px 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Sütun */
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333; /* Hafif bir ayırıcı */
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
}
.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color); /* Vurgu rengi */
    margin-top: 10px;
}

.footer-col p {
    line-height: 1.7;
    margin-top: 20px;
    color: #cccccc;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color); /* Hover'da vurgu rengi */
}

.footer-logo {
    max-height: 50px; /* Logo boyutunu ayarla */
    display: block;
    margin-bottom: 20px;
}


.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #999999;
}

/* Footer Mobil Uyumluluk */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablette 2 sütun */
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
        text-align: center;
    }
    .footer-col h4::after {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}
/* --- ARAMA EKRANI STİLLERİ --- */
.search-toggle { background: none; border: none; cursor: pointer; padding: 0; }

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-search {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 3rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

.search-form-container {
    width: 100%;
    max-width: 600px;
}
.search-form-container form {
    position: relative;
}
.search-form-container input[type="search"] {
    width: 100%;
    font-size: 2rem;
    padding: 20px;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    background: transparent;
    outline: none;
}
.search-form-container button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
}
/* --- HEADER ARAMA KUTUSU ANİMASYONU --- */
.header-search-form {
    position: absolute;
    right: 120px; /* İkonların olduğu yere denk gelsin */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.header-search-form input {
    border: none;
    border-bottom: 2px solid var(--primary-color);
    padding: 8px 5px;
    width: 0px; /* Başlangıç genişliği 0 */
    transition: all 0.4s ease;
    outline: none;
    font-size: 0.95rem;
}

.main-header.search-active .header-search-form {
    opacity: 1;
    visibility: visible;
}

.main-header.search-active .header-search-form input {
    width: 200px; /* Aktif olunca genişliği artır */
}

/* Arama aktifken ortadaki menüyü ve sağdaki ikonları gizle */
.main-header.search-active .header-center,
.main-header.search-active .action-icon {
    opacity: 0;
    visibility: hidden;
}

/* Sadece arama butonunu gizleme */
.header-actions .search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
/* --- İLETİŞİM BÖLÜMÜ WHATSAPP BUTONU --- */
.contact-section .whatsapp-button-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 16px 32px;
    background-color: #25D366; /* WhatsApp Yeşili */
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-section .whatsapp-button-contact:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}