
.main-zoom-container {
    position: relative;
    width: 100%;
}

.product-view {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.product-view img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

#zoom-result {
    display: none; /* Optional zoom area */
}

#zoom-result img {
    width: 100%;
}

.thumb-column img.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.thumb-column img.thumbnail.active {
    border-color: #007bff;
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .thumb-column {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }

    .thumb-column img.thumbnail {
        margin: 5px;
    }
}

 .related-product-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 5px 5px 0 0;
            }

            .related-product-wrapper img {
            transition: transform 0.3s ease;
            width: 100%;
            height: 150px;
            object-fit: cover;
            }

            .related-product-wrapper:hover img {
            transform: scale(1.05);
            }

            .related-product-wrapper .product-overlay {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            background: rgba(0, 0, 0, 0.25);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
            }

    .related-product-wrapper:hover .product-overlay {
    opacity: 1;
  }
.main-zoom-container {
    /* display: flex; */
    gap: 20px;
    flex-wrap: wrap;
  }
    .thumb-column {
      display: flex;
      flex-direction: row;
      justify-content: center;
      gap: 10px;
      max-width: 100%;
      margin: 0 auto;
      flex-wrap: wrap;
    }
    .thumb-column img {
      width: 70px;
      height: 70px;
      object-fit: cover;
      cursor: pointer;
      border-radius: 4px;
      border: 2px solid transparent;
    }
    .thumb-column img.active {
      border-color: #ff6600;
    }
    .product-view {
      /* width: 400px; */
      height: 400px;
      border: 1px solid #ddd;
      overflow: hidden;
      position: relative;
    }
    .product-view img {
      width: 100%;
      height: 100%;
      max-height: 400px;
      object-fit: contain;
      border-radius: 6px;
      cursor: crosshair;
    }



      #zoom-result {
      position: absolute;
      top: 0;
      left: 550px;
      width: 380px;
      height: 400px;
      display: none;
      background: white;
      overflow: hidden;
      border: 1px solid #aaa;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
      z-index: 999;
    }
    #zoomedImage {
      position: absolute;
      width: 1600px;
      height: 1600px;
      object-fit: contain;
      pointer-events: none;
      user-select: none;
      transform-origin: top left;
    }
    .thumb-column {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }
    .thumbnail {
        width: 70px;
        height: 70px;
        object-fit: cover;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.3s ease;
        border-radius: 4px;
    }
    .thumbnail.active {
        border-color: #007bff;
    }

    #zoom-result img {
        position: absolute;
        width: 150% !important;
        height: auto;
        max-width: none;
    }
  

    .product-qty {
      width: 20% !important;
    }
    .product-qty  button{
      padding: 0px 5px !important
    }
    .product-qty  input{
      padding: 2px !important
    }

    .from-qty button {
        padding: 0px 5px !important;
        width: 20%;
    }

    
    @media (max-width: 767.98px) {
      @media (max-width: 767.98px) {
		  #zoom-result {
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
			display: none;
			background: transparent;
			border: none;
			box-shadow: none;
		  }
		  #zoomedImage {
			width: 800px !important;  /* smaller than 1600 */
			height: 800px !important; /* smaller than 1600 */
		  }
		}

      .main-zoom-container {
        flex-direction: column;
        align-items: center;
      }
      .thumb-column {
        flex-direction: row;
        overflow-x: auto;
        max-width: 100%;
        justify-content: center;
      }
      /* Responsive fix for main image */
      .product-view {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
      }
      .product-view img {
        max-height: 200px;
      }
    }
    #myBtn {
      display: none;
      position: fixed;
      bottom: 40px;
      right: 30px;
      z-index: 999;
      font-size: 18px;
      border: none;
      outline: none;
      background-color: #333;
      color: white;
      cursor: pointer;
      padding: 10px 15px;
      border-radius: 4px;
    }
    #myBtn:hover {
      background-color: #555;
    }


    