/* NAVBAR */
.navbar {
  max-width: 1600px;
  margin: 0 auto;
  /* width: 100%; */
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f1;
  background: #fff;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 180px;
}

.logo-text h2 {
  color: #ac251a;
  font-size: 32px;
  font-weight: 700;
}

.logo-text span {
  font-size: 12px;
  letter-spacing: 2px;
  color: #555;
}

/* SEARCH BOX */
.search-wrapper {
  flex: 1;
  display: flex;
}
.search-form {
  display: flex;
  align-items: center;
  width: 100%;
}

.search-box {
  width: 55%;
  display: flex;
  align-items: center;
  border: 2px solid rgb(135, 77, 77);
  border-radius: 10px;
  overflow: visible; /* change from visible */
  position: relative;
}

.category-dropdown {
  display: flex;
  align-items: center;
  padding: 10px;
  border-right: 1px solid #ccc;
  position: relative;
  cursor: pointer;
  gap: 5px;
}

.category-dropdown span {
  color: #444;
  font-size: 15px;
}

.arrow {
  font-size: 20px;
  margin-left: 2px;
}

/* DROPDOWN LIST */
/* Category Dropdown Panel */
.category-panel {
  position: absolute;
  top: 50px;
  left: 0;
  width: 220px;
  height: auto;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  animation: fadeIn 0.2s ease-in-out;
  z-index: 100;
}

/* Search bar inside dropdown */
.category-search {
  width: 100%;
  padding: 8px 0px;
  border: 2px solid rgba(172, 37, 26, 0.3);
  border-radius: 6px;
  outline: none;
  margin-bottom: 10px;
  font-size: 14px;
}

/* Category list */
.category-list {
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  /* background-color: gray; */
}

.category-list li {
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
}
.category-list li a {
  text-decoration: none;
  color: #333;
}
.category-list li:hover {
  background: #e1e0e0;
  color: #111;
}

/* Smooth fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-search {
  flex: 1; /* important */
  padding: 12px 15px;
  border: none;
  outline: none;
  font-size: 16px;
}

.search-btn {
  padding: 0 15px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* NAV ICONS */
.nav-icons {
  display: flex;
  gap: 30px;
}

.icon-box {
  text-align: center;
  position: relative;
  cursor: pointer;
}

.icon-box i {
  font-size: 50px;
  color: #555;
}

.icon-box p {
  font-size: 14px;
  color: #333;
}

.badge-nav {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #ac1d17;
  padding: 10px;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MOBILE */
/* .mobile-menu {
  display: none;
  font-size: 40px;
  cursor: pointer;
} */
/* Mobile menu button */
.mobileMenuBtn {
  display: none;
  font-size: 50px;
  cursor: pointer;
}
.mobileMenuBtn i {
  font-size: 40px;
}
/* Show on phones only */
@media (max-width: 768px) {
  .mobileMenuBtn {
    display: block;
  }
}

/* Overlay */
.mobileMenuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 998;
}

/* Sidebar */
.mobileSidebar {
  position: fixed;
  top: 0;
  left: -350px;
  width: 280px;
  height: 100%;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  transition: 0.3s ease;
  z-index: 999;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
}

/* Open state */
.mobileSidebar.show {
  left: 0;
}
.mobileMenuOverlay.show {
  opacity: 1;
  visibility: visible;
}

/* Sidebar header */
.sidebarHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebarLogo {
  width: 120px;
}
.closeBtn {
  font-size: 40px;
  cursor: pointer;
}

/* Search box */
.sidebarSearchBox {
  position: relative;
  margin: 20px 0;
}
.sidebarSearchBox input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.sidebarSearchBox i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Menu items */
.mobileNavLinks li {
  list-style: none;
  padding: 12px 0;
  font-size: 16px;
}
.mobileNavLinks a {
  text-decoration: none;
  color: #333;
}

/* Info box */
.sidebarInfoBox {
  background: #f8f8f8;
  padding: 15px;
  margin-top: 20px;
  border-radius: 10px;
}
.sidebarInfoBox p {
  margin: 10px 0;
}
.sidebarInfoBox i {
  margin-right: 10px;
}

/* Social icons */
.sidebarSocial {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.sidebarSocial i {
  font-size: 20px;
  cursor: pointer;
  color: #2ecc71;
}

/* MAIN HEADER NAVBAR */

.nav-wrapper {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  /* make sticky navbar */
  position: sticky;
  top: 0;
  z-index: 55;
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  /* width: 100%; */
  padding: 10px 40px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.catTriggerBtn {
  background: #37b77f;
  color: #fff;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  position: relative;
}

.arrowIcon {
  margin-left: auto;
}
/* ---------- Category dropdown (hidden by default) ---------- */
.categoryBlock {
  position: relative; /* so dropdown can be positioned absolute */
  display: inline-block;
}

/* Button */
.catTriggerBtn {
  background: #ac1d17;
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03);
}

/* Dropdown container (hidden by default) */
.catDropdownList {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 500px; /* desktop width like screenshot */
  display: none; /* hidden by default */
  background: #fff;
  border: 1px solid #e6efe9;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(11, 31, 21, 0.06);
  z-index: 1100;
  box-sizing: border-box;
  gap: 14px;
  transition:
    transform 0.16s ease,
    opacity 0.16s ease;
  transform-origin: top left;
  /* add scroller */
  max-height: 400px;
  overflow-y: auto;
  /* initial state for animation */
  transform: translateY(-10px);
  opacity: 0;
  /* remove scroller bar */
  scrollbar-width: none; /* Firefox */
}

/* When open (JS toggles .open) */
.catDropdownList.open {
  display: grid;
  transform: translateY(0);
  opacity: 1;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
}

/* Individual items */
.catDropdownList li {
  width: auto;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffff;
  border: 1px solid #e3e3e3;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.18s ease;
  /* add animation while opening the dropdown content */
}

/* icon */
.catDropdownList li img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Hover */
.catDropdownList li:hover {
  background: #e9f9f2;
  border-color: #3bb77e;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(11, 31, 21, 0.06);
}

.mainNavbar {
  flex: 1;
  margin-left: 40px;
}

.menuLinks {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.menuLinks a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
}
.menuLinks a:hover {
  color: #dd3f31;
  transition: color 0.3s ease;
}
.menuDropList {
  position: absolute;
  background: #fff;
  list-style: none;
  padding: 10px 0;
  width: 180px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-top: 2px;
  display: none;
}

.menuDrop:hover .menuDropList {
  display: block;
}

.menuDropList li {
  padding: 10px 15px;
}

.menuDropList li:hover {
  background: #f5f5f5;
}

/* Support */
.supportBox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.supportNumber {
  color: #ac1d17;
  font-size: 22px;
  font-weight: bold;
}

.supportText {
  color: #777;
  font-size: 12px;
}

/* Mobile */
.mobileMenuBtn {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .mainNavbar {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-top: 1px solid #eee;
    display: none;
    z-index: 200;
  }

  .mainNavbar.active {
    display: block;
  }

  .menuLinks {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .mobileMenuBtn {
    display: block;
  }
  .nav-wrapper {
    display: none;
  }
}

.showList {
  display: block !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .search-box {
    width: 100%;
  }

  .nav-icons .icon-box:nth-child(1),
  .nav-icons .icon-box:nth-child(2) {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .search-box {
    order: 3;
  }
  .logo img {
    width: 180px;
  }
 
}
.account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.account-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.account-name {
  font-size: 14px;
  font-weight: 600;
}

.account-sub {
  font-size: 12px;
  color: #777;
}
