.sub-collections-metafields {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  @media (min-width: 768px) {
    flex-wrap: nowrap;
    margin-bottom: 32px;
  }

  .collection_subcollections {
    width: 100%;
    @media (min-width: 768px) {
      width: 70%;
      width: calc(100% - 460px);
      .flickity-page-dots {
        display: none;
      }
    }

    .flickity-prev-next-button {
      display: none;
      align-items: center;
      justify-content: center;
      border-radius: 0;
      &:disabled {
        display: none;
      }
      @media (min-width: 768px) {
        display: flex;
      }

      .flickity-button-icon {
        width: 20px;
        left: auto;
        right: auto;
      }

      &.previous {
        left: 0;
      }

      &.next {
        right: 0;
      }
    }
  }

  .collection__title-content {
    flex: 1;
    max-width: 400px;
    margin: 24px 24px 32px 24px;

    @media (min-width: 768px) {
      margin-left: 40px;
    }
    .hero__title {
      font-size: 24px;
      line-height: 32px;
      margin-bottom: 8px;
      letter-spacing: -0.2px;
      @media (min-width: 768px) {
        margin-bottom: 16px;
        font-size: 28px;
        line-height: 36px;
      }
    }
    .hero__description {
      font-size: 13px;
      line-height: 20px;
      margin: 0;
    }
  }

  .subscollection-item {
    width: 33%;
    margin-right: 2px;
    @media (min-width: 768px) {
      width: 312px;
    }
  }

  .subcollection_title {
    position: absolute;
    bottom: 0;
    text-align: left;
    width: 100%;
    padding: 12px;
    font-size: 13px;
    color: #fff;
    font-family: var(--FONT-STACK-HEADING);
    @media (min-width: 768px) {
      font-size: 20px;
      padding: 10px 24px;
    }
  }
  .subscollection-item__image {
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
}

.rich-text-metafield-wrapper {
  background: #f7f5f2;
  text-align: center;
  padding: 0 24px;

  .rich-text-metafield-container {
    margin: 0 auto;
    padding: 32px 0;
    @media (min-width: 768px) {
      max-width: 640px;
      padding: 80px 0;
    }
  }
  .rich-text-metafield-title {
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    color: #131a3099;
    margin-bottom: 8px;
    @media (min-width: 768px) {
      margin-bottom: 24px;
    }
  }
  .rich-text-metafield-description {
    font-family: var(--FONT-STACK-HEADING);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: center;
    color: #131a30;
    @media (min-width: 768px) {
      font-size: 20px;
      line-height: 28px;
    }
  }
}

.filter-type-list {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px 0 32px 32px;
  background: #f7f5f2;
  list-style: none;
  margin: 0;
}
.filter-type-btn {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 999px;
  border: 1.5px solid #e5e1db;
  background: #fff;
  color: #232635;
  font-size: 17px;
  font-family: "Azo Sans", "Arial", sans-serif;
  font-weight: 400;
  text-decoration: none;
  transition: border 0.2s, color 0.2s;
}
.filter-type-btn.active,
.filter-type-btn:focus {
  border: 2px solid #232635;
  color: #232635;
  font-weight: 600;
  background: #fff;
}
.filter-type-btn:hover {
  border: 2px solid #232635;
  color: #232635;
}
.filter-type-list li:first-child .filter-type-btn {
  border: 2px solid #232635;
  font-weight: 600;
}

.collection-products {
  .collection__nav {
    justify-content: space-between;
    border: none;
    margin-bottom: 16px;
    padding: 0 16px;
    position: relative;
    @media (min-width: 768px) {
      margin-top: 32px;
      padding: 0 40px;
      margin-bottom: 24px;
    }
    .popout--group {
      // margin-right: 8px;
      .popout__toggle {
      }
    }
    .popout--sort {
      // margin-left: 8px;
      .popout__toggle {
      }
    }
    .popout__toggle {
      padding: 0;
      font-family: var(--FONT-STACK-SUBHEADING);
      font-weight: 500;
      font-size: 13px;
      line-height: 20px;
      text-transform: capitalize;
      border: none;
      display: flex;
      gap: 4px;
      justify-content: center;
      align-items: flex-start;
      svg {
        width: 12px;
        height: 12px;
        margin-top: 2px;
      }
      .data-sort-button-text {
        font-weight: 400;
        color: #131a3099;
      }
    }
    .collection__nav__filter-group {
      display: flex;
      gap: 8px;
      justify-content: center;
      align-items: center;
      @media screen and (max-width: 767px) {
        justify-content: space-between;
        width: 100%;
        > svg {
          display: none;
        }
      }
    }
  }
}

/* ------ Swatch  CSS ------ */

.swatch label::after {
  border: 3px solid #000;
}

.swatch-element input[type="radio"] {
  margin: 0px 3px 4px 0px;
}

label span.swatch-text {
  background-color: unset;
  text-transform: capitalize;
  display: none;
  font-size: 11.4px;
}

.swatch .swatch-element::after {
  content: unset;
}

.display-block {
  display: block !important;
}

.swatch-label-two.selected .swatch-img {
  border: 2px solid #000;
}

.product-item .swatch label span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  position: relative;
  cursor: pointer;
  border: 1px solid #DCD3CB;
}
.product-upsell-item .swatch label span {
  width: 12px;
  height: 12px;
}
.product-item .swatch .swatch-element.active span {
  border: none;
}

