/* ==========================================================================
   BAŞARAN MOBİLYA - ANA STİL DOSYASI
   ========================================================================== */
:root { --primary: #2C3E50; --accent: #C5A059; --bg: #F9F9F9; --bg-light: #F9F9F9; --text-dark: #1a1a1a; --transition: all 0.4s ease; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: #333; line-height: 1.6; }

/* MODAL AÇIKKEN ARKA PLANIN KAYMASINI ENGELLER */
body.modal-open { overflow: hidden; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

nav { position: fixed; top: 0; width: 100%; padding: 25px 5%; display: flex; justify-content: space-between; align-items: center; background: white; z-index: 1000; border-bottom: 1px solid #eee; transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease; }
nav.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 5px 20px rgba(0,0,0,0.05); padding: 12px 5%; }

body.home-page nav { background: transparent; border-bottom: none; }
body.home-page nav.scrolled { background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid #eee; }

.logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: 2px; transition: 0.3s; }
nav.scrolled .logo { font-size: 1.4rem; }
body.home-page .logo { color: white; }
body.home-page nav.scrolled .logo { color: var(--primary); }

.nav-links { display: flex; gap: 35px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links li { list-style: none; }
.nav-links > li > a { font-size: 0.85rem; text-decoration: none; color: #333; text-transform: uppercase; font-weight: 600; transition: 0.3s; position: relative; padding-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--accent); }
.nav-links > li > a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background: var(--accent); transition: width 0.3s ease; }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { width: 100%; }

body.home-page .nav-links > li > a { color: white; letter-spacing: 1px; font-weight: 500; }
body.home-page nav.scrolled .nav-links > li > a { color: var(--primary); }
body.home-page nav.scrolled .nav-links > li > a:hover, body.home-page nav.scrolled .nav-links > li > a.active { color: var(--accent); }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); transition: 0.3s; }
body.home-page .menu-toggle { color: white; }
body.home-page nav.scrolled .menu-toggle { color: var(--primary); }

/* =======================================
   PREMIUM NAVBAR AÇILIR MENÜ (FERAH TASARIM)
   ======================================= */
.nav-links li.has-dropdown { 
    position: relative; 
}

.drop-icon {
    display: none; /* Masaüstünde orijinal sadelik için gizli */
}

.nav-links li.has-dropdown .dropdown {
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: #ffffff; /* Temiz ve lüks beyaz zemin */
    box-shadow: 0 15px 35px rgba(0,0,0,0.06), 0 5px 15px rgba(0,0,0,0.03); /* Çok yumuşak derinlik gölgesi */
    min-width: 240px; 
    list-style: none; 
    padding: 10px 0; 
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.04);
    border-top: 3px solid var(--accent); /* Üstte zarif altın çizgi */
    opacity: 0; 
    visibility: hidden; 
    display: block; 
    transform: translateY(15px); 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    z-index: 9999;
}

