﻿/*------------------------------ PRODUCT DETAIL -----------------------------*/
.product-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 80%;
    margin: 50px auto;
}

.product-gallery {
    flex: 1;
    text-align: center;
}

.product-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 820px;
    aspect-ratio: 4 / 3;
    padding: 8px;
    overflow: hidden;
    border-radius: 5px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 15px rgba(0, 0, 0, 0.9), 0 0 20px rgba(139, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

    .product-image-container:hover .product-image {
        transform: scale(1.01);
    }

.product-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    padding: 5px;
    cursor: zoom-in;
    transition: transform 0.3s ease-in;
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 100%;
    padding-top: 15px;
}

.thumbnail {
    max-width: 125px;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(26, 26, 26, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

    .thumbnail:hover {
        transform: scale(1.1);
    }

    .thumbnail.active {
        border: 2px solid var(--main-color);
    }

.product-attributes {
    flex: 1;
    padding: 25px;
    background: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.product-title {
    font-size: var(--h3-font);
    font-weight: bold;
    color: var(--other-color);
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .product-table td {
        padding: 15px;
        border-bottom: 2px solid var(--second-color);
        word-wrap: break-word;
        white-space: normal;
    }

        .product-table td:first-child {
            font-weight: bold;
        }

.product-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

    .product-features li {
        padding: 8px;
        font-size: var(--p-font);
        border-radius: 5px;
        text-align: left;
    }

    .product-features i {
        color: var(--main-color);
        font-size: 18px;
    }

#popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#popup-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

#popup-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 30px;
    color: var(--second-color);
    cursor: pointer;
}

/*------------------------------ PRODUCT DESCRIPTION -----------------------------*/
.product-description {
    max-width: 70%;
    margin: 60px auto;
    padding: 25px;
    background: linear-gradient(135deg, white, #f4f4f5);
    border-left: 5px solid var(--main-color);
    border-radius: 12px;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

    .product-description:hover {
        transform: translateY(-10px);
    }

    .product-description h2 {
        font-size: var(--h2-font);
        font-weight: bold;
        color: var(--other-color);
        margin-bottom: 12px;
        position: relative;
    }

    .product-description p {
        font-size: var(--p-font);
        color: var(--other-color-2);
        line-height: 1.8;
        text-align: justify;
        white-space: pre-wrap;
    }

@media (max-width: 1200px) {
    .product-container {
        flex-direction: column;
        align-items: center;
    }

    .product-gallery,
    .product-attributes {
        max-width: 100%;
    }

    .product-title {
        font-size: var(--m-h2-font);
    }

    .product-table td {
        font-size: var(--m-p-font);
    }

    .product-features li {
        font-size: var(--m-p-font);
    }
}

@media (max-width: 799px) {
    .product-features {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }

    .product-description {
        max-width: 90%;
        padding: 15px;
    }

        .product-description h2 {
            font-size: var(--m-h2-font);
        }

        .product-description p {
            font-size: var(--m-p-font);
        }
}
