@charset "UTF-8";

/* BRX Custom stylesheet for Product Detail */
.btn-history-clear {
	display: none;
}
	#breadcrumb.breadcrumb {
	margin-top: 140px;
}
.mainImage .swiper-slide {
  background-size: unset;
}
.mainImage .swiper-slide-inner {
  background-size: 200%;
  position: relative;
}

.item-image-detail {
  display: block;
  width: 100%;
  margin-inline: auto;
  padding: 6px;
  font-size: 13px;
  text-align: center;
  background-color: #f8f8f8;
}

[data-modal-role="image-expanded"] .swiper {
  background-color: #000;
}
  
[data-modal-role="image-expanded"] .swiper-wrapper {
  display: flex;
  height: 100%;
}

[data-modal-role="image-expanded"] .swiper-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
[data-modal-role="image-expanded"] .swiper-slide.swiper-slide-active {
  z-index: 10;
}
[data-modal-role="image-expanded"] .swiper-slide:not(.swiper-slide-active) {
  opacity: 0;
}
[data-modal-role="image-expanded"] .swiper-wrapper {
  height: 100dvh;
  touch-action: none;
  background-color: #000;
}
[data-modal-role="image-expanded"] .swiper-zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}
[data-modal-role="image-expanded"] .swiper-zoom-container img {
  height: 100dvh; /* ⬅️ Image height same as screen height (Viewport Height) */
  width: auto; /* Maintains aspect ratio */
  max-width: none; /* Allows the image to scale wider than the screen */
  /* Initial state transform */
  transform: translate(0px, 0px) scale(1) !important;
  transform-origin: 0 0;
  will-change: transform; /* Performance optimization */
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none; /* Ensure no browser interference on the image */
}

.product-detail-template:not(:has(.product-use-coordinate)) .cordinateBtn {
  display: none;
}

#dvProductDetailArea .description__cont.--detail10 + .description__cont.--detail1 {
  margin-top: 20px;
}

.mainImage .swiper-slide a.cordinateBtn {
  pointer-events: auto;
}

.mainImage-thumbnail .swiper-slide {
  aspect-ratio: unset;
}

.item-image-detail:empty {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .modal .modal-close {
    width: 28px;
    height: 28px;
    position: absolute;
    z-index: 10;
    top: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    pointer-events: auto;
    right: 8px;
  }
  .modal .modal-close:before {
    content: "";
    position: absolute;
    top: 13px;
    left: 6px;
    width: 15px;
    height: 2px;
    background: #fff;
    display: inline-block;
    transform: rotate(45deg);
  }
  .modal .modal-close:after {
    content: "";
    position: absolute;
    top: 13px;
    left: 6px;
    width: 15px;
    height: 2px;
    background: #fff;
    display: inline-block;
    transform: rotate(-45deg);
  }
}
.modal__bg {
  z-index: 999999999;
}
.mainImage-thumbnail .swiper-wrapper {
  width: 100% !important;
}

.mainImage:not(:has(.item-image-detail:not(:empty))) .btnDetailpopUp {
  bottom: 15px !important;
}
[data-modal-for="coordinate"] .modal-inner {
  padding-top: 0;
}
[data-modal-for="coordinate"] .modal-inner,
[data-modal-role="image-list"] .modal-inner  {
  overflow: hidden;
}
[data-modal-for="coordinate"] .product-use-coordinate__wrap,
[data-modal-role="image-list"] .mainImage-thumbnail {
  height: 100%;
  max-height: 90dvh;
}
[data-modal-for="coordinate"] .product-use-coordinate,
[data-modal-role="image-list"] .modal-inner {
  margin-top: 0 !important;
  height: 100%;
  max-height: 90dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}
[data-modal-for="coordinate"] .product-title,
[data-modal-role="image-list"] .product-title {
  margin-bottom: 0;
}
[data-modal-for="coordinate"] .coorde-item-list {
  height: 100%;
  overflow: auto;
  margin-top: 0 !important;
  padding-inline: 16px;
}

@media screen and (min-width: 769px) {
  [data-modal-for="coordinate"] .js-modalclose,
  [data-modal-role="image-list"] .js-modalclose {
    top: 16px;
    right: 16px;
  }
  [data-modal-for="coordinate"] .product-title,
  [data-modal-role="image-list"] .product-title {
    display: flex;
    align-items: center;
    height: 65px !important;
    padding-block: 0;
  }
}
@media screen and (max-width: 767px) {
  .mainImage .item-image-detail {
    height: 25px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  [data-modal-role="image-expanded"] .item-image-detail {
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    left: 15px;
    bottom: 15px;
    width: fit-content;
    padding: 0 10px;
    min-width: 95px;
    height: 30px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 2;
    transition: opacity 0.4s ease;
  }
  [data-modal-role="image-expanded"] .is-zoomed .item-image-detail {
    opacity: 0;
  }
  [data-modal-for="coordinate"] .modal-inner {
    max-height: 90dvh;
    padding-left: 0;
    padding-right: 0;
  }
  .mainImage-slider__navigation {
    width: 40px;
    height: 40px;
    touch-action: manipulation;
  }
  .mainImage-slider__navigation--prev {
    left: 8px;
  }
  .mainImage-slider__navigation--next {
    right: 8px;
  }
  [data-modal-role="image-list"] .modal {
    display: block !important;
    visibility: hidden;
    opacity: 0;
  }
  [data-modal-role="image-list"] .modal img {
    visibility: hidden;
  }
  [data-modal-role="image-list"] .modal.modal__open {
    visibility: visible;
    opacity: 1;
  }
  [data-modal-role="image-list"] .modal.modal__open img {
    visibility: visible;
  }
  [data-modal-role="image-list"] .swiper {
    padding-inline: 2px;
  }
  [data-modal-role="image-list"] .modal {
    padding-top: 50px;
  }
  [data-modal-role="image-list"] .modal,
  [data-modal-role="image-list"] .modal-inner {
    padding: 0 0 0;
  }
  [data-modal-role="image-list"] .item-image-detail {
    display: none;
  }
  [data-modal-for="coordinate"] .product-title,
  [data-modal-role="image-list"] .product-title {
    padding-top: 0;
    padding-bottom: 0;
    height: 50px;
    display: flex;
    align-items: center;
    padding-inline: 20px;
  }
  [data-modal-role="image-list"] .mainImage-thumbnail {
    padding-inline: 18px;
    overflow: auto;
    padding-bottom: 16px;
  }
  [data-modal-role="image-list"] .modal {
    padding-top: 0 !important;
  }
  [data-modal-role="image-list"] .mainImage-thumbnail .swiper-slide {
    width: 100% !important;
  }
}

[data-modal-role="image-expanded"] .modal {
  padding: 0;
}