.image_with_collection_tpg {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-height: 700px;
  --tpg-gap: 6px;

  @media screen and (max-width: 1000px) {
    padding-top: 20px;
  }

  .richtext_subtitle {
    font-weight: 300;
    font-size: 13px;
    line-height: 24px;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    grid-area: subtitle;
  }


  .image_container {
    display: flex;
    position: relative;
    overflow: hidden;
    z-index: 2;
    width: calc(50vw - 2.5rem);

    @media screen and (max-width: 1000px) {
      width: 100%;

      &::after {
        content: '';
        position: absolute;
        width: 21px;
        height: calc(100% + 10px);
        background-color: #F7E9E5;
        left: 0;
        top: -5px;
      } 
    }

    .image_with_collection_main {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .image_with_collection_overlay {
      position: absolute;
      left: 2rem;
      bottom: 2rem;
      width: clamp(260px, 20vw, 352px);
      height: auto;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .shop_the_look {
      position: absolute;
      inset: 0;
      z-index: 3;
    }

    .shop_the_look_item {
      position: absolute;
      width: 0;
      height: 0;
    }

    .shop_the_look_dot {
      position: absolute;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 1px solid rgba(0, 0, 0, 0.08);
      background: #ffffff;
      box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.65);
      cursor: pointer;
      transform: translate(-50%, -50%);
      transition: transform 0.2s ease;
      padding: 0;
      appearance: none;
    }

    .shop_the_look_dot:hover {
      animation: shop-look-vibrate 0.35s linear infinite;
    }

    .shop_the_look_item.is-active .shop_the_look_dot {
      animation: shop-look-pulse 1.4s ease-in-out infinite;
    }

    .shop_the_look_card {
      z-index: 1;
      position: absolute;
      left: 0;
      top: 0;
      min-width: 160px;
      max-width: 220px;
      padding: 1rem;
      border-radius: 0;
      background: #ffffff;
      color: inherit;
      text-decoration: none;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, calc(100% + 0.05rem)) translate(var(--card-shift-x, 0px), var(--card-shift-y, 0px));
      transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    }

    .shop_the_look_item.is-active .shop_the_look_card {
      opacity: 1;
      pointer-events: auto;
    }

    .shop_the_look_title {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 14px;
      line-height: 1.3;
      margin-bottom: 0.4rem;
    }

    .shop_the_look_price {
      font-size: 13px;
      font-weight: 500;
    }
  }

  .collection_container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 5rem 0 5rem 7rem;
    padding-right: calc(50vw - 65.5rem);
    position: relative;
    justify-content: center;
    flex: unset;
    width: calc(50vw - 2.5rem);

    @media screen and (max-width: 1420px) {
      padding-right: 4.8rem;
    }

    @media screen and (max-width: 1100px) {
      padding-right: 2rem;
    }

    @media screen and (max-width: 1000px) {
      width: 100%;
    }

    .product_content {
      display: flex;
      flex-wrap: wrap;

      > * {
        margin: 0;
        padding: 0;
      }
    }

    .richtext {
      width: 100%;
      display: grid;
      grid-template-areas:
        "subtitle subtitle"
        "title title"
        "description link";
      --flex-wrap: wrap;
      gap: 1rem;
      padding-left: 0;
      margin-left: 0;

      > * {
        width: 100%;
      }

      .richtext_title {
        font-family: "Instrument Serif", serif;
        font-weight: 400;
        font-size: 32px;
        line-height: 32px;
        letter-spacing: -0.02em;
        grid-area: title;
      }

      .richtext_description {
        max-width: 70%;
        grid-area: description;

        > * {
          margin: 0;
          padding: 0;
          font-size: 14px;
          font-weight: 300;
          line-height: 20px;
          letter-spacing: 0.02em;
          color: #1d1d1d;

          @media screen and (max-width: 749px) {
            font-size: 12px;
            line-height: 18px;
          }
        }
      }

      .richtext_link {
        grid-area: link;
        display: flex;
        align-items: end;
        font-size: 14px;
        letter-spacing: .02em;

        @media screen and (max-width: 1000px) {
          font-family: var(--font-body-family);
          font-weight: 400;
          font-size: 12px;
          line-height: 1.2;
          letter-spacing: 0.02em;
        }
      }
    }

    .collection {
      width: 100%;
      padding-left: 0;
      margin-left: 0;
      overflow: visible;
      position: relative;
      --tpg-slide-width: calc((100% - (var(--tpg-gap) * (var(--tpg-slides-per-view, 4) - 1))) / var(--tpg-slides-per-view, 4));
    }

    .collection:not(.swiper-initialized) .swiper-wrapper {
      gap: var(--tpg-gap);
    }

    .collection .swiper-slide,
    .product_card {
      width: var(--tpg-slide-width);
      flex: 0 0 var(--tpg-slide-width);

      .featured_whislist {
        position: absolute;
        top: 1rem;
        right: 1rem;

        svg {
          width: 20px;
          height: 20px;
        }
      }
    }

    .product_card .product_image {
      width: 100%;
      height: auto;
      aspect-ratio: 175 / 211;
      position: relative;

      > a {
        position: absolute;
        width: 100%;
        height: 100%;
        display: block;
        top: 0;
        left: 0;
        z-index: 1;
      }

      .featured_badge {
        position: absolute;
        bottom: 16px;
        left: 0;
        display: flex;
        gap: 0.5rem;

        > * {
          height: 24px;
          display: flex;
          align-items: center;
          justify-content: center;
          width: fit-content;
          padding: 0.1rem 1rem;

          > * {
            font-weight: 400;
            font-size: 12px;
          }
        }

        .featured_new_badge {
          background-color: rgba(234, 234, 234, 1);
        }

        .featured_discount_badge {
          background-color: rgba(194, 86, 81, 1);
          color: rgba(255, 255, 255, 1);
        }
      }
    }

    .collection .swiper-button-prev,
    .collection .swiper-button-next {
      position: absolute;
      top: calc(50% - 31px);
      transform: translateY(-50%);
      z-index: 3;
      width: 44px;
      height: 44px;
      aspect-ratio: 1;

      svg {
        position: absolute;
        width: 45px;
        height: 45px;
      }
    }

    .collection .swiper-button-disabled {
      display: none;
    }

    .collection .swiper-button-prev {
      left: 0;
      transform: translateY(-50%) rotate(-180deg);
    }

    .collection .swiper-button-next {
      right: 0;
    }
  }
}

