/* Product Images Fix */
.main-product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.main-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #ff7a2e;
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Image error handling */
.image-error {
    opacity: 0.5;
    filter: grayscale(100%);
}

.image-placeholder {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border-radius: 8px;
    position: relative;
}

.image-placeholder::before {
    content: attr(data-label);
    text-align: center;
    padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-product-image {
        height: 250px;
    }
    
    .thumbnail img {
        height: 50px;
    }
}