/* =============================================== */
/* ############# KARABAL ÇAY - STİL ############## */
/* =============================================== */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000; /* Siyah zemin */
    color: #fff; /* Beyaz yazı */
}

/* ÜST BİLGİLENDİRME ŞERİDİ */
.top-bar {
    background-color: #FFD700; /* Altın sarısı zemin */
    color: #000; /* Siyah yazı */
    text-align: center;
    padding: 10px 0;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* HEADER ALANI - DÜZELTİLDİ: Logo/Slogan Sol, İkonlar Sağ Üst */
.header {
    background-color: #0d0d0d;
    padding: 20px 5%;
    border-bottom: 3px solid #FFD700;
    display: flex;
    flex-direction: column; /* Logo/Slogan üstte, Navigasyon altta kalsın */
    align-items: flex-start; /* Tüm içeriği (logo, slogan, navbar) sola hizala */
    position: sticky;
    top: 0;
    z-index: 100;
}

/* LOGO VE SLOGAN İÇİN BİLEŞİK KAPSAYICI */
.header-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.header .logo {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
    margin-bottom: 2px;
}

.header .logo img {
    height: 60px; /* Logo yüksekliği */
    width: auto;
    display: block;
}

.header .slogan {
    font-style: italic;
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.9em;
    margin-left: 0; 
    text-align: left; 
}

/* HEADER İKONLARI - Konumunu koru (Sağ Üstte) */
.header-icons {
    position: absolute;
    top: 25px;
    right: 5%;
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icons a {
    color: #FFD700;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: color 0.3s;
    position: relative; 
}

.header-icons a:hover {
    color: #fff;
}

/* NAVİGASYON MENÜSÜ */
.navbar {
    width: 100%; /* Navigasyon menüsünün tam genişliği kaplamasını sağlar */
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s, border-bottom 0.3s;
}

.navbar a:hover, .navbar a.active {
    color: #FFD700;
    border-bottom: 2px solid #FFD700;
}

/* ANA İÇERİK */
main {
    padding: 40px 5%;
    min-height: 70vh;
}

/* BÖLÜM BAŞLIKLARI */
.section-title {
    text-align: center;
    color: #FFD700;
    font-size: 2.5em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

/* KAHRAMAN ALANI (ANASAYFA) */
.hero-section {
    background: url('hero-bg.png') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    max-width: 80%;
}

.hero-content h2 {
    color: #FFD700;
    font-size: 3em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.main-btn {
    background-color: #FFD700;
    color: #000;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: inline-block;
}

.main-btn:hover {
    background-color: #fff;
}

/* ÖNE ÇIKAN ÜRÜNLER (ANASAYFA) */
.highlight-grid {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 30px;
    background-color: #0d0d0d;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.highlight-item:nth-child(even) {
    flex-direction: row-reverse;
}

.highlight-item img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #FFD700;
}

.highlight-text h3 {
    color: #FFD700;
    font-size: 1.8em;
    margin-top: 0;
}

.highlight-text p {
    line-height: 1.6;
    color: #ccc;
}

/* ÜRÜN LİSTESİ (URUNLERIMIZ) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #0d0d0d;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.05);
}

.product-image-container {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.product-image-container img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* Görselin tamamının görünmesini sağlar */
    transition: transform 0.3s;
}

.product-image-container .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5em;
    line-height: 1;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.product-image-container .slider-btn:hover {
    opacity: 1;
}

.product-thumbnail-grid {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 5px;
    background-color: #0d0d0d;
    border-top: 1px solid #FFD700;
}

.product-thumbnail-grid img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    border-radius: 4px;
}

.product-thumbnail-grid img:hover, .product-thumbnail-grid img.active {
    border-color: #FFD700;
}

.product-info h3 {
    color: #FFD700;
    font-size: 1.5em;
    margin: 10px 0 5px 0;
}

.product-info p {
    color: #ccc;
    font-size: 0.9em;
    height: 60px; /* Açıklamaların sabit yüksekliği */
    overflow: hidden;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.8em;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.quantity-input {
    width: 80px;
    padding: 8px;
    text-align: center;
    border: 1px solid #333;
    background-color: #222;
    color: #fff;
    border-radius: 4px;
    font-size: 1em;
}

.add-to-cart-btn {
    background-color: #FFD700;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s;
    width: 100%;
}

.add-to-cart-btn:hover {
    background-color: #fff;
}

/* SEPET SAYFASI (sepet.html) */
.cart-content {
    max-width: 800px;
    margin: 0 auto;
}

.cart-items {
    background-color: #0d0d0d;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #FFD700;
}

/* Sepet tablo görünümü için */
.cart-items table {
    width: 100%;
    border-collapse: collapse;
}
.cart-items thead th {
    color: #FFD700;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #FFD700;
}
.cart-items tbody td {
    padding: 15px 10px;
    border-bottom: 1px dashed #333;
    vertical-align: middle;
}
.cart-items tbody tr:last-child td {
    border-bottom: none;
}
.cart-items .quantity-input {
    width: 50px;
    padding: 5px;
}
.cart-items .remove-btn {
    background-color: #CC0000; /* Kırmızı */
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}


.cart-summary {
    text-align: right;
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 20px;
}

#order-summary-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

/* HAKKIMIZDA & İLETİŞİM SAYFALARI */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #0d0d0d;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
}

.page-content h3 {
    color: #FFD700;
    border-bottom: 1px dashed #333;
    padding-bottom: 5px;
    margin-top: 30px;
}

.page-content p {
    line-height: 1.8;
    color: #ccc;
    text-align: justify;
}

/* İletişim Formu Stilizasyonu */
.contact-container {
    display: flex;
    gap: 40px;
}

.contact-info, .contact-form-container {
    flex: 1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #FFD700;
    background-color: #000;
    color: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}

/* GİRİŞ SAYFASI */
.login-section {
    max-width: 500px;
    margin: 0 auto;
    background-color: #0d0d0d;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #FFD700;
}

.login-section h2 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
}

