<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?=$seo_title;?></title>
    <meta name="description" content="<?=$seo_description;?>">
    <meta name="keywords" content="<?=$seo_keyword;?>">
    <link rel="shortcut icon" type="image/x-icon" href="<?=$site;?>upload/<?=settings("site_favicon");?>">
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
    <!-- STYLESHEETS -->
    <link rel="stylesheet" href="<?=$site;?>public/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?=$site;?>public/assets/css/style.css">
    <link rel="stylesheet" href="<?=$site;?>public/assets/css/theme-extra.css">
    <link rel="stylesheet" href="<?=$site;?>public/assets/css/theme-fonts.css">
    <link rel="stylesheet" href="<?=$site;?>public/assets/css/animate.min.css">
    <link rel="stylesheet" href="<?=$site;?>public/assets/css/bootstrap-select.min.css">
    <link rel="stylesheet" href="<?=$site;?>public/assets/css/aos.css">
    <link rel="stylesheet" href="<?=$site;?>public/assets/css/magnific-popup.css">
    <link rel="stylesheet" href="<?=$site;?>public/assets/css/owl.carousel.min.css">
    <link rel="stylesheet" href="<?=$site;?>public/assets/css/owl.theme.default.css">
    <!-- Icons -->
    <link href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" rel="stylesheet">
    <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    <style>
    :root {
        --header_bg: <?=json_decode(settings("renk"))->headerrenk; //
        ?>;
        --text_1: <?=json_decode(settings("renk"))->menurenk; //
        ?>;
        --bg_2: <?=json_decode(settings("renk"))->genelrenk;
        ?>;
        --bg_2: <?=json_decode(settings("renk"))->genelrenk;
        ?>;
        --bg_2: <?=json_decode(settings("renk"))->genelrenk;
        ?>;
        --bg_1: <?=json_decode(settings("renk"))->genelrenk3;
        ?>;
        --text_4: <?=json_decode(settings("renk"))->genelrenk2; //
        ?>;
        /* --text_2: <?=json_decode(settings("renk"))->geneltext2; //
        ?>; */
        --site_bg: <?=json_decode(settings("renk"))->renk; //
        ?>;
        --section_bg: <?=json_decode(settings("renk"))->renk2; //
        ?>;
        --bg_3: <?=json_decode(settings("renk"))->genelrenk4; //
        ?>;
        --line: <?=json_decode(settings("renk"))->line; //
        ?>;
        --alpha: 0.8;
        --theme_icn: <?=json_decode(settings("renk"))->genelrenk;
        ?>;
    }
    .mfp-content {
        max-width: 700px !important;
    }
    @media (max-width: 767px) {
        .mfp-content {
            max-width: 100%;
        }
    }
    @media (max-width: 992px) {
        .custom-social-proof {
            display: none !important;
        }
    }
	
	input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none;
}
    </style>
    <?php echo html_entity_decode(settings("ek_header"));?>
