@font-face {
  font-family: MHeiHK;
  src: url(../fonts/MHeiHK-Light.woff2) format("woff2"),
    url(../fonts/MHeiHK-Light.woff) format("woff"),
    url(../fonts/MHeiHK-Light.ttf) format("ttf");
  font-weight: 100;
}

@font-face {
  font-family: MHeiHK;
  src: url(../fonts/MHeiHK-Medium.woff2) format("woff2"),
    url(../fonts/MHeiHK-Medium.woff) format("woff"),
    url(../fonts/MHeiHK-Medium.ttf) format("ttf");
  font-weight: 500;
}

@font-face {
  font-family: MHeiHK;
  src: url(../fonts/MHeiHK-Bold.woff2) format("woff2"),
    url(../fonts/MHeiHK-Bold.woff) format("woff"),
    url(../fonts/MHeiHK-Bold.ttf) format("ttf");
  font-weight: 600;
}

@font-face {
  font-family: MHeiHK;
  src: url(../fonts/MHeiHK-Xbold.woff2) format("woff2"),
    url(../fonts/MHeiHK-Xbold.woff) format("woff"),
    url(../fonts/MHeiHK-Xbold.ttf) format("ttf");
  font-weight: 800;
}

@font-face {
  font-family: W7;
  src: url(../fonts/華康方圓體W7.woff2) format("woff2"),
    url(../fonts/華康方圓體W7.woff) format("woff"),
    url(../fonts/華康方圓體W7.ttf) format("ttf");
  font-weight: normal;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: MHeiHK !important;
  font-size: 15px;
  overflow-x: hidden;
}

button {
  border: none;
  font-weight: 500;
  font-size: inherit;
  font-family: MHeiHK !important;
}

img {
  image-rendering: -webkit-optimize-contrast;
  width: auto;
  max-width: 100%;
  height: auto;
}

a{
  color:#fff;
}

a:hover{
  text-decoration: none;
}

#container{
  width: 100%;
  position:relative;
}
.popWrap{
  display: none;
  width:100%;
  padding: 20px;
  box-sizing: border-box;
  position: absolute;
  z-index: 1000;
  min-height: 100%;
}
.popWrap#accessQR{
  position: fixed;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.6);

}
.popWrap .popup2 {
  display: flex;
  margin: auto;
  position: relative;
  justify-content: center;
}
.popWrap .popup2 img{
  max-height: 100vh;
  object-fit: contain;
}
.popWrap .popup2 .closeBtn{
  left: 94%;
  top: 9%;
  transform: translate(-50%, -50%);
}
.popWrap .popup {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.9);
  width: auto;
  max-width: 1000px;
  border: 5px solid #f5181f;
  padding: 50px;
  box-sizing: border-box;
  border-radius: 20px;
  position: relative;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  overflow:auto;
  height: fit-content;
  margin: auto;
  max-height: 100%;
}
.popWrap .popHeader{
  display: flex;
  gap:5%;
}
.popWrap .popHeader .left{
  gap: 20px;
  display: flex;
  flex-direction: column;
}
.popWrap .popHeader .right{
  position: relative;
}
.popWrap .popHeader .right .soldTxt{
  position: absolute;
  width: 75%;
  text-align: center;
  font-size: clamp(0px, calc((100vw - 150px)*0.021), 18px); 
  font-style: italic;
  display: flex;
  line-height: 1em;
  justify-content: left;
  margin-left: 5%;
  top: 24%;
  color:#019b9b;
}
.popWrap .popHeader .right .soldTxt p{
  margin: 0;
  margin-top: auto;
}
.popWrap .popHeader .right #totalSold{
  position: relative;
  font-size: clamp(0px, calc((100vw - 150px)*0.04), 35px); ;
  color: #f5181f;
  font-style: italic;
  font-weight: bold;
  margin: auto 0;
  padding: 0 5px;
}

