/* Məhsul Şəkil Modalı Stilləri */

.product-image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.product-image-content {
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.product-image-modal.show .product-image-content {
    transform: scale(1);
}

.product-image-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.product-image-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-product-image {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-product-image:hover {
    background: rgba(255, 255, 255, 0.3);
}

.product-image-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.product-image-info {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.product-image-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
}

.product-image-info p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.product-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.product-image-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-item:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: white;
    font-size: 2rem;
}

.default-image {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    cursor: default;
}

.default-image:hover {
    transform: none;
    box-shadow: none;
}

.default-image img {
    opacity: 0.3;
    filter: grayscale(100%);
}

.no-image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #999;
}

.no-image-text i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.no-image-text p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Məhsul şəkil ikonu stilləri */
.product-image-icon {
    background: linear-gradient(135deg, #0B2545 20%, #3f51b5 100%);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.product-image-icon:hover {
    background: linear-gradient(135deg, #0B2545, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 90, 36, 0.4);
}

.product-image-icon i {
    font-size: 1rem;
}

/* Mobil uyğunluq */
@media (max-width: 768px) {
    .product-image-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .product-image-header {
        padding: 15px;
    }
    
    .product-image-header h3 {
        font-size: 1.2rem;
    }
    
    .product-image-body {
        padding: 15px;
    }
    
    .product-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .product-image-item {
        min-height: 170px;
    }
    
    .product-image-item img {
        height: 170px;
    }
    
    .product-image-icon {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 40px;
        height: 40px;
    }
}

/* Scrollbar stilləri */
.product-image-body::-webkit-scrollbar {
    width: 8px;
}

.product-image-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.product-image-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.product-image-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