.nav-links li.has-dropdown:hover .dropdown { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.nav-links li.has-dropdown .dropdown li { 
    display: block; 
    width: 100%;
    border-bottom: 1px solid #f8f8f8;
}
.nav-links li.has-dropdown .dropdown li:last-child {
    border-bottom: none;
}

.nav-links li.has-dropdown .dropdown li a {
    display: block; 
    padding: 12px 25px; 
    color: #444 !important; /* Çiğ siyah değil, lüks koyu gri */
    font-size: 0.85rem !important; 
    text-transform: none !important; 
    font-weight: 500 !important;
    text-decoration: none;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.nav-links li.has-dropdown .dropdown li a::after {
    display: none !important; 
}

.nav-links li.has-dropdown .dropdown li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: 0.3s ease;
}

.nav-links li.has-dropdown .dropdown li a:hover { 
    background: #fafafa; 
    color: var(--primary) !important; /* Üstüne gelince marka rengi */
    padding-left: 32px; 
}

.nav-links li.has-dropdown .dropdown li a:hover::before {
    opacity: 1;
}

/* =======================================
   MOBİL MENÜ YENİDEN YAPILANDIRMASI (HATA ÇÖZÜMÜ)
   ======================================= */
@media (max-width: 992px) {
    /* Mobilde kategoriyi açmak için şık bir buton */
    .drop-icon {
        display: flex; 
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(0,0,0,0.03);
        border-radius: 4px;
        color: var(--primary);
        transition: 0.3s;
    }
    .nav-links li.has-dropdown.active .drop-icon {
        background: var(--accent);
        color: white;
        transform: rotate(180deg);
    }

    .menu-toggle { display: block; }
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background: white; flex-direction: column; gap: 0; display: none; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav-links.show { display: flex; animation: slideDown 0.3s ease forwards; }
    .nav-links > li { text-align: left; border-bottom: 1px solid #eee; width: 100%; }
    
    .nav-links > li > a { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; color: var(--primary) !important; font-size: 0.95rem; }
    .nav-links > li > a::after { display: none; }
    
    /* Mobilde Açılır Menü Davranışı */
    .nav-links li.has-dropdown .dropdown {
        position: relative; 
        box-shadow: none; 
        border-top: none;
        border: none;
        display: none; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        padding: 0; 
        background: #fdfdfd; 
        width: 100%;
    }
    
    .nav-links li.has-dropdown.active .dropdown { display: block; }
    
    .nav-links li.has-dropdown .dropdown li a { 
        padding: 12px 20px 12px 35px !important; 
        justify-content: flex-start; 
        color: #555 !important;
        border-bottom: 1px solid #f5f5f5;
    }
    .nav-links li.has-dropdown .dropdown li a:hover { 
        padding-left: 40px !important; 
        background: transparent;
    }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* =======================================
   GERİ KALAN TÜM CSS AYARLARI
   ======================================= */
.page-header { margin-top: 60px; background: var(--primary); color: white; padding: 50px 5%; text-align: center; }
.page-header h1 { font-family: 'Playfair Display'; margin-bottom: 10px; font-weight: 400; font-size: 2.5rem; }
.breadcrumb { font-size: 0.9rem; color: #ddd; } /* KONTRAST DÜZELTİLDİ */
.breadcrumb span { color: #E8C888; font-weight: 500; } /* KONTRAST DÜZELTİLDİ */

footer { background: #1a252f; color: white; padding: 60px 5% 30px; margin-top: 60px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; text-align: left; }
.footer-box h3 { font-family: 'Playfair Display', serif; color: var(--accent); margin-bottom: 20px; font-size: 1.4rem; }
.footer-box p, .footer-box ul { color: #bbb; font-size: 0.9rem; list-style: none; padding: 0; }
.footer-box ul li { margin-bottom: 12px; }
.footer-box ul li a { color: #bbb; text-transform: none; font-weight: 400; font-size: 0.9rem; text-decoration: none; transition: 0.3s; }
.footer-box ul li a:hover { color: var(--accent); padding-left: 5px; }
.social-icons { display: flex; gap: 12px; margin-top: 20px; }
.social-icons a { color: white; font-size: 1.1rem; width: 38px; height: 38px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; transition: 0.3s; }
.social-icons a:hover { background: var(--accent); color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.08); color: #ccc; font-size: 0.85rem; }
header.hero-wrap { height: 100vh; background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), url('images/anasayfa.webp') center/cover; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.hero-content { color: white; animation: fadeInUp 1.5s forwards; opacity: 0; transform: translateY(30px); }
.hero-subtitle { letter-spacing: 5px; font-size: 0.9rem; color: var(--accent); display: block; margin-bottom: 15px; text-transform: uppercase; }
.hero-title { font-family: 'Playfair Display'; font-size: 4.5rem; margin-bottom: 30px; font-weight: 400; line-height: 1.1; }
.btn-luxury { padding: 15px 40px; border: 1px solid white; color: white; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; display: inline-block; cursor: pointer; transition: 0.3s; }
.btn-luxury:hover { background: white; color: var(--primary); }

.section { padding: 100px 5%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: 'Playfair Display'; font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.section-header span { display: block; width: 60px; height: 2px; background: var(--accent); margin: 0 auto; }

.about-section { padding: 80px 5%; background: white; text-align: center; }
.about-section h2 { font-family: 'Playfair Display'; font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.about-section p.lead-text { max-width: 800px; margin: 0 auto 60px; color: #666; font-size: 1.1rem; line-height: 1.8; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.feature-card { padding: 40px 20px; background: var(--bg-light); border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; will-change: transform, box-shadow; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.feature-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.feature-card h4 { color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; font-weight: 600; }
.feature-card p { font-size: 0.9rem; color: #666; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.cat-item { position: relative; height: 350px; overflow: hidden; cursor: pointer; border-radius: 8px; }
.cat-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; will-change: transform; }
.cat-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; transition: background-color 0.4s ease; }
.cat-overlay h3 { color: white; font-family: 'Playfair Display'; font-size: 2rem; transform: translateY(20px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; }
.cat-item:hover img { transform: scale(1.1); }
.cat-item:hover .cat-overlay { background: rgba(0,0,0,0.5); }
.cat-item:hover h3 { transform: translateY(0); opacity: 1; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.contact-container { max-width: 1000px; margin: 120px auto 50px; padding: 0 20px; }
.contact-container h1 { font-family: 'Playfair Display'; font-size: 2.5rem; color: var(--primary); text-align: center; margin-bottom: 40px; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.info-item { background: white; padding: 30px; text-align: center; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: 0.3s; }
.info-item:hover { transform: translateY(-5px); }
.info-item i { font-size: 1.6rem; color: var(--accent); margin-bottom: 15px; }
.info-item h4 { margin: 0 0 10px 0; color: var(--primary); font-size: 1.1rem; }
.info-item p, .info-item a { color: #666; font-size: 0.9rem; text-decoration: none; }
.info-item a:hover { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 50px; }
form { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--primary); font-size: 0.9rem; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #eee; border-radius: 4px; font-family: inherit; font-size: 0.95rem; transition: 0.3s;}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
form button { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; font-weight: 600; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
form button:hover { background: var(--accent); }
.map-wrap { border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); height: 100%; min-height: 400px; }

.container { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 60px 5%; align-items: start; }
.sidebar { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); height: fit-content; }
.search-box { width: 100%; padding: 12px; border: 1px solid #eee; border-radius: 4px; margin-bottom: 30px; font-family: inherit; transition: 0.3s; }
.search-box:focus { outline: none; border-color: var(--accent); }
.filter-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; color: var(--primary); }
.filter-list li { list-style: none; margin-bottom: 12px; display: flex; align-items: center; color: #666; font-size: 0.95rem; }
.filter-list input { margin-right: 12px; accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; align-content: start; }
.card { background: white; border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; will-change: transform, box-shadow; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }

/* VİTRİN KARTLARINDAKİ RESİMLER */
.p-img-box { position: relative; height: 300px; overflow: hidden; background: #eee; }
.p-img-box img { width: 100%; height: 100%; object-fit: cover; }

.add-btn { position: absolute; bottom: -50px; left: 0; width: 100%; padding: 15px; background: var(--primary); color: white; border: none; text-transform: uppercase; letter-spacing: 1px; transition: bottom 0.4s ease; font-family: inherit; font-weight: 500; pointer-events: none; }
.card:hover .add-btn { bottom: 0; }
.details { padding: 25px 20px; text-align: center; }
.p-cat { font-size: 0.75rem; text-transform: uppercase; color: #666; letter-spacing: 1px; font-weight: 600; } /* KONTRAST DÜZELTİLDİ */
.p-name { font-size: 1.2rem; margin: 8px 0 0 0; font-weight: 600; color: var(--primary); }

/* ÜRÜN DETAY MODALI */
.modal { display: none; position: fixed; z-index: 2000; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: transparent; width: 100%; max-width: 1520px; position: relative; display: flex; align-items: center; justify-content: center; }
.modal-box-main { background: white; width: 100%; max-width: 1400px; border-radius: 12px; overflow: hidden; position: relative; display: flex; flex-direction: row; animation: modalSlide 0.3s ease; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
@keyframes modalSlide { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer; color: #666; background: #f0f0f0; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; z-index: 101; line-height: 1; }
.close-modal:hover { background: var(--accent); color: white; transform: rotate(90deg); }
.modal-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.modal-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.modal-arrow.prev { left: 0; }
.modal-arrow.next { right: 0; }
.modal-body { display: flex; flex-direction: row; width: 100%; }

.modal-img-container { width: 75%; padding: 30px; background: #fdfdfd; border-right: 1px solid #eee; display: flex; flex-direction: column; gap: 15px; }
.modal-main-img-wrap { width: 100%; height: 650px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); overflow: hidden; cursor: zoom-in; position: relative; }

/* MODAL BÜYÜK RESMİ */
.modal-main-img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.15s ease; transform-origin: center center; display: block; }
.modal-main-img-wrap.zoom-active { cursor: zoom-out; }
.modal-main-img-wrap.zoom-active .modal-main-img { transform: scale(2.2); }
.zoom-hint { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.6); color: white; padding: 6px 12px; font-size: 0.75rem; border-radius: 20px; pointer-events: none; transition: 0.3s; font-weight: 500; z-index: 5; letter-spacing: 0.5px; }
.modal-main-img-wrap.zoom-active .zoom-hint { opacity: 0; } 
.modal-thumbnails { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 5px; }
.modal-thumbnails::-webkit-scrollbar { height: 4px; }
.modal-thumbnails::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

/* MODAL KÜÇÜK RESİMLER (THUMBNAILS VE VİDEOLAR) */
.modal-thumbnails img, .modal-thumbnails video { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s ease; }
.modal-thumbnails img:hover, .modal-thumbnails img.active-thumb, .modal-thumbnails video:hover, .modal-thumbnails video.active-thumb { opacity: 1; border-color: var(--accent); transform: translateY(-2px); }
.modal-info-wrap { width: 25%; padding: 30px; display: flex; flex-direction: column; justify-content: flex-start; gap: 15px; }
.modal-info-wrap h2 { font-family: 'Playfair Display'; font-size: 1.8rem; color: var(--primary); margin: 0; padding-bottom: 12px; border-bottom: 1px solid #eee; line-height: 1.2; padding-right: 20px; }
.modal-info-wrap .p-cat { font-size: 0.7rem; letter-spacing: 2px; }
.modal-section { padding-top: 5px; }
.modal-section h4 { margin: 0 0 4px 0; font-size: 0.8rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-section h4 i { color: var(--accent); font-size: 0.75rem; }
.modal-section p { margin: 0; font-size: 0.8rem; color: #555; line-height: 1.5; }
.btn-whatsapp { background: #25D366; color: white; padding: 12px; border-radius: 6px; text-align: center; font-weight: 600; font-size: 0.9rem; margin-top: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: 0.3s; letter-spacing: 0.5px; }
.btn-whatsapp:hover { background: #20ba5a; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(37,211,102,0.3); }

/* MOBİLDE TAM EKRAN (FULLSCREEN) RESİM TASARIMI */
.mobile-fullscreen-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 3000; align-items: center; justify-content: center; flex-direction: column; }
.mobile-fullscreen-overlay img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.mobile-fullscreen-close { position: absolute; top: 20px; right: 20px; color: white; font-size: 2.5rem; cursor: pointer; line-height: 1; z-index: 3001; font-weight: 300; }

@media (max-width: 1200px) {
    .modal-content { max-width: 1000px; }
    .modal-arrow { background: rgba(0,0,0,0.6); }
    .modal-arrow.prev { left: 15px; }
    .modal-arrow.next { right: 15px; }
}

/* YENİ: KUSURSUZ MOBİL GÖRÜNÜM AYARLARI */
@media (max-width: 992px) { 
    .modal { align-items: flex-start; overflow-y: auto; padding: 15px 10px; }
    .modal-box-main { flex-direction: column; margin-top: 20px; margin-bottom: 20px; } 
    
    .close-modal { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 1.3rem; background: #f0f0f0; z-index: 101; }
    .modal-img-container { width: 100%; padding: 45px 15px 15px 15px; border-right: none; border-bottom: 1px solid #eee; }
    .modal-info-wrap { width: 100%; padding: 20px 15px; }
    .modal-main-img-wrap { height: 320px; border-radius: 8px; cursor: pointer; }
    .modal-arrow { display: none !important; }
    .container { grid-template-columns: 1fr; padding: 40px 5%; }
    .cat-overlay { background: rgba(0,0,0,0.4); }
    .cat-overlay h3 { opacity: 1; transform: translateY(0); }
}