/* header */
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 4px 15px;
  gap: 30px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

header a img {
  width: 140px;
}

header nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 30px;
  text-decoration: none;
  text-transform: uppercase;
  color: #005C29;
  font-weight: bold;
}

header nav a span {
  font-size: 1.1rem;
}

#search {
  margin-left: auto;
}

.product-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

#search-input {
  background: url("../static/icons/search-active.svg") no-repeat;
  background-position: calc(100% - 10px) 6px;
  width: 400px;
  padding: 10px 40px 10px 14px;
  border-radius: 40px;
  border: 1px solid #bebdbd;
}

#manufacturer-list,
#category-list {
  margin-top: 5px;
}

#manufacturer-list ul,
#category-list ul {
  padding: 5px 0;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

#product-list {
  background-color: #fff;
  overflow: hidden;
  border-left: 1px solid #e5e8ed;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  margin-top: 5px;
  padding-bottom: 20px;
}

.manufacturer-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  cursor: pointer;
  text-transform: capitalize;
}

.manufacturer-item:hover {
  background-color: #eee;
}

.product {
  padding: 5px;
  border-bottom: 1px solid #ccc;
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 6fr 2fr 3fr 300px;
  width: 100%;
  align-items: center;
  column-gap: 15px;
}

.img-wrapper {
  width: 100%;
}

.img-wrapper img {
  object-fit: cover;
  width: 150px;
  height: 150px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

.product-info h5 {
  line-height: 1.5;
  font-size: 15px !important;
  color: #292929;
  font-weight: 400;
  word-wrap: break-word;
  transition: 0.1s ease-in-out;
  cursor: pointer;
}

.product-warning {
  font-style: italic;
  color: orange !important;
  margin: 5px 0;
  display: inline-block;
  font-size: 12px;
}

.text-red {
  color: red !important;
}

.error-item {
  background-color: rgb(251, 219, 219);
}

.out-of-stock {
  text-align: center;
}

.product-quantity-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

.product-quantity-wrapper button {
  border-radius: none;
  color: #0e1983;
}

.btn-quantity {
  width: 50px;
  height: 30px;
  background-color: #fff;
  font-size: 2rem;
  font-weight: 700;
  border: 1px solid #ccc;
  line-height: 1;
  cursor: pointer;
  transition: 0.1s ease-in-out;
  overflow: hidden;
}

.btn-quantity:hover {
  background-color: #eee;
}

.btn-decrease {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.btn-increase {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.cart-quantity-input {
  height: 30px;
  text-align: center;
  border: 1px solid #ccc;
  border-right: none;
  border-left: none;
  font-weight: 700;
  font-size: 16px;
}

.cart-quantity-input:focus {
  outline: none;
}

.price {
  color: #292929;
  font-size: 16px !important;
  font-weight: 400;
  font-family: ggsm;
  text-align: right;
  width: 100%;
  display: inline-block;
  padding-right: 20px;
}
.old-price {
  text-decoration: line-through;
}
#cart-total {
  width: 100%;
  padding: 10px 15px;
  background-color: #005C29;
  position: fixed;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cart-total-left {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 300px;
  color: #fff;
}

.cart-total-icon {
  position: relative;
  transform: translateY(3px) scale(1.1);
}

#cart-total-price {
  font-size: 1.5rem;
  font-family: ggsm;
}

#button-footer-menu-quantity {
  position: absolute;
  top: -4px;
  right: -10px;
  background-color: red;
  padding: 1px 3px;
  border-radius: 5px;
  min-width: 1.3rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1;
}

.cart-total-right {
  width: 300px;
}

#checkout-button {
  border-radius: 8px;
  background: #ec870e;
  padding: 10px;
  text-transform: uppercase;
  font-weight: 400;
  font-family: ggsm;
  width: 100%;
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.1s ease-in-out;
}

#checkout-button:hover {
  background: rgb(242, 148, 32);
}

#checkout-button.disabled {
  pointer-events: none;
  opacity: 0.6;
  background: gray;
}

.not-found {
  margin-bottom: 50px;
}

#manufacturer-loader .skeleton-card,
#category-loader .skeleton-card {
  height: 25px;
  width: calc(100% - 20px);
  margin: 10px auto;
  border-radius: 5px;
}

#loader .skeleton-card {
  height: 55px;
  width: calc(100% - 20px);
  margin: 10px auto;
}

#version {
  color: #fff;
  margin-right: auto;
  font-weight: bolder;
}

.active,
.collapsible:hover {
  background-color: #555;
}

.more-content {
  padding: 5px 5px;
  border-radius: 10px;
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
}

