

#menuOverlay{

    position:fixed;

    left:0;
    top:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.6);

    opacity:0;
    visibility:hidden;

    transition:.35s ease;

    z-index:998;
}

#menuOverlay.active{

    opacity:1;
    visibility:visible;
}

#nav{
    z-index:999;
}


.header{
  width:100%;
  background:#fffefd;
  position:relative;
  z-index:999;
}

.header-inner{
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 0px;
    padding-right: 40px;
    padding-left: 40px;
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* =========================
   LOGO
========================= */

.logo{
  flex-shrink:0;
	  display:flex;
  align-items:center;
}

.logo img{
    width: 190px;
    display: block;
    margin-top: 35px;
}

/* =========================
   NAV
========================= */

.nav{
  flex:1;
  display:flex;
  justify-content:center;
}

.menu{
    display: flex;
    align-items: center;
    gap: 68px;
    margin-top: 35px;
}

.menu > li{
  position:relative;
}

.menu > li > a{
  color:#444;
  font-size:18px;
  font-weight:500;
  white-space:nowrap;
  transition:.3s;
}

.menu > li > a:hover{
  opacity:.7;
}

/* =========================
   DROPDOWN
========================= */

.dropdown{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);

  min-width:190px;

  background: rgba(255,255,255,0.9);

  padding:16px 0;

  border-radius:8px;

  box-shadow:0 10px 30px rgba(0,0,0,.08);

  opacity:0;
  visibility:hidden;

  transition:.3s;

  margin-top:20px;
}

.dropdown li{
  width:100%;
}

.dropdown a{
  display:block;
  padding:10px 24px;
  color:#333;
  font-size:18px;
  transition:.3s;
}

.dropdown a:hover{
  background:#444;
	color:#fff;
}

.has-dropdown:hover .dropdown{
  opacity:1;
  visibility:visible;
  margin-top:12px;
}

/* =========================
   RIGHT
========================= */

.header-right{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  flex-shrink:0;
	
}

/* =========================
   LANGUAGE
========================= */

.language{
  display:flex;
  align-items:center;
  gap:12px;
  color:#e60012;
  font-size:15px;
  font-weight:500;	
  white-space:nowrap;
}.language a{

    position:relative;

    color:#e60012;

    transition:.3s;
}

/* 底線 */

.language a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-3px;

    width:0;
    height:1px;

    background:#e60012;

    transition:
    width .35s ease;
}

/* hover */

.language a:hover{

    opacity:.7;
}

.language a:hover::after{

    width:100%;
}
.globe{
  width:32px;
  height:32px;

  border-radius:50%;
  background:#e60012;

  display:flex;
  align-items:center;
  justify-content:center;
}

.globe svg{
  width:16px;
  height:16px;
  fill:#fff;
}

/* =========================
   SHOP BTN
========================= */

.shop-btn{
  width:180px;
  height:50px;

  background:#e60012;

  border-radius:10px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;

  color:#fff;

  font-size:18px;
  font-weight:700;

  transition:.3s;
}

.shop-btn:hover{
  opacity:.7;
}

.shop-icon{
  width:38px;
  height:38px;

  border-radius:50%;
  background:#fff;

  display:flex;
  align-items:center;
  justify-content:center;
}

.shop-icon svg{
  width:22px;
  height:22px;
  fill:#e60012;
}

/* =========================
   MOBILE BTN
========================= */

.menu-toggle{
  display:none;

  width:42px;
  height:42px;

  border:none;
  background:none;

  cursor:pointer;
  position:relative;
}

.menu-toggle span{
  width:28px;
  height:2px;

  background:#333;

  position:absolute;
  left:7px;

  transition:.3s;
}

.menu-toggle span:nth-child(1){
  top:12px;
}

.menu-toggle span:nth-child(2){
  top:20px;
}

.menu-toggle span:nth-child(3){
  top:28px;
}

.menu-toggle.active span:nth-child(1){
  transform:rotate(45deg);
  top:20px;
}

.menu-toggle.active span:nth-child(2){
  opacity:0;
}

.menu-toggle.active span:nth-child(3){
  transform:rotate(-45deg);
  top:20px;
}

/* =========================
   TABLET
========================= */

@media (max-width:1400px){

  .menu{
    gap:42px;
  }

  .menu > li > a{
    font-size:16px;
  }

.dropdown a {
  font-size:16px;
}
}

/* =========================
   MOBILE
========================= */

@media (max-width:1024px){

  .header-inner{
    padding-top: 8px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 8px;
    gap: 16px;
  }

  .logo img{
    width:150px;
	 margin-top: 15px;
  }

  .menu-toggle{
    display:block;
  }

  /* NAV */

  .nav{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fffefd;
    display: none;
    padding-top: 0px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(0,0,0,.06);
  }

  .nav.active{
    display:block;
  }

  .menu{
    flex-direction:column;
    align-items:flex-start;
    gap:0;
  }

  .menu > li{
    width:100%;
    border-bottom:1px solid rgba(0,0,0,.06);
  }

  .menu > li > a{
    display: block;
    width: 100%;
    padding: 18px 0;
    font-size: 20px;
    text-align: center;
  }

  /* DROPDOWN */

  .dropdown{
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    margin-top: 0;
    padding-top: 0;
    padding-right: 0;
    padding-left: 0px;
    padding-bottom: 14px;
    background: none;
  }

  .dropdown a{
    padding: 10px 0;
    font-size: 18px;
    text-align: center;
  }

  /* RIGHT */

  .header-right{
    flex-direction:row;
    align-items:center;
    gap:0px;
    margin-left:auto;
  }

  /* 手機版語言保留 */

  .language{
    display:flex;
    gap:8px;
    font-size:16px;
  }

  .globe{
    width:26px;
    height:26px;
  }

  /* 商城按鈕變 ICON */

  .shop-btn{
    width:54px;
    height:54px;

    border-radius:50%;

    padding:0;
	    background: #fff;
  }

  .shop-btn span{
    display:none;
  }

  .shop-icon{
    width:34px;
    height:34px;
  }

}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width:640px){

  .logo img{
    width:128px;
  }
 .language{
    font-size:16px;
    white-space:nowrap;
    gap:6px;
  }

  .language a:nth-child(4){
    display: block;
  }

	.dropdown a {
    font-size: 18px;
    }
	
}