.login-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.login-section input[type="text"],
.login-section input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #FFD700;
    background-color: #000;
    color: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}

#kurumsalFields input {
    margin-top: 5px;
}


/* FOOTER */
.contact-section {
    background-color: #0d0d0d;
    color: #fff;
    text-align: center;
    padding: 20px 5%;
    border-top: 3px solid #FFD700;
    font-size: 0.9em;
}
.contact-section a {
    color: #FFD700;
    text-decoration: none;
    margin: 0 5px;
}

/* GİZLİ MENU (MOBİL) */
.menu-toggle {
    display: none; /* Masaüstünde gizle */
    color: #FFD700;
    font-size: 2em;
    cursor: pointer;
    position: absolute;
    left: 5%;
    top: 25px;
    z-index: 110;
}

/* BİLDİRİM KUTUSU */
#notification {
    /* JS ile yönetildiği için buraya sadece boş bir kural bırakılabilir */
}


/* RESPONSIVE TASARIM */
@media (max-width: 900px) {
    .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .highlight-item { 
        flex-direction: column; 
        text-align: center; 
    }
    .highlight-item:nth-child(even) { 
        flex-direction: column; 
    }
    .hero-content h2 { 
        font-size: 3em; 
    }
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    /* Mobil Menü Aktifleşmesi */
    .menu-toggle { 
        display: block; 
    }
    
    .navbar {
        display: none; /* Varsayılan olarak gizle */
        width: 100%;
        background-color: #1a1a1a;
        padding-bottom: 10px;
    }

    .navbar.active {
        display: block; /* Tıklandığında göster */
    }

    .header {
        position: relative;
        padding: 15px 5%;
        padding-top: 70px; /* Üst boşluğu ikonlar için ayarla */
        align-items: flex-start;
    }
    
    .header .logo {
        text-align: left; 
    }
    
    .header .logo img {
        margin: 0; 
        height: 50px;
    }

    .header .slogan {
        display: none; /* Mobil görünümde slogan gizli kalır */
    }

    /* İkonları sağ üst köşede tut */
    .header-icons {
        top: 15px;
        right: 5%;
        gap: 15px;
    }
    .header-icons a {
        font-size: 1.1em;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0;
    }
    .navbar li {
        width: 100%;
        border-bottom: 1px solid #333;
    }
    .navbar li:last-child {
        border-bottom: none;
    }
    .navbar a {
        display: block;
        padding: 10px 0;
        text-align: center;
    }

    .hero-content {
        padding: 20px;
    }
    .hero-content h2 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }

    .highlight-item img {
        width: 150px;
        height: 150px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    
    #order-summary-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* =============================================== */
/* ######### ANASAYFA ÖNE ÇIKANLAR ARKA PLAN ######### */
/* =============================================== */

/* Arka plan resimlerini yerleştirmek için genel ayarlar */
.highlight-item {
    position: relative;
    overflow: hidden; 
    background-color: #0d0d0d; 
}

/* Arka plan resmini uygulayın (Ayder) */
.highlight-ayder {
    background-image: url('ayder-bg.jpg'); 
    background-size: cover;
    background-position: center center;
}

/* Arka plan resmini uygulayın (Fırtına) */
.highlight-firtina {
    background-image: url('firtina-bg.jpg'); 
    background-size: cover;
    background-position: center center;
}

/* Resim üzerindeki metinleri daha okunur yapmak için bir katman (overlay) */
.highlight-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Yarı şeffaf siyah katman */
    z-index: 1; 
}

/* İçeriği (resim ve yazı) katmanın üzerine çıkarmak */
.highlight-item img,
.highlight-item .highlight-text {
    position: relative;
    z-index: 2; 
}

/* Metin kutusu renk ayarları */
.highlight-item .highlight-text {
    background: rgba(0, 0, 0, 0.5); 
    padding: 15px;
    border-radius: 5px;
}

/* Başlık ve Paragrafı Ayarlama (Okunurluk) */
.highlight-item h3 {
    color: #FFD700; /* Altın sarısı başlık rengi */
}

.highlight-item p {
    color: #fff;
}

/* Mobil uyumluluk için, 900px altında arka planı biraz daha koyu yapabiliriz. */
@media (max-width: 900px) {
    .highlight-item::before {
        background: rgba(0, 0, 0, 0.6); /* Mobil cihazlarda daha koyu overlay */
    }
}