body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

main {
    width: 100%;
    padding: 20px;
    box-sizing: content-box;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.hide {
    display: none;
}

h1 {
    margin: 0;
    font-size: 24px;
}

main {
    margin-right: 20px;
    margin-bottom: 60px;
    box-sizing: border-box;
}

main hr {
    width: 85%;
}

.product {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.image-gallery {
    flex: 1 1 40%;
    max-width: 40%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.pg {
    max-height: 400px;
}

.plchldr {
    width: 100%;
    height: 200px;
    background-image: url("placeholder.jpg");
    background-size: contain;
    background-repeat: no-repeat;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumbs .product-image-thumb {
    border: 1px solid #999;
    cursor: pointer;
}

.product-image-thumb img {
    height: 100%;
    width: 100%;
}

.product-image-thumb.plchldr {
    height: 40px;
    width: 40px;
}

.gallery-thumbs .product-image-thumb:hover {
    box-shadow: 0 0 4px 1px #333;
}

.gallery-thumbs .product-image-thumb.selected {
    box-shadow: 0 0 14px 1px rgba(208, 212, 52, 0.52) inset;
}

.gallery-thumbs .video {
    position: relative;
}

.gallery-thumbs .video::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 0 16px 30px;
    border-color: transparent transparent transparent #2d0fd6af;
}

.product-image {
}

.product-image img,
.product-image video {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.product-details {
    flex: 1 1 55%;
    max-width: 50%;
    padding: 20px;
}

.product-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-description {
    margin-bottom: 20px;
    max-width: 40%;
    min-width: 300px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-button {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.product-button:hover {
    background-color: #555;
}

.more-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.more-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.more-details ul {
    list-style-type: disc;
    margin-left: 20px;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.cart-icon {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
}

.d8s-container {
    height: 400px;
    width: 600px;
    /*border: 1px solid #000;*/
}

.d8s-container img {
    height: 100%;
    width: auto;
    max-width: 100%;
}

#three-d-viewer {
    width: 900px;
    height: 600px;
    margin-bottom: 40px;
}

#image-gallery {
    max-width: 600px;
}

#added-image {
    height: 120px;
    width: 200px;
    border: 1px solid #000;
}
