@use "../variables";
/* Start::app-header */
.app-header {
  max-width: 100%;
  height: 4.25rem;
  z-index: 100;
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  background: variables.$header-bg;
  border-block-end: 1px solid variables.$header-border-color;
  transition: all 0.1s ease;

  #mainHeaderProfile {
    color: variables.$header-prime-color;
  }
}
.header-element.header-search {
  .header-search-icon {
    width: 1.9rem;
    height: 1.9rem;
    color: var(--header-prime-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    inset-block-start: 2px;
    inset-inline-end: 3px;
  }
}
@media (min-width: 1165px) {
  .header-element.header-search input {
      width: 350px;
  }
}
@media (min-width: 992px) {
  .app-header {
    padding-inline-start: 16rem;
  }
}

.header-icon-badge {
  position: absolute;
  padding: 0.15rem 0.25rem;
  inset-block-start: 1rem;
  inset-inline-end: 0.75rem;
  font-size: 0.625rem;
}

.header-icon-pulse {
  position: absolute;
  width: 5px;
  height: 5px;
  inset-block-start: 1.35rem;
  inset-inline-end: 18px;
}

.related-app {
  text-align: center;
  border-radius: variables.$default-radius;
  border: 1px solid variables.$default-border;

  &:hover {
    background-color: variables.$light;
  }
}

.header-profile-dropdown {
  min-width: 12rem;
}

/* End::app-header */

/* Start::main-header-container */
.main-header-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;

  .header-content-left,
  .header-content-right {
    display: flex;
    align-items: stretch;
    margin-block: auto;
  } 
  .header-content-right {
    padding-inline-start: 0 !important;
  }
  .header-element {
    display: flex;
    align-items: stretch;
  }

  .header-link {
    display: flex;
    align-items: center;
    padding: 1rem 0.5rem;

    &:hover,
    &.show {
      .header-link-icon {
        fill: variables.$primary;
        color: variables.$primary;
      }
    }
  }

  .header-link-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
    fill: var(--header-icon-color);
    color: var(--header-icon-color);
    transition: all ease 0.05s;
    position: relative;
    padding: 6px;
    border-radius: 50%;
    background-color: var(--custom-white);
    border: 1px solid var(--default-border);
  }

  .dropdown-toggle {
    text-decoration: none;

    &::after {
      content: none;
    }
  }

  .main-profile-user {
    .dropdown-menu {
      width: 13rem;
    }

    .dropdown-item {
      font-weight: 400;
      font-size: 0.813rem;
      color: variables.$default-text-color;
      padding: 1.25rem 1rem;
      height: 2.375rem;
      display: flex;
      align-items: center;

      &:hover {
        color: variables.$primary;

        i {
          color: variables.$primary;
          opacity: 1;
        }
      }
    }
  }

  .main-header-dropdown {
    box-shadow: 0px 4px 16px variables.$black-1;
    inset-block-start: 0 !important;
    border: 0;
    li {
      border-bottom: 1px solid variables.$default-border;
      &:last-child {
        border-bottom: 0;
      }
      ul.sub-list {
        li {
          border-bottom: 0;
        }
      }
    }
    .dropdown-item {
      padding: 0.6rem 1rem;
      &:last-child {
        border-block-end: 0;
      }
    }
  }

  .cart-dropdown .main-header-dropdown {
    width: 21rem;
  }

  .notifications-dropdown .main-header-dropdown {
    width: 21rem;
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(6rem);
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
    transform: translateY(6rem);
  }
}

[dir="rtl"] {
  .sidemenu-toggle {
    .open-toggle {
      transform: rotate(180deg);
    }
  }
  .app-header {
    .dropdown-menu-end {
      --bs-position: end;
    }
  }
}

/* End::main-header-container */

/* Start::Header-dropdown */
.header-product-item {
  padding-inline-start: 0;
  display: flex;

  li {
    position: relative;
    list-style-type: none;
    font-size: 0.75rem;
    font-weight: 400;
    color: variables.$text-muted;
    padding-inline-end: 0.938rem;
  }

  li:nth-child(2),
  li:nth-child(3),
  li:nth-child(4) {
    &:before {
      position: absolute;
      content: "";
      inset-inline-start: -0.438rem;
      width: 1px;
      inset-block-start: 0.25rem;
      height: 0.625rem;
      background-color: variables.$text-muted;
      opacity: 0.1;
    }
  }
}

