@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #CBD183; /* Biraz daha beyazımsı, galeri hissi veren bir arka plan */
    color: #333;
}

/* --- Top Banner (Lacivert Duyuru Çubuğu) --- */
.top-banner {
    background-color: #ff7300; /* Görseldeki gibi koyu lacivert */
    color: white;
    text-align: center;
    font-size: 12px;
    padding: 8px 10px;
    letter-spacing: 1px;
}

/* --- Main Header / Navbar --- */
.navbar {
    background-color: #e7ead3;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    
    /* YENİ EKLENEN KODLAR: Menüyü yukarı sabitler */
    position: sticky;
    top: 0;
    z-index: 1000; /* Diğer tüm resimlerin ve yazıların üstünde kalmasını sağlar */
}

/* --- Sol Kısım (Açılır Menü) --- */
.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Orta Kısım (Logo) */
.header-center {
    flex: 1;
    text-align: center;
}

.nav-brand {
    font-weight: 600;
    font-size: 28px;
    color: #ff7300;
    text-decoration: none;
    letter-spacing: 2px;
    font-family: 'Times New Roman', Times, serif; /* Görseldeki logoya benzer serif font */
    font-style: italic;
}

/* Sağ Kısım (İkonlar) */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 20px; /* İkonlar arası boşluk */
}

.icon-btn {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: #ff7300;
}

/* --- Dropdown Menu (Açılır Menü) --- */
.dropdown {
    position: relative;
    display: inline-block;
    
    /* Görseldeki gibi koyu kutuyu elde etmek için kapsayıcıya kalıcı bir arka plan ekliyoruz */
    background-color: #1a252f; /* Önceki butondaki gibi koyu bir lacivert */
    border-radius: 4px; /* Hafif yuvarlak köşeler */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Zoom ve gölge için transition */
    padding: 5px; /* İkonun kutuya sığması için padding */
    margin-right: 15px; /* Logo ile araya boşluk */
    
    /* Görseldeki gibi her zaman koyu kutulu kalmasını sağlamak için kapsayıcıyı kapladık */
}

/* Hamburger Butonunun Kendisi */
.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px 5px 5px; /* Padding'i kutuya göre ayarladık */
    color: #fff; /* İkon rengini her zaman beyaz yaptık */
    display: flex; /* İkonu ortalamak için */
    align-items: center;
}

/* --- Menü İçeriği (Dropdown-content) --- */
/* (Bu kısımlarda değişiklik yok, ama animasyonu şıklaştırdım) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.08);
    z-index: 10;
    top: 100%;
    left: 0;
    border: 1px solid #eaeaea;
    border-radius: 0 0 4px 4px; /* Sadece alt köşeler yuvarlak */
    
    /* Menü açılırken de bir zoom-in efekti ekleyelim */
    transform-origin: top left;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

/* Fare üzerine geldiğinde menüyü göster ve animasyonla aç */
.dropdown:hover .dropdown-content {
    display: block;
    transform: scale(1);
    opacity: 1;
}

/* Açılır menü içindeki linkler */
.dropdown-content a {
    color: #555;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease; /* Bütün animasyonların yumuşak olmasını sağlar */
    transform-origin: left center; /* Büyüme efektinin tam soldan, hizayı bozmadan başlamasını sağlar */
}

/* Üzerine gelince (Hover) gerçekleşecek yeni ve zarif efektler */
.dropdown-content a:hover {
    background-color: transparent; /* O rahatsız edici arka plan rengini tamamen şeffaf yaptık */
    color: #001244; /* Yazı rengini üstteki duyuru çubuğunun şık lacivertine çevirdik */
    transform: scale(1.04) translateX(8px); /* Hem %4 zoom yapar hem de 8 piksel sağa kaydırır */
    font-weight: 600; /* Yazıyı vurgulamak için hafif kalınlaştırır */
    text-shadow: 0px 4px 12px rgba(0, 18, 68, 0.15); /* Yazının arkasında sanki çok hafif bir ışık yanıyormuş gibi bir highlight (gölge) oluşturur */
}

