/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 2rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);
  --main-blue:#244159;
  --sec-blue:#73c7e3;
  --gary-bg:#fcfcfc;
  --old-price-color:#878787;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Noto Sans TC", sans-serif;
  --h1-font-size: 1.5rem;
  --nav-font-size: .938rem;
  --normal-font-size: 1.3rem;
   --old-price-size:1.1rem;
   --h2-font-size:2.5rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}



/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --nav-font-size: 1.1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  letter-spacing: 0.1rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--body-font);
  font-size: var(--nav-font-size);
  background-color: var(--white-color);
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--main-blue);
  z-index: var(--z-fixed);
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--white-color);
  font-weight: var(--font-medium);
  width: 4rem;
}

.nav__close,
.nav__toggle {
  display: flex;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav__social {
  column-gap: 1rem;
}

.nav__social-link {
  color: var(--white-color);
  font-size: var(--nav-font-size);
  transition: transform .4s;
  background-color: var(--sec-blue);
  border-radius: 5rem;
  padding: .5rem .7rem;
  border: none;
  cursor: pointer;

}

.nav__social-link:hover {
  transform: translateY(-.25rem);
}

.nav__social-link a {
    color: var(--white-color);
}

.nav_icon{
  color: var(--white-color);
  font-weight: var(--font-medium);
  width: 1rem;
  margin-right: 0.2rem;

}

/* Navigation for mobile devices */
@media screen and (max-width: 768px) {
  .nav{
    height: 5rem;
  }

  .nav__menu {
    position: fixed;
    left: -100%;
    top: 0;
    background-color: var(--main-blue);
    width: 100%;
    height: 100%;
    padding: 6rem 3.5rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left .4s;
  }

  .nav__item {
    transform: translateX(-150px);
    visibility: hidden;
    transition: transform .4s ease-out, visibility .4s;
  }

  .nav__item:nth-child(1) {
    transition-delay: .1s;
  }
  .nav__item:nth-child(2) {
    transition-delay: .2s;
  }
  .nav__item:nth-child(3) {
    transition-delay: .3s;
  }
  .nav__item:nth-child(4) {
    transition-delay: .4s;
  }
  .nav__item:nth-child(5) {
    transition-delay: .5s;
  }

  .nav__social{
    position: absolute;
    top: 22rem;
  }

  .nav__social-link {
  font-size: var(--h1-font-size);
  font-weight: var(--font-medium);
  padding: 1rem 1.3rem;
  margin-top: auto;
}
  .nav_icon{
  color: var(--white-color);
  font-weight: var(--font-medium);
  width: 2rem;
  padding-right: 0.5rem;
}

  :root {
    --normal-font-size: 1rem;
  }



}

.nav__list,
.nav__social {
  display: flex;
}



.nav__list {
  flex-direction: column;
  row-gap: 3rem;
}


.nav__link {
  position: relative;
  color: var(--white-color);
  font-size: var(--h1-font-size);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  transition: opacity .4s;
}


.nav__link span {
  position: relative;
  transition: margin .4s;
}

.nav__link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  transition: width .4s ease-out;
}

/* Animation link on hover */
.nav__link:hover span {
  margin-left: 2.5rem;
}

.nav__link:hover i {
  opacity: 1;
  visibility: visible;
}

.nav__link:hover span::after {
  width: 100%;
}

/* Sibling fade animation */
.nav__list:has(.nav__link:hover) .nav__link:not(:hover) {
  opacity: .4;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}



/* Show menu */
.show-menu {
  left: 0;
}

/* Animation link when displaying menu */
.show-menu .nav__item {
  visibility: visible;
  transform: translateX(0);
}


/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (min-width: 768px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__link {
    font-size: var(--nav-font-size);
  }

  .nav__link i {
    font-size: 1.5rem;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
  }

  .nav__menu {
    display: flex;
    align-items: center;
    column-gap: 3.5rem;
    z-index: 999;
  }
}

/*=============== MAIN ===============*/

