svg {
  width: 25px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background-color: #000;
  padding: 10px 15px;
  background: #000;
  z-index: 1000;
  height: 60px;
}
header .logo {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  text-decoration: none;
}
/* search button */

#searchToggleBtn {
  cursor: pointer;
  margin-right: 10px;
  padding: 5px 15px;
  box-shadow: 1px 1px 10px #f7e543;
  border: 1px solid #9b8e16;
  background-color: transparent;
  margin-left: 40px;
  color: #9b8e16;
}
#searchToggleBtn i {
  font-size: 20px;
  color: #faea57;
}
header .menu {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-weight: 500;
}

/*  */

/* Dropdown ana konteyner */
.menu {
  display: flex;
  list-style: none;
  gap: 20px;
  position: relative;
  z-index: 999;
}

.menu li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
  list-style: none;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 15px;
}

.dropdown-menu li:hover {
  background-color: #333;
}

.dropdown-menu li a i {
  min-width: 20px;
  color: #9b8e16;
}

@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    transform: none;
    opacity: 1;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
    transition: height 1s;
  }
}

/*  */
.button_menu {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 20px;
  border: none;
  background: none;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  line-height: 25px;
  padding: 0 15px;
  position: relative;
}

.button_menu::before {
  margin-left: auto;
}

.button_menu::after,
.button_menu::before {
  content: "";
  width: 50%;
  height: 1px;
  background: #f44336;
  display: block;
  transition: 0.5s;
  position: absolute;
}

.button_menu::before {
  background: #9b8e16;
  top: -7px;
  right: 0;
}
.button_menu::after {
  background: #9b169b;
  bottom: -7px;
}
.button_menu:hover::after,
.button_menu:hover::before {
  width: 0%;
}
/*  */

.hamburger {
  font-size: 24px;
  cursor: pointer;
  padding: 0px 5px;
}
.hamburger:hover {
  color: #ff007f;
}

.side-menu {
  position: fixed;
  top: 60px;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #000;
  transition: 0.3s ease;
  padding-top: 60px;
  z-index: 999;
  overflow-y: auto;
  padding-bottom: 50px;
}

.side-menu.active {
  left: 0;
}

.side-menu ul {
  list-style: none;
}

.side-menu ul li {
  padding: 15px 20px;
  border-bottom: 1px solid #333;
}

/* Mobil görünüş */
@media (max-width: 768px) {
  header .menu {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .logo {
    text-align: left;
    flex: unset;
    margin-left: 10px;
  }
}

/* favriler hem section hem butonlar */
.favorites-icon {
  position: relative;
  font-size: 24px;
  cursor: pointer;
  margin-right: 10px;
  /* border: 1px solid #ffebeb; */
  padding: 0 10px;
  box-shadow: 1px 1px 10px #ff0000;
}
span.heartbigsmall {
  display: inline-block;
  animation: beatingHeart 1.2s infinite;
}
@keyframes beatingHeart {
  0% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.15);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.15);
  }

  60% {
    transform: scale(1);
  }
}

.favorites-icon:hover {
  box-shadow: 1px 1px 10px #ffebeb;
  transition: box-shadow 0.3s;
}

.fav-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
}

.favorites-panel {
  position: fixed;
  top: 50px;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #111;
  color: #fff;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}
.favorites-panel h3 {
  margin-bottom: 20px;
  margin-top: -10px;
  color: #ff0000;
}
.favorites-panel.open {
  right: 0;
}

.close-fav-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

.favorites-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.favorites-panel .fav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.favorites-panel .fav-item img {
  width: 70px;
  max-height: 70px;
  object-fit: contain;
  border-radius: 4px;
}

.favorites-panel .fav-name {
  flex: 1 0 100%;
  font-size: 14px;
  line-height: 1.2;
}

.favorites-panel .fav-wp,
.favorites-panel .fav-del,
.favorites-panel .fav-view {
  font-size: 12px;
  padding: 4px 6px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 5px;
}

.favorites-panel .fav-wp {
  background: #25d366;
  color: #fff;
  text-decoration: none;
}

.favorites-panel .fav-del {
  background: #d32f2f;
  color: #fff;
}

.favorites-panel .fav-view {
  background: #009087;
  color: #fff;
  text-decoration: none;
}
/* favriler animasaiya css */
.btn-fav.animate {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}

.button_menu:focus-visible,
.dropdown-menu a:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid #9b8e16;
  outline-offset: 2px;
}

/* whatsapp silkelenen buton */
.wa-ring-fixed {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  z-index: 9999;
  text-decoration: none;
}

/* İkon ölçüsü */
.wa-ring-fixed img {
  width: 80px;
  height: 66px;
  display: block;
  animation: waIconShake 2s ease-in-out infinite;
}

/* Halə effekti */
.wa-ring-fixed::before,
.wa-ring-fixed::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  opacity: 0;
  pointer-events: none;
  animation: waIconPulse 2s ease-out infinite;
}
.wa-ring-fixed::after {
  animation-delay: 0.8s;
}

/* İkon silkələnməsi */
@keyframes waIconShake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(-8deg);
  }
  20% {
    transform: rotate(8deg);
  }
  30% {
    transform: rotate(-6deg);
  }
  40% {
    transform: rotate(6deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  60% {
    transform: rotate(3deg);
  }
  70% {
    transform: rotate(0deg);
  }
}

/* Halənin yayılması */
@keyframes waIconPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  30% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
