/* Mobile product image improvements */
.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Formato quadrado para melhor apresentação */
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  padding: 8px; /* Adiciona padding interno para melhor apresentação */
}

.product-img-wrapper.loaded {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.product-img-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Volta para contain para mostrar a imagem completa */
  object-position: center;
  transition: transform 0.3s ease;
  border-radius: 12px;
  background: #ffffff;
  padding: 4px; /* Padding adicional na imagem */
}

.product-img-wrapper:hover .product-img {
  transform: scale(1.02);
}

/* Melhor aspect ratio para tablets */
@media (min-width: 640px) and (max-width: 1024px) {
  .product-img-wrapper {
    aspect-ratio: 4 / 3;
    padding: 12px;
  }
  
  .product-img {
    padding: 6px;
  }
}

/* Desktop - formato mais retangular */
@media (min-width: 1025px) {
  .product-img-wrapper {
    aspect-ratio: 3 / 2;
    padding: 16px;
  }
  
  .product-img {
    padding: 8px;
  }
}