tbody {
    font-size: larger;
}

    tbody p {
        margin: 0 0 0 0;
        font-size: larger;
    }

.container {
    max-width: 800px;
    width: 100%;
    background-color: #fff;
    text-align: center;
}

.product-title {
    font-size: 1rem;
    text-decoration: none;
}

.image-section {
    position: relative;
}

.image-buy-container {
    display: flex;
    width: 100%;
    flex-direction: row;
}

    .image-buy-container .child {
        width: 50%;
    }

.product-main-image {
    max-width: 400px;
    width: 100%;
    cursor: pointer;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

    .thumbnails div {
        width: auto;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
        padding: 10px;
    }

        .thumbnails div.active {
            border: 2px solid #000;
            background-color: #f0f0f0;
        }

        .thumbnails div:nth-child(5) {
            clear: both;
        }

.thumbnail {
    display: block;
    width: 80px;
    height: auto;
    cursor: pointer;
    border: 2px solid #ccc;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-price {
    font-size: 1.5rem;
    text-align: left;
}

.stock-availability {
    font-size: 0.8rem;
    text-align: left;
}

.volume-discount {
    font-size: 0.8rem;
    text-align: left;
}

.vat-delivery-message {
    display: inline-block;
    position: relative;
    text-align: center;
    font-size: 0.6rem;
}

/* Icon to display the VAT information when hovering */
.info-icon {
    display: inline-block;
    width: 13.3px;
    height: 13.3px;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 50%;
    margin-left: 3.3px;
    font-size: 10.7px;
    line-height: 13.3px;
    font-weight: bold;
    position: relative;
    cursor: pointer;
}

    .info-icon:hover::after {
        content: attr(data-title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 30vw;
        max-width: 500px;
        background-color: #333;
        color: #fff;
        padding: 6.7px;
        border-radius: 5px;
        white-space: normal;
        z-index: 10;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        text-align: left;
    }


.related-products {
    margin-bottom: 40px;
}

    .related-products h2 {
        font-size: 1.25rem;
        margin-bottom: 10px;
        text-decoration: underline;
    }

.related-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

    .related-items .item {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 150px;
        height: auto;
        margin: 5px;
        text-align: center;
        border: 2px solid #ccc;
        border-radius: 10px;
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        align-items: center;
    }

        .related-items .item img {
            display: block;
            width: 150px;
            height: auto;
            max-height: 150px;
            cursor: pointer;
        }

        .related-items .item p {
            height: 4.5em;
            margin-top: 5px;
            font-size: 16px;
            line-height: 1.5em;
            max-height: 4.5em;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
        }

/* Image scrolling */
.gallery-container {
    position: relative;
    width: 80%;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
}

    .gallery-container img {
        width: 100%;
        height: auto;
        max-height: 100%;
        display: none;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: contain;
    }

        .gallery-container img.active {
            display: block;
        }

        .gallery-container img.fade-out {
            display: none;
        }

/* Enlarge an image icon */
.magnifying-glass-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    margin: 5px;
    z-index: 2;
}

.magnifying-glass {
    position: absolute;
    top: 10%;
    transform: translateY(-50%);
    background-color: transparent;
    color: black;
    font-size: 25px;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    right: 10px;
    filter: grayscale(100%);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: black;
    font-size: 50px;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

    .arrow.left {
        left: 0;
    }

    .arrow.right {
        right: 0;
    }

/* Enlarge image */
.enlarge-span {
    display: block;
    margin-top: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .overlay img {
        max-width: 90%;
        max-height: 90%;
    }

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: black;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
}
