.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--sky-blue);
  color: var(--white);
  height: 110px;
  gap: 10px;
}

.header a {
  text-decoration: none;
}

.overflow-none {
  overflow: hidden;
}

.header-logo {
  width: auto;
}

.header-logo img {
  max-width: 232px;
  width: 100%;
}

.header-menu {
  display: flex;
  align-items: center;
}

.header-nav-group.show .submenu {
  display: flex;
  height: unset;
  transform: translateY(0);
  opacity: 1;
  z-index: 1;
}

.header-socials {
  display: none;
}

.header-search-btn {
  display: block;
  cursor: pointer;
  color: var(--white);
  position: relative;
  background-color: var(--blue);
  overflow: hidden;
  transition: all .2s;
}

.header-search-btn path {
  transition: all .2s;
}

.header-search-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #01134f;
  z-index: 0;
  transform: translateX(-105%);
  transition: all .2s ease;
}

.header-search-btn:hover {
  /*   color: var(--black); */
  transition: all .2s;
}

.header-search-btn:hover path {
  /*   fill: var(--black); */
  transition: all .2s;
}

.header-search-icon {
  position: relative;
  background-color: transparent;
  height: 36px;
  width: 36px;
  z-index: 1;
}

.header-nav-group:is(:active) .submenu {
  display: flex;
  height: unset;
  transform: translateY(0);
  opacity: 1;
  z-index: 1;
}

.submenu-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.header-search-text {
  display: none;
  z-index: 1;
}

.header-mobile-hamburger {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25px;
  position: relative;
  cursor: pointer;
  color: var(--white);
}

.header-bottom-bar {
  display: none;
}

.header-mobile-hamburger-icon {
  height: 40px;
  width: 40px;
}

.header-search-container {
  background-color: var(--blue);
  color: var(--white);
  padding: 24px;
  border-top: 1.5px solid var(--light-blue);
  border-bottom: 1.5px solid var(--light-blue);
}

.header-search {
  max-width: 1300px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.header-search-container {
  display: none;
}

.header-search-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-input-label {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}

.search-form-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  flex-grow: 1;
  height: 48px;
  background-color: var(--dark-blue);
  border: none;
  outline: none;
  color: var(--white);
  padding: 1px 16px;
  font-size: 16px;
  border-radius: 0;
}

.search-input::placeholder {
  color: var(--white);
}

.search-submit-btn {
  width: 48px;
  height: 48px;
  background-color: var(--dark-blue);
  outline: none;
  border: none;
  cursor: pointer;
}

.search-close-btn {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.header-cart {
  position: relative;
}

.header-cart-notification {
  background-color: var(--white);
  color: var(--black);
  position: absolute;
  width: 16px;
  height: 16px;
  top: 6px;
  right: 6px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}

.header-cart-arrow {
  display: none;
}

@media screen and (max-width: 1200px) {
  #header-mobile-hamburger-checkbox:checked~.header-bottom-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-top: 110px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
  }

  #header-mobile-hamburger-checkbox:checked~.header-bottom-bar .mobile-header-backdrop {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  #header-mobile-hamburger-checkbox:checked~.header-bottom-bar .header-nav,
  #header-mobile-hamburger-checkbox:checked~.header-bottom-bar .header-function {
    position: relative;
    z-index: 101;
    display: flex;
    width: 100%;
    flex-direction: column;
  }

  #header-mobile-hamburger-checkbox:checked~.header-bottom-bar .header-nav-link {
    padding: 16px 20px;
    border-top: .0625rem solid #77ddf533;
    background-color: var(--sky-blue);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
  }

  .header-nav-group {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 100;
  }

  .submenu {
    display: flex;
    opacity: 0;
    height: 0;
    transform: translateY(-50px);
    flex-direction: column;
    transition: all .3s ease;
    z-index: -1;
    margin: 0;
    padding: 0;
  }

