/*字體*/
@import url("https://fonts.googleapis.com/css2?family=Niconne&display=swap");

/*動畫*/
@-webkit-keyframes slideleft {
  from {
    -webkit-transform: translateX(-30px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateX(0px);
    opacity: 1;
  }
}
@keyframes slideleft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0px);
    opacity: 1;
  }
}
@-moz-keyframes slideleft {
  from {
    -moz-transform: translateX(-30px);
    opacity: 0;
  }
  to {
    -moz-transform: translateX(0px);
    opacity: 1;
  }
}

@-webkit-keyframes zoom {
  from {
    -webkit-transform: scale(0.9);
    opacity: 0;
    visibility: hidden;
  }
  to {
    -webkit-transform: scale(1);
    opacity: 1;
    visibility: visible;
  }
}
@keyframes zoom {
  from {
    transform: scale(0.9);
    opacity: 0;
    visibility: hidden;
  }
  to {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
  }
}
@-moz-keyframes zoom {
  from {
    -moz-transform: scale(0.9);
    opacity: 0;
  }
  to {
    -moz-transform: scale(1);
    opacity: 1;
  }
}

/*排版*/
.meus_pyPopularproduct {
  width: 100%;
  float: left;
  background-size: cover;
  padding: 100px 0px;
  position: relative;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
}

.meus_pyPopularproduct .meMsg_MsgMainTd {
  max-width: 1440px;
}

.meus_pyPopularproduct .meMsg_MsgList {
  width: 100%;
  float: left;
  padding-top: 40px;
  position: relative;
  z-index: 1;
  padding-right: 5%;
  padding-left: 5%;
}

.meus_pyPopularproduct .meMsg_MsgList .meMsg_MsgListBlk {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--bs-gutter-y) * -1);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-left: calc(var(--bs-gutter-x) * -0.5);
}

.meus_pyPopularproduct .meMsg_MsgList .meMsg_MsgTitle {
  flex: 0 0 auto;
  width: 25%;
}

.meus_pyPopularproduct .meMsg_MsgList .meMsg_MsgTitle img {
    width: 99%;
    float: left;
    margin: 0px 5px 5px 0px;
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    object-fit: cover;
}

.meus_pyPopularproduct .product-holder {
  overflow: hidden;
  width: 240px;
  background-color: #fff;
  position: absolute;
  z-index: 1;
  top: 125px;
  right: -100%;
  padding: 25px 12px 25px 15px;
  transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
}

.meus_pyPopularproduct .meMsg_MsgList .meMsg_MsgTitle:hover .product-holder {
  right: 3px;
}

.meus_pyPopularproduct .img-animate:after {
  display: block;
  content: "";
}

.meus_pyPopularproduct .img-animate {
  width: 100%;
  float: left;
  margin: 0px 5px 5px 0px;
  position: relative;
  overflow: hidden;
  visibility: visible;
  animation-name: slideleft;
  animation: slideleft var(--PdSpeed) 1;
}

.meus_pyPopularproduct .product-holder .meMsg_ItemTitle {
  color: var(--PdColor);
  font-size: 18px;
  text-transform: capitalize;
  cursor: pointer;
}

.meus_pyPopularproduct .product-holder .meMsg_ItemContent {
  font-size: 20px;
  color: var(--PdColor);
  width: 100%;
  float: left;
  margin-top: 5px;
  font-size: 18px;
  font-weight: bold;
}

/*標題*/
.meus_pyPopularproduct .meMsg_MsgMainTd .meMsg_MsgBlk .meMsg_MsgTitle {
  width: 100%;
  float: left;
  font-size: 25px;
  color: var(--PdTitleColor1);
  font-family: "Niconne", cursive;
  text-align: center;
  font-weight: 200;
}

/*副標題*/
.meus_pyPopularproduct .meMsg_MsgMainTd .meMsg_MsgBlk .meMsg_MsgSubTitle {
  width: 100%;
  float: left;
  color: var(--PdTitleColor2);
  margin: 0px;
  padding: 5px 0px 1px;
  text-transform: capitalize;
  font-size: 32px;
  font-family: Abril Fatface;
  font-weight: 500;
  line-height: 1.1;
  padding-bottom: 15px;
}

/*border*/
.meus_pyPopularproduct .pd_border {
  width: 53px;
  background-color: var(--PdTitleColor1);
  height: 1px;
  display: inline-block;
}

.meus_pyPopularproduct .meMsg_MsgBlk {
  visibility: visible;
  animation-name: zoom;
  width: 100%;
  float: left;
  text-align: center;
  z-index: 10;
  position: relative;
  animation: zoom 1 var(--PdSpeed) alternate;
}

/*按鈕*/
.meus_pyPopularproduct .button_hoder {
  width: 100%;
  overflow: hidden;
  float: left;
  text-align: center;
  z-index: 10;
  position: relative;
  padding-top: 40px;
  visibility: visible;
  animation-name: zoom;
  animation: zoom 1 var(--PdSpeed) alternate;
}

.meus_pyPopularproduct .product_button {
  display: inline-block;
  padding: 15px 25px;
  font-size: 16px;
  color: var(--PdbuttomColor);
  background: var(--PdbuttomBgColor);
}

.meus_pyPopularproduct .product_button:hover {
  background: var(--PdSlickbuttomBgColor);
  color: var(--PdSlickbuttomColor);
  cursor: pointer;
}

/*反選*/

.meus_pyPopularproduct
  .meMsg_MsgMainTd
  .meMsg_MsgBlk
  .meMsg_MsgTitle::selection {
  background: var(--PdSelectBgColor);
  color: var(--PdSelectColor);
  text-shadow: none;
}

.meus_pyPopularproduct
  .meMsg_MsgMainTd
  .meMsg_MsgBlk
  .meMsg_MsgSubTitle::selection {
  background: var(--PdSelectBgColor);
  color: var(--PdSelectColor);
  text-shadow: none;
}

.meus_pyPopularproduct .meMsg_MsgList .meMsg_MsgTitle img::selection {
  background: var(--PdSelectBgColor);
  color: var(--PdSelectColor);
  text-shadow: none;
}

.meus_pyPopularproduct .product-holder .meMsg_ItemTitle::selection {
  background: var(--PdSelectBgColor);
  color: var(--PdSelectColor);
  text-shadow: none;
}

.meus_pyPopularproduct .product-holder .meMsg_ItemContent::selection {
  background: var(--PdSelectBgColor);
  color: var(--PdSelectColor);
  text-shadow: none;
}

.meus_pyPopularproduct .product_button:hover::selection {
  background: var(--PdSelectBgColor);
  color: var(--PdSelectColor);
  text-shadow: none;
}

/*手機板*/
@media (max-width: 992px) {
  .meus_pyPopularproduct .meMsg_MsgList .meMsg_MsgTitle {
    flex: 0 0 auto;
    width: 25%;
  }
}

@media (max-width: 860px) {
  .meus_pyPopularproduct .meMsg_MsgList .meMsg_MsgTitle {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (max-width: 576px) {
  .meus_pyPopularproduct .meMsg_MsgList .meMsg_MsgTitle {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .meus_pyPopularproduct .product-holder {
    width: 200px;
    top: 100px;
  }
}