.main__container {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 保留 container 結構 */
.slideshow-container {
  width: 100vw;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
  left: 0;
  right: 0;
}

/* 圖片連結包裝 */
.slide-link {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  text-decoration: none;
  display: block;
}

/* 圖片淡入淡出動畫核心 */
.slide-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

/* 活躍圖層 */
.slide-img.active {
  opacity: 1;
  z-index: 1;
}



.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 3;
  border-radius: 50%;
}

.arrow_icon{
  width: 3rem;
}

.arrow:hover {
  background-color:var(--black-color);
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}


.indicators {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 3;
}


.indicators-inner {
  display: inline-block;
  background-color: var(--black-color);
  opacity: 0.4;
  padding: 4px 12px;
  border-radius: 20px;
}


.indicators-inner span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 6px 6px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicators-inner .active {
  background-color: var(--white-color);
}

/*=============== Lightbox Style ===============*/
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-content {
  margin: 35px;
  background: var(--white-color);
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  font-family: var(--body-font);
  font-weight: var(--font-medium);
  text-align: center;
  color: var(--main-blue);
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/*=============== 4icon area ===============*/

.ficon__container{
  width: 80%;
  margin: 0 auto;
  padding: 30px 0 30px 0;
}


.ficon__container::after{
  content: "";
  clear: both;
  display: table;

}

.ficon__table{
  float: left;
  width: 25%;
  padding:35px;
  text-align: center;
  color: var(--main-blue);
  font-size: var(--normal-font-size);
}



/*=============== sales area ===============*/

.sales__container {
  width: 100%;
  margin: 0 auto;
  background: url(../../images/sale_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.sales__container h1{
  color: var(--white-color);
  font-size: 3rem;
  text-align: center;
  padding-top: 100px;

}

.sales__container h2{
  color: var(--white-color);
  font-size: 1.5rem;
  text-align: center;
  margin-top: 20px;
}


.sales__banner{
  width: 100%;
  margin: 0 auto;
  display: block;
  max-width: 100%;
  height: auto;
  background-image:url(../../images/promotion_banner.jpg) ;
  padding-top: 20%;
  background-repeat: no-repeat;
  background-size: cover;
}


.product__container {
  display: grid;
  grid-template-columns: repeat(auto-fill,300px);
  gap: 40px;
  justify-content: center;
  padding: 75px 0 150px 0;

}

.product__box-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.product__box-link:hover {
  transform: translateY(-5px);
}

.product__box-link:hover .product__box {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
}

.product__box{
  width: 300px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  flex-direction: column;
  font-weight: var(--font-medium);
  background-color: var(--white-color);
  cursor: pointer;
}

.product__box img{
  max-width: 100%;
  height: auto;
  display: block;
}

.product__box h1 {
  color: var(--main-blue);
  font-size: var(--h1-font-size);
  padding: 10px 0;
  width: 90%;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  line-height: 1.4;
  height: 3.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}


.product__price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 60px !important;
  flex-wrap: wrap !important;
  margin-bottom: 8px !important;
  width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


.product__old{
  font-size: var(--old-price-size);
  color: var(--old-price-color) !important;
  text-decoration: line-through !important;
  text-decoration-color: var(--old-price-color) !important;
  font-style: italic !important;
  text-align: right !important;
  flex-shrink: 0 !important;
}

.product__new__price {
  color: red;
}

.product__disprice {
  color: red !important;
  text-align: left !important;
  flex-shrink: 0 !important;
  padding-right: 14px;
}


.product__new__row {
  color: red;
  font-size: var(--normal-font-size);
  margin-top: 5px;
}



.product__new__price {
  font-size: var(--h2-font-size);
}

.product__button {
  width: 60%;
  margin: 10px auto 20px auto;
}

.product__button-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--sec-blue);
  color: var(--white-color);
  padding: 10px 16px;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: var(--font-medium);
  text-decoration: none;
  font-size: var(--normal-font-size);
  width: 100%;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-radius: 5px;
}

.product__box-link:hover .product__button-text {
  background-color: var(--main-blue);
  transform: scale(1.03);
}



.product__button img {
  width: 1.3rem;
  height: auto;
  display: block;
}

.product__button-text img {
  width: 1.3rem;
  height: auto;
  display: block;
}

/*=============== coupon area ===============*/


.coupon__container{

  margin: 0;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  background: var(--gary-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 2.5rem;
}

.coupon__main {
  display: flex;
  border: 2px solid var(--main-blue);
  width: 90%;
  max-width: 90%;
  background: #fff;
  margin: 5% auto 5% auto;
  color: var(--main-blue);
}
.coupon__left__txt p{
  /* font-size: var(--old-price-size); */
  font-size: 0.8em;
}


.coupon__left__txt {
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
}



.coupon__left_link {

  padding-top: 20px;

}



.coupon__left_link a {
  text-decoration: underline;
  color: var(--old-price-color);
  font-size: var(--old-price-size);
}

.coupon__left_link a:hover {
  color: var(--main-blue);
}



.coupon__left {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 10px;
}
.coupon__right {
  position: relative;
  box-sizing: border-box;
  width: 55%;
  padding: 10px;
  border-left: 2px dashed var(--main-blue);
  justify-content: center;
  background: #f3fdff;
  margin: 0 auto;
}

.coupon__right__txt {
  text-align: center;
  padding-bottom: 20px;
  font-weight: var(--font-medium);
  font-size: var(--h1-font-size);
}


.coupon__code {
  width: 40%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  border: 1px solid var(--main-blue);
}

.coupon__code_l {
  background-color: var(--white-color);
  padding: 5px;
  width: 70%;
}

.coupon__code_r {
  background-color: var(--main-blue);
  padding: 5px;
  border: none;
  width: 30%;
}

.coupon__code_r img {
  width: 25px;
  height: 25px;
  transition: transform 0.4s ease;
  cursor: pointer;

}


.coupon__code_r img:hover {
  transform: translateY(-.25rem);
}


.coupon__right > .product__button{
  font-size: var(--normal-font-size);
  width: 40%;
  text-align: center;
}

.coupon__right > .product__button a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--sec-blue);
  color: var(--white-color);
  padding: 8px 12px;
  font-weight: var(--font-medium);
  text-decoration: none;
  font-size: 0.9rem;
  width: 100%;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-radius: 5px;
}