.popWrap .closeBtn{
  width:40px;
  position: absolute;
  right:5px;
  top:5px;
  cursor: pointer;
}
.popWrap .slogan{
  display: flex;
}
.popWrap .slogan img{
  margin: auto 0;
}

.popWrap .slogan .txt{
  display: flex;
  margin: auto 15px;
  flex-wrap: wrap;
}
.popWrap .slogan h2{
  color:#91c845;
  margin: 0;
}
.popTxt{
  display: flex;
  flex-direction: column;
  gap: 1.5em
}
.popWrap h1{
  margin: 0;
  font-size: 22px;
  line-height: 1.2em;
}
.popWrap .popTxt p{
  margin:0;
  font-weight: 600;
}

.top {
  background-image: url(../images/bg-blue.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;
  max-width: 1920px;
  margin: auto;
}

.top>div {
  max-width: 1440px;
  margin: auto;
}

.top .header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.top .header .logo {
  width:100%;
}

.top .header img {
  width: 15%;
  max-width:97px;
}

.top .hero {
  width: 100%;
  display: grid;
  grid-template-columns: 6fr 4fr;
  z-index: 1;
}
@keyframes hero {
  0% {
    transform: translateX(240px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;  }
}
.heroLeft {
  margin-top: -10%;
  display: flex;
  flex-direction: column;
  width:100%;
}

.heroTitle {
  margin-top: 3%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  animation: hero 700ms cubic-bezier(0, 0.3, 0.47, 1.55);
}

.heroTitle img {
  width: auto;
  height: auto;
}

.heroTxt {
  margin-top: 11%;
  font-size: 18px;
  font-weight: 600;
  grid-area: 2 / 1 / span 1 / span 1;
  animation: hero 900ms cubic-bezier(0, 0, 0.67, 2.85);
}

.heroTxt>img {
  max-width: 80%;
}

.heroBottom {
  text-align: center;
  margin: 2% auto;
  display: grid;
  max-width: 130px;
  grid-template-columns: 82fr 48fr;
  cursor: pointer;
}
.heroBottom>img:first-child{
  content:url(../images/btn-more.png);
}
.heroBottom:hover>img:first-child{
  content:url(../images/btn-more-over.png);
}
 
.heroRight {
  margin-top: -5%;
  width: 100%;
  text-align: center;
  grid-area: 1 / 2 / span 2 / span 1;
  animation: hero 500ms cubic-bezier(0, 0, 0.27, 1.55);
}

.heroRight .store {
  margin: auto;
  max-width: 50%;
  position: relative;
  margin-bottom: -10%;
  animation: MoveUpDown 3s ease-in-out infinite;
}
@keyframes MoveUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.heroRight img {
  margin-bottom: -15%;
  width: 80%;
}

.sponsorWrap {
  background-color: #fef200;
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 80px;
  display: flex;
  padding: 0 10px;
  box-sizing: border-box;
  margin: auto;
}
.sponsor {
  max-width: 1440px;
  width: 100%;
  margin: auto;
}
.sponsor img {
  height: auto;
  max-height: 50%;
  width: auto;
  margin: auto 0;
}
.main {
  width: 100%;
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
  max-width: 1920px;
  margin: auto;
/*   padding-top: 4%;
 */  background-image: url(../images/bg-top.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.main .bg-overlay{
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: absolute;
  max-width: none;
  z-index: 0;
}
.main .bg-overlay .bg-1{ 
  display: flex;
  margin-top: min(12vw, 170px);
}

.main .bg-overlay .bg-2{
  height: 100%;
  width:100%;
  background-color:#f5181f;
}

.main>div {
  max-width: 1440px;
  margin: auto;
}

.main .productDetail {
  position: absolute;
  left: 10px;
  top: 40%;
  display: grid;
  grid-template-columns: 82fr 48fr;
  max-width: 130px;
  cursor: pointer;
  opacity: 0;  
}

.main .productDetail img {
  position: relative;
  margin: auto 0;
}

.main .productDetail>img:first-child{
  content:url(../images/btn-product.png);
}
.main .productDetail:hover>img:first-child{
  content:url(../images/btn-product-over.png);
}

.main .product {
  width: 100%;
  position: relative;
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  margin-top: 4%;
}
.main .productImg {
  width: 100%;
}
.main .productImg>img {
  margin: auto;
}
.main .productImg1 {
  position: relative;
  width: 49%;
  top: 11%;
  left: 2%;
  opacity: 0;  
}
.main .productImg2 {
  position: absolute;
  left: 53%;
  top: 0;
  width: 36%;
  opacity: 0;  
}
.main .productImg3 {
  position: absolute;
  top: 21%;
  left: 53%;
  width: 46%;
  opacity: 0;  
}

@keyframes product {
  0% {
    transform: translateX(-240px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;  }
}

/* Always set the map height explicitly to define the size of the div
       * element that contains the map. */
.mapWrapper {
  width: 100%;
  max-width: 1440px;
  height: 60vw;
  min-height: 600px;
  max-height: 768px;
  display: flex;
  flex-direction: row;
  padding: 50px 10px;
  position: relative;
  box-sizing: border-box;
}

/* Styling for an info pane that slides out from the left. 
     * Hidden by default. */
#storeList {
  height: auto;
  width: 45%;
  background-color: white;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  transition: all .2s ease-out;
}

#panel {
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

#storeList #storeFilter {
  width: 100%;
  display: flex;
  background-color: #d7d7d7;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 20px;
  box-sizing: border-box;
}

#storeList #storeFilter div {
  font-size: 16px;
  font-weight: 800;
  width: 4em;
  text-align: center;
  cursor: pointer;
  color: #6d6d6d;
  padding: 5px;
}

#storeList #storeFilter div.active {
  color: #000;
}

#map {
  width: 100%;
  height: 100%;
}