/*   .header-nav-group:is(:hover, :focus, :active) .submenu {
    display: flex;
    height: unset;
    transform: translateY(0);
    opacity: 1;
    z-index: 1;
  } */

  #header-mobile-hamburger-checkbox:checked~.header-bottom-bar .header-cart {
    border-top: .0625rem solid #77ddf533;
    background-color: var(--blue);
    display: flex;
    justify-content: start;
    align-items: center;
  }

  #header-mobile-hamburger-checkbox:checked~.header-bottom-bar .header-cart-arrow {
    display: block;
  }

  #header-mobile-hamburger-checkbox:checked~.header-bottom-bar :is(.header-login, .header-logout) {
    background-color: var(--blue);
  }
}

#header-search-checkbox:checked~.header-search-container {
  display: block;
}

.cart-container {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 103;
}

.cart {
  padding-top: 10px;
  padding-bottom: 100px;
  width: 100%;
  height: 100%;
  color: var(--white);
  background-color: var(--dark-blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.close-cart {
  padding-top: 5px;
  padding-left: 10px;
  cursor: pointer;
}

.cart-title {
  padding: 0 24px;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.cart-upper {
  height: calc(100% - 112px);
}

.cart-products {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
  max-height: calc(100% - 130px);
  overflow-y: auto;
}

.cart-products-loading {
  position: relative;
  z-index: 0;
}

.cart-products-loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-blue);
  z-index: 1;
}

.cart-products-loading::after {
  content: "";
  position: absolute;
  top: 48%;
  left: 48%;
  width: 48px;
  height: 48px;
  border: 5px solid #FFF;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: loaderRotation 1s linear infinite;
  z-index: 2;
}

@keyframes loaderRotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.cart-products::-webkit-scrollbar {
  background-color: transparent;
  width: 7px;
}

.cart-products::-webkit-scrollbar-thumb {
  background-color: var(--white);
  width: 7px;
  border-radius: 10px;
}

.cart-product {
  display: flex;
  gap: 28px;
  position: relative;
}

.cart-product-img {
  width: 165px;
  height: 165px;
  object-fit: cover;
}

.cart-product-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.cart-product-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.48px;
  margin-bottom: 20px;
  color: var(--white);
}

