/* CSS for Product image showcase */
.acf-layout-product-image-showcase {
  background-color: #2c2d2d;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 100px 100px;
  width: 100%;
  height: 865px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.acf-layout-product-image-showcase::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  background: linear-gradient(180deg, #1e1e1e 0%, rgba(30, 30, 30, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.acf-layout-product-image-showcase::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 286px;
  background: linear-gradient(0deg, #2c2d2d 0%, rgba(44, 45, 45, 0.69) 100%);
  pointer-events: none;
  z-index: -1;
}

.acf-layout-product-image-showcase .container,
.acf-layout-product-image-showcase .container-fluid {
  position: relative;
  z-index: 2;
}

/* Vertical Thumbnails Swiper Container */
.showcase-thumbnails-swiper-container {
  height: 100%;
  max-height: 865px;
  align-self: stretch;
  width: 180px; /* Viewport width accommodating scaled thumbnail cards */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
}

/* Centered vertical line behind the thumbnails */
.showcase-thumbnails-swiper-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background-color: rgba(
    255,
    255,
    255,
    0.12
  ); /* Subtle vertical connector line */
  z-index: 1;
}

.showcase-thumbnails-swiper {
  height: 100%;
  max-height: 865px;
  width: 100%;
  z-index: 2;
}

.showcase-thumbnails-swiper .swiper-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-thumbnails-swiper .swiper-slide {
  width: 129px !important;
  height: 129px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.thumbnail-item {
  width: 129px;
  height: 129px;
  border: 3px solid #ffffff; /* Crisp white border frame */
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  transform: scale(1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-color: #1a1715;
  z-index: 1;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail-item:hover {
  border-color: #ffffff;
}

.thumbnail-item.active {
  border-color: #ffffff;
  transform: scale(1.18); /* Zoom scale active thumbnail */
  box-shadow: 0px 0px 20px 0px #ffffff80;
  z-index: 5;
}

/* Showcase Details Container */
.showcase-details-container {
  width: 100%;
  color: #ffffff;
  padding-left: 20px;
}

.showcase-detail-item {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.showcase-detail-item.active {
  display: block;
  opacity: 1;
}

.showcase-detail-heading {
  font-family: "ClashDisplay-Medium", "Clash Display", "Archivo", sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  padding-top: 60px !important;
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .showcase-detail-heading{
        font-size: 32px;
    }
}

.showcase-detail-content {
  padding-top: 20px;
}

.showcase-detail-image-wrapper {
  width: 90%;
  height: auto;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.showcase-detail-image {
  width: 100%;
  height: auto;
  object-fit: fill;
  display: block;
  transition: opacity 0.3s ease;
}

.showcase-detail-image-wrapper:hover .showcase-detail-image {
  opacity: 0.5;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* Dark overlay by default */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 5;
  pointer-events: none; /* Let pointer events pass to wrapper for hover trigger */
}

.hover-overlay-text {
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
  display: flex;
  align-items: center;
}

.showcase-detail-image-wrapper:hover .hover-overlay {
  opacity: 0;
  visibility: hidden;
}

/* Hover overlay SVG GIF-like animation */
.hover-icon-svg {
  overflow: visible;
  position: relative;
  top: 7px;
}

.static-arrow {
  opacity: 0.35;
}

.animated-arrow {
  animation: arrow-slide-fade 1.6s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes arrow-slide-fade {
  0% {
    transform: translate(6px, 6px);
    opacity: 0;
  }
  20% {
    transform: translate(4px, 4px);
    opacity: 0.6;
  }
  50% {
    transform: translate(0, 0);
    opacity: 1;
  }
  80% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0);
    opacity: 0;
  }
}

.zoom-lens {
  position: absolute;
  border: 1.5px solid #ffffff;
  background: transparent;
  background-repeat: no-repeat;
  width: 138px;
  height: 190px;
  cursor: crosshair;
  pointer-events: none; /* Crucial to avoid flickering */
  z-index: 10;
  opacity: 1;
}

/* Zoom Viewer Window */
.zoom-window-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.zoom-window {
  width: 100%;
  height: 710px;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.zoom-window.zoomed {
  opacity: 1;
}

.zoom-window-bar {
  background-color: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 60px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.zoom-window-title {
  font-family: "ClashDisplay-Medium", "Clash Display", "Archivo", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
}
@media (min-width: 1200px) and (max-width: 1400px) {
    .zoom-window-title{
    font-size: 20px;
}
}

.showcase-detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-detail-list-item {
  display: flex;
  align-items: center;
}

.showcase-detail-list-item .bullet-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #ffffff;
  margin-right: 15px;
  display: inline-block;
  flex-shrink: 0;
}

.acf-layout-product-image-showcase-desktop-container {
  padding-left: 5%;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .showcase-thumbnails-swiper-container {
    height: 480px !important;
    width: 100% !important;
    padding: 20px 0;
  }
  .showcase-details-container {
    padding-left: 0;
  }
  .showcase-detail-heading {
    font-size: 2rem;
  }
  .showcase-detail-image-wrapper {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 497 / 296.688;
    max-width: 100%;
  }
  .zoom-window-wrapper {
    display: none !important;
  }
  .hover-overlay,
  .zoom-lens {
    display: none !important;
  }
  .showcase-detail-image-wrapper:hover .showcase-detail-image {
    opacity: 1 !important;
  }

  .acf-layout-product-image-showcase {
    height: auto;
  }
}

/* Mobile horizontal swiper container */
.showcase-thumbnails-swiper-container-mobile {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

/* Horizontal line behind mobile thumbnails */
.showcase-thumbnails-swiper-container-mobile::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.showcase-thumbnails-swiper-mobile {
  width: 100%;
  z-index: 2;
  overflow: hidden;
  padding: 10px 0;
}

.showcase-thumbnails-swiper-mobile .swiper-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.showcase-thumbnails-swiper-mobile .swiper-slide {
  width: 129px !important;
  height: 129px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* Mobile zoom-window-bar styling overrides */
.showcase-mobile-bars-container .mobile-bar {
  display: none;
  background-color: #000000;
  padding: 30px 24px;
  width: 100%;
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 26px;
}

.showcase-mobile-bars-container .mobile-bar.active {
  display: flex;
}

.showcase-mobile-bars-container .mobile-bar .zoom-window-title {
  font-family: "ClashDisplay-Medium", "Clash Display", "Archivo", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  text-align: right;
  color: #ffffff;
}
