.product-slider-container-pf {
  margin: auto;

  .product-swiper-pf-one {
    img {
      cursor: zoom-in;
    }
  }

  .swiper {
    width: 100%;
    height: 400px;
    border-radius: 0;
    overflow: hidden;

    @media (width <= 768px) {
      height: auto;
    }

    .swiper-wrapper {
    }

    .swiper-slide {
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      &.swiper-slide-active {
        padding: 0 !important;
      }
    }
  }

  .open-modal-btn-pf {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    background: #fff;
    border: none;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;

    @media (width <= 768px) {
      top: unset;
      bottom: 75px;
    }

    &:hover {
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    }

    img,
    svg {
      width: 24px;
      height: 24px;
      display: block;
    }
  }

  .swiper-thumbs {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    border-radius: 0;
    cursor: pointer;

    .swiper-slide {
      width: 80px !important;
      height: 57px !important;
      opacity: 1;
      overflow: hidden;
      cursor: pointer;
      transition: border 0.2s, opacity 0.2s;
      margin-right: 0 !important;
      display: flex;
      align-items: center;
      justify-content: center;

      & img {
        width: 64px;
        height: 43.32px;
      }

      &.swiper-slide-thumb-active {
        opacity: 1;
        border: unset !important;
        margin-right: 0 !important;
        background: #fe5d8633;

        & img {
          width: 64px;
          height: 43.32px;
        }
      }
    }
  }

  .slider-navigation-pf {
    display: flex;
    align-items: center;
    margin: 12px 0;
    gap: 12px;

    .swiper-scrollbar {
      width: 60px;
      height: 8px;
      background: #eee;
      border-radius: 30px;
      margin: 8px 32px 0 0;
      flex-shrink: 0;
      position: relative !important;
      opacity: 1 !important;
      background-color: rgba(32, 28, 29, 0.1) !important;

      &.swiper-scrollbar-horizontal {
        width: calc(100% - 165px) !important;
        cursor: grab;
      }

      .swiper-scrollbar-drag {
        background-color: #fe5d86 !important;
        border-radius: 2px;
        border-radius: 6px !important;
      }
    }

    .swiper-button-prev-pf,
    .swiper-button-next-pf {
      color: #007aff;
      font-size: 24px;
      top: 50%;
      position: static;

      &.swiper-button-disabled {
        opacity: 0.3;
        pointer-events: none;
      }
    }

    .swiper-button-prev-pf {
      margin-right: 16px;
    }

    .swiper-button-next-pf {
      margin-left: 16px;
    }

    .slider-index {
      display: flex;
      text-align: right;
      font-size: 16px;
      color: #333;

      .index-of {
        margin: 0 4px;
      }
    }
  }

  .swiper-scrollbar {
    height: 8px !important;
  }
}

.product-modal-pf {
  display: none;
  position: fixed;
  z-index: 999999999999;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;

  &.active {
    display: flex;
  }

  .modal-overlay-pf {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
  }

  .modal-content-pf {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    margin: 0 auto;
  }

  .product-modal-swiper-pf {
    width: 100%;
    height: 100%;
    overflow: hidden !important;

    .swiper-slide {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100% !important;
      height: 100% !important;

      img {
        max-width: 100%;
        max-height: 80vh;
      }
    }

    .modal-navigation-wrapper-pf {
      display: flex;
      position: absolute;
      bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
      width: 100%;
      gap: 24px;
      align-items: end;
      justify-content: center;
      z-index: 10;

      .product-modal-swiper-prev-pf,
      .product-modal-swiper-next-pf {
        display: flex;
        align-items: center;
        position: relative;
        width: 50px;
        height: 50px;
        justify-content: center;
        background: #fff;
        color: #000;
        border-radius: 50%;
        opacity: 1;
        border: 1px solid rgb(var(--color-border, 220, 220, 220));
        transition: all var(--m-duration-default, 0.25s);

        &:disabled {
          opacity: 0.4;
        }

        &:hover {
          background: rgb(var(--color-button-hover));
          color: rgb(var(--color-button-text-hover));
          border-color: rgb(var(--color-button-hover));
          box-shadow: 0 0 0 0.2rem rgb(var(--color-button-hover));
          transition: all var(--m-duration-default, 0.25s);

          & img {
            filter: invert(1);
          }
        }
      }
    }

    .product-modal-swiper-pagination-pf {
      bottom: 16px !important;
    }
  }

  .close-modal-btn-pf {
    position: relative;
    z-index: 10;
    background: #fff;
    border: 1px solid rgb(var(--color-border, 220, 220, 220));
    color: #000;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 1;
    transition: all var(--m-duration-default, 0.25s);

    &:hover {
      background: rgb(var(--color-button-hover));
      color: rgb(var(--color-button-text-hover));
      border-color: rgb(var(--color-button-hover));
      box-shadow: 0 0 0 0.2rem rgb(var(--color-button-hover));
      transition: all var(--m-duration-default, 0.25s);

      & img {
        filter: invert(1);
      }
    }
  }
}

@media (max-width: 767px) {
  .swiper-thumbs {
    display: none !important;
  }
}

.product-modal-swiper-pf {
  .swiper-wrapper {
    transition-timing-function: ease-out !important;
  }

  .swiper-slide {
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
}

.product-modal-swiper-pf .swiper-slide {
  margin: 0 !important;
  padding: 0 !important;
}

.product-modal-pf .swiper-slide img {
  transform: translate3d(0, 0, 0) !important;
}