.coupon__right > .product__button a:hover {
  background-color: var(--main-blue);
  transform: scale(1.03);
}

.coupon__share_txt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  flex-wrap: wrap; /* 👈 讓元素在小螢幕時自動換行 */
  text-align: center;
  font-size: var(--normal-font-size);
}

.share-label {
  white-space: nowrap; /* 避免文字自動換行 */
}

.share-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.coupon__share_icon {
  width: 50px;
  height: 50px;

}

.coupon__share_icon:hover {
  transform: translateY(-0.25rem);
}

.coupon__share_btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
}

.coupon__share_btn:hover {
  opacity: 0.8;
}

.coupon__share_qr {
  width: 100px;
  height: 100px;
}





/* circle-css */


.coupon__right::before,
.coupon__right::after {
  position: absolute;
  border: 2px solid var(--main-blue);
  display: block;
  content: "";
  border-radius: 100%;
  background: var(--gary-bg);
  box-sizing: border-box;
  width: 22px;
  height: 22px;
}
.coupon__right::before {
  top: -11px;
  left: -12px;
}
.coupon__right::after {
  bottom: -11px;
  left: -12px;
}
.coupon__right__inner::before,
.coupon__right__inner::after {
  position: absolute;
  display: block;
  content: "";
  border-radius: 100%;
  background: var(--gary-bg);
  z-index: 1;
  width: 24px;
  height: 24px;
}
.coupon__right__inner::before {
  top: -19px;
  left: -13px;
}
.coupon__right__inner::after {
  bottom: -19px;
  left: -13px;
}




/*=============== About ===============*/

