.product-item {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 32%;
  margin-right: 2%;
  margin-bottom: 25px;
  aspect-ratio: 1;
  background-color: #FFF;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  overflow: hidden;
}
.product-item:nth-child(3n) {
  margin-right: 0;
}
.product-item .detail {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 12px 0;
  background-color: rgba(77, 85, 77, .5);
  transition: all ease-in-out .2s;
}
.product-item .code {
  color: #FFF;
  font-size: 14px;
  text-align: center;
}
.product-item .name {
  display: none;
  margin-top: 5px;
  color: #FFF;
  font-size: 16px;
  text-align: center;
}
.product-item .status {
  display: none;
  margin-top: 5px;
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.product-item:hover .name,
.product-item:hover .status {
  display: inline-block;
}
.product-item .badge {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px; 
  font-weight: bold;
  background-color: #CCC;
  -webkit-transform: rotate(45deg);
}
.product-item .badge span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #2e2e2e;
  font-size: 14px;
  text-align: center;
}

/*
table{
  width: 100%;
  margin-left: 20px;
}
table th{
  font-size: 12px;
  font-weight: normal;
  letter-spacing: normal;
  border-bottom: 1px solid #4d554d;
  line-height: 20px;
}
table tr{
  border-bottom: 1px solid #4d554d;
  line-height: 40px;
  color: #4d554d;
}
table td {
  text-align: center;
  font-size: 12px;
  letter-spacing: normal;
  margin-bottom: 10px;
  color: #4d554d;
}
table td .view {
  display: inline-block;
  width: 45px;
  height: 45px;
  background-image: url('/image/icon-view.png');
  background-size: 18px auto;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
*/

.product-modal {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}
.product-modal .modal {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  padding: 60px 60px;
  background-color: rgba(77, 85, 77, .5);
  border-radius: 15px;
  overflow-y: auto;
}
.product-modal .modal .exit {
  display: inline-block;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background-image: url('/image/icon-cross-white.png');
  background-size: auto 24px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.product-modal .modal .col {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: auto;
}
.product-modal .modal .col.main {
  flex-direction: row;
  flex-grow: 1;
  justify-content: center;
  align-items: flex-start;
  width: auto;
  height: 100%;
  margin-left: 45px;
}
.product-modal .modal .scanbox {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 240px;
  margin-bottom: 45px;
  color: #FFF;
  font-size: 24px;
  border: 2px dashed #FFF;
  cursor: pointer;
}
.product-modal .modal .thumbnail {
  display: inline-block;
  width: 320px;
  height: 320px;
  background-color: #FFF;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.product-modal .modal .detail {
  display: inline-flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 30px;
}
.product-modal .modal .detail .row {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-bottom: 25px;
  color: #FFF;
  font-size: 14px;
  text-align: left;
}
.product-modal .modal button {
  width: auto;
  height: auto;
  padding: .4em 1.5em;
  color: #4d554d;
  font-size: 14px;
  background-color: #FFF;
  border-radius: 15px;
  cursor: pointer;
  transition: all ease-in-out .2s;
}
.product-modal .modal button.load {
  color: rgba(255, 255, 255, 0);
  background-image: url('/image/load.gif');
  background-size: auto 16px;
  background-position: center;
  background-repeat: no-repeat;
}


/*
*   old styles
*/

.product-row {
  display: inline-flex;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}
.product-row .checkbox {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 15px;
  background-size: auto 12px;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #000;
  cursor: pointer;
}
.product-row .checkbox.checked {
  background-image: url('/image/icon-checked.png');
}
.product-row .thumbnail {
  width: 240px;
  height: 160px;
  background-color: #FFF;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.product-row .detail {
  flex: 1;
  padding: 0 20px
}
.product-row .name {
  color: #000;
  font-size: 14px;
  text-align: left;
}
.product-row .description {
  margin-top: 10px;
  color: #000;
  font-size: 12px;
  text-align: left;
}
.product-row .detail button {
  margin-top: 10px;
}
.product-row .field {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  width: 180px;
  margin-left: 20px;
}
.product-row .field.long {
  width: 320px;
}
.product-row .field .form-title {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.product-row .field input {
  width: 100%;
  height: 40px;
  margin-bottom: 15px;
}
.product-row textarea {
  flex: 1;
  align-self: stretch;
  width: 100%;
}

.product-thumb {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  align-self: stretch;
  position: relative;
  width: 240px;
  margin-right: 20px;
  margin-bottom: 25px;
  overflow: hidden;
}
.product-thumb .thumbnail {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 240px;
  background-color: #FFF;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.product-thumb .thumbnail img,
.product-thumb .thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-thumb .thumbnail .slides {
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}
.product-thumb .thumbnail .slide {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  white-space: normal;
}
.product-thumb .thumbnail .arrow {
  display: inline-block;
  position: absolute;
  z-index: 10;
  top: calc(50% - 30px);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, .4);
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  cursor: pointer;
  transition: opacity ease-in-out .2s;
}
.product-thumb .thumbnail:hover .arrow {
  opacity: 1;
}
.product-thumb .thumbnail .arrow.left {
  left: 0px;
  background-image: url("/image/icon-arrow-left.png");
}
.product-thumb .thumbnail .arrow.right {
  right: 0px;
  background-image: url("/image/icon-arrow-right.png");
}
.product-thumb .detail {
  display: inline-flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding-top: 20px;
}
.product-thumb .detail .name {
  line-height: 1.5em;
  font-size: 14px;
} 
.product-thumb .attr {
  min-height: 1.5em;
  line-height: 1.5em;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 1px;
}
.product-thumb .detail .description {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 1px;
}
.product-thumb .detail button {
  margin-top: 15px;
  padding: 5px 15px;
}
.product-thumb .badge {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px; 
  font-weight: bold;
  background-color: #CCC;
  -webkit-transform: rotate(45deg);
}
.product-thumb .badge span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #2e2e2e;
  font-size: 14px;
  text-align: center;
}

.showroom-item {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}
.showroom-item img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
}
.showroom-item a {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Smartphones (portrait) */
@media only screen and (max-width: 480px) {

}

/* Smartphones (Landscape) / Tablet (portrait) */
@media only screen and (min-width: 481px) and (max-width: 800px) {}

/* Tablet (Landscape) */
@media only screen and (min-width: 801px) and (max-width: 1200px) {}

/* Laptop */
@media only screen and (min-width: 1201px) and (max-width: 1600px) {
  .product-thumb {
    width: 240px;
    margin-right: 20px;
    margin-bottom: 20px;
  }
  .product-thumb .thumbnail {
    height: 240px;
  }
}
/* Desktop */
@media only screen and (min-width: 1601px) {
  .product-thumb {
    width: 280px;
    margin-bottom: 25px;
  }
  .product-thumb .thumbnail {
    height: 280px;
  }
}