/* --- SIFIRDAN PROFESYONEL VE STABİL MEGA MENÜ --- */

:root {
    --primary: #007bff;
    --dark: #232f3e;
    --border: #eeeeee;
    --sidebar-w: 240px; /* Sol taraftaki kategori genişliği */
    --panel-w: 750px;   /* Sağ taraftaki ürün alanı genişliği */
}

/* 1. ANA NAVİGASYON (Üst Bar) */
.standard-nav {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

.standard-nav > li {
    position: relative; /* Bu sabit kalmalı */
}

.standard-nav > li > a {
    display: block;
    padding: 20px 25px !important;
    color: #333 !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
}

/* GÖRÜNMEZ KÖPRÜ (Hover Bridge): Ana menü ile açılan kutu arasındaki 1-2 piksellik boşluğu kapatır */
.standard-nav > li::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
    z-index: 10;
}

/* 2. ANA AÇILIR PANEL (Kategoriler: Business, Large Format...) */
.standard-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: var(--sidebar-w);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 9999;
    
    /* GİZLEME VE GECİKME (Kopmayı önleyen ana sır burası) */
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
}

.standard-nav li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s; /* Geldiğinde hemen açılır */
}

/* 3. YAN PANEL SİSTEMİ (Sağa Doğru Açılan Ürünler) */
.standard-nav .sub-menu li {
    position: relative;
    border-bottom: 1px solid #f9f9f9;
}

.standard-nav .sub-menu li a {
    display: block;
    padding: 15px 20px;
    color: #444 !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* KATEGORİDEN ÜRÜNE GEÇİŞ KÖPRÜSÜ (Sağa geçerken kopmayı önler) */
.standard-nav .sub-menu li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 40px; /* Fareyi sağa ürünlere kaydırırken kapanmayı engelleyen görünmez alan */
    height: 100%;
    display: block;
}

/* 4. SAĞ ÜRÜN PANELİ (Grid Yapısı) */
/* WordPress 3. seviye UL listesi */
.standard-nav .sub-menu li .sub-menu {
    position: absolute;
    top: -3px; /* Border-top ile hizalar */
    left: 100%; /* Kategori listesinin tam sağından başlar */
    width: var(--panel-w);
    min-height: 101%;
    background: #fff;
    box-shadow: 20px 10px 40px rgba(0,0,0,0.1);
    border-left: 1px solid #eee;
    padding: 30px;
    
    /* Ürünleri 3 sütunlu kutular yapar */
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    
    /* Başlangıçta gizli */
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
}

/* Kategori üzerine gelince sağındaki ürünleri göster */
.standard-nav .sub-menu li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
}

.standard-nav .sub-menu li:hover > a {
    background: #f8f9fa;
    color: var(--primary) !important;
}

/* Ürünlerin altındaki çizgileri kaldır */
.standard-nav .sub-menu li .sub-menu li {
    border: none;
}

.standard-nav .sub-menu li .sub-menu li a {
    padding: 8px 0 !important;
    font-size: 13px !important;
    color: #666 !important;
    font-weight: 500 !important;
}

.standard-nav .sub-menu li .sub-menu li a:hover {
    color: var(--primary) !important;
    background: none;
    transform: translateX(5px);
}

/* --- LOGO BOYUTLANDIRMA VE HİZALAMA --- */

/* 1. Kapsayıcıyı kontrol altına alalım */
.logo-area {
    display: flex;
    align-items: left;
    max-width: auto; /* Logonun yayılacağı alanı sınırlar */
    height: auto;    /* Header yüksekliği ile uyumlu hale getirir */
    overflow: hidden;
}

/* 2. WordPress'in oluşturduğu link ve resmi zorla boyutlandır */
.logo-area .custom-logo-link,
.logo-area .navbar-brand {
    display: block;
    line-height: 0;
}

/* !important kullanarak diğer stillerin bu boyutu ezmesini engelliyoruz */
.logo-area img,
.logo-area .custom-logo {
    max-height: 75px !important; /* Logonun yüksekliğini buradan kesin olarak ayarlayabilirsiniz */
    width: auto !important;      /* Oranını korur */
    height: auto !important;
    display: block;
}

/* Logo metin halindeyse (resim yokken) boyutu */
.logo-text {
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

/* --- HEADER TOP BAR TASARIMI --- */
.header-top-bar {
    background-color: #232f3e; /* Route1Print koyu tonu */
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

.header-top-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.header-top-bar a:hover {
    color: #007bff; /* Mavi vurgu rengi */
}

.header-top-bar i {
    font-size: 14px;
}

/* Mobilde telefon ve emaili daha derli toplu gösterir */
@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .top-bar-left { display: none; } /* Mobilde yer kazanmak için yazıyı gizler */
}