/* 
 * Image Fix CSS
 * This CSS file is used to provide fallback solutions for images that fail to load
 */

/* Style for the image not found placeholder */
.image-not-found {
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  color: #555;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}

/* Hero section image height consistency for mobile */
@media (max-width: 767px) {
  #hero a:first-child {
    height: 400px !important; /* First image slightly taller */
  }
  #hero a:not(:first-child) {
    height: 300px !important; /* Other images same height */
  }
}
/* Fix for the main product image */
#main-image {
  min-height: 300px;
  background-color: #f7f7f7;
  object-fit: contain !important; /* Override to ensure image is fully visible */
}

/* Fix for thumbnail images */
#thumbnail-gallery img {
  min-height: 80px;
  background-color: #f7f7f7;
  object-fit: contain !important; /* Override to ensure image is fully visible */
}

/* Error state styling */
img.error {
  border: 1px solid #ff0000 !important;
}

/* Add an extra layer for troubleshooting */
.debug-info {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
  z-index: 9999;
  max-height: 150px;
  overflow-y: auto;
  display: none;
}

/* Show debug panel when activated */
.debug-mode .debug-info {
  display: block;
}
