/* 規格字體引用 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
/* bootstrap ICON引用 */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
/* owl.carousel */
@import url("font-awesome.css");

body {
  margin: 0;
  padding: 0;
  color: #000;
  font-family: 'Nunito Sans', 'DFHeiStd', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.4px;
  position: relative;
  background: #fff;
  vertical-align: baseline;
}


html {
  scroll-behavior: smooth;
}

/* =============================================================== */
/* TYPOGRAPHY + GLOBAL CLASS
/* =============================================================== */
a {
  text-decoration: none;
  outline: none !important;
  -moz-transition: all .2s ease-in;
  -webkit-transition: all .2s ease-in;
  -o-transition: all .2s ease-in;
  transition: all .2s ease-in;
  color: #FFF;
}

a:hover,
a:focus {
  text-decoration: none;
  cursor: pointer;
  color: #00ffdd;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 750;
  margin: 0;
}

h1 {
  font-size: 45px;

}

h2 {
  font-size: 38px;

}

h3 {
  font-size: 32px;
  line-height: 1;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 20px;
}

h6 {
  font-size: 17px;
}

p.lead {
  font-size: 20px;
}

h3 code {
  font-size: 14px;
  font-weight: normal;
}

small,
span {
  color: #999999;
  font-size: 11px;
}



/* =============================================================== */
/* ROOT
/* =============================================================== */
:root {
  --swiper-navigation-color: #FFF;
  --swiper-pagination-color: #00ffdd;
  --swiper-theme-color: #00ffdd;
  --swiper-pagination-bullet-inactive-color: #EFEFEF;
  --swiper-pagination-bullet-size: 16px;
  --swiper-pagination-bullet-inactive-opacity: 1;
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  background: #FFF;
}

#home-more-products-pagination .swiper-pagination-bullet,
.more-product-wrapper .swiper-pagination-bullet {
  background-color: #FFF !important;
}

#home-more-products-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active,
.more-product-wrapper .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #00ffdd !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #FFF;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  --swiper-navigation-color: #00ffdd;
}

/* =============================================================== */
/* BOOTSTRAP
/* =============================================================== */
.btn {
  border: none;
  font-size: 0.9rem;
  padding: 0.375rem 0.75rem;
}

.btn-primary:hover {
  background-color: #00ffdd;
  color: #000;
}

/* 灰色漸層 */
.bg-gradient-coal {
  background: linear-gradient(to bottom, #F7F7F7, #EFEFEF) !important;
}

/* 藍綠漸層 */
.bg-gradient-cyan {
  background: linear-gradient(to bottom, #e2fefa, #77ffed) !important;
}

/* 黑灰漸層 */
.bg-gradient-black {
  background: linear-gradient(to bottom, #2b2b2f, #0a0a0c) !important;
  color: #FFFFFF;
}

/* =============================================================== */
/*  FOOTER
/* =============================================================== */

footer {
  background-color: #000000;
  padding: 4rem 0;
}


.footer__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.footer__block-list {
  display: flex;
  flex-direction: column;
  width: 20%;
  gap: 1.4rem;
}

.footer__block-list:first-child {
  width: 35%;

}

.footer__block-text {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1.25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__block-list small {
  display: inline-block;
  margin-top: auto;
  transform: translateY(0.5rem);
}

footer .logo {
  display: inline-block;
  height: 33px;
}

.text-title {
  color: #FFF;
  display: flex;
  flex-direction: column;
  font-weight: bolder;


}

.social-icon {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  /* 移除預設的清單點 */
  padding: 0;
}

.social-icon li {
  /* 1. 核心：強制寬高比 1:1 */
  aspect-ratio: 1 / 1;

  /* 2. 設定一個最小寬度，確保三個圓圈一樣大 */
  /* 如果不設這個，f 的圓會比 Instagram 的圓小 */
  min-width: 40px;

  border: 1.2px #FFF solid;
  border-radius: 50%;

  /* 3. 使用 Flexbox 完美置中，解決 f 不對稱的視覺偏移 */
  display: flex;
  align-items: center;
  justify-content: center;

  /* 移除內距，讓 aspect-ratio 與 flex 處理空間 */
  padding: 0;
}

.navbar .social-icon li {
  border: none;
}

.social-icon li a {
  color: #FFFFFF;
  text-decoration: none;
  line-height: 0;
  display: inline-block;
  font-size: 18px;
  height: auto;
  margin-left: 0;
  padding: 6px 9px;
  position: relative;
  text-align: center;
  z-index: 10;
  box-shadow: 0 0 0px rgba(0, 0, 0, 0.0) inset;
  transition: all 0.2s ease-out 0s;
  -webkit-transition: all 0.21s ease-out 0s;
  -moz-transition: all 0.2s ease-out 0s;
  -ms-transition: all 0.2s ease-out 0s;
  -o-transition: all 0.2s ease-out 0s;
}

.social-icon ::before {
  transform: translateX(1px);
  /* 往右微調 1 像素，視覺更平衡 */
}

/* =============================================================== */
/*  回到頂部
/* =============================================================== */

#backToTop {
  display: none;
  /* 初始隱藏 */
  position: fixed;

  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #3e3e3e;
  color: #FFF;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 18px;
  transition: opacity 0.3s;
}



#backToTop:hover {
  background-color: #00ffdd;
  color: #000;
}


/* ----------------- */
/* 輪播卡片 */
/* ----------------- */

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-card .swiper-slide {
  height: auto;
}


/* ----------------- */
/* 卡片基本語法 */
/* ----------------- */




.card-box {
  display: flex;
  gap: 24px;
  width: 100%;
}

.card-items {
  width: 100%;
  position: relative;
  height: 100%;
  background: #FFF;
  padding: 2.5rem;
}

.card-title {
  text-align: center;
}


.card-items .card-media img {
  width: 100%;
  height: 100%;
  /* 關鍵：強制高度填滿容器 */
  object-fit: cover;
  /* 裁切並撐滿 */
  object-position: center;
  /* 關鍵：確保從正中心對齊，解決齊頭問題 */
  display: block;
  /* 消除圖片下方的微小縫隙 */
  transition: 0.3s;

}

.card-items a {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* height: 100%; */
}

.card-items a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



.card-items:hover img {
  transform: scale(1.1);
}

.card-text {
  /* 定位內容 */
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000;
  text-align: center;

}


/* 如果文字裡面有按鈕需要點擊，按鈕要重新開啟 pointer-events */
.card-text .btn {
  pointer-events: auto;
  margin-top: auto;
}


.card-row p {
  text-align: start !important;
}

/* ----------------- */
/* 各區塊客製化 */
/* ----------------- */
.card-overlay .card-items {
  padding: 0;
}

.card-overlay .card-media {
  /* 情境圖露出比例、作為定位、超出直接隱藏 */
  width: 100%;
  aspect-ratio: 1.4 / 1;
  position: relative;
  overflow: hidden;
}

.card-overlay .card-items a::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
  opacity: 1;
}

.card-overlay .card-items:hover a::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
  transition: 0.3s;
}

