@import url('https://fonts.googleapis.com/css2?family=Annie+Use+Your+Telescope&display=swap');

.container-div {
    display: grid;
    grid-template-columns: 70% 30%;
    margin: auto;
    padding: 5rem 2rem 0 2rem;
    gap: 2vw;
}

.product-details-2{
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 2vw;
    height: fit-content;
    overflow: hidden;
}

.product-display {
    position: relative;
    height: 100%;
    width: 100%;
    background-color: rgba(240, 231, 231, 0.5);
    padding: 1rem;
    overflow: hidden;
}

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

.container-img img{
    width: 100%;
    height: 80%;
    border-radius: 1rem;
    object-fit: fill;
}

.product-name{
    width: 100%;
}

.product-name h2{
    color: black;
    width: 100%;
}

.pricelist{
    margin-top: 1rem;
}

.pricelist h4, .pricelist h6{
    margin-top: 1rem;
}

#social-media-share {
    margin-top: 1rem;
}

#add-to-cart {
    background-color: rgba(0, 0, 0, 0.164);
    width: 85%;
    height: 50px;
    border-radius: 5px;
    margin-bottom: .5rem;
    margin-top: 1rem;
}

.col-3{
    display: flex;
}

.horizontal-line,
.horizontal-line2,
.horizontal-line3,
.horizontal-line4 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.164);
    width: 85%;
    height: 1px;
    margin-top: 1rem;
}

.product-text{
    margin: 1rem 0 0 0;
}

.advert {
    height: fit-content;
    width: 100%;
    background-color: rgba(240, 231, 231, 0.5);
    font-family: "Annie Use Your Telescope", cursive;
    font-weight: 600;
    font-style: normal;
}

h5, p, h6, select {
margin: 10px;
}

.related-products{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    width: 100%;
    overflow: hidden;
    gap: 1vw;
    margin: auto;
}

.related-products-img{
    width: 100%;
    height: 100%;
}

.related-products-img a img{
    height: 80%;
    width: 100%;
    object-fit: fill;
}

.related-products-type{
    background-color: black;
    color: white;
    text-align: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    border-radius: 0 0 10px 10px;
    padding: 5px 3px;
}


#cart-icon {
    width: 24px;
    height: 24px;
}

#item-count-circle {
    position: absolute;
    top: -10%;
    right: 20%;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-icon {
    position: absolute;
}


#search-results {
    position: fixed;
    right: 100px;
    top:60px;
    z-index: 500;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fdf7f7f3;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.search-result-item img {
    max-width: 50px;
    margin-right: 10px;
}

.search-result-item span {
    font-size: 16px;
}




/* Media queries */
@media (max-width: 1000px) {

    .container-div{
        grid-template-columns: 1fr;
    }

    .product-details-2{
        grid-template-columns: 1fr;
    }

    .related-products{
        grid-template-columns: 1fr 1fr;
    }

    .related-products-img a img{
        height: 70%;
    }

    .product-name{
        margin-top: -2rem;
        margin-bottom: 27rem;
    }
    #share-product{
        margin-top: -25rem;
    }
}

@media (max-width: 768px){
    .advert{
        margin-top: 2rem;
    }

    .related-products-img a img{
        height: 60%;
    }
}