#productModal .modal-dialog {
    max-width: 900px;
}

#productModal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#productModal .modal-header {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#productModal .btn-close {
    margin: 0;
    opacity: 0.8;
    font-size: 16px;
}

#productModal .btn-close:hover {
    opacity: 1;
}

.product-popup-content {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.product-popup-image {
    position: relative;
    flex: 1;
    min-height: 300px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === ZOOM STYLES (commented out for later) ===
.image-zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
}
*/

.product-popup-image img {
    max-height: 400px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* === ZOOM LENS & RESULT (commented out for later) ===
.zoom-lens {
    position: absolute;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
}

.zoom-result {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 250px;
    height: 250px;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background-repeat: no-repeat;
    display: none;
    z-index: 100;
    border-radius: 12px;
    pointer-events: none;
}
=== /ZOOM LENS & RESULT ===*/

.product-popup-info {
    background: white;
    border-top: 1px solid #e9ecef;
}

.modal-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 10px 0;
}

.product-popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.product-popup-desc .fabric-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-popup-desc .fabric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-popup-desc .fabric-item:last-child {
    border-bottom: none;
}

.product-popup-desc .fabric-item strong {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

.product-popup-desc .fabric-item span {
    color: #2c3e50;
    font-weight: 600;
}

.product-popup-care .care-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.product-popup-care .care-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
}

.product-popup-care .care-icon {
    object-fit: none;
}

.product-popup-care .care-text {
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .product-popup-content {
        flex-direction: row;
        min-height: 500px;
    }
    
    .product-popup-image {
        flex: 1.2;
        min-height: 500px;
    }
    
    .product-popup-info {
        flex: 1;
        border-top: none;
        border-left: 1px solid #e9ecef;
        max-height: 500px;
        overflow-y: auto;
    }
    
    .product-popup-image img {
        max-height: 500px;
        padding: 20px;
        border-radius: 30px;
    }
    
    /* Збільшене вікно на десктопі */
    .zoom-result {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 767px) {
    #productModal .modal-dialog {
        margin: 16px;
        max-width: calc(100% - 32px);
    }
    
    .product-popup-image {
        min-height: 250px;
    }
    
    .product-popup-image img {
        max-height: 250px;
    }
    
    .product-popup-info {
        padding: 20px !important;
    }
    
    .product-popup-title {
        font-size: 1.3rem;
    }
    
    .product-popup-care .care-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* === ZOOM MOBILE SIZES (commented out for later) ===
    .zoom-result {
        width: 180px;
        height: 180px;
        top: 10px;
        right: 10px;
    }
    
    .zoom-lens {
        width: 80px;
        height: 80px;
    }
    === /ZOOM MOBILE SIZES === */
}

#productModal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: transform 0.3s ease-out;
}

#productModal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

#productModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.shop-product-card .card-link {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.shop-product-card .card-link:hover {
    transform: scale(1.02);
}

.shop-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}