/* Responsive collection layout. WooCommerce still renders the product loop. */
body.woocommerce .kk-store-content:has(> .kk-collection),
body.woocommerce .kk-store-content .kk-verified-recommendations {
  --kk-collection-gutter: 40px;
  --kk-collection-gap: 26px;
  --kk-collection-section-gap: 100px;
  --kk-collection-columns: 3;
  --kk-card-gutter: 30px;
  --kk-card-price-gap: 14px;
  --kk-card-title-gap: calc(var(--kk-card-gutter) - 4.375px);
  --kk-card-button-padding: 11px;
  --kk-collection-title-size: 43.5px;
  background: #fff;
  color: #026251;
  font: 400 22.5px/1.2 CalibreRegular, Arial, sans-serif;
}

body.woocommerce .kk-store-content:has(> .kk-collection) {
  padding: 40px max(var(--kk-collection-gutter), calc((100% - 1280px) / 2)) 0;
}

.kk-store-content .kk-collection {
  max-width: 1280px;
  margin: 0 auto;
}

.kk-collection .kk-collection-banner {
  margin: 0 0 var(--kk-collection-section-gap);
}

.kk-collection .kk-collection-banner__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  overflow: hidden;
  background: #d4e157;
  border-radius: 20px 20px 0 0;
}

.kk-collection .kk-collection-banner__text {
  flex: 1 1 50%;
  min-width: 0;
  padding: 5%;
}

.kk-store-content .kk-collection .kk-collection-banner__title {
  margin: 0 0 16px;
  color: #026251;
  font: 700 var(--kk-collection-title-size)/1.2 BNHillsideGrotesk, Arial, sans-serif;
  letter-spacing: normal;
}

.kk-collection .kk-collection-banner__description {
  color: #000;
  font-size: 24px;
  line-height: 1.2;
}

.kk-collection .kk-collection-banner__description p { margin: 0; }
.kk-collection .kk-collection-banner__description a { color: #006450; }
.kk-collection[data-kk-source-collection="all"] .kk-collection-banner__description { padding-bottom: 2px; }

.kk-collection .kk-collection-banner__image {
  flex: 1 1 50%;
  position: relative;
}

.kk-collection .kk-collection-banner__image img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.kk-collection .kk-collection-banner__pattern {
  height: 38px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: cover;
  border-radius: 0 0 20px 20px;
}

.kk-collection .kk-collection-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 24px;
}

.kk-collection .kk-collection-tools:not(:has(> :not(.woocommerce-notices-wrapper:empty))) {
  display: none;
}

.kk-collection .kk-collection-tools .woocommerce-notices-wrapper { flex: 0 0 100%; }
.kk-collection .kk-collection-tools .woocommerce-notices-wrapper:empty { display: none; }
.kk-collection .kk-collection-tools :is(.woocommerce-result-count, .woocommerce-ordering) { float: none; margin: 0; }
.kk-collection .kk-collection-tools .woocommerce-ordering select { min-height: 44px; max-width: 100%; }

.kk-store-content .kk-collection ul.products {
  grid-template-columns: repeat(var(--kk-collection-columns), minmax(0, 1fr));
  gap: var(--kk-collection-gap);
  margin: 0;
}

/* Neutralize Woo's float-based archive selectors and generated clearfix grid cells. */
.kk-store-content .kk-collection ul.products::before,
.kk-store-content .kk-collection ul.products::after { content: none; display: none; }

body.woocommerce .kk-store-content .kk-collection ul.products li.product {
  position: relative;
  display: flex;
  align-items: stretch;
  float: none;
  clear: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 var(--kk-card-gutter);
  border-radius: 20px;
  background: #fff;
  color: #1d1d1d;
  text-align: center;
  overflow: hidden;
}

