.content-wrapper {
  width: calc(100% - 6rem);
  padding: 0 3rem;
}
.title {
    text-align: center;
    width: 100%;
}
.qp-features {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.quick-purchase-summary {
    width: 100%;
    display: inline-block;
    padding: 15px;
    /* border-top: 1px solid #67696d; */
    background-color: #227a79;
    text-align: center;
    color: #fff;
    position: fixed; 
    bottom: 0;
    display: flex;
    align-items: baseline;
}
.quick-purchase-summary div {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 6px 0 6px 0;
  justify-content: space-evenly;
}
.quick-purchase-summary label {
  font-weight: 600;
  font-size: 14px;
}

.quick-purchase-summary span {
    width: 120px;
    border: none;
    font-size: 24px;
    color: #fff;
}

.quick-purchase-summary span:hover {
  transform: scale(1.1, 1.4);
}

.quick-purchase-summary #total-amount {
  font-size: 30px;
  transform: scale(1, 1.2);
}
.quick-purchase-summary #total-amount:hover {
  transform: scale(1.1, 2);
}
.quick-purchase-summary div:first-child {
  display: none;
}

.qp-brand-img {
  width: 40%;
  padding: 5px 0;
}
.brand-dropdown, .category-dropdown {
  width: 25%;
  align-self: end;
}

.brand-select, .category-select {
  float: right;
  width: 100%;
  padding: 0.5rem 1rem;
  font-family: 'Open Sans', sans-serif;
  outline: none;
  cursor: pointer;
  font-size: 1rem;
  color: #d64b16;
  font-weight: 600;
}

table {
  border-collapse: collapse;
  width: 100%;
}

thead tr:first-child {
  background: #227a79;
    color: #fff;
}

.new-category {
  background: #ab1881;
  color: #e8d50a;
  font-weight: 700;
  font-size: 1rem;
}

th, td {
  text-align: center;
  padding: 6px;
  /* border: 0.1px solid #ddd;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent; */
  transition: transform .2s;
}

/* tr.product:nth-child(2n+1) {
  background: #f9fcff;
} */

tr.product:hover {
  background-color: #f2f2f2;
  box-shadow: 0px 10px 5px -5px grey;
  cursor: pointer;
  color: #d54c1b
}

tr.product:hover img {
    opacity: 0.5;
}

tr.product:hover td {
    opacity: 0.9;
}

td:nth-child(1) {
  width: 10%;
  position: relative;
}
td:nth-child(1) i {
  top: 45%;
  left: 45%;
  position: absolute;
  z-index: 500;
  display: none;
  transform: translate(-45%, -45%);
  -ms-transform: translate(-45%, -45%);
  text-align: center;
}

td:nth-child(8) {
  width: 12%;
}

td img {
    width:100px;
}

tr td:nth-child(5) {
    text-decoration: line-through;
}

tr td:nth-child(7) input {
    width: 65px;
    height: 25px;
    border-radius: 6px;
    text-align: center;
}

.place-order-div {
 display: inline-block;
}

