.header {
  background-color: var(--beyaz);
  box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  z-index: 3;
  height: 59px;
  transition: all 0.3s ease;
}

.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: var(--beyaz);
}

.header li a {
  display: block;
  padding: 20px 20px;
  border-right: 1px solid var(--border-gri);
  text-decoration: none;
  color: var(--mavi);
}

.header li a:hover,
.header .menu-btn:hover {
  background-color: var(--border-gri);
}

.header .logo {
  display: block;
  float: left;
  padding-left: 5%;
}

.header img {
  position: relative;
  top: 2.5px;
  width: auto;
  height: 50px;
}

/* menu */

.header .menu {
  position: relative;
  clear: both;
  max-height: 0;
  transition: max-height 0.2s ease-out;
}

/* menu icon */

.header .menu-icon {
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 28px 20px;
  position: relative;
  user-select: none;
}

.header .menu-icon .navicon {
  background: var(--navbar-hover);
  display: block;
  height: 2px;
  position: relative;
  transition: background 0.2s ease-out;
  width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: var(--navbar-hover);
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  transition: all 0.2s ease-out;
  width: 100%;
}

.header .menu-icon .navicon:before {
  top: 5px;
}

.header .menu-icon .navicon:after {
  top: -5px;
}

/* menu btn */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked ~ .menu {
  max-height: 360px;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

/* DROPDOWN CSS */
header ul li {
  position: relative;
}

/* 48em = 768px */

@media (min-width: 768px) {
  .header {
    display: flex;
    justify-content: space-between;
  }
  .header li {
    float: left;
    font-weight: bold;
  }
  .header li a {
    padding: 20px 30px;
  }
  .header .menu {
    left: 0;
    position: relative;
    clear: none;
    float: right;
    max-height: none;
  }
  .header .menu-icon {
    display: none;
  }

  .dropdown {
    display: none; /* Başlangıçta gizli */
    position: absolute;
    background-color: var(--dropdown-bg);
    min-width: 320px; /* Genişliği ayarla */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 999999999;
    font-size: 12px;
    /* Dropdown'un üst kısmı, parent elemanın altına yerleştir */
  }

  /* Her öğenin stili */

  .dropdown > .dropdown-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    height: 60px;
    border-bottom: 1px solid var(--border-gri);
    font-size: 14px;
    font-weight: bold;
    text-wrap: wrap;
    text-align: center;
  }

  header ul li:nth-child(3):hover .dropdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
  }

  .offcanvas-sign {
    display: none;
  }
  #offcanvas-close {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 875px) {
  .header li a {
    padding: 20px 7px;
    font-size: 13px;
  }
}

@media (min-width: 876px) and (max-width: 984px) {
  .header li a {
    padding: 20px 12.5px;
    font-size: 14px;
  }
}

@media (min-width: 985px) and (max-width: 1093px) {
  .header li a {
    padding: 20px 17.5px;
    font-size: 15px;
  }
}

@media (min-width: 1094px) and (max-width: 1200px) {
  .header li a {
    padding: 20px 22.5px;
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  header ul {
    max-height: 0;
    overflow: hidden; /* Taşan içeriği gizler */
    transition: max-height 1s ease-out, opacity 1s ease-out;
    opacity: 0; /* Başlangıçta opaklık 0 */
    visibility: hidden; /* Başlangıçta görünmez */
  }

  header ul li {
    display: block; /* Her bir liste öğesi görünür */
  }

  header ul li a {
    opacity: 0;
    transition: opacity 1s ease-out;
  }

  .header .menu-btn:checked ~ ul {
    max-height: 360px; /* Yeterince yüksek bir değer ayarlayın */
    opacity: 1; /* Opaklığı 1 yap */
    visibility: visible; /* Görünür hale getir */
  }

  .header .menu-btn:checked ~ ul li a {
    opacity: 1; /* Opaklık 1 yap */
  }

  header ul li:last-child {
    border-bottom: 1px solid var(--mavi);
  }

  .dropdown {
    position: fixed;
    width: 100vw;
    top: 0;
    right: -100vw;
    background-color: var(--beyaz);
    transition: right 0.75s ease;
    z-index: 999;
    height: 100vh; /* Yüksekliği tam ekran yap */
    overflow-y: auto;
  }
  #product-btn {
    display: flex; /* Flexbox kullanarak yan yana hizala */
    align-items: center;
    justify-content: space-between; /* Dikey olarak ortala */
  }

  #offcanvas-btn {
    float: right;
    width: 20px;
    border: 1px solid black;
    border-radius: 10px;
    /* Simgeler arasında boşluk bırak */
  }

  .offcanvas-sign {
    font-size: 1em;
    transform: translateX(5px);
    /* İsteğe bağlı: simgenin boyutunu ayarlayabilirsiniz */
  }
  .dropdown.open {
    right: 0; /* Açıldığında görünür hale getir */
  }

  #offcanvas-close {
    padding: 20px 20px;
    display: block;
  }
}

.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* Diğer elemanların üstünde görünmesi için */
}