.card-overlay .card-text {
  /* 文字浮動 */
  position: absolute;
  color: #FFF;
  padding-bottom: 2rem;
  gap: 0.5rem;
  z-index: 10;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  /* 加上這行可以防止文字擋住滑鼠對下方圖片的 hover 感應（選用） */
  pointer-events: none;
}

.card-stack .card-items {
  padding: 2rem;
}

.card-stack .card-items a {
  height: 100%;
}

.card-media:not(.card-overlay .card-media, .more-product-section .card-media) {
  max-height: 220px;
  aspect-ratio: 1 / 1;
  padding: 1rem;
  margin-bottom: 2.5rem;
}


.card-row .card-media,
.more-product-section .card-media {
  margin-bottom: 0 !important;
}

.card-stack .card-text,
.card-text {
  gap: 0.5rem;
  height: 100%;
}

.card-overlay .btn {
  margin-top: 0;
}

.card-stack .btn {
  margin-top: auto;
}

.card-row .card-text {
  align-items: flex-start;
  justify-content: center;
}


.more-product-section .card-items {
  padding: 1.5rem;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: calc((100% - (24px * 5)) / 6);
  flex: 0 0 calc((100% - (24px * 5)) / 6);
  height: auto;
}

.more-product-section .card-media {
  max-height: 120px;
  min-height: 110px;
  aspect-ratio: 1 / 1;
}

.more-product-section .card-text {
  z-index: 5;
  text-wrap: nowrap;
}

.more-product-section .card-items a {
  justify-content: center;
}

.card-row a {
  flex-direction: row;
  align-content: center;
  gap: 2rem;
}

/* =============================================================== */
/*  RWD
/* =============================================================== */

@media (max-width: 1199.98px) {
  html {
    font-size: 12px !important;
  }

  body {
    line-height: 24px;
  }

  .footer__inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-info {
    width: 100% !important;
  }

  .footer__block-list {
    width: auto;
    gap: 0.8rem;
  }

  .navbar-brand {
    padding: 0;
  }

  h2 {
    font-size: 23px;
    letter-spacing: 1px;
  }

  h3 {
    font-size: 28px;
  }

  .new-product-section {
    flex-direction: column;
    background: firebrick;
  }

  h6 {
    font-size: 14px;
  }

  /* .card-media:not(.card-overlay .card-media, .more-product-section .card-media) {
    max-height: 120px;
    margin-bottom: 1rem;
  } */
  .more-product-section .card-text {
    text-wrap: nowrap;
  }
}