.product-img {
  display: block;

  -webkit-object-fit: cover;
  object-fit: cover;
}

.product-thumbs {
  margin: 0 auto;
  margin-top: 10px;
  height: 44px;
}

.product-thumb {
  height: 44px;
  width: 44px;
  display: inline-block;
  float: left;
  margin-left: 4px;
  background: hsla(0,0%,0%,.06);
  opacity: .5;
  cursor: pointer;
}

.product-thumb:hover,
.product-thumb.active {
  opacity: 1;
}

.product-thumb:first-child {
  margin-left: 0;
}

.product-availability {
  margin: 0 0 10px 0;
  padding: 10px;
  border-radius: 6px;
  color: hsl(135,50%,35%);
  background: hsla(135,50%,35%,.09);
}

.qty-container {
  height: 44px;
  border-radius: 22px;
  border: 1px solid hsla(0,0%,0%,.24);
  margin: 10px 0 0 0;
  position: relative;
}

.qty-container button {
  border: none;
  border-radius: 22px;
  height: 44px;
  width: 44px;
  margin: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  position: absolute;
  right: 0;
  top: 0;
}

.qty-container button:first-child {
  left: 0;
  right: auto;
}

.qty-container button[disabled] {
  color: hsla(0,0%,0%,.5);
}

.qty-container input[type=number] {
  padding: 0 44px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  color: inherit;
  height: 44px;
  background: transparent;
  border: none;
  font: inherit;

  -moz-appearance: textfield;

  -webkit-user-select: initial;
  -moz-user-select: initial;
  user-select: initial;
}


::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #767676;
  opacity: 1;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #767676;
  opacity: 1;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #767676;
  opacity: 1;
}
:-moz-placeholder { /* Firefox 18- */
  color: #767676;
  opacity: 1;
}

::placeholder {
  color: #767676;
  opacity: 1;
}


.qty-container input[type=number]::-webkit-inner-spin-button,
.qty-container input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


button.primary {
  font: inherit;
  height: 44px;
  background: #006DFF;
  color: white;
  font-weight: 500;
  border: none;
  border-radius: 22px;
  width: 100%;
  margin: 10px 0;
  cursor: pointer;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

th {
  background: hsl(0,0%,94%);
  text-align: right;
  font-weight: 500;
  border-top: 1px solid white;
}

tr:first-child th {
  border-top: none;
}

td, th {
  padding: 0;
  padding: 10px;
}

td {
  border-top: 1px solid hsl(0,0%,94%);
}

tr:first-child td {
  border-top: none;
}

@media (prefers-color-scheme: dark) {
  .product-thumb {
    background: hsl(0,0%,100%,.15);
  }

  .product-availability {
    color: hsl(135,50%,50%);
    background: hsla(135,50%,50%,.24);
  }

  .qty-container {
    border-color: hsla(0,0%,100%,.24);
  }

  .qty-container button[disabled] {
    color: hsla(0,0%,100%,.5);
  }

  th {
    background: hsl(0,0%,15%);
    border-color: black;
  }

  td {
    border-top: 1px solid hsl(0,0%,15%);
  }
}
