html,body {
    height: 100%;
}

#grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 10px;
    justify-content: center;
}

@media screen and (min-width: 700px){
    #grid {
        grid-template-columns: repeat(3, auto);
    }
}

@media screen and (min-width: 750px){
    #grid {
        grid-template-columns: repeat(4, auto);
    }
}

@media screen and (min-width: 900px){
    #grid {
        grid-template-columns: repeat(6, auto);
    }
}

@media screen and (min-width: 1100px){
    #grid {
        grid-template-columns: repeat(8, auto);
    }
}

.pannel {
    width: 162px;
    height: 480px;
    border: none;
    position: relative;
}

.image {
    position: relative;
    width: 161px;
    height: 208px;
    margin: 0px, 0px, 8px;
    cursor: pointer;
}

.wishlist {
    width: 32px;
    height: 32px;
    right: 5px;
    top: 5px;
    background-color: white;
    position: absolute;
    box-shadow: 3px 3px 12px #999;
    border-radius: 32px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
}

.wishlist:hover {
    border: 1px solid red;
}

.colors {
    width: 161px;
    height: 44px;
    margin: 0px, 0px, 8px;
}

.details {
    width: 161px;
    height: 97px;
}

.brand {
    width: 161px;
    height: 19px; 
    color: black;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.details  > h2 {
    font-weight: normal;
}

.name {
    color: black;
    font-family: sans-serif;
    font-size: 14px;
    margin: 8px, 0px;
    font: normal;
    cursor: pointer;
}

.name:hover {
    text-decoration: underline;
}

.price {
    width: 161px;
    height: 21px;
    color: #EF0000;
    font-family: sans-serif;
    font-size: 16px;
    margin: -28px, 0px,  0px;
    display: inline-block;
}


.old-price {
    width: 88px;
    height: 18px;
    text-align: right;
    color: #676767;
    font-family: sans-serif;
    font-size: 13px;
    text-decoration: line-through;
    margin: 0px, 0px, 8px, 72px;
    display: inline-block;
}

.rating {
    width: 161px;
    height: 19px;
    margin: 8px, 0px, 0px;
}

.stars {
    width: 68px;
    height: 18px;
}

.show-more {
    width: 161px;
    height: 40px;
    color: rgb(48, 48, 48);
    background-color: white;
    font-family: sans-serif;
    font: bold;
    text-align: center;
    border-radius: 5px;
    padding: 1px 6px;
    margin-top: 30px;
    cursor: pointer;
}

.show-more:hover {
    background-color: black;
    color: white;
}



#show-in-store {
    width: 100px;
    height: 25px;
    background-color: white;
}

#show-in-store:hover {
    background-color: rgb(48, 48, 48);
    color: white;
}

#overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(92, 89, 89, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    display: flex;
}

#store-3d-display {
    display: block;
    position: relative;
    width: 720px;
    height: 480px;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid black;
}

#store-3d-display > canvas {
    width: 100% !important;
    height: 100% !important;
}

#next-item {
    position: absolute;
    top: calc(.5rem - 1px);
    left: calc(5rem + 215px);
    width: 100px;
    height: 27px;
    background-color: white;
    color: black;
    z-index: 2000;
}

#next-item:hover {
    background-color: black;
    color: white;
}


#prev-item {
    position: absolute;
    bottom: .5rem;
    right: calc(1rem + 100px);
    width: 100px;
    height: 25px;
    background-color: white;
    color: black;
    z-index: 2000;
}

#prev-item:hover {
    background-color: black;
    color: white;
}


#item {
    position: absolute;
    top: .5rem;
    left: .5rem;
    width: 150px;
    height: 25px;
    padding: .25rem;
    background-color: white;
    color: black;
}

#exit {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 20px;
    height: 20px;
    padding: .25rem;
    background-color: rgba(0, 0, 0, 0);
    font-family: "Comic Sans MS", "Comic Sans", cursive;    
    color: white;
    cursor: pointer;
}