.header-cart-remove {
  i {
    color: variables.$default-text-color;
    opacity: 0.5;
    font-weight: 600;
  }
  &:hover i {
    color: variables.$danger;
    opacity: 1;
  }
}
.dropdown-item-close1 {
  i {
    color: variables.$default-text-color;
    opacity: 0.2;
  }
  &:hover i {
    opacity: 1;
  }
}
@media(max-width: 575.98px) {
  .header-element.dropdown {
    position: initial;
  }
}
/* End::Header-dropdown */

/* Start::header-search */
#searchModal {
  .form-control {
    position: relative;
  }

  .input-group {
    border: 2px solid variables.$primary;
    border-radius: 0.25rem;

    i {
      color: variables.$text-muted;
    }
  }
}

.header-search {
  position: relative;
  margin-block: auto;
}
.autoComplete_wrapper > {
  .header-search-bar {
    position: relative;
    min-width: 20rem !important;
    border-radius: 0.5rem;
    padding: .375rem 2rem .375rem .75rem !important;
    border: 1px solid variables.$default-border !important;
    background-color: transparent;
    &:focus {
      border: 1px solid variables.$default-border !important;
      background-color: transparent;
    }
  }
}
.header-search-bar{
  padding-inline-end: 2rem !important;
}
.header-search-icon {
  position: absolute;
  top: .5625rem;
  inset-inline-end: .75rem;
  color: variables.$text-muted;
}
.header-profile-img {
  width: 2rem;
  height: 2rem;
}

[data-nav-layout="horizontal"] .autoComplete_wrapper > ul {
  margin-inline-start: 1.25rem;
}

/* End::header-search */

/* Start::header-country-selector */
// .country-selector {
//   .header-link img {
//     width: 1.75rem;
//     height: 1.75rem;
//   }
// }

/* End::header-country-selector */

/* Start:header dropdowns scroll */
#header-notification-scroll,
#header-cart-items-scroll {
  max-height: 20rem;
}

/* End:header dropdowns scroll */

/* Start::header badge pulse */
.pulse {
  display: block;
  cursor: pointer;
  animation: pulse-secondary 2s infinite;

  &.pulse-secondary {
    box-shadow: 0 0 0 rgba(var(--secondary-rgb), 0.4);
  }
}

@-webkit-keyframes pulse-secondary {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0.4);
  }

  70% {
    -webkit-box-shadow: 0 0 0 10px rgba(var(--secondary-rgb), 0);
  }

  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0);
  }
}

@keyframes pulse-secondary {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0.4);
    box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0.4);
  }

  70% {
    -moz-box-shadow: 0 0 0 10px rgba(var(--secondary-rgb), 0);
    box-shadow: 0 0 0 10px rgba(var(--secondary-rgb), 0);
  }

  100% {
    -moz-box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0);
    box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0);
  }
}

/* End::header badge pulse */

/* Start::Header theme-mode icon style */
[data-theme-mode="light"] {
  .layout-setting .dark-layout {
    display: none;
  }

  .layout-setting .light-layout {
    display: block;
  }
}

.layout-setting .dark-layout {
  display: none;
}

.layout-setting .light-layout {
  display: block;
}

[data-theme-mode="dark"] {
  .layout-setting .light-layout {
    display: none;
  }

  .layout-setting .dark-layout {
    display: block;
  }
}

/* End::Header theme-mode icon style */

/* Start::Header fullscreen responsive */
@media (max-width: 767.98px) {
  .header-element.header-fullscreen {
    display: none;
  }
}

/* End::Header fullscreen responsive */

/* Start::Responsive header dropdowns */
@media (max-width: 575.98px) {
  .app-header {
    .dropdown-menu {
      width: 100%;
    }
  }
}

/* End::Responsive header dropdowns */

/* Start::Responsive Search */
[dir="rtl"] {
  .header-element.header-search {
    .autoComplete_wrapper > .header-search-bar {
      padding: 0.375rem 0.75rem 0.375rem 2rem !important;
    }
  }
}
/* End::Responsive Search */

/* Start::toggle */
.animated-arrow.hor-toggle {
  text-align: center;
  width: 2rem;
  font-size: 1.2rem;
  position: relative;
  margin: 0.3125rem 0;
  margin-inline-end: 1rem;
}

.animated-arrow {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  z-index: 102;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  transition: all 0.05s ease-in-out;
  cursor: pointer;
  padding: 1rem !important;
  margin-block-start: 0.375rem;
  margin-block-end: 0;
  // margin-inline-start: 0.5rem;
  margin-inline-end: 0;
}

.animated-arrow.hor-toggle span {
  vertical-align: middle;
}

