@keyframes kleep-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes kleep-loadbar-frame {
  0% {
    left: -300px;
    width: 30%;
    opacity: 0;
  }
  1% {
    left: -300px;
    width: 30%;
    opacity: 1;
  }
  50% {
    width: 33%;
  }
  70% {
    width: 66%;
  }
  80% {
    left: 60%;
  }
  95% {
    left: 120%;
    opacity: 1;
  }
  99% {
    left: 150%;
    opacity: 0;
  }
}

:root {
  --kleep-border: #f7f5f4;
  --kleep-hairline: rgba(26, 26, 26, 0.05);
  --kleep-primary: #1a1a1a;
  --kleep-header-height: 84px;
  --kleep-search-border: rgba(26, 26, 26, 0.2);
  --kleep-radius-sm: 3px;
  --kleep-bg: #fff;
  --kleep-gutter: 24px;
  --kleep-btn-text: #1a1a1a;
  --kleep-btn-bg-hover: rgba(26, 26, 26, 0.1);
  --kleep-background-accent: #f7f7f7;
  --kleep-border-accent: #c8c8c8;
}

.kleep-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: kleep-spin 1s linear infinite;
}

.kleep-secondary-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: kleep-spin 1s linear infinite;
}

.kleep-product-spinner {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border: 4px solid rgba(0, 0, 0, 0.2);
  border-top-color: #333;
  border-radius: 50%;
  animation: kleep-productSpinner-spin 1s linear infinite;
}

@keyframes kleep-productSpinner-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.kleep-spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kleep-button {
  min-width: 150px;
  font-family: var(--font-body-family);
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
}

button.kleep-button * {
  pointer-events: none;
}

.kleep-secondary-button {
  font-family: var(--font-body-family);
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  align-items: center;
  line-height: normal;
}

.kleep-wrapper-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  position: relative;
}

.kleep-hidden {
  display: none !important;
}

.kleep-wrapper {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  z-index: 999999999999999999999999999;
}

.kleep-iframe {
  height: 100%;
  width: 100%;
  border: none;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.kleep-show-element {
  visibility: visible;
}

.kleep-predictive-search {
  width: inherit;
  height: inherit;
}

.kleep-predictive-search-form {
  width: inherit;
  height: inherit;
}

.kleep-loadbar {
  height: 4px;
  width: 100%;
  position: absolute;
  top: -1px;
  left: 0;
  overflow: hidden;
  background-color: var(--kleep-hairline);
}

.kleep-loadbar:before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: -300px;
  width: 300px;
  height: 4px;
  background-color: var(--kleep-primary);
  animation: kleep-loadbar-frame 2s linear infinite;
}

.kleep-search__header {
  margin-bottom: 32px;
  font-size: 30px;
  line-height: 3.4rem;
  text-align: center;
  text-transform: uppercase;
}

.kleep-search__predictive__outer {
  padding-right: 17px;
  height: 100%;
  display: flex;
  align-items: center;
  background-color: #fff;
}

.kleep-search-spacer {
  margin: 48px 0;
}

.kleep-search__wrapper {
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  padding: 0;
}