@keyframes shop-look-vibrate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  25% {
    transform: translate(-50%, -50%) rotate(2deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(-2deg);
  }
  75% {
    transform: translate(-50%, -50%) rotate(1deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes shop-look-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.65);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.35);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.65);
  }
}

@media screen and (min-width: 768px) {
  .image_with_collection_tpg {
    --tpg-gap: 10px;
  }
}

@media screen and (max-width: 1000px) {
  .image_with_collection_tpg {
    flex-wrap: wrap;
    max-height: unset;

    > * {
      width: 100%;
    }

    .collection_container {
      padding: 4rem 0rem 4rem 2rem;

      @media screen and (max-width: 1000px) {
        padding: 2rem 2rem 3rem 2rem;
      }

      .richtext {
        grid-template-areas:
          "subtitle subtitle"
          "title link"
          "description description";

        .richtext_description {
          max-width: 100%;
        }

        .richtext_link {
          justify-content: end;
        }
      }
    }

    .image_container .image_with_collection_main {
      max-height: 365px;
    }

    .image_container .shop_the_look_dot {
      width: 14px;
      height: 14px;
    }
  }
}


.image_with_collection_tpg {
  background-color: #F7E9E5;
  gap: 5rem;

  @media screen and (max-width: 1000px) {
    gap: unset;
  }

  .image_container {
    picture {
      width: 100%;
    }
  }
  .swiper {
    .swiper-wrapper {
      .product_card {
        .product_image {
          background: #fff;

          img {
            object-fit: contain;
          }
        }
        .abrwl-button {
          width: 20px;
          height: 20px;

          @media screen and (max-width: 749px) {
            height: 18px;
          }
        }

        .featured_content {
          .product_vendor {
            font-size: 16px;
            line-height: 1;
          }

          .product_title {
            font-size: 12px;
            line-height: 18px;
          }

          .product_price {
            display: flex;
            flex-direction: column;

            .price {
              font-size: 14px;
              letter-spacing: .02em;

              @media screen and (max-width: 749px) {
                font-size: 12px;
              }
            }
          }
        }
      }
    }
  }
}