.kk-store-content .kk-collection ul.products li.product a.woocommerce-loop-product__link {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.kk-store-content .kk-collection ul.products li.product a.woocommerce-loop-product__link > img {
  order: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  padding: 10%;
  border-radius: 0;
  object-fit: contain;
  background: #fff;
  transition: opacity .3s linear, visibility .3s linear;
}

.kk-store-content .kk-collection ul.products li.product a img.kk-collection-secondary {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (hover: hover) {
  .kk-store-content .kk-collection ul.products li.product a > img:not(.kk-collection-secondary):hover ~ img.kk-collection-secondary {
    opacity: 1;
    visibility: visible;
  }

  .kk-store-content .kk-collection ul.products li.product a:has(> img.kk-collection-secondary) > img:not(.kk-collection-secondary):hover {
    opacity: 0;
  }
}

.kk-store-content .kk-collection ul.products li.product a.woocommerce-loop-product__link:focus-visible img.kk-collection-secondary {
  opacity: 1;
  visibility: visible;
}

.kk-store-content .kk-collection ul.products li.product a.woocommerce-loop-product__link:focus-visible:has(img.kk-collection-secondary) > img:not(.kk-collection-secondary) {
  opacity: 0;
}

.kk-store-content .kk-collection ul.products li.product .price {
  order: 2;
  margin: var(--kk-card-gutter) var(--kk-card-gutter) var(--kk-card-price-gap);
  padding: 0;
  color: #d0de41;
  font: 400 1em/1.2 BNHillsideGrotesk, Arial, sans-serif;
  text-align: center;
}

.kk-store-content .kk-collection ul.products li.product .price del { color: #026251; }

.kk-store-content .kk-collection ul.products li.product .woocommerce-loop-product__title {
  order: 3;
  margin: 0 var(--kk-card-gutter) var(--kk-card-title-gap);
  padding: 0;
  color: #026251;
  font: 600 1em/1.1 BNHillsideGrotesk, Arial, sans-serif;
  letter-spacing: normal;
  text-align: center;
}

.kk-store-content .kk-collection ul.products li.product .star-rating { order: 4; }

.kk-store-content .kk-collection ul.products li.product > .button {
  align-self: stretch;
  max-width: none;
  min-height: 0;
  margin: 0 var(--kk-card-gutter);
  padding: var(--kk-card-button-padding) 12px;
  border: 1px solid #d0de41;
  border-radius: 30px;
  background: #d0de41;
  color: #fff;
  font: 700 20px/1.25 "Kuli Menlo", Menlo, Consolas, monospace;
  letter-spacing: normal;
  text-transform: uppercase;
}

@media (hover: hover) {
  .kk-store-content .kk-collection ul.products li.product > .button:hover {
    border-color: #026251;
    background: #026251;
    color: #fff;
  }
}

.kk-store-content .kk-collection ul.products li.product > .added_to_cart {
  display: block;
  padding: 12px var(--kk-card-gutter) 0;
  color: #026251;
  font-size: 16px;
  text-align: center;
}

.kk-collection .kk-collection-stock {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #026251;
  color: #fff;
  font-size: 14px;
}

.kk-collection .kk-collection-empty { padding: 30px 0; }

.kk-store-content .kk-collection .woocommerce-pagination ul li :is(a, span) {
  color: #026251;
  border-color: #026251;
}

.kk-store-content .kk-collection .kk-collection-pagination {
  display: flex;
  min-height: 99px;
  align-items: flex-start;
  margin-top: var(--kk-collection-gap);
  padding-top: 55px;
  text-align: start;
}

.kk-store-content .kk-collection .kk-collection-pagination ul {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-inline: 5px;
  border: 0;
  overflow: visible;
}

.kk-store-content .kk-collection .kk-collection-pagination ul li {
  float: none;
  border: 0;
}

.kk-store-content .kk-collection .kk-collection-pagination ul li > .page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #02625133;
  color: #026251;
  font: inherit;
}

.kk-store-content .kk-collection .kk-collection-pagination ul li > .current {
  background: #fff;
  color: #000;
}

.kk-store-content .kk-collection .kk-collection-pagination ul li > a:hover {
  background: #d0de41;
  color: #026251;
}

.kk-store-content .kk-collection .kk-collection-pagination ul:has(.prev)::before,
.kk-store-content .kk-collection .kk-collection-pagination ul:has(.next)::after {
  display: none;
  content: none;
}

.kk-collection-pagination .page-numbers:is(.prev, .next)::after,
.kk-collection-pagination ul:not(:has(.prev))::before,
.kk-collection-pagination ul:not(:has(.next))::after {
  display: block;
  width: 8px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  content: "";
}

.kk-collection-pagination .page-numbers.prev::after,
.kk-collection-pagination ul:not(:has(.prev))::before { transform: rotate(135deg); }
.kk-collection-pagination .page-numbers.next::after,
.kk-collection-pagination ul:not(:has(.next))::after { transform: rotate(-45deg); }

.kk-collection-pagination ul:not(:has(.prev))::before,
.kk-collection-pagination ul:not(:has(.next))::after {
  flex: 0 0 8px;
  margin-inline: 16px;
  opacity: .4;
}

.kk-collection-pagination__status { display: none; }

@media (max-width: 1280px) {
  body.woocommerce .kk-store-content:has(> .kk-collection),
  body.woocommerce .kk-store-content .kk-verified-recommendations {
    --kk-collection-gap: 20.8px;
    --kk-collection-section-gap: 80px;
    --kk-card-gutter: 20px;
  }

  .kk-store-content .kk-collection .kk-collection-pagination { min-height: 84px; padding-top: 40px; }
}

@media (max-width: 1023px) {
  body.woocommerce .kk-store-content:has(> .kk-collection),
  body.woocommerce .kk-store-content .kk-verified-recommendations {
    --kk-collection-gutter: 30px;
    --kk-collection-gap: 13px;
    --kk-collection-section-gap: 60px;
    --kk-collection-columns: 2;
    --kk-card-gutter: 15px;
    --kk-card-price-gap: 13px;
    --kk-card-title-gap: 12px;
    --kk-collection-title-size: 36px;
    font-size: 20px;
  }

  .kk-store-content .kk-collection .kk-collection-pagination { min-height: 71px; padding-top: 28px; }
}

@media (max-width: 768px) {
  .kk-collection .kk-collection-banner__inner { flex-direction: column; text-align: center; }
  .kk-collection .kk-collection-banner__image { flex: 1 1 100%; min-height: 300px; }
}

@media (max-width: 767px) {
  body.woocommerce .kk-store-content:has(> .kk-collection),
  body.woocommerce .kk-store-content .kk-verified-recommendations {
    --kk-collection-gutter: 20px;
    --kk-collection-title-size: 24px;
    --kk-card-button-padding: 8px;
  }

  .kk-store-content .kk-collection .kk-collection-pagination {
    position: relative;
    justify-content: center;
  }

  .kk-store-content .kk-collection .kk-collection-pagination ul { gap: 54px; }
  .kk-store-content .kk-collection .kk-collection-pagination ul li:not(:has(.prev, .next)) { display: none; }
  .kk-collection-pagination__status {
    position: absolute;
    top: 37px;
    display: block;
    color: #026251;
    pointer-events: none;
  }
}

@media (max-width: 474px) {
  body.woocommerce .kk-store-content:has(> .kk-collection),
  body.woocommerce .kk-store-content .kk-verified-recommendations {
    --kk-collection-gutter: 15px;
    --kk-collection-columns: 1;
    --kk-card-price-gap: 12px;
    --kk-card-title-gap: 13.375px;
    font-size: 17.5px;
  }

  .kk-store-content .kk-collection .kk-collection-pagination { min-height: 68px; padding-top: 27px; }
  .kk-collection-pagination__status { top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .kk-collection img { transition: none !important; }
}
