/* common youtube*/

.thumbnail__overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  flex-direction: column;
  height: 210px;
  top: 0px;
  left: 0px;
}

.thumbnail__overlay .thumbnail__img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.thumbnail__overlay .info__box {
  height: 40px;
  width: 100%;
  display: flex;
  background: linear-gradient(to bottom, #949292, #00000000);
  align-items: center;
  padding-top: 10px;
  z-index: 100;
  top: 0;
}
.thumbnail__overlay .info__box div {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: solid 1px transparent;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0px 5px;
}

.thumbnail__overlay .info__box div img {
  width: 100%;
  height: 100%;
}

.thumbnail__overlay .info__box span {
  flex: 1;
  display: inline-block;
  align-items: center;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
}

.thumbnail__overlay .play__box {
  z-index: 100;
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
}

.thumbnail__overlay .play__btn {
  text-indent: -999em;
  width: 45px;
  height: 31px;
  background-image: url(/assets/cm/images/base/youtube_social_icon_red.png);
  background-size: 45px 31px;
}

/* product component */
.product__item {
  cursor: pointer;
  display: flex;
  flex-grow: 1;
  width: 25%;
  height: auto;
  margin-top: 30px;
  max-width: 25%;
  margin-bottom: 20px;
  position: relative;
  flex-direction: column;
}

.product__item .image__box {
  cursor: pointer;
  background-size: cover;
  background-repeat: no-repeat;
  width: 240px;
  height: 240px;
}

.product__item .caption__box {
  cursor: pointer;

  font-family: 'Nanum Gothic Coding', monospace;
  flex: 1;
  margin-top: 10px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 240px;
}

.product__item .caption__box b {
  color: rgb(99, 99, 99);
  font-weight: 900;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: normal;
  width: 100%;
  line-height: 20px;
  height: 20px;
  -webkit-line-clamp: 1;
}

.product__item .caption__box .name {
  margin-top: 5px;
  color: rgb(38, 38, 38);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: normal;
  width: 100%;
  line-height: 20px;
  max-height: 40px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.product__item .caption__box .price__box {
  display: flex;
}

.product__item .caption__box .price__box .salePercent::after {
  content: '%';
  margin-right: 5px;
}

.product__item .caption__box .price__box .price {
  color: #888;
  text-decoration: line-through;
  margin-left: 5px;
}

.product__item .caption__box .price__box .price::after {
  content: '원';
}

.product__item .caption__box .salePrice {
  color: #ae0000;
  font-weight: bold;
  font-size: 20px;
}

.product__item .caption__box .salePrice::after {
  content: '원';
}

@media (min-width: 320px) and (max-width: 480px) {
  /* product component */
  .product__item {
    width: 100%;
    /* padding-top: 20px; */
    padding-bottom: 20px;
    border-bottom: solid 20px #f6f6f6;
    margin-top: 0px;
    max-width: 100%;
    display: flex;
    align-items: center;
  }

  .product__item:first-child {
    margin-top: 20px;
  }

  .product__item.search:first-child {
    margin-top: 0px;
  }

  .product__item:last-child {
    border-bottom: none;
  }

  .product__item .productSwiper__container {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
  }

  .product__item .productSwiper__container .image__box {
    width: 210px;
    height: 210px;
  }

  .product__item .productSwiper__container .swiper-wrapper .swiper-slide {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    height: auto;
  }

  .product__item .pagination__box {
    display: flex;
    height: 25px;
    width: 100%;
  }
  .product__item .caption__box {
    width: 100%;
    padding: 0px 12px;
    font-size: 16px;
    margin-top: 15px;
  }
  .product__item .product__swiper__pagination {
    text-align: center !important;
    position: absolute !important;
    z-index: 10 !important;
    bottom: -40px !important;
  }

  .product__item .swiper-pagination-bullet {
    width: 24px;
    height: 24px;
    background: url(/assets/cm/images/ico/icon_img_basic.png);
    background-size: 24px 24px;
    background-repeat: no-repeat;
    border-radius: 0px !important;
    opacity: 0.2 !important;
  }

  .product__item .swiper-pagination-bullet.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: url(/assets/cm/images/ico/icon_img_mint.png);
    background-size: 24px 24px;
  }

  .product__item .swiper-pagination-bullet.video {
    background: url(/assets/cm/images/ico/icon_video_basic.png);
    background-size: 24px 24px;
    background-repeat: no-repeat;
  }

  .product__item .swiper-pagination-bullet.video.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: url(/assets/cm/images/ico/icon_video_mint.png);
    background-size: 24px 24px;
  }

  /* search */
  .product__item.search {
    display: flex;
    flex-direction: row;
    padding: 10px 12px;
    border-bottom: solid 1px #efefef;
  }
  .product__item.search:last-child {
    border-bottom: none;
  }
  .product__item.search .image__box {
    width: 80px;
    height: 80px;
  }

  .product__item.search .caption__box {
    margin-top: 0px;
    position: relative;
    padding-left: 15px;
  }
  .product__item.search .caption__box .price__box {
    position: relative;
    width: 100%;
    font-size: 14px;
  }
  .product__item.search .caption__box .salePrice {
    font-size: 16px;
  }
}