section.popular {
  margin-bottom: 5rem;
}
.terms-condition {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.terms-condition p {
  margin: 0 auto;
}
.quick-purchase-summary-mob {
  display: none;
}


@media screen and (max-width: 768px) {
    .qp-features {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
    }
    .brand-dropdown, .category-dropdown {
      width: 100%;
    }
    .category-select {
      width: 100%;
      margin: 10px 0;
    }
    .content-wrapper {
      width: calc(100% - 2rem);
      padding: 0 1rem;
      margin-top: 6rem;
    }
    .qp-brand-img {
      width: 100%;
      text-align: center;
    }
    .quick-purchase-summary-mob {
      width: 100%;
      display: inline-block;
      position: fixed;
      bottom: 0;
      background: #227a79;
      padding: 10px;
      color: #fff;
      font-weight: 600;
      text-align: center;
      cursor: pointer;
    }
    .quick-purchase-summary div:first-child {
      display: block;
    }
    .fa-window-close {
      position: absolute; 
      right: 10%;
      cursor: pointer;
    }
    table {
      border: 0;
    }
    table tr {
      border-bottom: 1px solid #ddd;
      display: flex;
      margin-bottom: .625em;
      border-right: 1px solid #ddd;
      background: #f5f4db;
  }
    table caption {
      font-size: 1.3em;
    }
    
    table thead {
      border: none;
      clip: rect(0 0 0 0);
      height: 1px;
      margin: -1px;
      overflow: hidden;
      padding: 0;
      position: absolute;
      width: 1px;
    }
    
    tr.product {
      border: 1px solid #ddd;
      display: flex;
      margin-bottom: .625em;
      border-radius: 8px;
      min-height: 7.75rem;
    }
    
    table td {
      display: block;
      font-size: .8em;
      border: none;
    }
    
    table td::before {
      content: attr(data-label);
      float: left;
      font-weight: bold;
      text-transform: uppercase;
    }
    tr.product td:nth-child(1) {
      width: 20%;
      padding: 2rem 0rem 2rem 1rem;
    }

    tr.product td:nth-child(2) {
      position: absolute;
      padding: 0px 8px 0px 8px;
      font-size: 13px;
      border-radius: 8px 0px 8px;
      color: #fff;
      /* border: 1px solid #454b51 !important; */
      background-color: #ab1881;
   }
   tr.product td:nth-child(3) {
    width: 75%;
    font-size: 1em;
    /* border-right: 1px solid #ddd; */
    border-radius: 10px;
    font-weight: 700;
    padding-left: 3em;
    text-align: left;
   }
   tr.product td:nth-child(4){
    display: none;
   }
   tr.product td:nth-child(5){
    position: absolute;
    font-size: 1em;
    left: 36%;
    margin-top: 11%;
    color: #95a6a6;
   }
   tr.product td:nth-child(6){
    position: absolute;
    font-size: 1.2em;
    font-weight: 700;
    left: 35%;
    margin-top: 18%;
   }
   tr.product td:nth-child(7){
    position: absolute;
    right: 15%;
    margin-top: 10%;
   }
   tr.product td:nth-child(8){
    position: absolute;
    padding: 6px 0px 4px 0px;
    right: 5%;
    margin-top: 21.5%;
    font-size: 15px;
    border-radius: 8px;
    color: #000;
    width: 70px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #c6c6c6;
    background-color: #e8d50b;
  }
 
    table td:last-child {
      border-bottom: 0;
      width: 100%;
    }
    .quick-purchase-summary {
      display: flex;
      flex-wrap: wrap;
    }
    .quick-purchase-summary div {
      flex: 100%;
      display: flex;
      align-items: center;
      padding: 4px;
      justify-content: space-between;
    }
    .quick-purchase-summary span {
      font-size: 15px;
      font-weight: 600;
      text-align: left;
    }
    .quick-purchase-summary #total-amount {
      font-size: 20px;
    }
    
    @-webkit-keyframes uparrow {
      0% { -webkit-transform: translateY(0); opacity: 0.4 }
      100% { -webkit-transform: translateY(-0.4em); opacity: 1 }
    }
    @keyframes uparrow {
      0% { -webkit-transform: translateY(0); opacity: 0.4 }
      100% { -webkit-transform: translateY(-0.4em); opacity: 1 }
    }
    .fa-caret-up {
      -webkit-animation: uparrow 0.6s infinite alternate ease-in-out;
      animation: uparrow 0.6s infinite alternate ease-in-out;
    }
  }


@media screen and (max-width: 480px){
  .qp-features {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .category-select {
    width: 100%;
    margin: 10px 0;
  }
  tr.product td:nth-child(1) img {
    width: 85px;
  }
  tr.product td:nth-child(3) {
    font-size: 0.8em;
  }
  tr.product td:nth-child(5) {
    font-size: 0.7em;
    margin-top: 14%;
  }
  tr.product td:nth-child(6) {
    font-size: 1.1em;
    margin-top: 19%;
  }
  tr td:nth-child(7) input {
    width: 60px;
    height: 22px;
  }
  tr.product td:nth-child(8) {
    padding: 4px 0px 4px 0px;
    margin-top: 22%;
  }
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 500px;
}

/* Caption of Modal Image */
#product-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #product-caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  /* .modal-content {
    width: 100%;
  } */
}