/* init ----> */
header#header {
  display: none;
  height: calc(44px + 54px);
}

header#ssComponent {
  background-color: #2d2d2c;
  left: 0;
  position: fixed;
  top: 0;
  transition: transform .3s ease-out;
  width: 100%;
  z-index: 100;

  &.tucked {
    transform: translateY(-44px);
    transition: transform .3s ease-in;

    & nav {
      border-radius: 0px !important;
      transition: 0.8s;
    }
  }

  & div#salesBar {
    height: 44px !important;
    background-color: #2D2D2C;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    & a {
      margin: 0;
      text-align: center;
      color: #F3F4F6;
      font-size: 11px;
      letter-spacing: 1px;
      text-transform: uppercase;

      &#rel{
        margin:0;
        text-align: center;
        color: #F3F4F6;
        font-size: 11px;
        letter-spacing: 1px;
        text-transform: uppercase;

        & button{
          border:none;
          font-weight: 600;
          letter-spacing: 1px;
          text-transform: uppercase;
        }
      }
    }

    & div {
      display: none;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 1px;
      padding: 0px 5px;

      & span#timerDays::after {
        content: 'd :';
      }

      & span#timerHours::after {
        content: 'h :';
      }

      & span#timerMinutes::after {
        content: 'm';
      }
    }


  }

  & a {
    text-decoration: none;
    font-size: 1.337rem;
    font-weight: 500;

    &:before {
      content: '';
    }

    &:hover {
      cursor: pointer;
    }

    &.top-nav-button-login {
      width: unset;
      color: #2d2d2c;
      line-height: unset;
      height: unset;
      padding-right: 1rem;
    }

    &#rel button {
      background: transparent;
      text-decoration: underline;
      border-radius: 10px;

      &:hover {
        background-color: #fff;
        text-decoration: none;
        color: #2d2d2c;
      }
    }

    & i {
      font-weight: 500;

      &.ri-shopping-cart-2-line.full {
        color: #2a9A88
      }
    }

    &.dropdown__link {
      font-weight: 400;
    }

    &:hover {
      color: #2d2d2c;
    }
  }

  & .container.nav {
    width: 100%;
    padding-left: 1.5rem;
    height: 54px !important;
    min-height: 54px;

    & .nav__data {
      height: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;

      & .nav__logo {
        display: inline-flex;
        align-items: center;
        column-gap: 0.25rem;
        color: var(--ss-body);
        font-weight: 500;
        transition: color 0.3s;

        &:hover {
          color: var(--ss-primary);
        }

        & i {
          font-size: 1.25rem;
        }
      }
    }

    & div#nav-menu {
      --shoptet: none;

      & ul li.nav__lang a {
        font-size: 12px;
        font-weight: 500;
      }
    }
  }

  & .nav__toggle {
    position: relative;
    width: 32px;
    height: 32px;

    &#nav-toggle.active {
      --shoptet: none;

      & i.nav__toggle-close {
        opacity: 1;
      }

      & i.nav__toggle-menu {
        opacity: 0;
      }
    }
  }

  & .nav__toggle-menu,
  .nav__toggle-close {
    font-size: 1.25rem;
    color: var(--ss-body);
    position: absolute;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: opacity 0.1s, transform 0.4s;
  }

  & .nav__toggle-close {
    opacity: 0;
  }

  & ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  & div#ssSearchbar {
    width: 450px;
    display: flex;
    align-items: center;

    & div.search {
      width: 100%;

      & h2,
      h3 {
        display: none;
      }

      & form {
        position: unset;
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;

        & fieldset {
          width: 100%;
        }

        & input {
          height: 40px;
          border: none;
          border-radius: 1rem;
          color: #7A7a7A;
          font-weight: 500;
          font-size: 13px;
          letter-spacing: 0.5px;
          width: 100%;
          transition: .2s ease-in;
          padding-left: 4rem;
          background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(158,158,158,1)"><path d="M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"></path></svg>');
          background-repeat: no-repeat;
          background-size: 20px;
          background-position: 10px 10px;
          background-color: #f5f5f5;

          &::placeholder {
            color: #7A7a7A;
          }

          &:focus-visible {
            outline: 0;
            box-shadow: unset;
            outline-offset: 0;
            transition: .2s ease-in;
          }

          &:focus-visible::placeholder {
            color: transparent;
          }
        }

        & button {
          display: none;
        }

        & div.search-whisperer.active {
          max-width: 450px;
          border: none;

          & div.search-whisperer-documents {
            display: none;
          }

          & ul.search-whisperer-products {
            padding: 1.337rem;

            li {
              border: none;

              &:nth-child(n+5) {
                display: none;
              }

              & a {
                border-radius: 1rem;
                padding: 0.7rem;

                &:hover {
                  background-color: #f5f5f5;
                }
              }

              & span.search-whisperer-image {
                max-width: 80px;
                background-color: #f7f7f7;
                border-radius: 0.773rem;
                transition: .2s ease-in;

                & img {
                  border-radius: 0.773rem;
                  mix-blend-mode: multiply;
                  transition: .2s ease-in;
                }
              }

              & a:hover span.search-whisperer-image {
                background-color: #fff;
                transition: .2s ease-in;
              }

              & span.p-info span {
                color: #393939;

                &.p-availability span {
                  color: #9e9e9e;
                }
              }

              & span.price-final {
                font-size: 1.337rem;
                color: #393939;
              }
            }
          }
        }
      }
    }
  }
}

