body {
  font-family: Arial, sans-serif;
}

.sidebar-header {
  border-radius: 5px;
  background: #2f2f7e;
  color: #fff;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar {
  width: 300px;
  background: #fff;
  border-radius: 15px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}
.menu-icon {
  width: 20px;
}
.category {
  position: relative;
}

.category-head {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.category-head:hover {
  background: #f5f5f5;
}

.arrow {
  margin-left: auto;
  font-size: 18px;
}

/* ====== SUBMENU ====== */
.submenu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 260px;
  min-height: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 99;
}

.submenu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
  border-radius: 6px_plugin;
}

.submenu a:hover {
  background: #f0f0f0;
  color: #2f2f7e;
}

/* HOVER EDƏNDƏ AÇILSIN */
.hover-item:hover .submenu {
  opacity: 1;
  visibility: visible;
}
.layout {
  margin: 50px 20px;

  display: flex;
  gap: 150px;
  padding: 20px;
}

.sidebar {
  width: 300px;
}

.content {
  flex: 1;
}

.product-search {
  position: relative;
  max-width: 450px;
  border-radius: 12px;
}

#productSearch {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#productResults {
  position: absolute;
  top: 65px;
  left: 15px;
  right: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

#productResults div {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

#productResults div:hover {
  background: #f5f5f5;
  color: #2f2f7e;
}
/* ================= TABLET ================= */
@media (max-width: 992px) {
  .layout {
    gap: 40px;
  }

  .sidebar {
    width: 250px;
  }

  .submenu {
    width: 220px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    margin: 20px;
    padding: 10px;
    gap: 20px;
  }

  .sidebar {
    width: 100%;
  }

  /* submenu normal altinda acilsin */
  .submenu {
    position: static;
    width: 100%;
    min-height: auto;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    display: none; /* 🔥 default gizli */
  }

  .submenu a {
    padding: 10px 20px;
  }

  /* arrow rotate */
  .category.active .arrow {
    transform: rotate(90deg);
  }

  /* acilanda gostersin */
  .category.active .submenu {
    display: block;
  }
}