.kleep-search__predictive__main {
  height: var(--kleep-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kleep-search__predictive__actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.kleep-search__predictive__button {
  display: flex;
  align-items: center;
  height: var(--kleep-header-height);
  padding: 0 15px;
}

.kleep-search__predictive__input {
  box-shadow: none;
  outline: none;
  border: none;
  width: 100%;
  height: var(--kleep-header-height);
  min-height: 32px;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 10px;
  font-size: large;
}

.kleep-search__predictive__input:focus {
  outline: none !important;
}

.kleep-search__predictive__clear {
  height: var(--kleep-header-height);
  text-align: center;

  button {
    height: 100%;
    border: none;
    background: none;
    color: var(--kleep-btn-text);
    cursor: pointer;
    margin: 0;
    padding: 20px 10px;
  }
}

.icon-search {
  width: 15px;
}

.kleep-search__results {
  background-color: #fff;
  opacity: 1;
  max-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  visibility: hidden;
  transition:
    max-height 0.8s ease-in-out,
    opacity 0.5s ease-in-out;
}

.kleep-search__results.kleep-show-element {
  max-height: calc(100vh - var(--kleep-header-height));
  visibility: visible;
}

.kleep-search__results.kleep-fade-out {
  max-height: 0;
  opacity: 0;
  visibility: visible;
}

.kleep-search__results__wrapper {
  margin: 0 15px;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
}

.kleep-search__results__product__title {
  color: var(--kleep-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--kleep-border);
}

.kleep-search__results__title {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.13em;
}

.kleep-search__results__product_list {
  list-style: none;
  padding: 0;
  margin: 16px;

  li {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s forwards;
  }
}

.kleep-product__inline:not(:last-child) {
  margin-bottom: 24px;
}

.kleep-product__inline__link {
  display: flex;
  gap: 24px;
  text-decoration: none;
  color: rgb(26, 26, 26);
}

.kleep-product__inline__image {
  max-width: 70px;
  min-height: 90px;
}

.kleep-product__inline__generic__text {}

.kleep-product__inline__priceValue {
  margin: 8px 0 0;
  padding: 0;
  line-height: 1.5;
  font-size: 15px;
}

.kleep-product__inline__title {
  margin: 0;
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  font-size: 15px;
  line-height: 1.5;
}


.kleep-product__grid__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
  width: 100%;
  height: 100%;
  text-align: center;
  display: grid;
  place-content: center;
}

.kleep-product__grid__imageWrapper {
  position: relative;
  overflow: hidden;
  height: 600px;
}

.kleep-product__grid__imageWrapper button {
  border:none;
  background: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.kleep-product__grid__imageWrapper .new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #A8A8A8;
  font-size: 11px;
  z-index: 1;
}

.kleep-product__grid__infoWrapper {
  padding: 16px 0;
}

.kleep-product__grid__link:hover .kleep-product__grid__title {
  text-decoration: underline;
}

.kleep-product__grid__imageWrapper .kl_overlay_toggle {
  position: absolute;
  bottom: 10px;
  left: 50%;
  max-height: 24px;
  max-width: 100%;
  width: 100%;
  transform: translate(-50%, 0);
}

.kleep-product__grid__imageWrapper .kl_overlay_toggle svg {
  width: 24px;
  height: 100%;
}

.kleep-product__grid__imageWrapper .kl_overlay {
  background: #fcf9f4;
  z-index: 2;
  position: absolute;
  bottom: 0;
  width: 100%;
  border: 1px solid #f1efeb;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kleep-product__grid__imageWrapper .kl_overlay.kl_active {
  opacity: 1;
  visibility: visible;
}

.kl_overlay .kl_sizes {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 16px
}

.kl_atc {
  width: 100%;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #f1efeb;
  text-transform: lowercase;
  transition: color 0.3s ease, background 0.3s ease;
}

.kl_atc span {
  display: flex;
  align-items: center;
}

.kl_atc span:first-child {
  margin-right: 10px;
}

.kl_atc:hover {
  color: #FFF;
  background: #000;
}

.kl_atc:hover svg * {
  stroke: #FFF;
}

.kl_size_option input {
  visibility: hidden;
}

.kl_size_option {
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: lowercase;
}

.kl_size_option input[type="radio"]:checked + label {
  text-decoration: underline;
  font-weight: bold;
}
.kl_size_option label {
  margin: 0;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.kl_size_option:not(:last-child) {
  padding-bottom: 16px;
}

.kl_colors_count {
  border: none;
  background: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: #000;
  text-decoration: none;
}

.kl_overlay_close {
  color: #a8a8a8;
  font-size: 13px;
  line-height: 19px;
  text-decoration: underline;
  text-align: right;
  text-transform: lowercase;
}

.kleep-product__grid__cardInfo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kl_variant_list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.kl_variant_list .kl_color_variant {
  border: none;
  background: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.kl_color_variant span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.kleep-product__grid__view {
  color: var(--kleep-primary);
  margin: 0;
  padding: 10px 0;
  flex: 2.5;
  text-align: center;
  line-height: 1.5;
  border-left: 1px solid var(--kleep-border-accent);
  transition: background-color 0.5s ease-in;
}

.kleep-product__grid__view:hover {
  background-color: #000;
  color: #fff;
  border-left: none;
}

.kleep-product__grid__link {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  text-decoration: none;
  color: var(--kleep-primary);
}

.kleep-product__grid__title {
  margin: 0;
  text-align: center;
  padding: 16px 18px 28px 18px;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
  font-weight: bold;
  background: var(--kleep-background-accent);
  border-top: 1px solid var(--kleep-border-accent);
  border-bottom: 1px solid var(--kleep-border-accent);
  flex-shrink: 0;
}

.kl_short_desc {
  font-size: 1.7rem;
  line-height: 1.8rem;
  text-transform: lowercase;
  font-style: italic;
  font-weight: 400;
  font-family: var(--font-italic-family);
}

.kl_error_notification {
  position: absolute;
  padding: 10px;
  width: 100%;
  background: #f44336;
  color: white;
  z-index: 3;
}

.kleep-product__grid__priceBlock {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kleep-product__grid__priceValue {
  flex: 1.5;
  text-align: center;

  span::before {
    content: ""
  }
}

.kl_price-original {
  text-decoration: line-through;
  opacity: 0.6;
  margin-right: 6px;
}

.kl_price-current {
  font-weight: bold;
}

.kleep-product__grid__priceATC {
  flex: 2.5;
  padding: 10px 0;
  text-align: center;
  border: none;
  border-left: 1px solid var(--kleep-border-accent);
  background: none;
  transition: background-color 0.5s ease-in;
}

.kleep-product__grid__priceATC:hover {
  background-color: #000;
  color: #fff;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kleep-is-hidden {
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.kleep-search-bar {
  width: 100%;
}

.kleep-notFound_container {
  margin: 16px auto;
  padding: 0;
}

.kleep-notFound_message {
  margin: 0;
  padding: 0;
  color: var(--kleep-primary);
}

.kleep-input-group {
  display: flex;
  padding: 5px;
  border-radius: var(--kleep-radius-sm);
  border: 1px solid var(--kleep-search-border);
  background-color: var(--kleep-bg);
}

.kleep-search__input {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 !important;
  height: 48px;
  /* Font size must be at least 16px to avoid zooming on iOS devices */
  font-size: 16px;
  line-height: 1.5;
  border: none !important;
  outline: none !important;
  vertical-align: middle;
  padding: 8px 10px;
}

.kleep-search__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.kleep-input-group-button__group {
  display: flex;
  height: 100%;

  button {
    margin: 0;
  }
}

.kleep-search-reset {
  padding: 0 20px;
  border: none;
  outline: none !important;
  color: black;
  cursor: pointer;
  background: #fff !important;
}

.kleep-close-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: currentcolor;
}

.kleep-search-submit {
  margin: 0;
  border: none;
  outline: none;
  height: 48px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 12px 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  background-color: var(--kleep-hairline);
  color: var(--kleep-btn-text);
}

.kleep-search-submit:hover {
  background-color: var(--kleep-btn-bg-hover);
}

.kleep-search__page__query {
  padding: 11px 22px;
  margin-top: var(--kleep-gutter);
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--kleep-radius-sm);
  background-color: var(--kleep-hairline);

  p {
    font-size: 13px;
    line-height: 1.5;
    padding: 4px 0;
    margin: 0;

    span {
      font-weight: 700;
      font-size: 13px;
    }
  }
}

.kleep-collection__product_item {
  list-style: none;
  margin: 0;

  hr {
    height: 0;
    margin: var(--kleep-gutter) 0;
    border-top: solid var(--kleep-search-border);
    border-width: 1px 0 0;
  }
}

.kleep-collection__product_item-grid {
  grid-column: auto/span 4;
  width: 100%;
  border: 1px solid var(--kleep-border-accent);
}

.kleep-collection__products {
  min-height: 500px;
}

.kleep-collection__products_list {
  margin: 0;
  padding: 0;
}

.kleep-collection__products_list-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  grid-column-gap: 18px;
  grid-row-gap: 18px;
}

.kleep-collection__product_item_image {
  min-width: 70px;
  min-height: 90px;
}

.kleep-pagination__wrapper {
  padding-top: 48px;
}

.kleep-pagination__block {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kleep-pagination__item {
  list-style: none;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--kleep-search-border);
  border-top: 1px solid var(--kleep-search-border);

  svg {
    height: 10px;
  }
}

.kleep-pagination__item:last-child {
  border-right: 1px solid var(--kleep-search-border);
  border-left: 1px solid var(--kleep-search-border);
  border-radius: 0 3px 3px 0;
}

.kleep-pagination__item:first-child {
  border-right: 1px solid var(--kleep-search-border);
  border-left: 1px solid var(--kleep-search-border);
  border-radius: 3px 0 0 3px;
}

.kleep-pagination__item__active {
  border-bottom: 1px solid #000;
}

@media (max-width: 990px) {
  .kleep-search__wrapper {
    padding: 0;
  }

  .kleep-search__predictive__outer {
    padding-right: 0;
  }

  .kleep-search__predictive__main {
    height: 50px;
  }

  .kleep-search__predictive__button {
    height: 50px;
  }

  .kleep-search__predictive__input {
    height: 50px;
  }

  .kleep-search__predictive__clear {
    height: 50px;
    display: none;
  }
}

/* ------------ Popup ------------ */
.kleep-popup {
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* The actual popup */
.kleep-popuptext {
  position: absolute;
  bottom: 125%;
  left: 50%;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 8px;
  transform: translate(-50%);
  min-width: 260px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: none;
  flex-direction: column;
}

/* Popup arrow */
.kleep-popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* Toggle this class - hide and show the popup */
.kleep-show-popup {
  opacity: 1;
  display: flex;
}

/* Popup button */
.kleep-popup-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  padding: 6px;
  color: #000;
  font-size: 13px;
  background-color: #fff;
  cursor: pointer;
  font-family: var(--font-body-family);
  border: 0 !important;
}

button.kleep-popup-button * {
  pointer-events: none;
}

.kleep-recommendations-button-hint {
  font-size: 13px;
  color: #000;
}

.kleep-recommendations-button-link {
  font-weight: bolder;
  font-size: 15px;
}

/* ------------ Dropdown ------------ */
.kleep-recommendation-button {
  position: relative;

  margin: 1rem 0;
  padding: 8px 0;
  border-radius: 0px;
  border: none;

  width: 100%;
  min-width: calc(12rem + 2px);
  min-height: calc(3rem + 2px);

  text-align: center;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.1rem;
  line-height: calc(1 + 0.2 / 1);

  box-shadow: 0 0 0 0 transparent;
  background-color: rgba(18, 18, 18, 1);
  color: rgb(255, 255, 255);

  cursor: pointer;

  transition: background 0.1s ease-in-out;

  /*Disable animation */
  /*
  opacity: 1;
  transform: translateY(-150%);
  animation: ani 0.75s forwards;
  */
}

@keyframes ani {
  0% {
    transform: translateY(-150%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.kleep-recommendation-button:hover {
  background-color: rgba(18, 18, 18, 1);
}

.kleep-recommendation-button:focus {
  outline: 0;
}

.kleep-recommendation-button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.kleep-recommendation-button::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  z-index: 1;
  transition: box-shadow 0.1s ease;
}

.kleep-recommendation-button:hover::after {
  box-shadow:
    0px 0px 0px 2.3px rgba(255, 255, 255, 0),
    0px 0px 0px 2px rgba(18, 18, 18, 1);
}

@media (max-width: 900px) {
  .kleep-collection__product_item-grid {
    grid-column: auto/span 6;
  }
}

@media (max-width: 600px) {
  .kleep-collection__product_item-grid {
    grid-column: auto/span 12;
  }
}

@media (max-width: 750px) {
  /* The overlay on mobile is shown at the bottom of the page */
  .kl_overlay {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 70vh !important;

    /* Initial position - outside the screen */
    transform: translateY(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;

    z-index: 1000 !important;
    border-radius: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }

  .kl_overlay.kl_active {
    transform: translateY(0) !important;
  }

  /* Prevent scrolling for body when overlay is active */
  body.kl_overlay_active {
    overflow: hidden !important;
  }

  .kl_atc {
    color: #FFF;
    background: #000 !important;
  }

  .kl_atc svg * {
    stroke: #FFF;
  }

  .kl_error_notification {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    height: auto !important;
    max-height: 70vh !important;

    transform: translateY(0%) !important;

    background: #ff4444 !important;
    color: white !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    z-index: 1001 !important;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3) !important;
    animation: kl_error_fade_in 0.3s ease !important;
  }

  @keyframes kl_error_fade_in {
    from {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }
}
