#modal-cover {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  background-color: pink;
}

.breadcrumb {
  text-align: left;
}

pre {
  white-space: pre-wrap;
  overflow-x: hidden;
}

.product .soldout::after {
  margin-top: -5px !important;
}

#pic-gallery {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-row-gap: 10px;
  grid-column-gap: 10px;
  min-height: 300px;
}

#pic-gallery img {
  width: 100%;
  height: 175px;
  object-fit: scale-down;
  padding: 5px;
  cursor: pointer;
  background-color: pink;
} 

.fav, .cart {
  width: auto;
}

.fav-btn, .cart-btn {
  width: 150px;
  margin-bottom: 10px;
}

#addBtn-div {
  /* float: right; */
  margin-top: 50px;
}

.product-title {
  color: blueviolet;
  /* padding: 0px 30px; */
  width: 100%;
  font-weight: bold;
  /* margin-bottom: 20px; */
}

.product-code, .product-price {
  color: #1a1a1a;
  margin: 20px 10px 10px 0px;
  font-weight: 600;
}

.product-details {
  width: 100%;
}

#main-pic {
  height: auto;
  border: 10px solid pink;
  max-width: 100%;
  cursor: pointer;
}

#back-cover {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
}

/*
#prev, #next, #close {
  color: black;
  cursor: pointer;
  width: 30px;
  display: inline-flex;
}

#prev div, #next div, #close div {
  margin: auto;
}

#close:hover, #prev:hover:not([disabled="disabled"]), #next:hover:not([disabled="disabled"]) {
  font-weight: bold;
}
*/

#displayBar {
  position: absolute;
  width: 100px;
  text-align: center;
  left: 50%;
  margin-left: -50px;
  color: black;
  background-color: white;
}

#displayBar {
  top: 100px;
}


.section-title span {
  z-index: initial;
}

#main-pic {
  display: block;
}

#back-link-1, #back-link-2 {
  position: absolute;
  right: 30px;
  color: black;
  text-align: right;  
}

#back-link-2 {
  bottom: 25px;
}

#nextDiv {
  height: 100vh;
  width: 200px;
  position: absolute;
  right: 0px;
  cursor: pointer;
}

#prevDiv {
  height: 100vh;
  width: 200px;
  position: absolute;
  left: 0px;
  cursor: pointer;
}

#closeDiv {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  line-height: 45px;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
}

#nextArrow {
  height: 50px;
  width: 50px;
  top: calc((100vh - 50px) / 2);
  position: absolute;
  left: 75px;
  background-image: url('data:image/svg+xml,<svg fill="%23ffffff" height="100px" width="100px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 330.00 330.00" xml:space="preserve" stroke="%23ffffff" stroke-width="0.0033"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path id="XMLID_2_" d="M165,0C74.019,0,0,74.019,0,165s74.019,165,165,165s165-74.019,165-165S255.981,0,165,0z M225.606,175.605 l-80,80.002C142.678,258.535,138.839,260,135,260s-7.678-1.464-10.606-4.394c-5.858-5.857-5.858-15.355,0-21.213l69.393-69.396 l-69.393-69.392c-5.858-5.857-5.858-15.355,0-21.213c5.857-5.858,15.355-5.858,21.213,0l80,79.998 c2.814,2.813,4.394,6.628,4.394,10.606C230,168.976,228.42,172.792,225.606,175.605z"></path></g></svg>');
  background-size: contain;
}

#prevArrow {
  height: 50px;
  width: 50px;
  top: calc((100vh - 50px) / 2);
  position: absolute;
  left: 75px;
  background-image: url('data:image/svg+xml,<svg fill="%23ffffff" height="100px" width="100px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 330.00 330.00" xml:space="preserve" stroke="%23ffffff" stroke-width="0.0033" transform="rotate(180)"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path id="XMLID_2_" d="M165,0C74.019,0,0,74.019,0,165s74.019,165,165,165s165-74.019,165-165S255.981,0,165,0z M225.606,175.605 l-80,80.002C142.678,258.535,138.839,260,135,260s-7.678-1.464-10.606-4.394c-5.858-5.857-5.858-15.355,0-21.213l69.393-69.396 l-69.393-69.392c-5.858-5.857-5.858-15.355,0-21.213c5.857-5.858,15.355-5.858,21.213,0l80,79.998 c2.814,2.813,4.394,6.628,4.394,10.606C230,168.976,228.42,172.792,225.606,175.605z"></path></g></svg>');
  background-size: contain;
}

#nextDiv:hover, #prevDiv:hover {
  background-color: rgba(0,0,0,0.3);
}

@media (max-width: 991px) {

.product-row {
  margin: 0px 15px;
}

#back-link-1 {
  top: -35px;
}

}

#shopping-cart {
  margin-left: 10px;
}

@media (max-width: 768px) {
  #shopping-cart {
    margin-left: 0px;
  }

  #pic-gallery {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-row-gap: 10px;
    grid-column-gap: 10px;
    min-height: 300px;
  }

  #pic-gallery img {
    height: 120px;
  }

  #back-link-1 {
    top: -35px;
  }  
}

@media (max-width: 575px) {
  .breadcrumb {
    text-align: center;
  }
  
  .product {
    text-align: center;
  }

  #main-pic {
    display: none;
  }

  #pic-gallery {
    display: block;
  }

  #pic-gallery img {
    width: auto;
    height: auto;
    border: 7px solid pink;
    display: block;
    margin: 10px auto;
    max-width: 100%;
    padding: 0px;
    cursor: auto;
  }

  #back-link-1 {
    right: 0px;
    top: -35px;
  }

  #back-link-2 {
    right: 0px;
  }
}
