/* 
 * product-links.css
 * Styling for product links - Product card styles are in product-cards.css
 */

/* Product card title links */
.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.product-name a:hover {
    color: #3498db;
}

/* Make sure actions are clickable above the card link */
.product-actions button,
.product-actions a {
    position: relative;
    z-index: 2;
}

/* Make sure actions are above the card link */
.product-actions {
    position: relative;
    z-index: 10;
}

/* Product image transition styles for detail pages */
#mainProductImage {
    transition: opacity 0.3s ease;
    height: 500px;
    min-height: 500px;
}

.product-main-image {
    position: relative;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-changing {
    opacity: 0.5;
}

/* Preload optimization for product images */
.product-main-image img {
    max-width: 100%;
    height: 500px;
    min-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Dark mode compatibility */
[data-theme="dark"] .product-name a:hover {
    color: #5dade2;
}