.about__container{
  background-color: #25425b;
  background: url(../../images/about_bg.jpg);
  background-repeat: no-repeat;
  width: 100%;
  background-position: bottom center;
  color: var(--white-color);
  background-size: cover;
  background-attachment: fixed;
  font-size: var(--normal-font-size);
  line-height: 2.5rem;
  text-align: justify;

  margin-top: 80px; /* Account for fixed header */
  scroll-margin-top: 200px; /* Account for fixed header + extra space for cross-page navigation */
}


.about__container a{

  color: var(--white-color);

}

.about__container a:hover {
  text-decoration: underline;
}


.about__content {
  padding: 5% 0 5% 0 ;
  width: 80%;
  margin: 0 auto;
}


.about__content h1 {
  padding: 90px 0 10px 0 ;
  font-size: var(--h2-font-size);
}

.about__content p {
  padding: 20px 0 20px 0 ;
}

.about__content img {
  max-width: 30%;
  height: auto;
  padding-bottom: 50px;
}

.about__table__container{
  display: grid;
  grid-template-columns: repeat(auto-fill,400px);
  gap: 40px;
  justify-content: center;
  padding: 50px 0 50px 0;

}

.about__table{
  width: 400px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  flex-direction: column;
  font-weight: var(--font-medium);
  background-color: var(--white-color);
  text-align: center;
}

.about__table h1{
  font-size: var(--h1-font-size);
  background-color: var(--main-blue);
  width: 100%;
  padding: 20px 0 20px 0;
}

.about__table p{
  font-size: var(--normal-font-size);
  color: var(--main-blue);
  width: 100%;
  padding: 10px 0 10px 0;
}

.about__content > .product__button {
  width: 30%;
}

.about__content > .product__button a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--sec-blue);
  color: var(--white-color);
  padding: 10px 16px;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: var(--font-medium);
  text-decoration: none;
  font-size: var(--normal-font-size);
  width: 100%;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-radius: 5px;
}

.about__content > .product__button a:hover {
  background-color: var(--main-blue);
  transform: scale(1.03);
}

.about__info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  max-width: 100%;
}

.about__info .about__label {
  font-weight: bold;
  white-space: nowrap;
}

.about__info .about__value {
  word-break: break-word;
}

/*=============== Footer ===============*/

footer {
  background-color: var(--main-blue);
  text-align: center;
  padding: 30px 30px 100px 30px ;
  color: var(--white-color);
}

footer p{
  padding:15px 0 15px 0;

}




footer a {
  padding: 3px;
  color: var(--white-color);
  text-decoration:underline;
}


footer img {

  width: 80px;
  height: auto;
}


/*=============== back to top and share button ===============*/

#topBtn {
 display: none;
 position: fixed;
 bottom: 20px;
 right: 30px;
 z-index: 9999;
 background-color: var(--gary-bg);
 cursor: pointer;
 border-radius: 50px;
 border: none;
 width: 50px;
 height: 50px;
 box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

#topBtn img {
  max-width: 30px;
  height: auto;
}

.share__button {
background-color: var(--gary-bg);
 cursor: pointer;
 border-radius: 50px;
 border: none;
 width: 50px;
 height: 50px;
 box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
position: fixed;
 bottom: 80px;
 right: 30px;
 z-index: 9999;
 display: flex;
 justify-content: center;
 align-items: center;
}

.share__button img {
  max-width: 30px;
  height: auto;
}


/*=============== side banner ===============*/

.side__banner {
  width: 135px;
  height: auto;
  position: fixed;
  bottom: 83px;
  right: 0px;
  z-index: 99;
  max-height: 80vh;
}

.side__banner img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}



/*=============== coupon and about mobile ===============*/