.more-content ul {
  display: flex;
  margin-left: 5px;
  flex-direction: column;
  gap: 4px;
}

.more-content li {
  display: inline-flex;
  gap: 5px;
  font-size: 12px;
}

.more-content li p {
  font-size: 12px;
}

.product-info {
  width: 550px;
  /* height: 100%; */
  /* text-align: center; */
}


.product-name {
  display: flex;
  align-items: center;
  height: 100%;
}

.card {
  width: 650px;
  position: absolute;
  background: white;
  margin: 0 auto;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  transition: all 0.3s;
  border-radius: 15px;

  /* width */
  ::-webkit-scrollbar {
    width: 6px;
    height: 10px;
  }

  /* Track */
  ::-webkit-scrollbar-track {
    background: white;
    border-radius: 20px;
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #cfcbcb;
    transition: 0.1s ease-in-out;
    border-radius: 20px;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #cfcbcb;
  }
}

.card:hover {
  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.card .photo {
  width: 45%;
  text-align: center;
}

.card .photo img {
  max-height: 240px;
}

.card .description {
  padding: 25px 30px 21px 24px;
  float: left;
  width: 55%;
  border-left: 2px solid #efefef;
}

.card .description h1 {
  color: #515151;
  font-weight: 300;
  padding-top: 8px;
  margin: 0;
  font-size: 26px;
}

.card .description h2 {
  color: black;
  margin: 0;
  text-transform: uppercase;
  font-weight: 550;
}

.card .description h4 {
  margin: 0;
  color: #727272;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 12px;
}

.card .description p,
.card .description li {
  font-size: 11px;
  color: #727272;
  margin-left: 5px;
  line-height: normal;
}

.card .description button {
  outline: 0;
  border: 0;
  background: none;
  border: 1px solid '#d9d9d'
}

.card .description ul {
  margin-top: 15px;
  margin-left: 15px;
}

.description-contrain {
  display: block;
  gap: 20px;
  margin-top: 10px;
  overflow-y: auto;
  max-height: 400px;
  scroll-snap-type: y mandatory;
  scroll-snap-align: start;
  scroll-margin: 20px;
}

.description-contrain .description-title {
  color: #000;
  font-weight: 400;
  font-size: 12px;
  background: #e6e6e6;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 4px;
}

.description-wrapper {
  display: inline-block;
}

.description-wrapper:nth-child(2) {
  margin-top: 15px;
}

.description-wrapper p {
  font-size: 12px;
  margin-left: 3px;
}

.description-title-box {
  max-height: 160px;
}

.product-volume-wrapper {
  margin-top: 3px;
}

.product-volume-wrapper span {
  color: #797979;
  font-size: 11px;
}

.close {
  cursor: pointer;
}

.close:after,
.close:before {
  content: "";
  height: 15px;
  width: 16px;
  border-top: 1px solid #dc362e;
  position: absolute;
  top: 14px;
  right: 3px;
  transform: rotate(-45deg);
}

.close:before {
  right: 13px;
  transform: rotate(45deg);
}

.close:hover {
  opacity: 0.3;
}

.accordion {
  border-top: 6px solid #005C29;
  line-height: 1.6;
}

.accordion__item {
  border-bottom: 1px solid #dce7eb;
}

.accordion__title {
  padding: 10px 15px 10px 30px;
  display: block;
  position: relative;
  font-weight: 400;
}

.accordion__title:before {
  font-family: FontAwesome;
  content: "+";
  font-size: 20px;
  position: absolute;
  left: 15px;
  top: 0px;
  color: #005C29;
}

.accordion__title h5 {
  border-bottom: 1px solid #fefffa;
  display: inline-block;
}

.accordion__title:hover,
.accordion__title:focus {
  cursor: pointer;
  outline: none;
}

.accordion__title:hover h5,
.accordion__title:focus h5 {
  border-bottom-color: #a8bdc4;
  display: inline-block;
}

.is-expanded .accordion__title:before {
  content: "-";
}

.accordion__content-inner {
  padding: 0 40px 10px 40px;
}

.accordion__content {
  transition: height 0.3s ease-out;
  height: 0;
  overflow: hidden;
}

.is-expanded .accordion__title p {
  color: #005C29;
}

.product-name-title {
  font-size: 15px;
  word-wrap: normal;
  text-align: left;
  text-transform: uppercase;
  font-weight: 600;
  word-spacing: 2px;
}

.expired-date-tag {
  border-radius: 4px;
  border: 1px solid;
  font-weight: 500;
  font-size: 10px;
  display: inline-flex;
  line-height: 12px;
  vertical-align: top;
  cursor: pointer;
  padding: 3px 4px;
  align-items: center;
  border-color: rgb(255, 244, 239);
  color: rgb(212, 50, 59);
  background-color: rgb(255, 244, 239);
  margin-bottom: 3px;
}

.product-vouchers {
  margin-top: 5px;
  flex-direction: column;
  display: flex;
  gap: 9px;
  max-width: 550px;
}

.vouchers-box, .gift-box  {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
}

.vouchers-box {
  background: rgba(9, 136, 77, 0.10);
}

.gift-box {
  background: #FFE9EE;
}

.vouchers-box img {
  height: 13px;
}

.gift-box img {
  height: 16px;
}

.voucher-wrapper span,
.gift-wrapper span
 {
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
}

.voucher-wrapper {
  color: #005C29;
}

.gift-wrapper {
  color: #F95670;
}

.voucher-wrapper, 
.gift-wrapper {
  display: flex;
  flex-flow: column wrap;
  gap: 5px;
}

.voucher-wrapper span.dot {
  font-size: 26px;
  line-height: 11px;
}

.gift-wrapper span.dot {
  font-size: 26px;
  line-height: 11px;
}

.voucher-name,
.gift-name {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

@media (max-width: 1200px) {
  .cart-quantity-input {
    width: 60px;
  }

  .btn-quantity {
    width: 35px;
  }

  .product-info h5,
  .price {
    min-width: 200px;
    /* display: inline-block; */
  }

  .product-volume span {
    font-size: 12px;
  }

  header nav a {
    font-size: 1.1rem;
    margin-left: 10px;
  }

  .description-contrain {
    max-height: 400px;
  }

}

@media (max-width: 1200px) {
  .product-inner {
    grid-template-columns: 1fr 6fr 2fr 3fr 150px;
  }
}

@media (max-width: 868px) {
  .pagination {
    position: fixed;
    bottom: 50px;
    width: 100%;
    left: 0;
  }

  .card {
    width: calc(100% - 15px);
    height: auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .card .photo img {
    max-height: 140px;
  }

  .card .description {
    padding: 18px 23px 17px 10px;
    width: 100%;
  }

  .card .photo {
    width: 35%;
  }

  .description-contrain {
    max-height: 220px;
  }

  .close:after,
  .close:before {
    height: 11px;
    width: 12px;

    top: 12px;
    right: 3px;
    transform: rotate(-45deg);
  }

  .close:before {
    right: 10px;
    transform: rotate(45deg);
  }

  .out-of-stock {
    text-align: right;
  }

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

  header {
    justify-content: space-between;
    gap: 15px;
    padding: 0;
  }

  header a img {
    width: 110px;
  }

  header nav a {
    flex-direction: column;
    gap: 5px;
  }

  header nav a span {
    color: black;
    font-size: 10px;
    margin-top: 0;
  }

  #cart-total {
    display: flex;
    justify-content: space-between;
    padding: 7px 10px;
  }

  #version {
    display: none;
  }

  .cart-total-left {
    gap: 15px;
    width: 190px;
  }

  .cart-total-right {
    width: auto;
    min-width: 110px;
    margin-left: auto;
  }

  #checkout-button {
    font-size: 1.2rem;
    padding: 8px 12px;
  }

  #cart-total-price {
    font-size: 1.2rem;
  }

  .cart-total-icon {
    transform: scale(0.9) translateY(4px);
  }

  .product-inner {
    grid-template-rows: auto 1fr 1fr;
    grid-template-columns: 1fr 1fr 5fr;
    column-gap: 10px;
  }

  .price {
    text-align: left;
    padding-right: 0;
  }

  .img-wrapper {
    grid-row: 1/3;
  }

  .product-info {
    grid-column: 2/4;
    min-width: 110px;
    max-width: 200px;
  }

  .product-volume {
    grid-column: 2/4;
  }

  .product-price {
    grid-column: 1/3;
    padding-left: 10px;
  }

  .product-info h5 {
    line-height: initial;
  }

  .product-quantity-wrapper {
    justify-content: flex-end;
  }

  #product-list {
    max-height: calc(100vh - 220px);
  }

  .header-wrapper {
    background-color: #fff;
    padding: 10px;
  }

  #manufacturer-select {
    border-radius: 40px;
    padding: 5px 15px;
    width: 100%;
    border: 1px solid #ccc;
    margin-top: 10px;
  }

  #loader .skeleton-card {
    height: 120px;
  }
}

@media (max-width: 320px) {
  /* Styling for small screens */
  .card {
    height: calc(100% - 150px);
  }
}