/* <----- init */

div[data-target='currency'] div.languagesMenu__header:after {
  content: " /"
}



body.type-page.in-hledat header#ssComponent.header {
  & .container.nav {
    --shoptet: none;

    & .nav__data {
      width: 100%;
    }
  }
}

html.searchbar_error header#ssComponent.header div#ssSearchbar {
  display: none;
}

/* OG code ----> */
.nav__link {
  color: #666;
  font-weight: 500;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;

  &:hover {
    background-color: #2d2d2c;
  }
}

.show-menu {
  opacity: 1 !important;
  top: calc(44px + 54px) !important;
  pointer-events: initial !important;
}

.show-icon {
  --shoptet: none;

  & .nav__toggle-menu {
    opacity: 0;
    transform: rotate(90deg);
  }

  & .nav__toggle-close {
    opacity: 1;
    transform: rotate(90deg);
  }
}

.dropdown__button {
  cursor: pointer;
}

.dropdown__container {
  height: 0;
  background-color: var(--ss-white-smoke);
  overflow: hidden;
  transition: height 0.4s;
}

.dropdown__arrow {
  font-size: 1.5rem;
  font-weight: initial;
  transition: transform 0.4s;
}

.dropdown__content,
.dropdown__group,
.dropdown__list {
  display: grid;
}

.dropdown__content {
  row-gap: 0;
}

.dropdown__group {
  padding-left: 2.5rem;
  margin-top: 1.25rem;
  row-gap: 0.5rem;

  &:first-child {
    margin-top: 1.25rem;
  }

  &:last-child {
    margin-bottom: 1.25rem;
  }
}

.dropdown__icon i {
  font-size: 1.25rem;
  color: var(--ss-primary);
}

.dropdown__title {
  font-size: 12px;
  font-weight: 700;
  color: #666;
}

.dropdown__list {
  row-gap: 0.25rem;
}

.dropdown__link {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  transition: color 0.3s;

  :hover {
    color: var(--ss-body);
    cursor: pointer;
  }
}

.show-dropdown .dropdown__arrow {
  transform: rotate(180deg);
}

/* <----- init */

/* Klient ----> */

body.customer-page header#ssComponent.header {
  --shoptet: none;

  & .container.nav {
    border-radius: 0;
    padding-left: 3.77rem;
    padding-right: 3.77rem;
    padding-top: 1.337rem;
    padding-bottom: 1.337rem;
    height: auto !important;
    gap: 3.77rem;

    & a.nav__logo img {
      height: 50px;
    }

    & ul {
      --shoptet: none;

      &.nav__list {
        column-gap: 0rem;
      }

      & li a {
        font-weight: 500;
        font-size: 12px;
        padding: 0 1.337rem;
      }
    }

    & .dropdown__container {
      top: calc(1.337rem + 50px);
    }
  }
}

/* <---- Klient */

/* Checkout ----> */