/* --- YENİ EFEKT: Fare Üzerine Geldiğinde (Hover) --- */
/* Fare üzerine geldiğinde tüm dropdown kapsayıcısına zoom ve highlight efekti */
.dropdown:hover {
    transform: scale(1.06); /* Çok hafif zoom (%6) */
    box-shadow: 0 4px 15px rgba(0, 18, 68, 0.25); /* Lacivert highlight gölgesi */
    /* ARKA PLAN RENGİNİ DEĞİŞTİRMİYORUZ, böylece zoom efekti öne çıkıyor */
}

/* --- Main Content Area --- */
.container {
    max-width: 1200px; /* Eski dar 700px değerini 1200px olarak genişlettik */
    width: 90%; /* Küçük ekranlarda kenarlarda %5 boşluk bırakarak ekranı kaplamasını sağlar */
    margin: 50px auto;
    background-color: #e7ead3;
    padding: 50px; /* İçerideki boşluğu biraz artırarak ferahlattık */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); /* Gölgeyi çok daha hafif, zarif bir hale getirdik */
}

h1 { color: #2c3e50; margin-bottom: 15px; }
p { color: #666; line-height: 1.7; margin-bottom: 20px; }
.form-group { margin-bottom: 25px; background-color: #f8f9fa; padding: 20px; border-radius: 8px; border: 1px dashed #ccc; }
label { font-weight: 600; color: #2c3e50; display: block; margin-bottom: 10px; }
button { background-color: #2c3e50; color: white; padding: 12px 24px; border: none; border-radius: 0; cursor: pointer; font-size: 16px; font-weight: 600; width: 100%; transition: background-color 0.3s ease; }
button:hover { background-color: #1a252f; }

/* --- Zarifleştirilmiş Sayfa Başlığı --- */
.page-title {
    text-align: center;
    font-size: 22px; /* Daha küçük */
    color: #001244;
    letter-spacing: 5px; /* Harf arası boşluk artırıldı (zariflik katar) */
    margin-bottom: 40px;
    font-weight: 300; /* Font kalınlığı inceltildi */
    text-transform: uppercase;
}

/* --- Yatay Kaydırılabilir Vitrin (Touchpad Swipe Efekti) --- */
.gallery-scroll {
    display: flex;
    flex-wrap: nowrap; /* Asla alt satıra geçme, yan yana diz */
    gap: 30px;
    overflow-x: auto; /* Yatay kaydırmayı aktifleştir */
    padding-bottom: 30px; /* Hover animasyonları ve gölgeler için alt boşluk */
    
    /* Touchpad ile kaydırırken resimlerin pürüzsüzce oturmasını sağlar */
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 

    /* Çirkin kaydırma çubuğunu (scrollbar) gizlemek için */
    -ms-overflow-style: none;  /* IE ve Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Chrome, Safari ve Opera'da kaydırma çubuğunu gizle */
.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 260px; /* Her bir posterin genişliği sabitlendi, küçülmeyecek */
    scroll-snap-align: center; /* Kaydırınca tam ortalayarak durdurur */
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.03); 
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* --- Poster İsimlerini Zarifleştirme --- */
.poster-name {
    margin: 20px 0 5px;
    font-weight: 300; /* İnce font */
    color: #2c3e50;
    font-size: 13px; /* Daha küçük ve zarif */
    letter-spacing: 2px; /* Harf arası boşluk */
    text-transform: uppercase; /* Büyük harf */
}

.poster-price {
    color: #888;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* --- Resim Üzerine Gelince Değişme Efekti (Hover Swap) --- */
.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease; /* Yumuşak geçiş */
}

/* İkinci resim başlangıçta görünmez ve birincinin tam üzerinde durur */
.image-container img.secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Hover durumunda resim swap ve hafif zoom */
.gallery-item:hover .image-container {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.gallery-item:hover img.primary {
    opacity: 0;
}

.gallery-item:hover img.secondary {
    opacity: 1;
}

/* --- Kendi Posterini Yarat Bölümü Tasarımı --- */
.custom-section {
    margin-top: 80px; /* Çizgiden sonra daha fazla boşluk */
    padding-bottom: 60px;
}

.custom-section h2 {
    text-align: center;
    font-size: 20px; /* Başlıkla uyumlu ama biraz daha küçük */
    color: #001244;
    letter-spacing: 4px;
    margin-bottom: 25px;
    font-weight: 300;
    text-transform: uppercase;
}

.custom-section p {
    text-align: center;
    font-weight: 300;
    font-size: 14px;
    color: #777;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Custom form kutusunu daha sade ve butonlu hale getirdik */
.custom-form-container {
    max-width: 500px;
    margin: 0 auto;
}

/* "İncele" butonlarını sildiğimiz için stilini kaldırdık */

.buy-btn {
    background-color: transparent;
    color: #001244;
    border: 1px solid #001244;
    padding: 8px 16px;
    width: auto;
    border-radius: 4px;
    font-size: 13px; /* Hafif küçültüldü */
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background-color: #001244;
    color: #ffffff;
}

/* --- Zarif Hero Section (Yeni Tasarım) --- */
.hero-section {
    display: flex;
    align-items: center; /* Yazı ve resmi dikeyde tam ortalar */
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 100px;
    padding: 20px 0;
}

.hero-content {
    flex: 1;
    text-align: left; /* Yazılar solda */
}

/* Başlığı "POSTERLER" stiliyle aynı yaptık */
.hero-content h1 {
    font-size: 24px; /* POSTERLER yazısına yakın bir boyut */
    font-weight: 300; /* İnce font */
    color: #001244;
    letter-spacing: 6px; /* Geniş harf arası */
    text-transform: uppercase; /* Büyük harf */
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Motto yazısını da zarifleştirdik */
.hero-content .promo-text {
    font-size: 13px;
    color: #888;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-image {
    flex: 1.5; /* Görsel alanını biraz daha büyüttük */
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 2px; /* Köşeleri daha keskin ve modern yaptık */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
}

/* Poster isminin altını çizme: Hem tüm item'a hem de sadece yazıya hover olunca */
.gallery-item:hover .poster-name,
.poster-name:hover {
    text-decoration: underline;
    text-underline-offset: 5px; /* Çizgi ile yazı arasında zarif bir boşluk */
    text-decoration-thickness: 1px; /* Çizgi inceliği */
}

/* Linklerin (A etiketlerinin) genel alt çizgisini kaldıralım ki biz kendimiz kontrol edelim */
.gallery-item a {
    text-decoration: none; /* Alt çizgiyi kaldırır */
    color: inherit;       /* Yazı rengini bozmaz, siyah/gri kalır */
    display: block;       /* Tüm alanı tıklanabilir yapar */
}

/* Hover durumunda resmin büyüme efekti için bunu da ekleyelim */
.gallery-item a:hover .image-container {
    transform: scale(1.02);
}

/* --- Scroll Reveal (Kaydırma Animasyonu) --- */
.reveal {
    opacity: 0; /* Başlangıçta tamamen şeffaf */
    transform: translateY(40px); /* 40 piksel aşağıda durur */
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); /* Çok yumuşak ve zarif bir kayma efekti */
}

/* Bu sınıf JavaScript tarafından öğe ekrana girince eklenecek */
.reveal.active {
    opacity: 1; /* Tamamen görünür */
    transform: translateY(0); /* Orijinal yerine kayar */
}

/* --- Footer (Alt Bilgi) Alanı --- */
.site-footer {
    background-color: #ff7300; /* Markanın imza lacivert rengi */
    color: #ffffff;
    padding: 60px 40px 20px;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #a0aec0; /* Çok hafif grimsi mavi bir başlık rengi */
}

.footer-col p, .footer-col a {
    font-size: 14px;
    color: #cbd5e0;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
    font-weight: 300;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* En alttaki telif hakkı yazısı */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Çok ince şeffaf bir çizgi */
    text-align: center;
    font-size: 12px;
    color: #a0aec0;
    font-weight: 300;
}

/* --- Login / Register Sayfası --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    margin: 40px 0;
}

.auth-card {
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 300;
    color: #001244;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.auth-card .form-group {
    text-align: left;
    margin-bottom: 20px;
    background-color: transparent;
    border: none;
    padding: 0;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.auth-card input:focus {
    outline: none;
    border-color: #001244;
}

.auth-card .submit-btn {
    background-color: #001244;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.auth-card .submit-btn:hover {
    background-color: #1a252f;
}

/* --- Veya Çizgisi --- */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #eee;
    margin: 0 15px;
}

/* --- Sosyal Medya Butonları --- */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-google {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-google:hover {
    background-color: #f9f9f9;
    border-color: #ccc;
}

.btn-facebook {
    background-color: #1877F2;
    color: #ffffff;
    border: 1px solid #1877F2;
}

.btn-facebook:hover {
    background-color: #166fe5;
}

.auth-footer {
    margin-top: 25px;
    font-size: 13px;
    color: #666;
}

.auth-footer a {
    color: #001244;
    font-weight: 600;
    text-decoration: none;
}

/* --- Giriş Yapmış Kullanıcı Menüsü --- */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
    border-left: 1px solid #eaeaea; /* Diğer ikonlarla arasına zarif bir çizgi */
    padding-left: 15px;
}

.user-greeting {
    font-size: 13px;
    font-weight: 500;
    color: #001244;
    letter-spacing: 1px;
    text-transform: capitalize; /* İlk harfi büyük yapar */
}

.logout-btn {
    color: #888;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    color: #d9534f; /* Üzerine gelince çok hafif, zarif bir kırmızı olur */
}

/* --- Sepet İkonu ve Bildirim Sayısı (Badge) --- */
.cart-btn {
    position: relative; /* Badge'in ikonun üstüne oturmasını sağlar */
    display: inline-flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #001244;
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ffffff; /* İkonla karışmaması için beyaz çerçeve */
}

/* --- Sepet Sayfası Düzeni --- */
.cart-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.cart-items-section {
    flex: 2; /* Ürün listesi daha geniş alan kaplar */
}

.cart-summary-section {
    flex: 1; /* Sipariş özeti kutusu sağda daha dar durur */
    background-color: #fafafa;
    padding: 30px;
    border-radius: 4px;
    position: sticky;
    top: 100px;
}

/* Sepet Tablosu */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table th {
    font-size: 11px;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 400;
}

.cart-table td {
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-product-img {
    width: 70px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-product-detail .p-name {
    font-size: 14px;
    font-weight: 500;
    color: #001244;
    margin-bottom: 5px;
}

.cart-product-detail .p-size {
    font-size: 12px;
    color: #888;
    font-weight: 300;
}

/* Silme Linki */
.remove-item-link {
    color: #888;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.remove-item-link:hover {
    color: #d9534f;
    text-underline-offset: 3px;
    text-decoration: underline;
}

/* Özet Kutusu */
.summary-title {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #001244;
    margin-bottom: 25px;
    font-weight: 500;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
    font-weight: 300;
}

.summary-total {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 600;
    color: #001244;
    font-size: 16px;
}

.checkout-btn {
    width: 100%;
    background-color: #001244;
    color: white;
    border: none;
    padding: 15px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #1a252f;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .cart-layout {
        flex-direction: column;
    }
}

.quantity-controller button:hover {
    background-color: #f5f5f5 !important;
    color: #001244 !important;
}