/* CSS reset */
body{margin:0;padding:0;}html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, font, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td, input, button,textarea{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}ol, ul{list-style:none;}a{text-decoration:none;}hr,br{clear:both;}blockquote, q{quotes:none;}blockquote:before, blockquote:after,q:before, q:after{content:'';content:none;}:focus{outline:0;}ins{text-decoration:none;}del{text-decoration:line-through;}table{border-collapse:collapse;border-spacing:0;}input, button, textarea, select{*font-size:100%;}body{line-height:180%;}ol, ul, li{list-style:none;}:link,:visited , ins{text-decoration:none;}blockquote:before, blockquote:after,q:before, q:after{content:'';content:none;} section, article, aside, footer, header, nav, main{display:block;}*,*::before,*::after{-moz-box-sizing:border-box;box-sizing:border-box;}
body{font-family:"Arial","Microsoft Jhenghei", "微軟正黑體",sans-serif;font-size: 14px;color: #555555;}
.clear{clear: both;}.clear:before, .clear:after {content:""; display:table; clear:both;} 
/*=======主內容=======*/
.main-body{
  min-height: 500px;
  background-position: center top;
  background-repeat: repeat;
  background-size: 100%; 
}
.main-content{
  margin-top: 30px;
  padding-top: 40px;
}
/*=======主內容=======*/
/*標題*/
.title-block {
  position: relative;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  margin-top: 10px;
}
.title-block h2{
  margin-left: 5px;
}
.title-block .more-link{
  font-size: 1rem;
  color: #5d5d5d;
  margin-left: auto;
  margin-right: 80px;
}
.title-nav{
  display: flex;
  clear: both;
}
.title-block::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 30px;
  position: absolute;
  top: -2px;
  left: -5px;
}
.more-products-link .more-link{
  display: block;
  font-size: 1rem;
  text-align: right;
  color: #5d5d5d;
  font-weight: 500;
  margin-left: auto;
  margin-top: -20px;
}
.modal{
  height: 100vh;
  display: grid;
  place-items: center;
}
.modal-link a{
  display: block;
  font-size: 1rem;
  cursor: pointer;
}
.modal-container{
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, .6);
  width: 100%;
  height: 100%;
  display: grid;
  align-items: flex-end; /* 將 align-items 設置為 flex-end */
  overflow: hidden;
  transition: all .3s;
  z-index: 99;
  visibility: hidden;
  opacity: 0;
}

.modal-content{
  position: relative;
  background-color: #ffffff;
  text-align: left;
  padding: 2rem 2rem 2rem;
  border-radius: 1rem 1rem 0 0;
  transition: all .3s;

  /*=== Effect 1 ===*/
  transform: translateY(10%);
  margin: auto;
  width: 600px;
  max-height: 500px;
  overflow: auto;
  border-radius: 1.25rem;
  scrollbar-width: thin; /* 讓滾動條變細 */
  scrollbar-color: #999999 #f0f0f0; /* 設置滾動條的顏色 */
}

/* 自定義滾動條的軌道 */
.modal-content::-webkit-scrollbar {
  width: 5px; /* 設置滾動條的寬度 */
}
.modal-content::-webkit-scrollbar-track {
  background-color: transparent; /* 設置滾動條軌道的背景色，這裡設置為透明 */
}
/* 自定義滾動條的滾輪部分 */
.modal-content::-webkit-scrollbar-thumb {
  background-color: #999999; /* 設置滾動條的顏色 */
  border-radius: 10px; /* 設置滾動條的圓角 */

}
.modal-close {
  display: inline-flex;
  border-radius: .25rem;
  font-size: 1.5rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
}

.modal-title{
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.modal-description{
  margin-bottom: 1.5rem;
  font-size: 1rem;
}


/* Show modal */
.show-modal{
  visibility: visible;
  opacity: 1;
}

.show-modal .modal-content{
  /*=== Effect 1 ===*/
  transform: translateY(0);

  /*=== Effect 2 ===*/
  /* transform: scale(1) translateY(0); */

  /*=== Effect 3 ===*/
  /* transform: rotateX(0) scale(1) translateY(0); */
}
/*右側社群浮動*/
.mediabuttons {
  position: fixed;
  z-index: 9999999;
  bottom: 36px;
  right: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mediabuttons-item{
  margin-bottom: 3px;
}
.mediabuttons-item  img {
  width: 40px;
  height: 40px;
}

.cart-bubble{
    position: relative;
    top: -57px;
    left: 23px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    height: 32px;
    width: 25px;
    line-height: 32px;
    background-image: url(../img/common/bg-bubble.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
/* 增加媒體查詢，當螢幕寬度小於768px時切換到手機版 */
@media screen and (max-width: 768px) {
  .title-block{
   margin-top: 20px;
  }
  .wrapper {
    width: 100%;
  }
  .title-block {
    margin-left: 5%;
    font-size: 1.2rem;
  }
  .title-block .more-link{
    margin-right: 10px;
  }
  .more-products-link .more-link{
    margin-right: 10px;
  }
  .modal-content{
    width: 100%;
  }
  /*右側社群-浮動選單*/
  .mediabuttons{
    right: 3% !important;
    top: 70% !important;
  }
  .mediabuttons-item{
    margin-bottom: 0px;
  }
  .cart-bubble{
    height: 35px;
    width: 21px;
  }
  .main-content{
    padding-top: 30px !important;
  }
}
@media screen and (max-width: 390px){
  .mediabuttons {
      top: 69% !important;
  }
  }
@media screen and (max-width: 375px){
.mediabuttons {
    top: 60% !important;
}
}