.custom-category-nav-wrapper {
  border-bottom: 1px solid #e5e5e5;
  height: fit-content;
  margin: auto 0 auto auto;
  width:fit-content
}

.custom-category-nav {
  max-width: 1200px;
  margin: 0 auto;
}

.custom-category-nav .nav-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.custom-category-nav .nav-link {
  display: block;
  padding: 15px 0;
  color: #232323;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
}

/* Submenu styles */
.custom-category-nav .submenu {
  display: none;
  position: absolute;
  left: 0%;
  top: 70%;
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

/* Show submenu on hover */
.custom-category-nav .nav-item:hover > .submenu,
.custom-category-nav .nav-item.hover > .submenu {
  display: grid;
  opacity: 1;
  visibility: visible;
}

.custom-category-nav .subcategory-column {
  min-width: 200px;
}

.custom-category-nav .subcategory-title {
  display: block;
  font-weight: 600;
  color: #232323;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
}

.custom-category-nav .third-level {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-category-nav .third-level li {
  margin: 5px 0;
}

.custom-category-nav .third-level .nav-link {
  padding: 5px 0;
  font-weight: normal;
  text-transform: none;
  color: #666;
  font-size: 13px;
}

/* Hover effects */
.custom-category-nav .nav-link:hover {
  color: #cc0033;
}

.custom-category-nav .nav-item:hover > .nav-link {
  color: #cc0033;
}

/* Arrow indicator */
.custom-category-nav .nav-item.category > .nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 7px 7px 0;
  border-color: transparent #606060 transparent transparent;
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  transform: rotate(135deg);
  margin-bottom: 3px;
  margin-left: 3px
}

/* Add these new styles */
.custom-category-nav .custom-html-submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.custom-category-nav .nav-item:hover > .custom-html-submenu {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Add admin styles */
.custom-html-editor {
  min-width: 500px;
  margin: 10px 0;
}

.custom-html-item {
  flex-wrap: wrap;
}

.custom-html-item textarea {
  width: 100%;
  margin-top: 10px;
}


/* Burger Button */
.mobile-nav-toggle {
  display: none;
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
  padding: 10px;
  margin: 10px;
}

.burger-icon,
.burger-icon:before,
.burger-icon:after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #232323;
  position: absolute;
  transition: all 0.3s;
}

.burger-icon:before {
  top: -7px;
}
.burger-icon:after {
  bottom: -7px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: white;
  z-index: 1001;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu-header {
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-title {
  font-weight: 600;
  font-size: 18px;
}

.mobile-menu-close {
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Panels */
.mobile-panel {
  display: none;
  padding: 15px 0;
}

.mobile-panel.active {
  display: block;
}

.panel-header {
  padding: 0 15px 15px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-button {
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 5px 0;
}

.mobile-arrow-left {
  border: solid #232323;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(135deg);
}

.mobile-arrow {
  border: solid #232323;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(-45deg);
  margin-left: auto;
}

.mobile-nav-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #e5e5e5;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 15px;
  color: #232323;
  text-decoration: none;
  cursor: pointer;
}

/* Media Queries */
@media (max-width: 1200px) {
  .mobile-nav-toggle {
    display: block;
  }

  .custom-category-nav .nav-items.desktop-nav {
    display: none;
  }

  .custom-category-nav-wrapper {
    width: auto;
    border: none;
    margin: 0;
  }

  .mobile-menu {
    display: block;
  }
}

.mobile-nav-item-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.mobile-nav-item-wrapper .mobile-nav-link {
    flex: 1;
}

.mobile-nav-item-wrapper .panel-trigger {
    padding: 10px;
    cursor: pointer;
}

.mobile-nav-item-wrapper .mobile-arrow {
    border: solid #000;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg);
}