</head>
<body>
        <?php $eklenti=eklenti("loader");
        if($eklenti["durum"]=="1"){
        $json=json_decode($eklenti["deger"],true);
        ?>
            <div id="preloader">
                <div class="loader-5 center">
                    <span></span>
                </div>
            </div>
        <?php } ?>
    <?php $eklenti=eklenti("popup");
        if($eklenti["durum"]=="1"){
        $json=json_decode($eklenti["deger"],true);
        if(!isset($_SESSION["popup"])){
    ?>
        <div class="modal " id="myModal">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <div class="header-left d-flex align-items-center">
                            <div class="header-text">
                                <h6><?php echo $json["Başlık"];?></h6>
                                <p>
                                    <?php echo $json["Başlık Alt"];?>
                                </p>
                            </div>
                        </div>
                        <button type="button" class="close btn-close" data-dismiss="modal" aria-hidden="true"><i class="ri-close-line"></i></button>
                    </div>
                    <div class="modal-body">
                        <div class="modal-img">
                            <img  class="popupimg" src="<?php echo $site;?>upload/resim/<?php echo $json["Popup Resim"];?>" alt="">
                        </div>
                        <div class="modal-info">
                            <h2 class="d-flex flex-column">
                                <span class="text_one"><?php echo $json["Popup Title"];?></span>
                            </h2>
                            <p>
                                <?php echo $json["Popup Açıklama"];?>
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    <?php $_SESSION["popup"]=1; } } ?>
    <div class="site-mobile-menu site-navbar-target">
        <div class="site-mobile-menu-header mt-3">
            <div class="site-mobile-menu-close ">
                <img src="<?=$site;?>upload/<?=settings("site_logo");?>" alt="">
            </div>
            <a class="text-reset p-0 js-menu-toggle ">
                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="#333333
                                        class=" bi="" bi-x-circle'="" viewBox="0 0 16 16">
                                        <path fill="transparent" d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"></path>
                                        <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"></path>
                                    </svg>
                                </a>
        </div>
        <div class="site-mobile-menu-body">
        </div>
    </div>
    <!-- .site-mobile-menu -->
    <!-- Header -->
    <header id="header" class="site-navbar-wrap">
        <div class="site-navbar-top">
            <div class="container py-3">
                <div class="row align-items-center">
                    <div class="col-md-6 tick">
                    <i class="ri-exchange-line"></i>
                        <div class="top_ticker">
                            <ul>
                                <?php
                                    $resimler=json_decode(settings("header"))->solyazi;
                                    foreach ($resimler as $value) {
                                    ?>
                                    <li>
                                    <?php echo html_entity_decode($value); ?>
                                    </li>
                                <?php } ?>
                            </ul>
                        </div>
                    </div>
                    <div class="col-md-6 right">
                        <div class="mr-auto">
                            <p>
                                <?=json_decode(settings("header"))->sagyazi;?>
                                <i class="fa <?php echo json_decode(settings("header"))->sagicon;?>"
                                style="font-size:21px;color:var(--bg_3);margin-left: 9px;"></i>
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
  <div class="site-navbar sepet site-navbar-target js-sticky-header" id="navbar_bottom">
            <div class="container">
                <div class="d-flex align-items-center header_wrapper">
                    <nav class="site-navigation text-right" role="navigation">
                        <div class="mobile-icon ml-md-0 ">
                            <a href="#" class="site-menu-toggle js-menu-toggle text-white">
                                <i class="ri-menu-2-line icon-menu"></i>
                            </a>
                        </div>
                        <div class="logo">
                            <a href="#">
                        <a href="<?=$site;?>"><img src="<?=$site;?>upload/<?=settings("site_logo");?>" alt=""></a>
                            </a>
                        </div>
                        <ul class="site-menu main-menu js-clone-nav">
                          
                                <li><a href="<?=$site;?>index#home" class="nav-link scrollto  <?php if(@$_GET["path"]=="index"){ echo 'active';}?>">Ana Sayfa</a></li>
				<?php if($urunlerkategori["durum"]=="1"){ ?>
                                    <li class="nav-item dropdown cs">
                                        <?php if(json_decode(settings("fiyat_ust"))->durum=="1"){ ?>
                                        <span class="blinking"><?php echo json_decode(settings("fiyat_ust"))->yazi;?></span>
                                        <?php } ?>
                                        <a href="#" class="nav-link dropdown-toggle  <?php if($page=="kategori" || $page=="urunler"){ echo "active"; } ?>" data-toggle="dropdown">Ürünler 
                                            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z"/></svg></a>
                                        <div class="dropdown-menu">
                                        <a  class="dropdown-item" href="<?=$site;?>urunler">Tüm Ürünler</a>
                                        <?php  $query =  $db->query("SELECT * FROM kategori ORDER BY id DESC");; 
                                                        while ($data = $query->fetch(PDO::FETCH_OBJ)) {
                                        
                                        ?>
                                        <a href="<?=$site.settings("kategori_url");?>/<?=$data->url;?>" class="dropdown-item"  <?php if($data_queryy->id==$data->id && $page=="kategori"){ echo "style='color:var(--theme_color_2)'"; } ?>><?php echo $data->ad; ?></a>
                                        <?php } ?>
                                        </div>
				</li><?php } else{ ?>
                                <li>
                                        <?php if(json_decode(settings("fiyat_ust"))->durum=="1"){ ?>
                                        <span class="blinking"><?php echo json_decode(settings("fiyat_ust"))->yazi;?></span>
                                        <?php } ?><a href="<?=$site;?>index#product" class="nav-link scrollto">Ürünler</a></li>
				<?php } ?>
                                <li><a href="<?=$site;?>index#order-info" class="nav-link scrollto">Özellikler</a></li>
                                <li><a href="<?=$site;?>index#accordion" class="nav-link scrollto">Merak Edilenler</a></li>
                                <li><a href="<?=$site;?>blog" class="nav-link scrollto">Blog</a></li>
                                <li class="hr"><a href="<?=$site;?>index#contact" class="nav-link scrollto">İletişim</a></li>
						<?php if($uyelikmodul["durum"]=="0"){ ?>
                                <li class="order_tracker">
                                    <a href="siparis-takibi" class="nav-link order_trac">
                                        <i class="ri-send-plane-line"></i> Sipariş Takip
                                    </a>
                                </li>
						<?php } ?>
                        </ul>
                        <div class="panel">
						<?php if($uyelikmodul["durum"]=="1"){ ?>
							<?php if(!isset($_SESSION["user"])){ ?>
                            <a href="<?=$site;?>panel/register" class="nav-link register">
                                <span>Kayıt Ol</span>
                            </a>
							<?php } ?>
                            <a href="<?=$site;?>panel/index" class="nav-link panel_detail">
							<?php if(isset($_SESSION["user"])){ ?>
                                <i class="ri-user-line"></i> <span>Müşteri Paneli</span>
							<?php } else{ ?>
                                <i class="ri-chat-smile-2-line"></i><span>Giriş Yap</span>
							<?php } ?>
                            </a>
						<?php } ?>
						<?php if($sepetmodul["durum"]=="1"){ ?>
                            <div class="basket">
                                <a href="<?=$site.settings("sepet_url");?>" id="sepeticon">
                                    <i class="ri-shopping-cart-line"></i>
                                    <span class="custombasket-count">(<?php if(isset($_SESSION["sepet"])){ $add= count($_SESSION["sepet"]); } else{ $add= "0";} echo $add; ?>)</span>
                                </a>
                            </div>
						<?php } ?>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>
    <!-- Header -->
<script>
$(document).ready(function(){
    $("[data-toggle='dropdown']").click(function(e) {   
        $(this).parents(".dropdown-menu").toggleClass("show");  /*when you click on an element with attr data-toggle='dropdown' it toggle the class "open" on its parent with class "dropdown"*/
        e.stopPropagation();
    });
    $("html").click(function() {
        $(".open").removeClass("open");  /*when you click out of the dropdown-menu it remove the class "open"*/
    });
});
</script>