.animated-arrow span {
  cursor: pointer;
  height: 0.075rem;
  width: 0.75rem;
  background: variables.$text-muted;
  position: absolute;
  display: block;
  content: "";
  transition: all 0.05s ease-in-out;
}

.animated-arrow span:before,
.animated-arrow span:after {
  transition: all 0.05s ease-in-out;
}

.animated-arrow span:before {
  inset-block-start: -0.375rem;
  width: 1.4375rem;
}

.animated-arrow span:after {
  bottom: -0.375rem;
  width: 15px;
}

.animated-arrow span:before,
.animated-arrow span:after {
  cursor: pointer;
  height: 0.075rem;
  width: 1rem;
  background: variables.$text-muted;
  position: absolute;
  display: block;
  content: "";
}

/* End::toggle */
.switcher-icon svg {
  animation-name: spin;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
/* Start::header notification dropdown */
.header-notification-text {
  max-width: 14.5rem;
}
/* Start::header notification dropdown */

/* Start::header dashboards dropdown */
.btn.header-dashboards-button {
  min-width: 14rem;
  border: 0px;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  color: variables.$header-prime-color !important;
  font-weight: 300;
  min-height: 2.3994rem;
  font-size: 13px;
}
.dashboard-dropdown {
  min-width: 14rem;
  inset-block-start: 11px !important;
  li {
    border-bottom: 1px solid variables.$default-border;
    &:last-child {
      border-bottom: 0;
    }
  }
  .dashboards-dropdown-item {
    padding: 0.75rem 1rem;
  }
}
/* End::header dashboards dropdown */

@media (max-width: 1199.98px) {
  .btn.header-dashboards-button,.dashboard-dropdown {
    min-width: 12rem;
  }
  .header-search-bar {
    width: 11rem;
  }
}

@media (max-width: 575.98px) {
  .main-header-container .main-header-dropdown {
    inset-block-start: -0.0625rem !important;
    border-radius: 0 0 variables.$default-radius variables.$default-radius;
  }
}

@media (max-width: 575.98px) {
  .main-header-container .header-element .header-link {
    padding: 0.5rem 0.3rem;
  }
}
/* Start:: cart color indicator */
.text-cart-headset {
  color: #19719e;
}
.text-cart-handbag {
  color: #de8cb2;
}
.text-cart-alaramclock {
  color: #06a7ef;
}
.text-cart-sweatshirt {
  color: #decac1;
}
.text-cart-smartwatch {
  color: #fb6c67;
}
/* End:: cart color indicator */

/* Start:: header animate bell */
.animate-bell {
  -webkit-animation: ring 4s .7s ease-in-out infinite;
  -webkit-transform-origin: 50% 4px;
  -moz-animation: ring 4s .7s ease-in-out infinite;
  -moz-transform-origin: 50% 4px;
  animation: ring 4s .7s ease-in-out infinite;
  transform-origin: 50% 4px;
}
@keyframes ring {
  0% {
    transform: rotate(0);
  }
  1% {
      transform: rotate(30deg);
  }
  3% {
      transform: rotate(-28deg);
  }
  5% {
      transform: rotate(34deg);
  }
  7% {
      transform: rotate(-32deg);
  }
  9% {
      transform: rotate(30deg);
  }
  11% {
      transform: rotate(-28deg);
  }
  13% {
      transform: rotate(26deg);
  }
  15% {
      transform: rotate(-24deg);
  }
  17% {
      transform: rotate(22deg);
  }
  19% {
      transform: rotate(-20deg);
  }
  21% {
      transform: rotate(18deg);
  }
  23% {
      transform: rotate(-16deg);
  }
  25% {
      transform: rotate(14deg);
  }
  27% {
      transform: rotate(-12deg);
  }
  29% {
      transform: rotate(10deg);
  }
  31% {
      transform: rotate(-8deg);
  }
  33% {
      transform: rotate(6deg);
  }
  35% {
      transform: rotate(-4deg);
  }
  37% {
      transform: rotate(2deg);
  }
  39% {
      transform: rotate(-1deg);
  }
  41% {
      transform: rotate(1deg);
  }
  43% {
      transform: rotate(0);
  }
  100% {
      transform: rotate(0);
  }
}
/* End:: header animate bell */

/* Start:: Cart Dropdown */
.form-control-cart {
  width: 1rem !important;
  padding: 0px !important;
  font-size: 13px !important;
  background-color: transparent !important;
}
/* End:: Cart Dropdown */

.main-header-container .autoComplete_wrapper > ul {
  margin-top: 2px !important;
}
