.modal {
  background: #ffffff8e;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.product-modal .modal-content {
  border-radius: 20px;
  border: none;
  padding: 30px 30px 10px 30px;
  width: 100%;
  background: #ffffff;
  height: 100%;
  /* margin: 90px auto 0px; */
  box-shadow: 0px 3px 6px #00000029;
  position: relative;
}

.product-modal .custom-modal-body {
  position: relative;
  text-align: center;
}

.product-modal .main-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-modal .close-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: #e76625;
  color: #ffffff;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-modal .main-image {
  width: 60%;
  object-fit: contain;

  aspect-ratio: 1/1;
}

.product-modal .nav-btn {
  position: absolute;
  background: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-modal .nav-btn.left {
  left: -20px;
  top: 50%;
}

.product-modal .nav-btn.right {
  right: -20px;
  top: 50%;
}

.product-modal .thumbnail-wrapper {
  margin-top: 20px;
  /* display: flex; */
  /* justify-content: center; */
  gap: 15px;
}

.product-modal .active-thumb {
  border: 1px solid #3c9734;
}

.product-modal .modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-modal .disabled-arrow {
  background: #f935008c;
  color: white;
  cursor: not-allowed;
  pointer-events: none;
}

/* swipe */
.product-modal .modal-dialog {
  overflow: visible !important;
}

.product-modal .modal-content {
  overflow: visible !important;
}

.product-modal .thumbnail-wrapper {
  margin-top: 15px;
  width: 100%;
}

.product-modal .thumb-swiper {
  width: 100%;
}

.product-modal .thumb-swiper .swiper-slide {
  display: flex;
  height: 70px;
}
.product-modal .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.226);
}

.product-modal .thumb-img:hover {
  opacity: 1;
}

.product-modal .active-thumb {
  opacity: 1;
  border: 1px solid #3c9734;
}

@media (min-width: 0px) and (max-width: 575px) {
  .product-modal-section .product-modal .modal-content {
    padding: 20px 15px;
    margin: 60px auto 0px;
  }

  .product-modal-section .main-image {
    width: 85%;
  }

  .product-modal-section .nav-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .product-modal-section .nav-btn.left {
    left: -10px;
  }

  .product-modal-section .nav-btn.right {
    right: -10px;
  }

  .product-modal-section .thumb-img {
    width: 55px;
    height: 55px;
  }
  .product-modal .thumb-swiper .swiper-slide {
    height: 60px;
  }
  .product-modal .modal-content {
    padding: 15px 13px 5px 15px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .product-modal-section .main-image {
    width: 75%;
  }

  .product-modal-section .thumb-img {
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .product-modal-section .main-image {
    width: 65%;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .product-modal-section .main-image {
    width: 60%;
  }
}

@media (min-width: 1200px) {
  .product-modal-section .product-modal .modal-dialog {
    max-width: 900px;
  }

  .product-modal-section .main-image {
    width: 55%;
  }
}
