@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.theme-header-1 {
  position: relative;
  margin-bottom: -84px;
  z-index: 150;
}
.theme-header-1__top-navbar {
  width: 100%;
  height: 114px;
}
.theme-header-1__top-navbar-search {
  width: 100%;
  position: relative;
  margin-top: 12px;
}

/* Input Base */
.theme-header-1__top-navbar-search .search-input {
  width: 100%;
  height: 45px;
  padding-block: 0.5rem;
  padding-inline-start: 2rem;
  padding-inline-end: 2.5rem;

  border: 2.5px solid #ffffff;
  border-radius: 24px;
  background-color: transparent;

  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;

  color: #ffffff;
  transition: all 0.3s ease;
  text-align: start;
}

html[dir="rtl"] .theme-header-1__top-navbar-search .search-input {
    padding-inline-start: 1rem;
    padding-inline-end: 9rem;
}

.theme-header-1__top-navbar-search .search-input:hover,
.theme-header-1__top-navbar-search .search-input:focus {
  border-color: #ffffff;
  background-color: transparent;
  box-shadow: none;
}

/* Focus Active Style */
.theme-header-1__top-navbar-search .search-input:focus {
  border-color: #52e2b2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  outline: none;
}

/* Placeholder */
.theme-header-1__top-navbar-search .search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

/* Search Icon */
.theme-header-1__top-navbar-search .search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 16px;

  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.theme-header-1__top-navbar-cart-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--danger);
  border-radius: 50%;
  width: 16px;
  height: 16px;
}
@media (max-width: 991px) {
  .theme-header-1__top-navbar {
    height: auto;
  }
}
.theme-header-1__dropdown-user-verify-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  min-width: 14px;
  height: 14px;
}
.theme-header-1__dropdown:not(:hover) > .header-1-dropdown-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(15px);
}
.theme-header-1__dropdown .header-1-dropdown-menu {
  position: absolute;
  top: 40px;
  left: 0;
  width: 260px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  z-index: 46;
}
.rtl .theme-header-1__dropdown .header-1-dropdown-menu {
  left: auto;
  right: 0;
}
.theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu {
  width: 280px;
  top: 40px;
}
.theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu .header-1-dropdown-menu__item {
  transition: all 0.3s ease;
}
.theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu .header-1-dropdown-menu__item, .theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu .header-1-dropdown-menu__item a, .theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu .header-1-dropdown-menu__item .icons {
  color: var(--gray-500);
}
.theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu .header-1-dropdown-menu__item .count-badge {
  min-width: 16px;
  height: 16px;
}
.theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu .header-1-dropdown-menu__item:hover {
  background-color: var(--success);
}
.theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu .header-1-dropdown-menu__item:hover > a {
  transform: translateX(8px);
}
.theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu .header-1-dropdown-menu__item:hover, .theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu .header-1-dropdown-menu__item:hover a, .theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu .header-1-dropdown-menu__item:hover .icons {
  color: var(--white);
}
@media (max-width: 991px) {
  .theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu {
    right: 8px;
    left: auto;
  }
  .rtl .theme-header-1__dropdown .header-1-dropdown-menu.auth-user-info-dropdown-menu {
    left: 8px;
    right: auto;
  }
}
.theme-header-1__dropdown .header-1-dropdown-menu__item {
  color: var(--gray-500);
  border-left: 2px solid transparent;
}
.theme-header-1__dropdown .header-1-dropdown-menu__item > div {
  transition: all 0.3s ease;
}
.theme-header-1__dropdown .header-1-dropdown-menu__item.active {
  border-left: 2px solid var(--primary);
  font-weight: bold;
}
.rtl .theme-header-1__dropdown .header-1-dropdown-menu__item {
  border-left: none;
  border-right: 2px solid transparent;
}
.rtl .theme-header-1__dropdown .header-1-dropdown-menu__item.active {
  border-left: none;
  border-right: 2px solid var(--primary);
}
.theme-header-1__dropdown .header-1-dropdown-menu__item:hover {
  background-color: var(--green);
}
.theme-header-1__dropdown .header-1-dropdown-menu__item:hover > div {
  transform: translateX(8px);
}
.theme-header-1__dropdown .header-1-dropdown-menu__item:hover .header-1-dropdown-menu__item-sign-box {
  background-color: var(--gray-200);
}
.theme-header-1__dropdown .header-1-dropdown-menu__item:hover .header-1-dropdown-menu__sub-menu {
  opacity: 1;
  visibility: visible;
  left: calc(100% + 4px);
}
.rtl .theme-header-1__dropdown .header-1-dropdown-menu__item:hover .header-1-dropdown-menu__sub-menu {
  left: auto;
  right: calc(100% + 4px);
}
.theme-header-1__dropdown .header-1-dropdown-menu__item-sign-box {
  min-width: 32px;
  height: 32px;
  background-color: var(--gray-100);
  color: var(--gray-500);
  font-weight: normal !important;
}
.theme-header-1__dropdown .header-1-dropdown-menu__sub-menu {
  position: absolute;
  top: -8px;
  left: 96%;
  width: 280px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  visibility: hidden;
  opacity: 0;
}
.rtl .theme-header-1__dropdown .header-1-dropdown-menu__sub-menu {
  left: auto;
  right: 96%;
}
.theme-header-1__dropdown .header-1-dropdown-menu__sub-menu li {
  transition: all 0.3s ease;
}
.theme-header-1__dropdown .header-1-dropdown-menu__sub-menu li, .theme-header-1__dropdown .header-1-dropdown-menu__sub-menu li * {
  color: var(--gray-500) !important;
}
.theme-header-1__dropdown .header-1-dropdown-menu__sub-menu li:hover * {
  color: var(--secandary) !important;
}
.theme-header-1__dropdown .header-1-dropdown-menu__sub-menu li:hover > a {
  transform: translateX(8px) !important;
}
.theme-header-1__dropdown .header-1-dropdown-menu__flag {
  width: 32px;
  min-width: 32px;
  height: 32px;
}
.theme-header-1__dropdown .header-1-dropdown-menu__flag, .theme-header-1__dropdown .header-1-dropdown-menu__flag img {
  border-radius: 8px;
}