.product-item .swatch .swatch-element.active span {
  width: 14px;
  height: 14px;
}
.product-upsell-item .swatch .swatch-element.active span {
  width: 6px;
  height: 6px;
}

.product-item .swatch .swatch-element.active span:after {
  content: "";
  transition: all 0.2s ease-in-out;
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 100%;
  border: 1px solid var(--color-swatch);
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}
.product-upsell-item .swatch .swatch-element.active span:after {
  width: 14px;
  height: 14px;
}

.swatch-product-grid {
  display: flex;
  gap: 12px;
  align-items: center;
}

.supports-touch hover-images:after {
  content: none;
}

.product-item__bg__slider {
  position: relative;
  .flickity-viewport {
    width: 100%;
  }

  .flickity-page-dots {
    bottom: 0;
    width: 100%;
    padding: 12px;
    display: flex;
    gap: 4px;
    justify-content: space-between;

    .flickity-page-dot {
      background-color: white;
      opacity: 0.4;
      flex: 1;
      height: 2px;
      border: none;
      border-radius: 0%;
    }

    .flickity-page-dot.is-selected {
      opacity: 1;
    }
  }
}

@media (min-width: 768px) {
  .product-item:hover .color-available {
    opacity: 1!important;
    visibility: visible!important;
  }
}

.product-item {
  .product-labels {
    position: absolute;
    top: 8px;
    left: 7.5px;
    z-index: 2;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    max-width: 100%;

    .product-label {
      text-transform: uppercase;
      padding: 6px 12px;
      background: var(--bg);
      font-weight: 400;
      font-size: 12px;
      line-height: 18px;
      letter-spacing: 0px;
    }
  }

  .product-information {
    position: relative;
    @media (max-width: 767px) {
      display: flex;
      flex-direction: column-reverse;
      gap: 8px;
    }
  }

  .product-item__info {
    padding: 16px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    @media (min-width: 768px) {
      padding: 16px 24px 24px;
    }
  }

  .color-available {
    display: flex;
    justify-content: space-between;
    padding: 0 16px 16px;
    transition: opacity 0.3s ease, visibility 0.3s;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--bg);
    z-index: 2;
    opacity: 1;
    visibility: visible;


    .variant-option-title {
      color: var(--text-light);
      display: none;
      @media (min-width: 768px) {
        display: block;
      }
      .body-medium {
        font-weight: 400;
        font-size: 12px;
        line-height: 18px;
        letter-spacing: 0px;
        color: #131a3099;
      }
    }
  }

  &:not(.product-upsell-item) {
    .color-available {
      @media (min-width: 768px) {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        top: 0;
        bottom: unset;
        position: absolute;
        padding: 16px 24px;
      }
    }
  }
  .flickity-button {
    display: none;
  }
}

.collection-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.collection-banner__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-banner__content {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #f6f4f0;
  z-index: 1;
  text-align: center;
  width: 100%;

  @media (min-width: 768px) {
    bottom: 40px;
    left: 40px;
    transform: none;
    text-align: left;
    width: auto;
  }
}

.collection-banner__title {
  font-weight: 400;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.2px;
  text-align: center;
  margin: 0;
  @media (min-width: 768px) {
    font-size: 36px;
    line-height: 42px;
  }
}

.collection-title {
  padding: 24px;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.2px;
  text-align: center;
  margin: 0;

  @media (min-width: 768px) {
    padding: 24px 40px;
    font-size: 28px;
    line-height: 36px;
    text-align: left;
  }
}

.collection-description {
  padding: 32px 16px;
  @media (min-width: 768px) {
    padding: 64px 40px;
  }
  .hero__subheading {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    text-transform: capitalize;
    margin: 0;
    margin-bottom: 16px;
  }
  .hero__rte {
    font-family: Azo Sans;
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
  }
}

.collection-description .read-more-wrapper {
  position: relative;
}

.collection-description .read-more-content-container {
  overflow: hidden;
  transition: all 0.3s ease;
}

.collection-description .read-more-content-container.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.collection-description .read-more-content-container.expanded {
  display: block;
}

.collection-description .read-more-btn {
  background: none;
  border: none;
  color: #131a30bf;
  font-weight: 400;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  padding: 0;
  margin-top: 16px;
}

.collection-description .read-more-btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.collection-description .read-more-btn:hover {
  opacity: 0.8;
}

.collection-description .read-more-btn::before {
  transform: scaleX(1);
  transform-origin: left;
}

.product-banner-inline .product-item__image {
  height: calc(100% - 16px);
  @media (min-width: 768px) {
    height: calc(100% - 24px);
  }
  .product-item__bg {
    position: absolute;
    display: block;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
  }
}

.no-touch .double__image hover-images,
.no-touch .product-item--overlay-text hover-images {
  opacity: 1;
  .flickity-page-dots {
    bottom: 0;
  }
}

.product-item:has(.color-available):hover .flickity-page-dots {
  bottom: 0 !important;
  @media (min-width: 768px) {
    bottom: 52px !important;
  }
}

.klaviyo-favorites-plp-slot {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  svg {
    @media screen and (max-width: 767px) {
      width: 16px;
      height: 16px;
    }
  }
}
