/* Product Detail Page Styles */

.product-detail-area {
    padding: 120px 0;
}

.product-gallery {
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 600px;
    object-fit: contain;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.15s ease;
}

.thumbnail-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
}

.thumbnail-image.active {
    border-color: #007bff;
}

.product-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #222;
}

.product-description {
    margin: 20px 0;
    line-height: 1.8;
}

.product-actions {
    margin: 30px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-buy {
    background-color: #ff6600;
    border-color: #ff6600;
    color: white;
    padding: 12px 30px;
    font-size: 18px;
}

.btn-buy:hover {
    background-color: #e65c00;
    border-color: #e65c00;
    color: white;
}

.btn-download {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    padding: 12px 30px;
    font-size: 18px;
}

.btn-download:hover {
    background-color: #218838;
    border-color: #218838;
    color: white;
}

.btn-support {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
    padding: 12px 30px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-support:hover {
    background-color: #138496;
    color: white;
}

.specifications {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.specifications h3 {
    margin-bottom: 15px;
}

.specifications ul {
    padding-left: 20px;
}

.spec-list {
    list-style-type: none;
    padding: 0;
}

.spec-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.spec-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .main-image {
        height: 250px;
    }
    
    .thumbnail-image {
        width: 60px;
        height: 60px;
    }
}

/* Custom styles for Magnific Popup */
.mfp-with-close-button .mfp-close {
    display: block !important;
    opacity: 1;
    right: 0;
    top: 0;
    cursor: pointer !important;
}

.mfp-with-close-button .mfp-close:hover {
    opacity: 0.8 !important;
}

.mfp-with-close-button .mfp-figure {
    cursor: pointer;
}

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

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

.modal-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #222;
    text-align: center;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.support-qr {
    text-align: center;
}

.qr-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px;
    background-color: #f8f9fa;
}

.qr-hint {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.support-phone {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.phone-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.phone-number {
    display: inline-block;
    font-size: 24px;
    color: #17a2b8;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: #138496;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
    }
    
    .qr-image {
        width: 150px;
        height: 150px;
    }
    
    .phone-number {
        font-size: 20px;
    }
}
