/* --- MENU --- */

.topbar {
  position: fixed;
  display: block;
  width: 100%;
  height: 80px;
  z-index: 100;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.topbar .icon {
  display: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between; /* ✅ Push logo left, menu-items right */
  height: 70px;
  width: 100%;
}

.menu-items {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 30px;
  padding-top: 0px;
  height: 100%;
  font-size: 1rem;
  padding-right: 50px;
}

.menu-items-right {
  display: flex;
  margin-left: auto;
  gap: 10px;
}

.menu-items-right button {
  background-color: rgba(255, 255, 255, 0);
}

.menu-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin-left: 0px;
  margin-right: 0px;
  padding-top: 5px;
  font-weight: 600;
  color: rgb(255, 255, 255);
  font-weight: normal;
  text-decoration: none;
  height: 100%;
  width: auto;
  border-bottom: 3px solid rgba(255, 255, 255, 0);
}

.menu-item:hover {
  color: rgb(180, 180, 180);
}

.menu_item_active {
  border-bottom: 3px solid var(--background0);
}

.menu-items button {
  background-color: rgba(255, 255, 255, 0);
}

.product_item_menu_icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.dropdown {
  position: relative;
  display: inline-block;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  color: var(--text1);
  text-decoration: none;
  height: 100%;
  width: auto;
}

/* Styles for the dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  width: auto;
  background-color: rgb(255, 255, 255);
  z-index: 20;
  margin-top: -7px;
  transform: translateX(-15px);
  border-radius: 15px;
  border: 1px solid rgb(220, 220, 220);
}

/* Individual link styles */
.dropdown-content a {
  color: rgb(0, 0, 0);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  font-weight: normal;
  text-align: center;
  z-index: 2;
  text-align: left;
  white-space: nowrap;
}
.dropdown-content a:hover {
  color: rgb(180, 180, 180);
}

.dropdown-content a:last-child {
  border-bottom: 0px solid rgba(240, 240, 240, 1);
}

.nav_arrow img {
  display: block;
  width: 12px;
  height: auto;
  object-fit: contain;
  margin-left: 10px;
  margin-top: 3px;
}

.dropdown:hover .dropdown-content {
  display: block;
  z-index: 2;
}

.menu-item_rechts {
  color: rgb(170, 170, 170);
  font-weight: bold;
  text-decoration: none;
}

.menu-item_rechts:last-child {
  margin-right: 15px;
}

.menu-item_rechts a {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  padding: 15px;
  width: auto;
  color: var(--textwhite);
  font-weight: 600;
  text-decoration: none;
  background-color: var(--button3);
  border-radius: 50px;
}

.menu-item_rechts a:hover {
  background-color: var(--button3_hover);
}

.menu-item_rechts a:active {
  background-color: var(--button3_active);
}

.menu-responsive {
  display: none;
}

.menu-openen svg {
  display: block;
  position: absolute;
  right: 25px;
  top: 22px;
  width: 30px;
  height: 30px;
  fill: rgb(255, 255, 255);
}

.topbar.responsive .menu-openen svg {
  fill: rgb(233, 75, 41);
}

.selected {
  font-weight: 700;
}

/* --- LOGO --- */

.logo_container {
  display: block;
  position: relative;
}

.logo {
  display: inline-flex;
  position: relative;
  margin: 20px;
  padding-top: 5px;
}

.logo img {
  width: 160px;
  object-fit: contain;
  margin: 10px;
}

@media screen and (max-width: 900px) {
  .topbar {
    box-shadow: none;
  }

  .menu {
    display: flex;
    align-items: center;
    height: 70px;
  }

  .menu .menu-item,
  .menu .dropdown {
    display: none;
  }

  .menu-items,
  .menu-items-right {
    display: none;
    z-index: 50;
  }

  .topbar .icon {
    float: right;
    display: block;
    margin-right: 60px;
    z-index: 50;
  }

  .topbar.responsive {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    z-index: 100;
    overflow: hidden;
  }

  .topbar.responsive a {
    display: block;
    z-index: 2;
  }

  .topbar.responsive .menu .menu-item,
  .topbar.responsive .menu .dropdown {
    display: none;
  }

  .topbar.responsive .icon {
    float: right;
    display: block;
    margin-right: 60px;
    z-index: 5;
  }

  .topbar.responsive .menu-responsive {
    display: block;
    z-index: 2;
    padding-top: 20px;
  }

  .topbar.responsive .menu-responsive a {
    display: block;
    position: relative;
    font-size: 1.5rem;
    text-decoration: none;
    top: 0px;
    left: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: rgb(0, 0, 0);
  }

  .topbar.responsive .menu-responsive a:hover {
    color: rgb(150, 150, 150);
  }

  .topbar.responsive .menu-responsive a:active {
    color: rgb(120, 120, 120);
  }

  .topbar.responsive .button-toevoegen {
    display: none;
  }

  .logo {
    display: inline-flex;
    position: relative;
    margin: 8px 15px;
    padding-top: auto;
  }
}