@media screen and (max-width: 1200px) {
  .coupon__main {
    display: flex;
    flex-direction: column;
  }
  .coupon__right {
    border-left: none;
    border-top: 2px dashed var(--main-blue);
    width: 100%;
    padding: 20px 20px;
  }
  .coupon__right::before {
    left: -12px;
    top: -11px;
  }
  .coupon__right::after {
    right: -12px;
    top: -11px;
    bottom: auto;
    left: auto;
  }
  .coupon__right__inner::before {
    top: -12px;
    left: -19px;
  }
  .coupon__right__inner::after {
    top: -12px;
    right: -19px;
    bottom: auto;
    left: auto;
  }

  .coupon__right > .product__button{
    width: 80%;
    text-align: center;
  }

  .coupon__right > .product__button a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--sec-blue);
    color: var(--white-color);
    padding: 8px 12px;
    font-weight: var(--font-medium);
    text-decoration: none;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
  }

  .coupon__right > .product__button a:hover {
    background-color: var(--main-blue);
    transform: scale(1.03);
  }

  .coupon__code {
    width: 80%;
  }

  .about__content img {
  max-width: 80%;
  height: auto;
  padding-bottom: 30px;
}

.about__content > .product__button {
  width: 60%;
}

.about__container{
  line-height: 1.5rem;
}



}


@media screen and (max-width: 1024px) {
  .side__banner {
    width: 90px;
    height: auto;
    max-height: 60vh;
  }
}

/*=============== Nav buybutton mobile ===============*/


  .nav__social_mobile {

    display: none;

  }



@media screen and (max-width: 728px) {
  body {
    overflow-x: hidden;
    width: 100vw;
  }

  .main__container {
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  #topBtn {
    bottom: 60px;
    right: 20px;
  }

  .share__button {
    bottom: 120px;
    right: 20px;
  }

  .side__banner {
    bottom:130px
  }

  .nav__social_mobile {
    width: 100%;
    height: 60px;
    background-color: var(--main-blue);
    position:fixed;
    bottom: 0px;
    display:flex;
    justify-content: center;
    padding: 10px;
    column-gap:1rem;

  }

  .nav__social_mobile img {
    width: 1rem;
    height: auto;
    margin-bottom: -3px;
  }


  .mobile_copy{
    width: 120px;
    font-size: var(--nav-font-size);
    padding: 5px;
    background-color: var(--sec-blue);
    border: none;
    color: var(--white-color);
    transition: transform 0.4s ease;
    cursor: pointer;
    border-radius: 55px;
  }


    .mobile_buy {
      width: 120px;
      background-color: var(--sec-blue);
      padding: 8px;
      text-align: center;
      transition: transform 0.4s ease;
      border-radius: 55px;
    }

    .mobile_buy a {
      color: var(--white-color);
      border: none;
    }

    .product__box h1 {
      height: 3.9em;
      margin: 14px;
    }
    .product__disprice {
      padding-right: 25px;
  }
  .nav__social-link {
    display: none;
}

.ficon__table{
  width: 50%;
  padding: 8%;

}

.product__container {
  grid-template-columns: repeat(auto-fill,200px);
  gap: 10px;


}

.product__box{
  width: 200px;
}

.product__box-link {
  width: 200px;
}
.product__button {
  width: 80%;
  margin: 10px auto 10px auto;
}



.product__button img {
  width: 1rem;
}

.product__button-text img {
  width: 1rem;
}


.slideshow-container {
  width: 100vw;
  height: 60vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  left: 0;
  right: 0;
}

.ficon__container{
  height: 470px;
  padding: 10px 0 10px 0;
}

.sales__banner {
  width: 100vw;
  max-width: 100%;
  height: 150px;
  margin: 50px auto 0;
  background-image: url(../../images/promotion_banner_mobile.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  position: relative;
}

  .coupon__share_txt {
    flex-direction: column;
  }

  .share-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .coupon__share_qr {
    margin-top: 10px;
  }

  /* Mobile sales banner adjustments */
  .sales__banner {
    height: 200px;
    margin: 30px auto 0;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

}

/* iPhone SE and smaller devices */
@media (max-width: 375px) {
  body {
    overflow-x: hidden;
    width: 100vw;
  }

  .main__container {
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .slideshow-container {
    width: 100vw;
    height: 60vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    left: 0;
    right: 0;
  }

  .slide-img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
  }

  .slide-link {
    width: 100vw;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .sales__banner {
    height: 180px;
    margin: 30px auto 0;
    background-size: contain;
    background-position: center;
    width: 100vw;
    max-width: 100vw;
  }

  /* Ensure price elements stay on one line for very small screens */
  .product__price-row {
    gap: 15px !important;
    flex-wrap: nowrap !important;
  }

  .product__disprice {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }

  .product__old {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }
}

/* iPhone XR and similar devices */
@media (min-width: 376px) and (max-width: 414px) {
  .sales__banner {
    height: 220px;
    margin: 30px auto 0;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
}

/*==================== Share Panel Styles ====================*/
.global-share-panel-wrapper {
  position: relative;
  z-index: 1000;
}

.global-share-panel-input {
  display: none;
}

.global-share-panel {
  display: none;
  width: 3rem;
  position: absolute;
  right: 0;
  bottom: 0;
}

.global-share-panel.horizontal {
  align-items: center;
  background-color: transparent;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding-bottom: 0;
  position: static;
  width: auto;
  z-index: 0;
}

.global-share-panel.horizontal > div {
  align-self: center;
  margin-bottom: 0;
  margin-top: 0;
}

  .global-share-panel-input:checked + .global-share-panel {
    align-items: center;
    background-color: #111111;
    border-radius: 25px;
    display: flex !important;
    gap: 1rem;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    position: fixed;
    right: 30px;
    bottom: 125px;
    width: auto;
    z-index: 9999;
    height: 50px;
  }

.global-share-panel-input:checked ~ #btn-global-share {
  display: none !important;
}

@media (min-width: 768px) {
  .global-share-panel-input:checked + .global-share-panel {
    right: 31x;
    bottom: 77px;
  }
}

.global-share-panel-close {
  background-color: #353535;
  border-radius: 9999px;
  display: flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
  cursor: pointer;
}

.global-share-panel-close:before {
  content: "✕";
  align-self: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

#btn-global-share {
  align-items: center;
  background-color: var(--gary-bg);
  border-radius: 50px;
  border: none;
  cursor: pointer !important;
  display: flex !important;
  justify-content: center;
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 77px;
  right: 32px;
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  pointer-events: auto !important;
}

#btn-global-share:hover {
  background-color: var(--gary-bg);
  transform: none;
}

@media (min-width: 768px) {
  #btn-global-share {
    border-radius: 9999px;
    height: 3rem;
    padding-bottom: 0;
    padding-top: 0;
    width: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  }
}

#btn-global-share img {
  max-width: 30px;
  height: auto;
  filter: brightness(0.7);
}