.theme-header-1__main {
  position: relative;
  height: 84px;
  top: 20px;
  margin-top: -40px;

}
.theme-header-1__main.sticky {
  position: fixed;
  top: 20px;
  width: 100%;
  animation: slideDown 0.5s ease forwards;
}
.theme-header-1__main-mask {
  position: absolute;
  top: 8px;
  left: 16px;
  right: 16px;
  bottom: -8px;
  border-radius: 24px;
  opacity: 0.5;
  background: #99c485;
  z-index: 1;
}
@media (max-width: 991px) {
  .theme-header-1__main {
    height: auto;
  }
}
.theme-header-1__logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.theme-header-1__logo img {
  height: 80px;
  width: 150px;
  max-width: 180px;

}



.theme-header-1__categories .cat-dropdown-menu-icon {
  width: 24px;
  max-width: 24px;
  min-width: 24px;
}

/* ====== NAVBAR FIXED LAYOUT ====== */

.navbar-fixed {
  display: flex;
  align-items: center;
  height: 84px;
}

/* الجوانب */
.navbar-side {
  width: 220px;
  display: flex;
  align-items: center;
}

/* الوسط الكامل */
.navbar-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* روابط */
.navbar-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

/* تثبيت الارتفاع ومنع الاهتزاز */
.navbar-fixed > div {
  height: 100%;
  align-items: center;
}

/* RTL / LTR Logic */
html[dir="rtl"] .navbar-logo {
  justify-content: flex-end;
}

html[dir="rtl"] .navbar-button {
  justify-content: flex-start;
}

html[dir="ltr"] .navbar-logo {
  justify-content: flex-start;
}

html[dir="ltr"] .navbar-button {
  justify-content: flex-end;
}
/* توحيد المسافة من الحواف للطرفين */
.navbar-side {
  width: 220px;
  display: flex;
  align-items: center;
  padding-inline: 24px; /* 👈 نفس المسافة للّوغو والزر */
}


.register-btn {
    background: linear-gradient(135deg,#34d05c,#2bb34a);
    color: #ffffff !important;
    padding: 10px 35px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.register-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.login-btn {
    background: #ffffff;
    color: #34d05c !important;
    padding: 10px 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; /* تأثير التكبير وتغيير اللون */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #34d05c;
    box-sizing: border-box;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.login-btn:hover {
    transform: scale(1.05);
    background: #ddf3e2;
}
/* FORCE correct direction based on HTML dir */

html[dir="rtl"] .theme-header-1__top-navbar-search .search-input {
    direction: rtl !important;
    text-align: right !important;
}

html[dir="ltr"] .theme-header-1__top-navbar-search .search-input {
    direction: ltr !important;
    text-align: left !important;
}

/* Fix icon position */
html[dir="rtl"] .theme-header-1__top-navbar-search .search-icon {
    left: 16px !important;
    right: auto !important;
}

html[dir="ltr"] .theme-header-1__top-navbar-search .search-icon {
    right: 16px !important;
    left: auto !important;
}
