/* =====================================================
PRODUCT IMAGE ICON & MODAL STYLES
===================================================== */

/* Product Image Icon (next to product name) */
.product-image-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    color: #489292;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 4px;
}

.product-image-icon:hover {
    color: #3a7575;
    transform: scale(1.1);
}

.product-image-icon:active {
    transform: scale(0.95);
}

.product-image-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* Product Image Modal (Full-Screen) */
.product-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-image-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.product-image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.product-image-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.product-image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.product-image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.product-image-modal-close:active {
    transform: scale(0.95);
}

.product-image-container {
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.product-image-container img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 8px;
}

.product-image-name {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-width: 90%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .product-image-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    
    .product-image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 20px;
    }
    
    .product-image-container {
        max-width: 95vw;
        max-height: 95vh;
        padding: 10px;
    }
    
    .product-image-container img {
        max-height: calc(95vh - 80px);
        padding: 4px;
    }
    
    .product-image-name {
        font-size: 16px;
        padding: 10px 16px;
    }
}

/* Touch-friendly sizing */
@media (pointer: coarse) {
    .product-image-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
    }
}

