.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11;
  transition: transform 0.3s ease;
}

.header--hidden {
  transform: translateY(-100%);
}

.header--visible {
  transform: translateY(0);
}

.header__top {
  background-color: var(--header-top-bg-color);
}

.header__top--container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.header .header__social-icons {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 10px;
}

.header .header__social-icons li a {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 18px;
}

.header .header__social-icons li a.facebook-f:hover {
  color: var(--facebook-color);
}

.header .header__social-icons li a.x-twitter:hover {
  color: var(--x-twitter-color);
}

.header .header__social-icons li a.instagram:hover {
  color: var(--instagram-color);
}

.header .header__social-icons li a.linkedin-in:hover {
  color: var(--facebook-color);
}

.header .header__social-icons li a.pinterest-p:hover {
  color: var(--pinterest-color);
}

.header .header__social-icons li a.whatsapp:hover {
  color: var(--whatsapp-color);
}

.header .header__logo {
  max-width: 100%;
  width: 244px;
}

.header .header__logo img {
  height: auto;
  width: 100%;
}

.header__top .header__text {
  font-size: 13px;
  line-height: 17px;
}

.header__bottom {
  position: relative;
  background-color: var(--text-primary);
}

.header__bottom--container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
}

.header__bottom .header__left {
  display: flex;
  gap: 10px;
}

.header__bottom .header__center {
  display: none;
}

.header__bottom .header__right {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--widget-color);
}

.header__bottom .header__right .btn__icon {
  color: var(--widget-color);
}

.header__bottom .header__right .badge {
  top: 6px;
  right: -20px;
  font-size: 10px;
  line-height: 14px;
  background-color: var(--text-primary);
  border-radius: 50%;
  padding: 2px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__bottom .header__menu-toggle {
  display: none;
}

/* hamburg  */
.header__menu-toggle {
  width: 16px;
  height: 14px;
  background-color: var(--transparent);
  border: 0;
  padding: 0;
  position: relative;
}

.header__menu-toggle .header__menu-toggle-bar {
  position: absolute;
  margin: 0;
  display: block;
  height: 2px;
  width: 16px;
  background-color: var(--white);
  transition: 0.25s ease-in-out;
}

.header__menu-toggle .header__menu-toggle-bar:nth-child(1) {
  top: 0px;
}

.header__menu-toggle .header__menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle .header__menu-toggle-bar:nth-child(2),
.header__menu-toggle .header__menu-toggle-bar:nth-child(3) {
  top: 5px;
}

.header__menu-toggle .header__menu-toggle-bar:nth-child(4) {
  top: 10px;
}

.header__menu-toggle.active .header__menu-toggle-bar:nth-child(1) {
  top: 8px;
  width: 0;
  left: 0;
  right: 0;
  opacity: 0;
}

.header__menu-toggle.active .header__menu-toggle-bar:nth-child(2) {
  opacity: 1;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.header__menu-toggle.active .header__menu-toggle-bar:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.header__menu-toggle.active .header__menu-toggle-bar:nth-child(4) {
  top: 8px;
  width: 0;
  left: 0;
  right: 0;
  opacity: 0;
}

/* hamburg End */

/* category-dropdown */
.category-dropdown {
  position: relative;
  display: inline-block;
}

.category-dropdown__toggle {
  position: relative;
  background-color: var(--transparent);
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  line-height: 18px;
  color: var(--white);
  min-height: 60px;
  background-color: var(--black);
  padding: 16px 60px 16px 25px;
}

.category-dropdown .category-angle__icon {
  position: absolute;
  right: 20px;
  top: calc(50% - 6px);
  display: inline-flex;
  transition: all 0.3s;
}

.category-dropdown:hover .category-angle__icon {
  transform: rotate(-180deg);
}

.category-dropdown__icon {
  width: 14px;
  height: 2px;
  background: var(--white);
  position: relative;
}

.category-dropdown__icon::before,
.category-dropdown__icon::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--white);
  left: 0;
}

.category-dropdown__icon::before {
  top: -6px;
}

.category-dropdown__icon::after {
  top: 6px;
  width: 11px;
}

.category-dropdown__menu {
  background-color: var(--white);
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  right: 0;
  transform: rotateX(90deg);
  transition: all 0.3s;
  transform-origin: top;
  opacity: 0;
  visibility: hidden;
}

.category-dropdown:hover .category-dropdown__toggle + .category-dropdown__menu {
  transform: rotateX(0);
  opacity: 1;
  visibility: visible;
}

.category-dropdown__menu .category-dropdown__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-dropdown__menu .category-dropdown__list > li {
  margin: 0;
  padding: 0;
  width: 100%;
  border-bottom: 1px solid var(--border-color-3);
}

.category-dropdown__menu .category-dropdown__link {
  padding: 17px 20px;
  margin: 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  text-decoration: none;
}

