/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-page {
    font-family: Arial, sans-serif;
    background-color: var(--primary-color);
    color: black;
    margin: 0 auto;
    transition: 0.3s;
    
}

/* Product Page Layout */
.product-page {
    display: flex;
    justify-content: space-between;
    margin: 20px auto;
    max-width: 900px; /* Thinner container */
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 100px;
}

/* Left Column: Image Gallery */
.left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%; /* Smaller width for the image section */
}

.image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image {
    width: 80%; /* Make the main image smaller */
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
}

.thumbnail-images {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.thumbnail-images img {
    width: 80px; /* Smaller thumbnails */
    height: 80px; /* Adjust thumbnail height */
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.3s ease;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border: 2px solid #ffcc00;
}

/* Right Column: Title, Description, Download Button */
.right-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 45%; /* Adjusted width for the text section */
    margin-left: 30px; /* Creates more space between the left and right column */
    padding-right: 20px; /* Pushes the content closer to the right border */
}

.right-column h1 {
    font-size: 30px; /* Slightly smaller title */
    margin-bottom: 20px;
}

.right-column p {
    font-size: 16px; /* Smaller font for the description */
    line-height: 1.5;
    margin-bottom: 30px;
}

.btndownload {
    background-color: #ffcc00;
    color: black;
    text-decoration: none;
    padding: 12px; /* Slightly smaller button */
    border-radius: 5px;
    text-align: center;
    font-size: 18px; /* Slightly smaller button text */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.rodownload {
    background-color: #1edfb2;
    color: black;
    text-decoration: none;
    padding: 12px; /* Slightly smaller button */
    border-radius: 5px;
    text-align: center;
    font-size: 18px; /* Slightly smaller button text */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btndownload:hover {
    background-color: #e6b800;
}

.rodownload:hover {
    background-color: #22b290;
}

/* Lightbox (Image Expansion) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.lightbox .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-page {
        flex-direction: column;
    }

    .left-column, .right-column {
        width: 100%;
    }

    .main-image {
        width: 100%; /* Expand the image to full width on smaller screens */
    }

    .thumbnail-images img {
        width: 70px; /* Adjust thumbnail size on smaller screens */
        height: 70px;
    }

    .right-column {
        
        margin-top: 30px;
        margin-left: 0px; /* Creates more space between the left and right column */
        padding-right: 0px; /* Pushes the content closer to the right border */
    }

}
