/*
Theme Name: OMNI Light Catalog
Description: Clean catalog theme
Version: 2.3
*/

/* ============================================================
   1) RESET & KÖKEL DEĞİŞKENLER
   ============================================================ */
:root {
    --omni-blue: #1a73e8;
    --omni-blue-dark: #1557b0;
    --omni-black: #000000;
    --omni-text: #333333;
    --omni-border: #e2e8f0;
    --omni-bg: #f7f9fa;
    --omni-white: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--omni-bg);
    color: var(--omni-text);
    line-height: 1.5;
}

a { text-decoration: none; }

/* ============================================================
   2) LAYOUT - .omni-wrap ile plugin CSS çakışması önlendi
   ============================================================ */
.omni-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================================
   3) HEADER
   ============================================================ */
.omni-header {
    background: var(--omni-white);
    border-bottom: 2px solid var(--omni-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

.omni-header .omni-container {
    min-height: 110px;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.omni-header-inner {
    display: flex;
    flex-direction: row; /* Masaüstünde logo, menü ve arama butonunun yan yana kalması sağlandı */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

/* Üst Katman: Logo solda, Search sağda olacak şekilde yan yana flex */
.omni-header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1; /* Menü alanıyla birlikte sağa doğru dengeli yayılması sağlandı */
}

/* Alt Katman: Menü elemanları için alt şerit alanı */
.omni-header-bottom {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: calc(100% - 380px); /* Logonun ve arama butonunun alanını korur, menüyü iki sıraya zorlar */
}

.omni-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.omni-logo a {
    font-size: 22px;
    font-weight: 800;
    color: var(--omni-black);
    white-space: nowrap;
}

.omni-logo img,
.omni-logo .custom-logo {
    display: block;
    max-width: 250px !important;  /* Masaüstünde en fazla 250px genişlik sınırı */
    width: 100% !important;        /* Esnek ekranlarda oranını bozmadan daralabilme kabiliyeti */
    height: auto !important;       /* Basıklığı ve dikey boşluk fırlatmalarını engelleyen otomatik yükseklik emri */
}

.omni-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    width: 100%;
}

.omni-menu {
    list-style: none;
    display: flex;
    gap: 12px 24px; /* Masaüstünde iki sıra yapınca satırlar arası premium boşluk eklendi */
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* Menü elemanları taşarsa alt satıra ferahça geçsin */
}

.omni-menu li a {
    color: var(--omni-text);
    font-size: 15px;
    font-weight: 700;
    padding: 4px 0;
    display: block;
    transition: color 0.2s;
}

.omni-menu li a:hover,
.omni-menu .current-menu-item > a {
    color: var(--omni-blue);
}

.omni-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.omni-search-btn {
    background: none;
    border: none;
    color: var(--omni-black);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
}

.omni-search-btn:hover {
    background: #f1f5f9;
    color: var(--omni-blue);
}

.omni-nav-close { display: block; }
.omni-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.omni-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--omni-black);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* ============================================================
   4) TAM EKRAN ARAMA OVERLAY
   ============================================================ */
.omni-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.omni-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.omni-search-overlay-inner {
    width: 100%;
    max-width: 700px;
}

.omni-search-overlay form {
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--omni-black);
}

.omni-search-overlay input[type="search"] {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: 800;
    color: var(--omni-black);
    outline: none;
    padding: 15px 0;
    text-align: center;
}

.omni-search-overlay-close,
.omni-overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--omni-black);
    transition: background 0.2s, transform 0.2s;
    z-index: 100001;
}

.omni-search-overlay-close:hover,
.omni-overlay-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

/* ============================================================
   5) MASAÜSTÜ LİSTELEME GRID SİSTEMİ (PATRON YATAY İMAJ)
   ============================================================ */
.omni-grid-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 25px auto;
    max-width: 1200px;
    padding: 0 15px;
}

.omni-grid-item {
    background: var(--omni-white);
    border: 1px solid var(--omni-border);
    border-radius: 8px;
    padding: 0; /* İç dolgu sıfırlandı, resim kenarlara tam oturacak */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.omni-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Yatay görselin tüm alanı kapladığı ana taşıyıcı link */
.omni-grid-thumb-link {
    display: block;
    width: 100%;
    background: none; /* Gri ufacık kutu efekti tamamen imha edildi */
    line-height: 0;
}

/* Yatay şerit imajın tam genişlikta kalma emri */
.omni-grid-thumb {
    width: 100% !important;
    height: auto !important;
    display: block;
    transition: opacity 0.2s;
}

.omni-grid-thumb:hover { opacity: 0.9; }

/* Taytıl alanı resmin tam altına, kibar ve orantılı yerleşti */
.omni-grid-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    padding: 12px 15px; /* Başlığa içeriden şık bir nefes alma boşluğu */
    margin: 0;
    text-align: left;
    background-color: var(--omni-white);
}

