/* ============ HEADER STYLING ============ */
.site-header {
  background: linear-gradient(135deg, #1e6f43 0%, #2a8a5d 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 0.6rem 0;
  position: relative;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* ============ NAVIGATIE ============ */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  color: #c9f7d3;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #c9f7d3;
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* ============ ICONEN RECHTS ============ */
.header-icons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Winkelwagen */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.cart-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(37%) sepia(83%) saturate(400%) hue-rotate(112deg) brightness(95%) contrast(92%);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #00b377, #00cc88);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Hamburger knop (desktop: verborgen) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
/* ============ MOBIEL FIX (max 900px) ============ */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
  }

  /* Container layout */
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0.6rem 1rem;
  }

  /* Logo links */
  .logo {
    order: 1;
    flex: 0 0 auto;
  }

  /* 🔹 Iconen (winkelwagen + hamburger) helemaal rechtsboven in de header */
  .header-icons {
    order: 2;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
  }

  /* Winkelwagen */
  .cart-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  }

  .cart-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(37%) sepia(83%) saturate(400%) hue-rotate(112deg) brightness(95%) contrast(92%);
  }

  .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #00b377, #00cc88);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid #fff;
  }

  /* 🔹 Hamburger rechts van winkelwagen */
  .menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3000;
  }

  .menu-toggle span {
    display: block;
    height: 3.5px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

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

  /* 🔹 Het menu zelf komt ONDER de header tevoorschijn */
  .main-nav {
    position: absolute;
    top: 100%; /* direct onder de header */
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1e6f43, #2a8a5d);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    z-index: 900;
  }

  .main-nav.open {
    max-height: 500px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0;
  }

  .main-nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
}
