/* Custom Modal Styles */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-modal {
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal {
    transform: scale(1);
}

.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.custom-modal-close:hover {
    background: #555;
}

.custom-modal-content {
    display: flex;
    flex-wrap: wrap;
}

.custom-modal-images {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: #f9f9f9;
}

.custom-modal-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.custom-modal-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.custom-modal-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.custom-modal-thumbnail:hover,
.custom-modal-thumbnail.active {
    border-color: #333;
}

.custom-modal-details {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.custom-modal-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.custom-modal-description {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.custom-modal-description p {
    margin: 0 0 10px 0;
}

.custom-modal-description .modal-description-list {
    margin: 0;
    padding-left: 20px;
}

.custom-modal-description .modal-description-list li {
    margin-bottom: 8px;
}

.custom-modal-price {
    font-size: 28px;
    font-weight: 700;
    color: #E42718;
    margin-bottom: 25px;
}

.custom-modal-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.custom-modal-btn:hover {
    background: #555;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-modal-content {
        flex-direction: column;
    }
    
    .custom-modal-main-image {
        height: 250px;
    }
}
