/* productpage */
.products-section{
  overflow-x: hidden;
}
/* searchbar */

#searchbar{
  width: 92%;
  height: 5%;
}

.title-button{
  width:14%;
  font-size:1.2rem;
}

.subtitle-button {
  width: 10%;
  font-size: 0.8rem;
}

.bordered {
  width: 91.5%;
  padding: 0 0.6% 0.6% 0.6%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: 1px solid black;
  border-radius: 15px;
}

.items{
  display: flex;
  padding: 3%;
  justify-content: center;
  align-items: flex-start;
}
.promotion{
  background-color: #F0E68C;
}

.subheader {
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(0, 0, 0, 0.5);
  padding:25px 0;
  font-size: 1.2rem;
}

.products-section {
  margin-top: 0;
}

.products-section .subheader:first-of-type {
  border-top: 0;
}

.card{
  z-index:0;
  width: 100%;
}
.card-body{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-text{
  text-align: justify;
}

/* form */
.form-image-container{
  height:232px;
  width: 232px;
}
.form-image{
  width:90%;
}
.form-product-name{
  width:90%;
}
.form-product-price{
  width:60%;
}
.form-product-description{
  width:90%;
  height:50px;
}
.form-product-promotion{
  width:90%;
  height:50px;
}
.form-price-label{
}


/* shopingcart */
#shopping-cart{
  width: 100%;
  margin: 0;
  height: calc(var(--vh, 1vh) * 91);
  position: fixed;
  top:145px;
  background-color: rgba(0,0,0,0.7);
  z-index: 1;
}
#formdata{
  height: calc(var(--vh, 1vh) * 91);
}
.empty_shopping_cart{
  height:calc(var(--vh, 1vh) * 52);
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 20px;
}
.shopingcart_items_box{
  height:calc(var(--vh, 1vh) * 52);
  width:95%;
  margin-left: 2.5%;
  align-content: flex-start;
  overflow-y: scroll;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 20px;
}
.shoppingcart{
  height:calc(var(--vh, 1vh) * 91);
  width: 70%;
  margin: 0;
  margin-left: 30%;
  position: fixed;
  background-color: white;
  z-index: 10;
}

.shoppingcart-items{
  margin-left: 5%;
  margin-bottom: 25px;
  margin-top:25px;
  height:200px;
  width: 90%;
  display: flex;
  flex-direction: row;
  padding:3%;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 20px;
}

.shoppingcart-pictures{
  width:150px;
  height:150px;
  margin-right:50px;
  object-fit: contain;
}
.text-container{
  white-space: nowrap;
  overflow-x: hidden;
}
.bar_content {
  display: block;
  height: 58px;
  width: 200px;
  overflow-x:scroll;
}

@keyframes move {
  to { transform: translateX(-100%); }
}

.shoppingcart-desc{
  display:flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.remove-shoppingcart{
  width:52px;
	padding:0;
  color:#ed3419;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 2.5rem;
}

#total_price_section{
  width: 90%;
  display: flex;
  margin: auto;
  flex-direction: row;
  align-content: space-between;
  justify-content: space-between;
}

/* plus minus button */
span {cursor:pointer; }
.number{
	margin: auto;
  width: 100%;
  display:flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.minus, .plus{
	min-width:26px;
	background:#f2f2f2;
	border-radius:4px;
	padding:1px 10px;
	border:1px solid #ddd;
  text-align: center;
}
input{
  width:50px;
  text-align: center;
	border:1px solid #ddd;
	border-radius:4px;
  display: inline-block;
  vertical-align: middle;
}

#searchqueryresult{
  width:90.1%;
  position: absolute;
  z-index: 10;
  display:none;
  background-color: white;
}
.searchresult{
  border: 1px solid rgba(0,0,0,0.2);
  padding: 1%;
}

/* cart icon */
.pull-left {
  float: left;
}
.notification-dot {
  color:white;
  font-size: 1.5rem;
  height: 35px;
  width: 35px;
  background-color: red;
  border-radius: 50%;
  border: 1px solid white;
  display: none;
  position: relative;
  top: -40px;
  left: -20px;
}
.red-dot{
  display: inline-block;
}

.image-container {
  height: 300px;
  margin-top:32px;
}

.card-img-top {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
}

@media screen and (max-device-width: 768px){
  #searchbar{
    width: 95%;
  }
  #searchqueryresult{
    width:92.5%;
  }
  .title-button{
    width:30%;
    font-size:32px;
  }

  .subtitle-button {
    width: 20%;
    font-size: 25px;
  }

  .card-img-top {
    width: auto;
    height: auto;
    max-width: 332px;
  }

  .searchresult{
    border: 1px solid rgba(0,0,0,0.2);
    padding: 2%;
    font-size: 1.7rem;
  }
  .items, .card{
    min-height: 885.3px;
  }
  img #output{
    font-size: 2rem;
  }
  .form-image-container{
    height:403.98px;
  }
  .form-product-name{
    font-size:2.5rem;
    height:48px;
  }
  .form-product-description{
    height:192px;
  }
  .form-product-description,.form-product-price{
    font-size:2rem;
  }
  .form-product-price{
    height:192px;
    height: 38px;
  }
  .form-price-label{
    font-size:2rem;
  }
  .number{
  	margin: auto;
    width: 100%;
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .number input{
    height: 54px;
  }
  .minus, .plus{
    font-size: 1.5rem;
  	min-width:52px;
  	background:#f2f2f2;
  	border-radius:4px;
  	padding:8px 20px;
  	border:1px solid #ddd;
    text-align: center;
  }
  input{
  	height:34px;
    width: 100px;
    text-align: center;
    font-size: 26px;
  	border:1px solid #ddd;
  	border-radius:4px;
    display: inline-block;
    vertical-align: middle;
  }
  select{
    font-size: 2rem;
  }
  .subheader {
    font-size: 32px;
  }
}