.category-dropdown__menu .category-dropdown__image {
  width: 22px;
  min-width: 22px;
  height: 22px;
}

/* category-dropdown end */

.header__navigation-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__navigation-list > li {
  padding: 18px 18px;
}

.header__navigation-list .header__nav-link {
  font-size: 13px;
  color: var(--widget-color);
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 2px 0;
}

.header__navigation-list .header__nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  transform: scale3d(0, 1, 1);
  transform-origin: 100% 50%;
  transition: transform 0.5s cubic-bezier(0.8, 0, 0.2, 1);
  background-color: var(--widget-color);
}

.header__navigation-list > li:hover > .header__nav-link::before {
  transform: scale3d(1, 1, 1);
  transform-origin: 0% 50%;
}

.header__navigation-list > li:hover > .header__mega-menu {
  transform: rotateX(0);
  opacity: 1;
  visibility: visible;
}

.header__navigation-list .header__nav-link .header__nav-angle {
  display: none;
  position: absolute;
  right: 20px;
  top: calc(50% - 6px);
}

/* mega menu */
.header__mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: rotateX(90deg);
  transition: all 0.3s;
  transform-origin: top;
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  right: 0;
  transition: all 0.2s ease-in-out;
  background-color: var(--offblack-1c);
  color: var(--white);
  padding: 40px 0;
}

.header__mega-menu .mega-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__mega-menu .mega-menu__list > li.mega-menu__item--title {
  font-size: 13px;
  line-height: normal;
  margin-bottom: 10px;
  white-space: inherit;
  border-bottom: none;
  color: var(--white);
  text-align: left;
}

.header__mega-menu .mega-menu__list > li.mega-menu__item {
  list-style: none;
  padding: 0;
  margin: 0 0 5px;
  width: 100%;
}

.header__mega-menu .mega-menu__list > li.mega-menu__item .mega-menu__link {
  font-size: 12px;
  text-align: left;
  color: var(--text-muted-8d8d8d);
  font-weight: 400;
  padding: 0;
  margin: 0;
  display: block;
  position: relative;
  overflow: hidden;
  line-height: 22px;
  text-decoration: none;
}

.header__mega-menu
  .mega-menu__list
  > li.mega-menu__item
  .mega-menu__link:hover {
  color: var(--white);
}

.mega-menu__row > *:not(:last-child) {
  border-right: 1px solid var(--white-10);
}

/* Cart dropdown */
.header__cart.cart-open .header__cart-dropdown {
  opacity: 1;
  visibility: visible;
}

.header__cart-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 300px;
  background-color: var(--offblack-1c);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 5px 15px var(--black-15);
  text-align: left;
}

.header__cart-empty {
  text-align: center;
  padding: 36px 12px;
}
.header__cart-empty-icon {
  display: inline-flex;
  margin-bottom: 10px;
  opacity: 0.6;
  width: 20px;
}
.header__cart-empty-text {
  opacity: 0.6;
  font-size: 12px;
  line-height: 16px;
  margin: 0;
}

.header__cart-list {
  list-style: none;
  padding: 20px;
  margin: 0;
  border-bottom: 1px solid var(--offblack-333);
  max-height: 235px;
  overflow-y: auto;
}

.header__cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
}

.header__cart-item:last-child {
  margin-bottom: 0;
}

