 @media (max-width: 1081px) {
  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
  }

  .quantity-section {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 18px;
    min-height: 16px; /* 🛡️ Prevent layout shift */
  }


 
  .container-SmallScreen {
    display: flex;  
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .image-section-SmallScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 94%;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .main-image-SmallScreen-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0px;
    box-sizing: border-box;
  }

  .main-image-SmallScreen-container {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 300px; /* 🛡️ Ensure stable space for image */
    overflow: hidden;
    border-radius: 14px;
  }

  .main-image-SmallScreen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .thumbnails-SmallScreen {
 
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 60px; /* 🛡️ Reserve vertical space */
  }

  .thumbnails-SmallScreen img {
    
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    display: block;
  }

 

  .thumbnails-SmallScreen img.active {
    border-color: orange;
  }

  .item-product-container-description {
    min-height: 200px; /* 🛡️ Prevent layout jump when description loads */
    transition: all 0.2s ease-in-out;
  }

  .item-specification-container {
    min-height: 160px; /* 🛡️ Prevent spec container shift */
    transition: all 0.2s ease-in-out;
  }

  .details-column {
    min-height: 400px; /* 🛡️ Reserve vertical space in layout column */
  }

  .lens {
    display: none;
  }

  /* Optional: Skeleton loading animation */
  .skeleton {
    background: #e0e0e0;
    border-radius: 8px;
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
  }
}

/* Even more compact layout for very small screens */
@media (max-width: 480px) {
  .thumbnails-SmallScreen img {
    width: 40px;
    height: 40px;
  }

  .thumbnails-SmallScreen {
    height: 50px; /* 🛡️ Adjusted for smaller thumbs */
  }

  .main-image-SmallScreen-container {
    width: 95%;
  }


 .product-quantity-input{
  width: 80px;
  height: 24px;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 500;
  color: #14395d;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  background-color: #fff;
  margin-left: 6px;
}


}

@media (max-width: 1024px) {
  #zoomResult,
  .zoom-result {
    display: none !important;
  }


  .main-image-SmallScreen-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

}