.omni-grid-title a {
    color: var(--omni-text);
    transition: color 0.2s;
}

.omni-grid-title a:hover { color: var(--omni-blue); }

/* ============================================================
   6) TEKİL POST (Masaüstü Standart Alan Kontrolü)
   ============================================================ */
.omni-post-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 1140px;
    padding: 0 15px;
}

.omni-post-main {
    width: 780px;
    max-width: 100%;
    flex-shrink: 0;
    background: var(--omni-white);
    border: 1px solid var(--omni-border);
    border-radius: 8px;
    padding: 15px 30px 30px;
    min-width: 0;
}

.omni-post-main img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto 15px auto;
}

.omni-post-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.omni-sticky-sidebar-placeholder {
    position: sticky;
    top: 40px;
    min-height: 600px;
    width: 300px;
}

.omni-ad-widget-wrapper {
    width: 300px;
    min-height: 250px;
    background: transparent;
    margin-bottom: 20px;
    overflow: hidden;
}

.omni-post-title,
.omni-post-article h1 {
    font-size: 30px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 20px;
    line-height: 1.3;
}

.omni-post-content h2 { font-size: 26px; font-weight: 700; color: #111; margin: 25px 0 15px; line-height: 1.3; }
.omni-post-content h3 { font-size: 24px; font-weight: 700; color: #222; margin: 20px 0 12px; line-height: 1.3; }
.omni-post-content h4 { font-size: 22px; font-weight: 700; color: #333; margin: 20px 0 12px; line-height: 1.3; }
.omni-post-content h5 { font-size: 20px; font-weight: 700; color: #444; margin: 15px 0 10px; line-height: 1.3; }

/* ============================================================
   7) BREADCRUMB (PREMIUM & HIGH CONTRAST)
   ============================================================ */
.omni-breadcrumb-strip {
    background-color: var(--omni-white) !important;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 15px !important;
    margin: 0 0 15px 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.omni-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left !important;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.omni-breadcrumb-strip { padding: 10px 15px !important; }
.omni-breadcrumb::-webkit-scrollbar { display: none !important; }
.omni-breadcrumb {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.omni-breadcrumb a {
    color: var(--omni-blue) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.omni-breadcrumb a:hover {
    color: var(--omni-blue-dark) !important;
    text-decoration: underline !important;
}

.omni-breadcrumb .breadcrumb-sep {
    margin: 0 8px !important;
    color: #cbd5e1 !important;
    font-weight: normal !important;
}

.omni-breadcrumb .breadcrumb-current {
    color: #475569 !important;
    font-weight: normal !important;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* ============================================================
   8) SAYFALAMA (GÜNCELLENDİ: TÜM SAYFALARDA ÇALIŞAN EVRENSEL YAPI)
   ============================================================ */
.omni-pagination {
    text-align: center;
    margin: 40px 0;
}

.omni-pagination .page-numbers,
.omni-pagination a {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    border: 1px solid var(--omni-border);
    border-radius: 6px;
    color: var(--omni-black);
    font-weight: 700;
    background: var(--omni-white);
    transition: background 0.2s;
}

.omni-pagination a:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--omni-blue);
}

.omni-pagination .page-numbers.current {
    background-color: var(--omni-blue);
    color: var(--omni-white);
    border-color: var(--omni-blue);
}

/* ============================================================
   9) FİYAT LİSTESİ
   ============================================================ */
.weekly-price-list {
    list-style: none;
    margin: 20px 0;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: var(--omni-white);
    overflow: hidden;
}

.weekly-price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    color: var(--omni-black);
    line-height: 1.4;
}

.weekly-price-list li:nth-child(even) { background-color: #f8fafc; }
.weekly-price-list li:hover { background-color: #f1f5f9; }
.weekly-price-list li:last-child { border-bottom: none; }

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--omni-white);
    background-color: #d32f2f;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ============================================================
   10) EVRENSEL MOBİL & TABLET LİMİTİ (EVRENSEL ÇÖZÜM: max-width: 1200px)
   ============================================================ */
@media (max-width: 1200px) {

    .omni-header .omni-container {
        min-height: 72px !important;
        height: auto;
        padding: 0 15px !important;
    }

    .omni-header-inner {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .omni-header-top {
        display: contents !important;
    }

    .omni-header-bottom {
        display: contents !important;
    }

    .omni-menu-toggle { display: flex; }

    .omni-menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .omni-menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .omni-menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .omni-search-overlay input[type="search"] { font-size: 24px; }
    .omni-wrap { padding-left: 15px; padding-right: 15px; }

    /* --- MOBİL YATAY LİSTELEME SİHİRBAZI --- */
    .omni-grid-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        padding: 0 15px !important;
        margin: 15px auto !important;
    }

    .omni-grid-item {
        flex-direction: row !important;
        align-items: center !important;
        padding: 8px !important;
        background: var(--omni-white) !important;
        border: 1px solid var(--omni-border) !important;
        border-radius: 6px !important;
    }

    .omni-grid-thumb-link {
        width: 90px !important;
        flex-shrink: 0 !important;
    }

    .omni-grid-thumb {
        width: 100% !important;
        height: auto !important;
        border-radius: 4px !important;
    }

    .omni-grid-title {
        padding: 0 0 0 12px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        background: transparent !important;
    }

    /* SINGLE POST KESİN KİLİTLEME KANUNU (TABLET YATAY MODU KORUMASI DAHİL) */
    .omni-post-wrapper {
        display: flex !important;
        flex-direction: column !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .omni-post-main {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    .omni-post-sidebar { display: none !important; }
    .omni-post-title,
    .omni-post-article h1 { font-size: 26px; }
    .weekly-price-list li { font-size: 14px; padding: 8px 10px; }
    .product-price { font-size: 14px; padding: 3px 8px; }

    .omni-katalog-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        max-width: none;
    }
}

/* ============================================================
   11) SADECE YAZI İÇİ PARAGRAF LİNKLERİ
   ============================================================ */
.omni-post-content p a,
.omni-post-content p a:hover {
    color: #1a0dab !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

/* ==========================================================================
   OMNI STANDARD RE-CORE ARCHITECTURE
   ========================================================================== */
.omni-header {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 9999;
}

.omni-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
}

/* LOGO STANDART ALAN TANIMLAMASI */
.omni-logo, 
.omni-logo a {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.omni-logo img.custom-logo {
    max-width: 250px !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* DESKTOP NAV DİZİLİMİ */
.omni-nav-desktop {
    display: flex;
    flex-grow: 1;
    margin-left: 40px;
}

.omni-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.omni-menu li a {
    text-decoration: none;
    color: #1a202c;
    font-weight: 600;
    font-size: 15px;
}

.omni-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
}

/* MOBİL MENÜ - EKRAN DIŞI KİLİTLEME SİSTEMİ */
.omni-nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 10000;
    padding: 80px 24px 24px 24px;
    transition: right 0.3s ease-in-out;
}

.omni-nav-mobile.is-open {
    right: 0;
}

.omni-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a202c;
    display: block !important; /* X tuşunun görünürlüğü korundu */
}

.omni-menu-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.omni-menu-mobile-list li a {
    text-decoration: none;
    color: #1a202c;
    font-weight: 600;
    font-size: 18px;
    display: block;
}

/* HAMBURGER BUTON YAPISI */
.omni-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.omni-menu-toggle .bar {
    width: 24px;
    height: 2.5px;
    background-color: #1a202c;
    border-radius: 2px;
}

/* SEÇİCİ İKİZ BUTONLARIN STİLLERİ */
.omni-country-switcher-bar {
    padding: 16px 14px 4px 14px;
    display: none;
}

.omni-switcher-flex {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.omni-switch-btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    background-color: #f4f5f8;
    color: #5c6479;
    border: 1px solid #e2e4eb;
    transition: all 0.2s ease-in-out;
}

.omni-switch-btn.omni-active {
    background-color: #1e2538;
    color: #ffffff;
    border-color: #1e2538;
    box-shadow: 0 4px 10px rgba(30, 37, 56, 0.15);
}

/* ==========================================================================
   RESPONSIVE ESNEKLİK KURALLARI (YENİ EKRENSEN MOBİL LİMİTİNE GÖRE ADAPTE EDİLDİ)
   ========================================================================== */
@media (max-width: 1200px) {
    .omni-nav-desktop {
        display: none !important;
    }
    .omni-menu-toggle {
        display: flex !important;
    }
    .omni-logo, 
    .omni-logo a {
        width: 175px !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
    }
    .omni-logo img.custom-logo {
        max-width: 175px !important;
        width: 100% !important;
        height: auto !important;
        max-height: 52px !important;
        object-fit: contain !important;
    }
}

@media (max-width: 768px) {
    .omni-country-switcher-bar {
        display: block !important;
        padding: 4px 14px 4px 14px !important;
        margin-top: 0 !important;
    }
    
    .omni-logo, 
    .omni-logo a {
        width: 175px !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    .omni-logo img.custom-logo {
        width: 100% !important;
        height: auto !important;
        max-height: 52px !important;
        object-fit: contain !important;
    }
}