/* Temel Ayarlar */
:root {
    --primary-color: #d8aa11;
    --bg-dark: #0f0f0f;
    --nav-bg: #421e12;
    --text-light: #f8f9fa;
    /* YENİ FONTLAR: Montserrat (Başlık) ve Open Sans (Metin) */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: #666;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link, .btn {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-gold { color: var(--primary-color) !important; }
.bg-secondary { background-color: #222 !important; }

/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    transition: all 0.3s ease;
}
.nav-link {
    color: #fff !important;
    text-transform: uppercase;
    font-size: 0.85rem; /* Font değiştiği için biraz küçülttük */
    letter-spacing: 0.5px;
    margin: 0 10px;
    font-weight: 600;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Button */
.btn-custom {
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: 4px; /* Köşeleri hafif yumuşattık */
    padding: 10px 30px;
    border: none;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.btn-custom:hover {
    background-color: #b58d0e;
    transform: translateY(-2px);
}

/* Slider & Hero */
.hero-slider { position: relative; }
.object-fit-cover { object-fit: cover; }
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.carousel-caption {
    z-index: 2; bottom: 0; top: 0;
    display: flex; flex-direction: column; justify-content: center;
}
.main-title {
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    font-weight: 800; /* Daha kalın başlık */
}

/* Ticker */
.ticker-wrap {
    width: 100%; overflow: hidden; background-color: #2a130b; padding: 20px 0; white-space: nowrap;
}
.ticker { display: inline-block; animation: marquee 30s linear infinite; } /* Hız ayarlandı */
.ticker__item {
    display: inline-block; padding: 0 40px; font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.3); font-family: var(--font-heading);
    font-weight: bold; letter-spacing: 1px; transition: color 0.3s;
}
.ticker__item:hover { color: var(--primary-color); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Products */
.section-light { background-color: #fff; }
.separator { width: 60px; height: 3px; background-color: var(--primary-color); margin-top: 15px; }
.sub-title { color: var(--primary-color); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; display: block; margin-bottom: 10px; }

.product-card {
    transition: transform 0.3s; cursor: pointer;
    background: #fff; padding: 15px; border-radius: 8px; height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Hafif gölge eklendi */
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.product-img-wrap { overflow: hidden; border-radius: 5px; background: #fff; text-align: center; } /* Arka plan beyaz yapıldı */
.product-img-wrap img { transition: transform 0.5s; width: 100%; max-height: 300px; object-fit: contain; confirm: contain; }
.product-card:hover img { transform: scale(1.08); }
.price { display: block; margin-top: 10px; font-weight: 700; font-size: 1.2rem; font-family: var(--font-heading); }

/* Parallax */
.parallax-section {
    background: linear-gradient(rgba(66, 30, 18, 0.85), rgba(66, 30, 18, 0.85)), url('img/IMG-20251206-WA0013.jpg');
    background-size: cover; background-attachment: fixed; background-position: center; height: 400px;
}

/* Footer & Modal Custom */
.footer-section { background-color: #1a0c07; font-size: 0.9rem; }
.border-gold { border: 2px solid var(--primary-color) !important; }

/* Form Inputs Visibility Fix */
.form-control, .form-select {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #ced4da;
    border-radius: 4px;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(216, 170, 17, 0.25);
    border-color: var(--primary-color);
}
.modal-content {
    background-color: #1a1a1a !important;
}

/* Scrollbar Custom */
.products-list-container::-webkit-scrollbar { width: 6px; }
.products-list-container::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 4px; }
.products-list-container::-webkit-scrollbar-track { background-color: #222; }

@media (max-width: 768px) {
    .display-1 { font-size: 2.2rem; }
    .parallax-section { background-attachment: scroll; }
}

/* --- ARKA PLAN ZENGİNLEŞTİRME (BACKGROUND ART) --- */

/* 1. Genel Beyaz Bölümler (.section-light) için Kahve Çekirdeği Dokusu
   - Ürünler ve genel içerik alanlarının arkasına çok silik dağınık kahve çekirdekleri ekler.
*/
.section-light {
    position: relative;
    z-index: 1; /* İçeriği öne alır */
    overflow: hidden; /* Taşan resimleri gizler */
}

.section-light::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Silik kahve çekirdeği deseni */
    background-image: url('https://www.transparenttextures.com/patterns/coffee.png');
    opacity: 0.4; /* Çok hafif görünürlük */
    z-index: -1; /* Yazının arkasına atar */
    pointer-events: none;
}

/* 2. Hakkımızda & Misyon Kutusu (.bg-dark içindeki alanlar)
   - Koyu renkli kutulara "Premium" hissiyatı veren hafif bir doku ekler.
*/
.bg-dark, .modal-content {
    position: relative;
    z-index: 1;
    /* Koyu karbon fiber/kumaş dokusu */
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    background-blend-mode: overlay;
}

/* 3. İletişim Formu ve Gri Alanlar (.bg-light)
   - Formların arkasına kahve lekesi/buharı tarzı sanatsal bir dokunuş.
*/
.bg-light {
    position: relative;
    overflow: hidden;
}

.bg-light::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    /* Sağ alt köşeye dekoratif kahve fincanı izi veya buharı */
    background-image: url('https://cdn.pixabay.com/photo/2016/03/26/22/23/coffee-1281685_1280.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08; /* Çok çok silik, sadece dikkatli bakınca fark edilir */
    transform: rotate(-15deg);
    pointer-events: none;
}

.table-dark {
    position: relative;
    overflow: hidden;
}

.table-dark::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/arabesque.png');
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}
.table-dark * {
    position: relative;
    z-index: 1;
}

/* 5. Sipariş Modalı (Pop-up) Özelleştirme
   - Sipariş formunun arkasına zengin bir kahve çuvalı dokusu ekler.
*/
.modal-content {
    background-color: #1a1a1a !important; /* Rengi sabitle */
    border: 1px solid var(--primary-color);
}

.modal-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Çuval bezi dokusu */
    background-image: url('https://www.transparenttextures.com/patterns/burlap.png');
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

/* 1. Genel İçerik Alanları (.section-light)
   Arkaya silik kahve çekirdekleri görseli (Yüklediğiniz Dibek Kahvesi görselinden) */
.section-light {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section-light::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Yüklediğin ürün görselini arka plan deseni olarak kullanıyoruz */
    background-image: url('img/IMG-20251206-WA0013.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03; /* Çok silik, sadece doku hissi verir */
    z-index: -1;
    pointer-events: none;
    filter: grayscale(100%); /* Siyah beyaz yaparak göz yormasını engeller */
}

/* 2. Koyu Alanlar (Footer ve Modal)
   Arkaya hafif bir doku hissi */
.bg-dark, .modal-content, .footer-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.footer-section::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: url('img/IMG-20251206-WA0008.jpg'); /* Fındıklı görseli */
    background-size: cover;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* 3. İletişim Formu Arkası
   Dekoratif bir kahve fincanı silueti */
.bg-light::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 300px;
    background-image: url('img/IMG-20251206-WA0010.jpg'); /* Türk Kahvesi silindiri */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.06;
    transform: rotate(-10deg);
    pointer-events: none;
}

/* Sosyal Medya İkonları İçin Hover Efekti */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-3px);
}

#cookieConsent {
    border-top: 3px solid var(--primary-color);
}

/* --- COOKIE CARD --- */
.cookie-card {
    display: none; /* ÖNEMLİ: Başlangıçta mutlaka gizli olsun */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background-color: #1a1a1a;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    /* JS ile display:block yapıldığında animasyon çalışır */
    animation: slideInUp 0.5s ease-out forwards;
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 576px) {
    .cookie-card { width: auto; left: 20px; right: 20px; bottom: 20px; }
}

/* --- SLIDER İÇİ LOGO --- */
.carousel-logo {
    max-width: 180px; /* Logo genişliği */
    height: auto;
    margin-bottom: 1.5rem; /* Yazıdan ne kadar yukarıda olacağı */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); /* Logoyu öne çıkarmak için hafif gölge */
    animation: fadeInDown 1s ease-out; /* Yukarıdan aşağı süzülme efekti */
}

/* Mobilde logo biraz daha küçük olsun */
@media (max-width: 768px) {
    .carousel-logo {
        max-width: 120px;
        margin-bottom: 1rem;
    }
}

/* Logo animasyonu */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* =========================================================
   YENİ: Modal ürün satırında Paket/Çeşit select ayarı
   ========================================================= */
.product-row .product-variant{
    display:none;
    min-width:140px;
    max-width:180px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.product-row .product-qty{
    max-width: 90px;
}
@media (max-width: 576px){
    .product-row .product-variant{ min-width:120px; }
}
/* Miktar solda, Çeşit sağda */
.product-row .d-flex.align-items-center.gap-2 { flex-wrap: nowrap; }

.product-row .product-qty { order: 1; max-width: 90px; }
.product-row .product-variant { order: 2; min-width: 160px; max-width: 220px; }


@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        --bs-modal-width: 1000px!important;
    }
}

img.order-product-img {
    width: 50px;
}

@media (min-width: 1200px) {
    .h4, h4 {
        font-size: 1rem;
    }
}