/* ===== BASE ===== */
html,
body {
  width: 100%;
}

.lilac-bg {
  background-color: #e6ccff;
}

.navbar {
  min-height: 100px;
  z-index: 999;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== LOGO ===== */
.logo-img {
  height: 80px;
  transition: transform 0.4s ease;
}

.logo-img:hover {
  transform: rotate(-9deg) scale(1.35);
}

/* ===== DESKTOP NAV ===== */
/* ===== FORCE DESKTOP MENU ROW (FIX) ===== */
.desktop-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
}

.desktop-nav > li {
  display: flex;
  align-items: center;
}

.nav-link,
.btn-link {
  background: none;
  border: none;
  color: #7e2ecf;
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.nav-link:hover,
.btn-link:hover {
  color: #ffe979;
  transform: translateY(-6px);
}

/* ===== PURE CSS TOGGLE ===== */
.menu-icon {
  position: absolute;
  left: -9999px;
}

.menu-btn {
  display: none;
  width: 32px;
  height: 22px;
  position: fixed;
  top: 40px;
  right: 35px;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn::before,
.menu-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: #7e2ecf;
  transition: 0.4s ease;
}

.menu-btn::before {
  top: 0;
}
.menu-btn::after {
  bottom: 0;
}

.menu-icon:checked + .menu-btn::before {
  transform: rotate(45deg);
  top: 9px;
}

.menu-icon:checked + .menu-btn::after {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* ===== MOBILE OVERLAY ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #e6ccff;
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.45s ease, opacity 0.35s ease;
}

@keyframes blob {
  0%,
  100% {
    border-radius: 60% 40% 55% 45%;
  }
  50% {
    border-radius: 40% 60% 45% 55%;
  }
}

.menu-icon:checked ~ .mobile-nav {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== MOBILE MENU ITEMS ===== */
.mobile-nav ul {
  list-style: none;
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
  padding: 0;
}

.mobile-nav li {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.4s ease;
}

.menu-icon:checked ~ .mobile-nav li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a,
.mobile-nav button {
  font-size: 2.2rem;
  font-weight: 600;
  color: #7e2ecf;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.mobile-nav a:hover,
.mobile-nav button:hover {
  color: #ffe979;
}
/* ===== BADGE FOR CART & WISHLIST ===== */
.icon-badge {
  font-size: 0.7rem; /* помали броеви */
  width: 20px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  position: absolute; /* позиционираме над иконата */
  top: -4px; /* над иконата */
  right: -8px; /* близу до десниот раб на иконата */
  padding: 0;
  pointer-events: none; /* не пречи на клик */
  color: red;
}
.desktop-nav > li {
  position: relative; /* за badge да се позиционира врз иконата */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
  .desktop-nav {
    display: none !important;
  }
  .menu-btn {
    display: block;
  }
  #cart-badge-mobile,
  #wishlist-badge-mobile {
    top: -4px;
    right: 0;
    font-size: 1rem;
    color: red;
    border-radius: 50%;
    padding: 0 4px;
  }
}

@media (min-width: 1200px) {
  .mobile-nav,
  .menu-btn {
    display: none;
  }

  .desktop-nav {
    display: flex !important;
  }
}
@media (max-width: 297px) {
  html,
  body {
    overflow-x: hidden;
  }

  .logo-img {
    height: 60px;
  }

  .menu-btn {
    right: 18px;
    top: 32px;
  }
  .text {
    padding-left: 10px;
    padding-right: 50px;
  }
  .mobile-nav a,
  .mobile-nav button {
    font-size: 1.6rem;
  }

  .mobile-nav ul {
    padding: 0 10px;
  }
}
