﻿/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    margin: 20px auto;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #555;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

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

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

    .modal-header h2 {
        font-size: 24px;
        margin: 0;
        padding-right: 30px;
    }

.modal-body {
    padding: 30px;
}

/* Carousel Styles */
.modal-carousel-container {
    margin-bottom: 30px;
}

.modal-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 5;
}

    .carousel-btn:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

    .carousel-dot.active {
        background-color: white;
    }

/* Specifications Styles */
.modal-specs-container {
    margin-bottom: 30px;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.modal-spec {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

    .modal-spec i {
        font-size: 24px;
        color: #ff4d4d;
        min-width: 30px;
        text-align: center;
    }

    .modal-spec h4 {
        margin: 0 0 5px 0;
        font-size: 14px;
        color: #777;
    }

    .modal-spec p {
        margin: 0;
        font-weight: 600;
        font-size: 16px;
    }

/* Video Styles */
.modal-video-container {
    margin-bottom: 30px;
}

    .modal-video-container h3 {
        margin-bottom: 15px;
        font-size: 20px;
    }

.modal-video-wrapper {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .modal-video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* Description Styles */
.modal-description {
    margin-bottom: 30px;
}

    .modal-description h3 {
        margin-bottom: 15px;
        font-size: 20px;
    }

/* Price and Contact Styles */
.modal-price-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.modal-price h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.modal-current-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff4d4d;
    margin: 0;
}

.modal-original-price {
    font-size: 18px;
    text-decoration: line-through;
    color: #999;
    margin: 0;
}

.modal-contact-btns {
    display: flex;
    gap: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-carousel {
        height: 250px;
    }

    .modal-specs-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .modal-price-contact {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .modal-contact-btns {
        flex-direction: column;
        width: 100%;
    }
}