.cart-product-quantity {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.cart-quantity-control {
  display: flex;
  align-items: center;
}

.cart-item-quantity {
  width: 50px;
  text-align: center;
}

.cart-item-increase,
.cart-item-decrease {
  cursor: pointer;
  width: 19px;
  height: 19px;
}

.cart-item-remove {
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
}

.cart-product-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.cart-product-total span:last-child {
  font-weight: 700;
}

.cart-lower {
  height: 112px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 28px;
  font-weight: 500;
}

.proccess-checkout {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 61px;
  width: 100%;
  background-color: var(--blue);
  font-size: 20px;
  font-weight: 600;
}

@media screen and (min-width: 834px) {
  .header-search-form {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .search-form-container {
    flex-grow: 1;
  }

  .cart-title {
    font-size: 34px;
    line-height: 46px;
  }

  .cart-product-img {
    width: 200px;
  }
	
  .cart-product-content {
    flex-grow: unset;
	width: calc(100% - 214px);
  }

  .cart-product-title {
    font-size: 24px;
    line-height: 28px;
  }

  .cart-product-quantity {
    font-style: 16px;
  }

  .cart-item-increase,
  .cart-item-decrease {
    width: 28px;
    height: 28px;
  }

  .cart-product-total {
    font-size: 16px;
  }
}

@media screen and (min-width: 1200px) {
  .header {
    height: 138px;
  }

  .header-logo img {
    max-width: 385px;
    width: 385px;
  }

  .header-menu {
    flex-direction: column;
    align-items: flex-end;
    padding-right: 18px;
  }

  .header-top-bar {
    display: flex;
    align-items: center;
    gap: 48px;
  }

  .header-socials {
    display: flex;
  }

  .header-search-btn {
    display: flex;
    align-items: center;
    width: 203px;
    cursor: pointer;
    color: var(--white);
  }

  .search-input-label {
    color: var(--white);
  }

  .header-search-text {
    display: flex;
    background-color: transparent;
    height: 36px;
    flex-grow: 1;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
  }

  .header-bottom-bar {
    display: flex;
    gap: 5px;
  }

  .header-mobile-hamburger {
    display: none;
  }

  .header-nav {
    display: flex;
    gap: 5px;
  }

  .header-nav-link {
    padding: 16px 0;
    margin: 0 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }

  .header-nav-link::after {
    content: "";
    height: 3px;
    width: 100%;
    position: absolute;
    bottom: 5px;
    left: -100%;
    background-color: var(--blue);
    transition: all .2s;
  }

  .header-nav-link:hover::after {
    left: 0;
    transition: all .2s;
  }

  .header-nav-group {
    display: flex;
    position: relative;
    /* width: 100%;
    height: 100%;
    z-index: 100; */
  }

  .submenu {
    position: absolute;
    left: 0;
    top: 100%;
    opacity: 0;
    z-index: -1;
    display: flex;
    opacity: 0;
    width: 100%;
    height: 0;
    transform: translateY(-50px);
    flex-direction: column;
    transition: all .3s ease;
    z-index: -1;
    background: var(--blue);
    margin: 0;
    padding: 0;
  }

  .header-nav-group:is(:hover, :focus, :active) .submenu {
    display: flex;
    height: unset;
    transform: translateY(0);
    opacity: 1;
    z-index: 1;
  }

  .submenu .header-nav-link::after {
    content: unset;
  }

  .header-function {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .cart {
    padding-bottom: 50px;
  }

  .header-cart {
    position: relative;
    overflow: hidden;
  }

  .header-cart::after {
    content: "";
    height: 3px;
    width: 100%;
    position: absolute;
    bottom: 5px;
    left: -100%;
    background-color: var(--blue);
    transition: all .2s;
  }

  .header-cart:hover::after {
    left: 0;
    transition: all .2s;
  }

  .header-login,
  .header-logout {
    background-color: var(--blue);
    margin: 0;
    padding: 0;
    height: 36px;
    display: flex;
    line-height: 15px;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
  }

  .header-login:hover,
  .header-logout:hover {
    background-color: #01134f;
    transition: background-color .2s .2s;
  }

  .header-search-container {
    padding: 32px 64px;
  }

  .cart-container {
    justify-content: end;
    width: 100%;
    height: 100%;
  }

  .cart-backdrop {
    background-color: var(--black);
    opacity: .3;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  .cart {
    width: 600px;

  }
}

@media screen and (min-width: 1400px) {
  .header-menu {
    padding-right: 28px;
  }

  .header-bottom-bar {
    gap: 16px;
  }

  .header-nav {
    gap: 16px;
  }

  .header-function {
    gap: 16px;
  }

  .header-nav-link:not(.button) {
    margin: 0 16px;
  }
}

.button {
  position: relative;
  overflow: hidden;
  z-index: 0;
  cursor: pointer;
}

.button::after {
  background-color: #01134f;
  block-size: 600%;
  content: " ";
  inline-size: 0;
  inset-block-start: 50%;
  inset-inline-start: -1.25rem;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: scaleX(1) translateY(-50%) rotate(-20deg);
  transform-origin: center;
  transition: inline-size .2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity .2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.button svg {
  fill: var(--white);
}

.terus-button__arrow {
  height: 48px;
  width: 48px;
  border-left: 1px solid var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.terus-button__arrow-head {
  transform: translateX(-20%);
  transition: transform .2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.terus-button__arrow-shaft {
  transform: translateX(50%) scaleX(0);
  transition: transform .2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.button:hover::after {
  inline-size: calc(100% + 2.5rem);
  opacity: 1;
}

.button:hover {
  /*   color: var(--black); */
}

.button:hover .terus-button__arrow {
  /*   border-color: var(--black); */
}

.button:hover svg {
  /*   fill: var(--black); */
}

.button:hover .terus-button__arrow-head {
  transform: translateX(0);
}

.button:hover .terus-button__arrow-shaft {
  transform: translateX(0) scaleX(1);
}

/* .header-nav-link.button::after {
  block-size: 28%;
  width: 300px;
}

.header-nav-link.button:hover::after {
  block-size: 28%;
  width: 300px;
  left: 80%;
  top: 23%;
} */

@media screen and (max-width: 1439px) {
  .header-nav-link.button {
    /* position: unset; */
  }

  .header-nav-link.button:hover {
    color: var(--white);
  }

  .header-nav-link.button:hover::after {
    opacity: 0;
  }
}