body {
  margin: 0;
  font-family: "Istok Web", sans-serif;
  background-position: center;
  height: 100vh;
  width: 100%;
  /*cursor: url('../img/abelha.png'), auto;*/
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(250, 239, 179, 0.5);
  z-index: -1;
}

.header-bg {
  background-image: url(../img/header-choco.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  filter: drop-shadow(0 4px 6px rgba(145, 134, 76, 0.89));
  top: 0;
  left: 0;
  width: 100%;
  height: 250px; 
  z-index: -1;
}

#header header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: transparent; 
}

.logo img {
  height: 100px;
  width: auto;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px #ffcb1f);
  }
  50% {
    filter: drop-shadow(0 0 10px #facd53);
  }
}

nav {
  display: flex;
  justify-content: center; 
  align-items: center;
  flex-grow: 2;
  margin-left: 0; 
  margin-top: 20px;
}


nav a {
  margin: 0 15px;
  text-decoration: none;
  color:#ffbb00;
  font-size: 15px;
  font-family: "Istok Web", sans-serif;
  font-weight: 700;
  font-style: normal;
  padding: 8px 10px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: var(--cor-laranja);
  color: white;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}

nav .iconbag {
  margin-left: 20px;
}

nav .iconuser {
  position: absolute;
  top: 20px;
  right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

nav .iconbag a {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--cor-link);
}

nav .iconuser a {
  display: flex;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #ffffff3b;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--cor-link);
  justify-content: center;
  align-items: center;
}

nav .iconbag a:hover {
  background-color: var(--cor-laranja);
  color: white;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}

nav .iconuser a:hover {
  background-color: var(--cor-laranja);
  color: white;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}

.iconbag i,
.iconuser i {
  font-size: 34px;
  transition: color 0.3s ease;
}

.iconbag i {
  color: #ffbb00;
}

.iconuser i {
  color: #ffbb00;
}

.iconbag i:hover,
.iconuser i:hover {
  color: white;
}

.nomeuser {
  margin-top: 5px;
  font-size: 15px;
  color: #ffbb00;
  font-weight: 700;
  font-family: "Istok Web", sans-serif;
  user-select: none;
  text-align: center;
}

.toggle-btn {
  position: absolute;
  margin-top: 20px;
  right: 140px; 
  width: 60px;
  height: 24px;
  background: linear-gradient(145deg, var(--cor-ativa), var(--cor-ativa));
  border-radius: 34px;
  border: 2px solid black;
  cursor: pointer;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3px;
  user-select: none;
  box-shadow: inset 5px 5px 10px var(--cor-ativa), inset -5px -5px 10px var(--cor-ativa);
}

.toggle-btn.active {
  background: linear-gradient(135deg, #eca520, #eca520);
  box-shadow: inset 5px 5px 10px #eca520, inset -5px -5px 10px #eca520;
  justify-content: flex-end;
}

.toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFD94B, #FF9E1B 70%, #FF6F00);
  box-shadow:
    0 2px 6px rgba(255, 165, 0, 0.6),
    inset 0 0 8px #fff5cc;
  transition: all 0.4s ease;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.toggle-btn.active .toggle-icon {
  background: radial-gradient(circle at 30% 30%, #c2c2c2, #888888 70%, #555555);
  box-shadow:
    inset 4px 4px 5px rgba(80, 80, 80, 0.7),
    inset -3px -2px 4px rgba(180, 180, 180, 0.6);
}

.toggle-btn.active .toggle-icon::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 40%;
  width: 5px;
  height: 5px;
  background: #6a6a6a;
  border-radius: 50%;
  box-shadow:
    8px 3px 0 #7b7b7b,
    12px 10px 0 #5f5f5f,
    4px 12px 0 #6e6e6e;
  pointer-events: none;
  user-select: none;
}

.toggle-icon::before {
  content: none;
}

.toggle-label {
  margin-left: 80px;
  font-weight: 700;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #555;
  transition: color 0.4s ease;
  user-select: none;
  letter-spacing: 0.03em;
  font-size: 14px;
}

.toggle-btn.active .toggle-label {
  color: #e0eaff;
  text-shadow: 0 0 5px #a0c0ff;
}

.header-top {
  position: relative;
  height: 80px;
}

.menu-toggle {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #ffbb00;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.4s;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.contador-sacola {
  position: absolute;
  top: 0;  
  right: 0;    
  background-color: #ffbe3e; 
  color: #7c5600;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: bold;
  pointer-events: none;
  user-select: none;
  transform: translate(-80%, -20%); 
}

.iconbag {
  position: relative;
}


@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background-color: rgba(250, 239, 179, 0.95);
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 20px;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}
