.urdubazar-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}

.urdubazar-modal.active {
  display: block;
}

.urdubazar-modal-overlay {
  position: absolute;
  inset: 0;
}

.urdubazar-modal-content {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #fff;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0,0,0,0.3);
}

.urdubazar-modal.active .urdubazar-modal-content {
  right: 0;
}

.urdubazar-modal-header {
  padding: 5px 10px;
  background: #f8f8f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.urdubazar-close {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.urdubazar-modal-body {
  padding: 1rem;
  overflow-y: auto;
  max-height: calc(100vh - 60px);
}


/* Reset & Base Styles */
.urdubazar-mobile-menu,
.urdubazar-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  /* direction: rtl; */
}

.urdubazar-mobile-menu li {
  position: relative;
  border-bottom: 1px solid var(--primary-color);
}
.urdubazar-mobile-menu li:last-child {
  border-bottom: none;
}

/* Top-level links */
.urdubazar-mobile-menu > li > a {
  display: block;
  padding: 12px 5px;
  font-size: 16px;
  font-weight: 400;
  color: var(--black-color);
  text-decoration: none;
  /* border-bottom: 1px solid #eee;
  background-color: #f9f9f9; */
  transition: background-color 0.3s;
}

.urdubazar-mobile-menu > li > a:hover,
.urdubazar-mobile-menu > li.current-menu-item > a {
  color: var(--primary-color) !important;
}

/* Submenu toggle icon (optional for JS interactivity) */
.urdubazar-mobile-menu li.menu-item-has-children > a::after {
  content: '▾';
  position: absolute;
  left: 0px;
  font-size: 18px;
  color: var(--primary-color);
}

/* Submenu */
.urdubazar-mobile-menu .sub-menu {
  display: none;
  background: #fff;
  border-right: 3px solid #ddd;
  padding-right: 10px;
}

.urdubazar-mobile-menu li.menu-item-has-children.open > .sub-menu {
  display: block;
}

.urdubazar-mobile-menu .sub-menu li > a {
  display: block;
  padding: 10px 20px 10px 40px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.urdubazar-mobile-menu .sub-menu li > a:hover {
  background: #f4f4f4;
}

/* Nested Submenu Indentation */
.urdubazar-mobile-menu .sub-menu .sub-menu li > a {
  padding-right: 60px;
}

/* RTL Fixes for Arrow */
.urdubazar-mobile-menu li.menu-item-has-children > a::after {
  transform: rotate(90deg);
}

/* Responsive for small devices */
/* @media (max-width: 767px) {
  .urdubazar-mobile-menu > li > a {
    font-size: 15px;
    padding: 10px 15px;
  }
} */