.header__cart-image-link {
  width: 70px;
  flex-shrink: 0;
  background-color: var(--page-bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__cart-image {
  width: 100%;
  height: auto;
  display: block;
}

.header__cart-details {
  padding-left: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.header__cart-name {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.header__cart-name:hover {
  color: var(--text-tertiary);
}

.header__cart-price {
  color: var(--text-tertiary);
  font-size: 13px;
}

.header__cart-remove {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 16px;
  position: absolute;
  top: -2px;
  right: 0;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
  line-height: 1;
}

.header__cart-remove:hover {
  color: var(--white);
}

.header__cart-footer {
  padding: 20px;
}

.header__cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header__cart-subtotal-label {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.header__cart-subtotal-amount {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.header__cart-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header__cart-btn {
  text-align: center;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  border-radius: 0;
  display: inline-block;
}

.header__cart-btn--view {
  background-color: var(--offblack-1a);
  color: var(--text-tertiary);
  border: 1px solid var(--offblack-333);
}

.header__cart-btn--view:hover {
  background-color: var(--offblack-2a);
  color: var(--white);
}

.header__cart-btn--checkout {
  background-color: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}

.header__cart-btn--checkout:hover {
  background-color: var(--transparent);
  color: var(--white);
}

@media (max-width: 1199.98px) {
  .offcanvas.offcanvas__search {
    height: 250px;
  }
  .offcanvas.offcanvas__search .search-form {
    width: calc(100% - 40px);
  }
}

@media (max-width: 991.98px) {
  .header--hidden {
    transform: none;
  }

  .header__bottom .header__menu-toggle {
    display: block;
    width: 33.33333333%;
  }

  .header__top {
    display: none;
  }

  .header__bottom .navbar-collapse {
    width: 100%;
    left: 0;
    position: absolute;
    top: 100%;
    max-height: 460px;
  }

  .header__bottom .header__center {
    display: block;
  }

  .header__bottom .header__right {
    display: flex;
    width: 33.33333333%;
    justify-content: flex-end;
  }

  .header__bottom .header__left {
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    bottom: 0;
    overflow: auto;
    background: var(--offblack-171717);
    display: block;
  }
  .header__bottom .header__left .category-dropdown {
    width: 100%;
    border-bottom: 1px solid var(--white-06);
  }
  .category-dropdown__menu {
    position: static;
    background: var(--offblack-1c);
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .category-dropdown__menu .category-dropdown__list {
    padding: 0 15px;
  }
  .category-dropdown__menu .category-dropdown__list > li {
    border-bottom: 1px solid var(--white-06);
  }
  .category-dropdown__menu .category-dropdown__list > li:last-child {
    border-bottom: none;
  }
  .category-dropdown__menu .category-dropdown__link {
    height: 38px;
    color: var(--white);
    padding: 0;
  }
  .category-dropdown__icon {
    display: none;
  }
  .category-dropdown__toggle {
    background: var(--transparent);
    width: 100%;
    font-size: 13px;
    color: var(--widget-color);
    padding: 0 15px;
    height: 44px;
    min-height: inherit;
  }
  .header__navigation-list {
    display: block;
  }
  .header__navigation-list > li {
    padding: 0;
    border-bottom: 1px solid var(--white-06);
  }
  .header__navigation-list .header__nav-link {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
  }
  .header__navigation-list .header__nav-link::before {
    display: none;
  }
  .header__mega-menu {
    position: static;
    transform: none;
    padding: 10px 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .header__mega-menu .mega-menu__list > li.mega-menu__item--title {
    border-bottom: 1px solid var(--white-06);
    padding: 8px 0;
    margin: 0;
  }
  .header__mega-menu .mega-menu__list > li.mega-menu__item {
    margin: 0;
  }
  .header__mega-menu .mega-menu__list > li.mega-menu__item .mega-menu__link {
    font-size: 12px;
    height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--white-06);
    font-size: 13px;
  }
  .header__mega-menu
    .mega-menu__list
    > li.mega-menu__item:last-child
    .mega-menu__link {
    border: 0;
  }
  .mega-menu__col {
    margin-bottom: 10px;
  }
  .mega-menu__col:last-child {
    margin-bottom: 10px;
  }
  .dropdown .dropdown__simple-menu {
    position: static;
    transform: none;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0;
    padding: 0 15px;
    box-shadow: none;
    display: none;
  }
  .dropdown .dropdown__simple-menu .dropdown__link {
    height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--white-06);
    font-size: 12px;
    padding: 0;
  }
  .dropdown
    .dropdown__simple-menu
    .dropdown__submenu
    .dropdown__item:last-child
    .dropdown__link {
    border-bottom: 0;
  }
  .dropdown .dropdown__simple-menu .dropdown__icon {
    display: none;
  }
  .dropdown__simple-menu
    .dropdown__item.dropdown__item--has-submenu
    > .dropdown__link {
    color: var(--white);
    font-size: 13px;
  }
  .dropdown .dropdown__simple-menu .dropdown__submenu {
    opacity: 1;
    visibility: visible;
    position: static;
    box-shadow: none;
    padding: 0;
  }
  .dropdown__simple-menu .dropdown__item.dropdown__item--has-submenu {
    margin-top: 10px;
  }
  .dropdown__simple-menu
    .dropdown__item.dropdown__item--has-submenu:first-child {
    margin-top: 0;
  }
  .category-dropdown:hover .category-angle__icon {
    transform: none;
  }
  .header__navigation-list .header__nav-link .header__nav-angle {
    display: inline-flex;
  }
  .header__bottom .header__left {
    transform: rotateX(90deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s;
    transform-origin: top center;
  }
  .header__bottom .header__left.mobile-menu-open {
    transform: rotateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .category-dropdown.mobile-open .category-dropdown__menu {
    display: block;
  }
  .category-dropdown.mobile-open .category-angle__icon {
    transform: rotate(-180deg);
  }
  .header__navigation-list .header__nav-link .header__nav-angle {
    transition: transform 0.3s ease;
  }
  .header__navigation-list > li.mobile-open > .header__mega-menu,
  .header__navigation-list > li.mobile-open > .dropdown__simple-menu {
    display: block;
  }
  .header__navigation-list
    > li.mobile-open
    > .header__nav-link
    .header__nav-angle {
    transform: rotate(-180deg);
  }
}