.gm-style {
  font: 400 11px MHeiHK;
}

.place {
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  max-height: 140px;
  box-sizing: border-box;
  transition: all 0.3s ease-out;
}

.place.active {
  background-color: #fff1cf;
}

.place .infoBox {
  padding: 10px 25px 15px 25px;
  border-bottom: 1px solid #d7d7d7;

}

.gm-style-iw-c button span {
  display: none !important;
}

.gm-style-iw-c button::before {
  content: " ";
  background-image: url(../images/btn-close1.png);
  background-size: 30px 30px;
  display: inline-block;
  width: 30px;
  height: 30px;
}

.gm-style-iw-c button.gm-ui-hover-effect {
  opacity: 1;
  top: 5px !important;
  right: 5px !important;
  outline: none;
}

.gm-style-iw-c button:hover::before {
  background-image: url(../images/btn-close2.png);
}

.gm-style-iw-c button img {
  display: none !important;
}

.infoBox {
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.infoBox img {
  display: inline-block;
}

.infoBox .info1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.infoBox .info2,
.infoBox .info3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  gap: 5px;
}

.infoBox .info2 img,
.infoBox .info3 img {
  height: 15px;
  margin: auto 0;
}

.infoBox .info4 {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.infoBox .info4 p {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.infoBox .info4 div {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 100%;
  margin: auto;
}

.infoBox .info4 img {

  width: 80%;
  max-width:160px;
  margin: 10% auto;
}

.infoBox .info4 span {
  color: #f5181f;
}

.footer {
  z-index: 2;
  position: relative;
  background-image: url(../images/bg-footer.jpg);
  padding: 30px;
  background-size: cover;
  background-repeat: no-repeat;
  max-width: 1920px;
  margin: auto;
  box-sizing: border-box;
}

.footer>img {
  display: block;
  margin: auto;
  padding: 10px;
}

.footer .terms {
  width: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.footer .terms p {
  color: white;
  padding: 0 10px;
  margin: 10px 0;
  border-left: 1px solid white;
}

.footer .terms p:first-child {
  border: none;
}
.desk{
  display:block;
}
.mobile{
  display: none;
}
@media only screen and (max-width: 800px) {
  .mobile{
    display: block;
  }
  .desk{
    display: none;
  }  
  .popWrap {
    padding: 10px;
  }
  .popWrap {
    padding: 20px;
  }
  .popWrap .popHeader {
    flex-direction: column;
  }
  .popWrap .popHeader .left{
    gap: 0.5em;;
  }
  .popWrap .popHeader .left img{
    margin: 10px auto;
  }
  .popWrap .popHeader .right{
    margin: 15px 0;
  }
  .popWrap .popHeader .right .soldTxt{
    display: grid;
    grid-template-rows: 1fr 1fr;
    font-size: calc((100vw - 150px) * 0.051);
    line-height: 2em;
    top:5%;
  }
  .popWrap .popHeader .right #totalSold{ 
    font-size: calc((100vw - 150px) * 0.1);
  }
  .popWrap .popHeader .right .soldTxt p:first-child{
    grid-area: 1 / 1 / span 2 / span 2;
    text-align: left;
  }
  .popWrap .slogan {
    flex-direction: column;
    gap: 20px;
  }
  .popWrap .slogan img{
    margin-right:auto;
  }
  .popWrap .slogan .txt{
    margin: 0;
    flex-direction: column;
  }
  .popWrap .slogan h2{
    line-height: 1.2em;
  }
  .top {
    background-image: url(../images/bg-blue-m.jpg);
    padding: 0 20px;
  }
  .top>div {
    max-width: 689px;
  }
  .top .hero{
    display: flex;
    flex-direction: column;
  }
  .heroLeft{
    margin-top: -18%;
    width: 100%;
  }
  .heroRight img{
    width: 100%;
  }
  .heroRight{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: -13%;
  }
  .heroRight .store{
    margin: 30% 0;
    max-width: none;
    right: -13%;
  }
  .heroTxt{
    margin:0
  }
  .heroTxt>img{
    max-width: 100%;
  }
  .heroBottom{
    width: 40%;
    margin-top: 5%;
    margin-bottom: 8%;
    max-width: 444px;
  }
  .sponsorWrap {
    height: auto;
    padding:3%;
  }
  .sponsor{
    width: 70%; 
    max-width: 689px;
  }
  .main{
    background-image: url(../images/bg-top-m.jpg);
    padding-bottom: 0;
  }
  .main>div {  
    max-width: 689px;  
  }
  .main .productImg div{
    position: relative;
    width: 100%;
    left: 0;
    top:0;
  }
  .main .productDetail{
    bottom: 30%;
    top: auto;
    left: 5%;
    display: flex;
    flex-direction: column;
    max-width: 11%;
  }
  .main .bg-overlay .bg-1{ 
    display: flex;
    flex-direction: column;
    margin-top: 86%;
    overflow: hidden;
  }
  .main .mapWrapper{
    padding: 0;
    max-width: 100%;
    height: 80vh;
    max-height: none;
    flex-direction: column;
  }
  #storeList{
    width: 100%;
    position: absolute;
    height:100%;
    opacity: 0;
    display: none;
  }
  #storeList.active{
    opacity: 1;
    display: flex;
  }
  .main .listBtnWrap{
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -10%;
    margin-bottom: 2%;
  }
  #listBtn{
    width: 50%;
    max-width: 300px;
    position: relative;
    cursor: pointer;
  }
  #listCloseBtn{
    position: absolute;
    width: 11%;
    max-width: 69px;
    right:20px;
    display:none;
    cursor:pointer;
  }
  #listCloseBtn.active{
    display:block;
  }
  .footer{
    gap: 10px;
    padding:20px;
    display: flex;
    flex-direction: column;
  }
  .footer .terms{
    display: grid;
    grid-template-columns: auto auto;
  }
  .footer .terms p:last-child{
    border:none;
    grid-area: 2 / 1 / span 1/ span 2;
  }
  .footer .terms p{
    text-align: center;
    margin: 5px;
  }
}