@media (min-width: 768px) {
  #btn-global-share img {
    max-width: 30px;
    height: auto;
    filter: brightness(0.7);
  }
}

.btn-facebook,
.global-share-panel .facebook {
  content: "";
  cursor: pointer;
  height: 30px;
  width: 30px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: auto;
}

.btn-whatsapp,
.global-share-panel .whatsapp {
  content: "";
  cursor: pointer;
  height: 30px;
  width: 30px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.885 3.488"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: auto;
}

.btn-weibo,
.global-share-panel .weibo {
  content: "";
  cursor: pointer;
  height: 30px;
  width: 30px;
  background-image: url(../../images/btn-share-weibo.svg);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: auto;
}

.btn-twitter,
.global-share-panel .twitter {
  content: "";
  cursor: pointer;
  height: 30px;
  width: 30px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: auto;
}

.btn-email,
.global-share-panel .email {
  content: "";
  cursor: pointer;
  height: 30px;
  width: 30px;
  background-image: url(../../images/btn-share-email.svg);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: auto;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
  #btn-global-share {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    right: 20px;
    bottom: 115px;
  }

  /* Hide share button when mobile menu is open */
  .menu-open #btn-global-share {
    display: none !important;
  }

  .global-share-panel-input:checked + .global-share-panel {
    position: fixed;
    right: 20px;
    bottom: 115px;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    z-index: 1000;
    height: 45px;
    border-radius: 22px;
  }

  .global-share-panel > div {
    margin: 0 0.25rem;
  }

  .arrow {
  padding: 0px;

}

}