body.ordering-process header {
  --shoptet: none;

  &#header {
    height: calc(54px);
  }

  #ssComponent.header {
    --shoptet: none;

    & .container.nav {
      border: none;

      & .nav__data {
        width: 100%;
        display: flex;
      }
    }

    &.tucked {
      transform: none;
    }

    & li.ssMenu__search {
      display: none !important;
    }

    & .nav__link i.ri-close-line {
      opacity: 0.6;
      color: #2D2D2C;
      transition: 0.5s;

      &:hover {
        opacity: 1;
      }
    }
  }
}

/* <---- Checkout */

/* For small devices */
@media screen and (max-width: 300px) {
  .dropdown__group {
    padding-left: 1.5rem;
  }
}

@media screen and (max-width: 999px) {

  header#header {
    height: calc(54px + 44px);
  }

  header#ssComponent.header {
    --shoptet: none;

    & .container.nav {
      border-bottom: solid 1px var(--ss-white-smoke);
      background: white;

      & .nav__menu {
        background-color: var(--ss-bg);
        position: fixed;
        left: 0;
        top: 2.5rem;
        width: 100%;
        height: calc(100vh - 3.5rem);
        overflow: auto;
        padding-block: 1.5rem 4rem;
        pointer-events: none;
        opacity: 0;
        transition: top 0.4s, opacity 0.3s;

        &::-webkit-scrollbar {
          width: 0.5rem;
        }

        &::-webkit-scrollbar-thumb {
          background-color: hsl(220, 12%, 70%);
        }
      }

      & ul li {
        --shoptet: none;

        &.desktop__only {
          display: none;
        }

        .nav__link {
          padding: 10px;
        }
      }
    }
  }
}


/* For large devices */
@media screen and (min-width: 999px) {

  header#ssComponent {
    --shoptet: none;

    & .container.nav {
      display: flex;
      justify-content: flex-start;
      background-color: white;
      border: none;
      box-shadow: #F2F3F6 0px 1px 0px 0px;
      gap: 2.4rem;
      margin-inline: auto;
      border-radius: 1.337rem 1.337rem 0 0;

      & ul {
        --shoptet: none;

        & li {
          display: flex;
        }
      }
    }
  }

  html:not(.searchbar_error) header#ssComponent.header {
    & a.ss_search {
      display: none;
    }
  }

  body.ordering-process header#ssComponent {
    --shoptet: none;

    & .container.nav {
      box-shadow: none;
    }
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 3rem;
    height: 100%;
  }

  .nav__link {
    padding: 0;

    &:hover {
      background-color: initial;
    }
  }

  .dropdown__button {
    column-gap: 0.25rem;
    pointer-events: none;
  }

  .dropdown__container {
    height: max-content;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(44px + 54px);
    background-color: var(--ss-bg);
    box-shadow: 0 6px 8px hsla(220, 68%, 12%, 0.05);
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }

  .dropdown__content {
    grid-template-columns: repeat(5, max-content);
    column-gap: 0;
    max-width: unset;
    margin-inline: auto;
    justify-content: space-around;
    align-items: baseline;
  }

  .dropdown__group {
    padding: 3rem 0;
    align-content: baseline;
    row-gap: 1.25rem;

    &:first-child {
      margin: 0;
    }

    &:last-child {
      margin: 0;
    }
  }

  .dropdown__list {
    row-gap: 0.75rem;
  }

  .dropdown__icon {
    width: 60px;
    height: 60px;
    background-color: var(--ss-white-smoke);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;

    & i {
      font-size: 2rem;
    }
  }

  .dropdown__title {
    font-size: 12px;
  }

  .dropdown__link {
    font-size: 12px;

    &:hover {
      color: var(--ss-primary);
    }
  }

  .dropdown__item {
    cursor: pointer;
    flex-shrink: 0;

    &.nav__lang .dropdown__arrow {
      display: none;
    }

    &:hover a.nav__link {
      color: #2d2d2c;
    }

    &:hover .dropdown__arrow {
      transform: rotate(180deg);
    }

    &:hover>.dropdown__container {
      opacity: 1;
      pointer-events: initial;
      cursor: initial;
    }
  }
}

@media screen and (min-width: 999px) {
  .nav__toggle {
    display: none !important;
  }

  .dropdown__content {
    --shoptet: none;

    &.nastaveni {
      display: flex;
      justify-content: end;
      margin-right: 10%;
      gap: 10%;
    }
  }




}

@media (min-width: 999px) and (max-width: 1199px) {
  header div.languagesMenu {
    display: none !important;
  }
}