.single-product-overly{
  position: relative;
}
.single-product-overly::before{
  content: '';
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.1;
  background-image: url('/wp-content/uploads/2025/12/Group-121-scaled.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
}

.custom-single-product-wrapper {
  margin: 0 auto;
  padding: 60px 24px;
  max-width: 1368px;
  box-sizing: border-box;
}
.custom-product-inner {
  display: flex;
  gap: 48px;
  position: relative;
}

.custom-product-left{
  position: sticky;
  top: 20px;
}
.custom-product-left,
.custom-product-right {
  flex: 1;
}
.custom-product-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.custom-main-image-wrapper {
  height: 80vh;
  width: 100%;
  background-position: center;
  cursor: pointer;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 16px;
}

.custom-product-gallery img {
  height: 60px;
  width: 60px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
}
.custom-product-gallery {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  height: 60px;
  align-items: center;
  justify-content: flex-start;
  overflow: auto;
  scrollbar-width: none;
}

/* --- Thumbnail active state --- */
.custom-single-product-wrapper .custom-thumb {
  opacity: 0.7;
  transition: opacity 0.25s ease, border 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.custom-single-product-wrapper .custom-thumb.active-thumb {
  opacity: 1;
  border-color: var(--e-global-color-text);
}

/* --- Fade animation for main image --- */
.custom-single-product-wrapper .fade-out {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.custom-single-product-wrapper .fade-in {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.custom-product-title {
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-size: var(--e-global-typography-primary-font-size);
  font-weight: var(--e-global-typography-primary-font-weight);
  line-height: var(--e-global-typography-primary-line-height);
  color: var(--e-global-color-text);
  margin: 0;
}

.custom-product-price-wrapper {
  display: flex;
  gap: 10px;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  color: var(--e-global-color-text);
}

.custom-product-description {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  color: var(--e-global-color-text);
}
.custom-product-short-desc p {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  color: var(--e-global-color-text);
  margin: 0;
}

.custom-variation-wrapper h3 {
  margin: 0;
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  font-size: var(--e-global-typography-secondary-font-size);
  font-weight: var(--e-global-typography-secondary-font-weight);
  line-height: var(--e-global-typography-secondary-line-height);
  color: var(--e-global-color-text);
}

.variation-buttons .size-btn:hover,
.variation-buttons .size-btn:active,
.variation-buttons .size-btn:focus,
.variation-buttons .size-btn.active-size {
  border-radius: 8px;
  background-color: var(--e-global-color-text);
  border: 1px solid var(--e-global-color-text);
  outline: none;
  color: var( --e-global-color-secondary );
}
.variation-buttons .size-btn {
  border: 1px solid var(--e-global-color-text);
  color: var(--e-global-color-text);
  outline: none;
  padding: 4px 10px;
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  border-radius: 8px;
}
.variation-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.custom-variation-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.buy-now-btn:hover {
  color: var( --e-global-color-89a752e );
  transform: scale(1.05);
  border-bottom: 1px solid var( --e-global-color-89a752e );
}
.buy-now-btn {
  text-decoration: none !important;
  color: var(--e-global-color-text);
  border-bottom: 1px solid var(--e-global-color-text);
  display: flex;
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  border-radius: 0;
  width: fit-content;
  padding: 6px 12px;
  margin-top: 24px;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
/* --- Disable Buy Now during price update --- */
.custom-single-product-wrapper .buy-now-btn.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* --- Loading spinner for variation update --- */
.custom-single-product-wrapper .loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: spin 0.6s linear infinite;
}

.custom-product-buy {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
}

.size_guide_btn:hover {
  color: var(--e-global-color-text);
}
.size_guide_btn {
  text-decoration: underline;
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  color: var(--e-global-color-text);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .custom-product-inner {
    flex-direction: column;
    gap: 32px;
  }
  .custom-product-left{
    position: static;
  }
  .custom-single-product-wrapper {
    padding: 48px 24px;
  }
  .custom-main-image-wrapper {
    height: 350px;
  }
  .custom-product-gallery {
    gap: 12px;
  }
  .variation-buttons .size-btn {
    padding: 2px 8px;
    font-size: 14px;
  }
}

/* ==========================================================
   LIGHTBOX (DESKTOP BASE)
========================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999999;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-main-image {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox-prev {
  left: -60px;
}
.lightbox-next {
  right: -60px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
  color: #fff;
}

.lightbox-thumbs {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  max-width: 90%;
  overflow-x: auto;
}

.lightbox-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 4px;
}

.lightbox-thumbs img.active-thumb {
  border-color: #fff;
}

/* ==========================================================
   RESPONSIVE TABLET
========================================================== */
@media (max-width: 1024px) {
  .lightbox-content {
    max-width: 700px;
    height: 65vh;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 32px;
  }

  .lightbox-prev {
    left: -40px;
  }
  .lightbox-next {
    right: -40px;
  }

  .lightbox-thumbs img {
    width: 55px;
    height: 55px;
  }
}

/* ==========================================================
   RESPONSIVE MOBILE
========================================================== */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    height: 60vh;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 26px;
    padding: 6px;
  }

  .lightbox-prev {
    left: 0;
  }
  .lightbox-next {
    right: 0;
  }

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 32px;
  }

  .lightbox-thumbs img {
    width: 50px;
    height: 50px;
  }
}

/* second section  */

.custom-related-products {
  margin: 0 auto;
  position: relative;
  padding: 60px 24px;
  max-width: 1368px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
}

.custom-related-products .related-item .related-thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.custom-related-products .related-item .related-thumb {
  height: 350px;
  width: 100%;
  display: flex;
}

.custom-related-products .related-item .related-name {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: 24px;
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: 30px;
  color: var(--e-global-color-text);
  margin: 0;
  padding: 0 24px;
}
.custom-related-products .related-item .related-price {
  padding: 0 24px;
}
.custom-related-products .related-item .woocommerce-Price-amount {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  color: var(--e-global-color-text);
  margin: 0;
  opacity: 0.8;
}

.custom-related-products .related-item .related-buy-now {
  background-color: #c1b7ab00;
  font-family: "gordita", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  line-height: 20px;
  fill: var(--e-global-color-text);
  color: var(--e-global-color-text);
  border-style: solid;
  border-width: 0px 0px 1px 0px;
  border-color: var(--e-global-color-text);
  border-radius: 0px 0px 0px 0px;
  padding: 6px 3px 6px 3px;
  width: fit-content;
  margin-left: 24px;
}
.custom-related-products .related-item:hover {
  transform: translateY(-4px);
}
.custom-related-products .related-item {
  flex: 1;
  display: flex;
  gap: 10px;
  flex-direction: column;
  text-decoration: none !important;
  border-radius: 24px;
  background-color: var( --e-global-color-8ff7b62 );
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding-bottom: 24px;
  transition: transform 0.2s;
}
.custom-related-products .related-grid {
  display: flex;
  gap: 24px;
  z-index: 5;
}
.custom-related-products .related-title {
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  font-size: var(--e-global-typography-secondary-font-size);
  font-weight: var(--e-global-typography-secondary-font-weight);
  line-height: var(--e-global-typography-secondary-line-height);
  color: var(--e-global-color-text);
  margin: 0;
  text-align: center;
  z-index: 5;
}

@media (max-width: 768px) {
  .custom-related-products {
    padding: 48px 24px;
  }
  .custom-related-products .related-grid {
    flex-direction: column;
  }
}

/* product features section  */
/* .product-features-section::after {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url('/wp-content/uploads/2025/12/Group-121-scaled.png');
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  background-size: cover;
  opacity: 0.3;
} */
.product-features-section {
  margin: 0 auto;
  padding: 60px;
  max-width: 1320px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  margin-bottom: 60px;
  align-items: start;
  background: var( --e-global-color-primary );
  border-radius: 32px;
}

.pfs-title {
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  font-size: var(--e-global-typography-secondary-font-size);
  font-weight: var(--e-global-typography-secondary-font-weight);
  line-height: var(--e-global-typography-secondary-line-height);
  color: var(--e-global-color-text);
  z-index: 5;
  margin: 0;
  text-align: start;
}

.pfs-description p {
  margin: 0;
  text-align: start;
}
.pfs-description {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  text-align: start;
  width: 60%;
  color: var(--e-global-color-text);
  z-index: 5;
}

.pfs-row {
  display: flex;
  gap: 32px;
  width: 100%;
  margin-top: 20px;
  z-index: 5;
}

.pfs-left {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pfs-btn {
  font-family: var(--e-global-typography-text-font-family), Sans-serif !important;
  font-size: var(--e-global-typography-text-font-size) !important;
  font-weight: var(--e-global-typography-text-font-weight) !important;
  line-height: var(--e-global-typography-text-line-height) !important;
  color: var(--e-global-color-text) !important;
  text-align: start;
  padding: 24px !important;
  border-radius: 16px !important;
  display: flex;
  width: 100%;
  outline: none !important;
  border: 1px solid var(--e-global-color-text) !important;
  background: var( --e-global-color-primary ) !important;
}

.pfs-btn:focus,
.pfs-btn:hover {
  background: var(--e-global-color-ed45535) !important;
  color: var( --e-global-color-secondary ) !important;
  outline: none;
}

.pfs-btn.active {
  background: var(--e-global-color-ed45535) !important;
  color: var( --e-global-color-secondary ) !important;
  outline: none;
}

.pfs-right {
  width: 70%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pfs-content-item {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 32px;
  gap: 16px;
}

.pfs-content-item.active {
  display: flex;
  opacity: 1;
}

.pfs-image {
  display: flex;
  height: 148px;
  padding: 34px;
  border-radius: 50%;
  background-color: var(--e-global-color-ed45535);
  width: 148px;
}
.pfs-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.pfs-content-title {
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  font-size: var(--e-global-typography-secondary-font-size);
  font-weight: var(--e-global-typography-secondary-font-weight);
  line-height: var(--e-global-typography-secondary-line-height);
  color: var(--e-global-color-text);
  margin: 0;
  text-align: center;
  margin: 0;
}

.pfs-content-text {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  line-height: var(--e-global-typography-text-line-height);
  color: var(--e-global-color-text);
  text-align: center;
  width: 50%;
}

/* Responsive */
@media (max-width: 768px) {
  .pfs-row {
    flex-direction: column;
  }
  .product-features-section {
    gap: 16px;
    padding: 32px 24px;
  }
  .pfs-left {
    flex-wrap: nowrap;
    overflow: scroll;
    flex-direction: row;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .pfs-btn {
    width: fit-content;
    padding: 8px 16px !important;
  }
  .product-features-section {
    border-radius: 0;
    margin: 0;
  }
  .pfs-description {
    width: 100%;
  }
  .pfs-right,
  .pfs-left {
    width: 100%;
  }
  .pfs-content-text {
    width: 100%;
  }
}

.product-video-section {
  margin: 60px auto;
  max-width: 1368px;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.product-video-title {
  font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
  font-size: var(--e-global-typography-secondary-font-size);
  font-weight: var(--e-global-typography-secondary-font-weight);
  line-height: var(--e-global-typography-secondary-line-height);
  color: var(--e-global-color-text);
  margin: 0;
  text-align: center;
}

.product-video-thumbnail-wrapper img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-video-thumbnail-wrapper{
    display: flex;
    position: relative;
    cursor: pointer;
    height: 450px;
    border-radius: 32px;
    overflow: hidden;
    width: 100%;
}
.product-play-icon img{
  height: 62px;
  width: 62px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-play-icon{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .5);
  height: 92px;
  width: 92px;
  display: flex;
  justify-content: center;
  align-items: center;
    padding: 18px;
    border-radius: 50%;
}


/* Popup Overlay */
.product-video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

/* Popup Inner Box */
.video-popup-inner {
    position: relative;
    width: 100%;
    max-width: 950px;
    animation: scaleIn 0.25s ease-out;
}

/* Video Element */
.popup-video-element {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #000;
    display: block;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
}

/* Close Button */
.video-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease;
}

.video-close-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.video-close-btn:hover {
    background: none;
    transform: scale(1.08);
    border: none !important;
    border-width: 0 0 0 0 !important;
    outline: none;
}

@media(max-width: 768px) {
    .video-close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    } 

    .video-close-btn img {
        width: 18px;
        height: 18px;
    }
    .product-video-section{
      margin: 0;
      padding: 0px 24px 48px;
      gap: 16px;
    }
    .product-play-icon{
      height: 52px;
      width: 52px;
    }
    .product-play-icon img{
      height: 32px;
      width: 32px;
    }
    .product-video-thumbnail-wrapper{
      height: 300px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