/* iPhone SE specific adjustments */
@media (max-width: 375px) {
  #btn-global-share {
    right:20px;
    bottom: 115px;
  }

  .global-share-panel-input:checked + .global-share-panel {
    right: 20px;
    bottom:115px;
  }
  .product__disprice {
    padding-right: 20px;
}
#topBtn {
  bottom:60px;
  right: 20px;
}

/*mobile notice */

.mobile__notice {
  display: none;
  width: 100%;
  background-color: var(--gary-bg);
  color: var(--main-blue);
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 80px; /* Position below the header (80px header height) */
  left: 0;
}

/* Mobile notice base styling - hidden by default */
.mobile__notice {
  display: none !important;
  background-color: var(--gary-bg) !important;
  color: var(--main-blue) !important;
  text-align: center !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: normal !important;
  line-height: 1.4 !important;
  z-index: 998 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  position: fixed !important;
  top: 80px !important;
  left: 0 !important;
  width: 100% !important;
}

/* Show notice when .show class is added */
.mobile__notice.show {
  display: block !important;
}

/* Desktop-specific styling for the notice */
@media (min-width: 769px) {
  .mobile__notice {
    font-size: 16px !important;
    padding: 16px 24px !important;
    top: 64px !important; /* Adjust for desktop header height */
  }

  /* Adjust main container when notice is visible on desktop */
  body.mobile-notice-visible .main__container {
    padding-top: 80px !important; /* Account for notice height */
  }
}

/* Mobile notice visibility controlled by JavaScript */

.mobile__notice--highlight {
  font-weight: bold !important;
  color: red !important;
  font-style: normal !important;
}

.mobile__notice a {
  text-decoration: underline !important;
  color: inherit !important;
  font-weight: normal !important;
  font-style: normal !important;
}

.mobile__notice a:hover {
  text-decoration: underline !important;
  opacity: 0.8 !important;
}

/* Additional mobile-specific rules for better compatibility */
@media (max-width: 768px) {
  .mobile__notice--highlight {
    font-weight: bold !important;
    color: red !important;
    font-style: normal !important;
    text-decoration: none !important;
  }

  .mobile__notice a {
    text-decoration: underline !important;
    text-decoration-style: solid !important;
    text-decoration-color: currentColor !important;
    color: inherit !important;
    font-weight: normal !important;
    font-style: normal !important;
  }
}

@media (max-width: 768px) {
  /* Hide mobile notice when mobile menu is open */
  body.menu-open .mobile__notice {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
  }
}

    /* Mobile styling for sales container h2 */
  .sales__container h2 {
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 0 20px;
  }

  /* Mobile responsive product price layout */
  .product__price-row {
    gap: 20px !important;
    margin-bottom: 6px !important;
    justify-content: space-between !important;
    width: calc(100% - 28px) !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
    flex-wrap: nowrap !important;
  }
  .product__disprice {
    padding-right: 30px;
}

  .product__new__row {
    margin-top: 4px;
  }

  /* Ensure about section is below mobile notice when visible */
  body.mobile-notice-visible .about__container {
    margin-top: 140px; /* Header (80px) + Mobile notice (60px) */
  }
}


@media (max-width: 480px) {
  .about__container{
    font-size: 14pt;
    scroll-margin-top: 200px; /* Account for mobile header + extra space for cross-page navigation */
  }

  .about__container h1{
    padding: 71px 0 20px 0;
      font-size: 26pt;
  }

    .about__info{
    grid-template-columns: 1fr; /* 單欄排列 */
  }

  .about__info .about__label {
    padding-top: 8px;
  }

  .about__table h1{
    font-size: 20pt;
  }
  .product__disprice {
    padding-right:16px;
}

}





