/*補強畫面位移*/
.hero_container {
  position: relative;

  padding-bottom: 150px;
}

img.hero_wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
}

@media screen and (max-width: 768px) {


  img.hero_wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    height: 80px;
    z-index: 33;
    object-fit: cover;
    pointer-events: none;
  }
}

/*--------- contact ------------------*/
/* 聯絡我們區塊 */
.contact_section {
  padding: 40px 20px;
}

/* 資訊卡 */
.info_card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding: 30px 20px;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.info_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.info_card .icon {
  width: 64px;
  height: 64px;
  background-color: var(--primery);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

.info_card h5 {
  font-weight: 700;
  color: var(--text-color);
}

.info_card p {
  margin-bottom: 0;
  color: #555;
}

.info_card .line_link {
  display: inline-block;
  margin-top: 6px;
  color: var(--primary);
  font-weight: 600;
}

.qr_img {
  width: 100px;
  height: auto;
  margin-top: 10px;
}

/* 表單卡片 */
.contact_form_card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 40px 30px;
}

.contact_form_card h4 {
  font-weight: 700;
  color: var(--text-color);
}

.form-control {
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  padding: 10px 14px;
}

.btn_primary {
  background-color: var(--primery);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn_primary:hover {
  background-color: #e49d00;
}

/* RWD */
@media (max-width: 991px) {
  .contact_section {
    padding: 20px 10px;
  }

  .contact_form_card {
    margin-top: 30px;
  }
}

/*--------- end ------------------*/
/*--------- mlogin ------------------*/
.member_promo,
.login_card {
  width: 100%;
  max-width: 760px;
  /* 與上方優惠卡片一致寬度 */
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  background: #fff;
}

/* 會員卡背景色仍維持特別色 */
.member_promo {
  background: #fff9f1;
}

.login_card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 50px 40px;
  margin: 60px auto;
}

.login_logo {
  width: 165px;
  height: auto;
}

/* 表單元素 */
.form-label {
  font-weight: 600;
  color: var(--text-color);
}

.form-control {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.15);
}

/* 密碼顯示/隱藏------------------------------- */
/* 包 input + icon 的容器 */
/* 包 input + icon 的容器 */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* input 預留右邊空間 */
.input-wrapper .form-control {
  flex: 1 1 auto;
  padding-right: 2.5rem;
}

/* 眼睛 icon */
.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
}

.password-toggle:hover {
  color: #333;
}

/* 錯誤訊息 */
label.error {
  color: #f28411;
  /* 橘紅品牌色 */
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* 錯誤 input 樣式 */
input.error {
  border-color: #f28411;
  background-color: #fff9f1;
}

/* ---------------end---------------- */
/* 文字連結 */
.forgot_link,
.register_link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.forgot_link:hover,
.register_link:hover {
  text-decoration: underline;
}

/* RWD */
@media (max-width: 768px) {
  .login_card {
    padding: 30px 24px;
    margin: 40px 10px;
  }
}

/*-----------about 照片展示-----------*/

.abt_slides {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.abt_slides img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

/* hover 放大效果 */
.abt_slides:hover img {
  transform: scale(1.08);
}

/* 文字區塊 */
.abt_caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s ease;
  z-index: 2;
}

/* 漸層遮罩 */
.abt_slides::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

/* hover 時顯示文字與遮罩 */
.abt_slides:hover .abt_caption {
  opacity: 1;
  transform: translateY(0);
}

.abt_slides:hover::after {
  opacity: 1;
}

.abt_caption h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.abt_caption p {
  margin: 5px 0 0;
  font-size: 14px;
}

.abt_slides::after {
  pointer-events: none;
}

.abt_slides {
  cursor: zoom-in;
}

/* Lightbox 基本設定 */
.img-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

/* 放大的圖片 */
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.img-lightbox .close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

/* 放大按鈕樣式（右上角） */
.zoom-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.zoom-btn i {
  font-size: 18px;
  line-height: 1;
}

.abt_slides:hover .zoom-btn {
  transform: scale(1.05);
}

/* 手機上也容易點到 */
@media (max-width: 768px) {
  .zoom-btn {
    width: 46px;
    height: 46px;
  }
}

/*-----------about 照片展示end-----------*/
/*-----------公益活動list-----------*/
.school-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.school-list.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 25px;
  row-gap: 12px;
  padding-left: 0;
}

.school-list li {
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  color: #333;
}

.school-list li i {
  font-size: 18px;
  color: #f28411;
  /* 你的主色，可換 */
  margin-right: 8px;
}

/* 手機自動變一欄 */
@media (max-width: 768px) {
  .school-list.two-columns {
    grid-template-columns: 1fr;
  }
}

.btn_custom {
  width: 100%;
  display: flex !important;
  justify-content: flex-end !important;
}

/* school photo slider */
.schoolbg {
  background: url("../images/schoolbg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  background-repeat: no-repeat;
  width: 100%;
}

.award_slider img {
  width: 100%;
  height: auto;
  /* 可調整高度 */
  max-height: 280px;
  margin: 0 auto;
  padding: 0px;
  object-fit: contain;
  /* 保留完整比例 */
  display: block;
  overflow: hidden;
}

.inner_block {
  padding: 10px 0;
}

/* sales page */
.advance_feature_section .af_listing .listing_inner .af_block_custom {
  background-color: var(--white);
  padding: 20px;
  border-radius: 20px;
  width: 30%;
  border: solid 1px var(--border);
  box-shadow: 0px 8px 30px var(--border);
}

.sales-icon {
  width: 50px;
  /* 圓形大小，可調整 */
  height: 50px;
  background-color: #f28411;
  /* 橘色底 */
  border-radius: 50%;
  /* ✅ 圓形 */
  display: flex;
  /* 水平垂直置中 */
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  /* 可選陰影 */
}

.sales-icon i {
  color: #fff;
  /* 白色 icon */
  font-size: 32px;
  /* icon 大小 */
}

.why-icons {
  padding: 40px 0;
  text-align: center;
}

.section-title {
  color: #f28411;
  font-weight: 800;
  font-size: 32px;
  margin-bottom: 60px;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.icon-item {
  flex: 1 1 200px;
  /* 自動調整寬度 */
  max-width: 220px;
  /* 限制每個框最大寬 */
  text-align: center;
}

.circle {
  width: 110px;
  height: 110px;
  background: #f28411;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 38px;
  box-shadow: 0 4px 12px rgba(242, 132, 17, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(242, 132, 17, 0.4);
}

.icon-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.icon-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* RWD 手機版自動兩排 */
@media (max-width: 992px) {
  .icon-item {
    max-width: 45%;
  }
}

@media (max-width: 576px) {
  .icon-item {
    max-width: 100%;
  }
}

/* --------- Circle Stats CSS ------------- */
.circle-stats {
  background: #fff5e2;
  text-align: center;
  padding: 80px 0;
}

.circle-stats h2 {
  font-size: 28px;
  color: #f28411;
  margin-bottom: 60px;
  font-weight: 800;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.circle-item {
  position: relative;
  width: 160px;
  text-align: center;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: #dfe8e1;
  stroke-width: 12;
}

.progress-ring-value {
  fill: none;
  stroke: #f28411;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.5s ease;
}

.circle-value {
  position: absolute;
  top: 55px;
  left: 0;
  width: 100%;
  font-size: 28px;
  font-weight: 800;
  color: #f28411;
}

.circle-item h4 {
  margin-top: 20px;
  font-weight: 700;
  color: #2f4232;
}

.circle-item p {
  color: #5b6b5b;
  font-size: 15px;
}

.circle-note {
  margin-top: 50px;
  color: #2f4232;
  font-size: 16px;
}

/* join us section */
.join-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fffaf5, #fefefe);
}

.join-header h2 {
  color: #f28411;
  font-weight: 800;
  margin-bottom: 10px;
}

.join-header p {
  color: #333;
  font-size: 18px;
}

.contact_form_card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px 60px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.form-label {
  font-weight: 600;
  color: #333;
}

.btn_back_products {
  background-color: #f28411;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn_back_products:hover {
  background-color: #d86d00;
  color: #fff;
}

.text-danger {
  color: #e55300 !important;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 20px 10px 16px;
  font-size: 16px;
  color: #333;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg fill='%23f28411' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  height: 50px;
}

.custom-select:focus {
  border-color: #f28411;
  box-shadow: 0 0 0 3px rgba(242, 132, 17, 0.2);
  outline: none;
}

.custom-select:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: #f28411;
}

.form-check-input:checked {
  background-color: #f28411;
  border-color: #f28411;
}

/*brand header */
.brand-header {
  position: relative;
  margin-bottom: 1.5rem;
  text-align: left;
}

.brand-links {
  margin-bottom: 0.5rem;
}

.brand-links.right {
  text-align: center;
  margin-bottom: 50px;
}

.brand-links a {
  display: inline-block;
  margin-left: 8px;
  padding: 0.45rem 1.2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline {
  border: 1.5px solid #f28411;
  color: #f28411;
}

.btn-outline:hover {
  background-color: #f28411;
  color: #fff;
}

.btn-main {
  background-color: #f28411;
  color: #fff;
}

.btn-main:hover {
  background-color: #d66e0e;
}

/* Navbar */
ul.navbar-nav.ml-auto {
  min-height: 70px;
  display: flex;
  align-items: center;
}

/* Cart actions row */
.cart_actions {
  min-height: 40px;
}

/* Table header */
.cart_table th {
  white-space: nowrap;
}

.cart_item td {
  /* 設置垂直對齊為中間 */
  vertical-align: middle;
}

/* Sidebar summary */
.order_summary {
  min-height: 260px;
}

.order_summary .d-flex.justify-content-between {
  min-height: 28px;
  align-items: center;
}

.afull-names,
.full-need,
.firstbuy-title {
  min-height: 24px;
  /* 避免文字突然出現/消失跳動 */
}

.order-complete-wrapper {
  background: linear-gradient(135deg, #fff9f3 0%, #fff3e4 100%);
  border-radius: 12px;
}

.order-box {
  max-width: 680px;
  margin: auto;
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.success-icon i {
  font-size: 78px;
  color: #f28c11;
  text-shadow: 0 3px 8px rgba(242, 140, 17, 0.2);
}

.order-btn {
  background: #f28c11;
  color: #fff;
  border-radius: 50px;
  transition: 0.2s;
}

.order-btn:hover {
  background: #d67206;
  color: #fff;
}

/* profile */
/* 品牌橘 */
.text-brand {
  color: #f28411;
  font-weight: 700;
}

/* 卡片風格 */
.profile-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* 柔邊 input */
.soft-input {
  border: 1px solid #ddd !important;
  border-radius: 10px;
  padding: 10px 14px;
}

/* checkbox 美化 */
.checkbox-custom {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #444;
}

.checkbox-custom input[type="checkbox"] {
  accent-color: #f28411;
  /* 直接使用品牌橘 */
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
}

/* 橘色主按鈕 */
.btn-brand {
  background: #f28411;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s;
}

.btn-brand:hover {
  background: #d86f08;
  color: #fff;
}

.soft-input-group {
  position: relative;
}

.soft-input-group .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.soft-input-group input.form-control {
  padding-right: 40px;
  /* 預留眼睛的位置，不要把眼睛擠出去 */
}

.password-toggle i {
  pointer-events: none;
  /* 點擊範圍在span，不在icon */
}

/* forget password */
/* 包裹整組，避免位移 */
/* 外層：避免被 Bootstrap input-group 干擾 */
.forget-email-box {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-bottom: 6px;
}

/* 重置 Bootstrap 樣式避免高度錯亂 
.forget-email-box input,
.forget-email-box button {
  border:  !important;
  outline: none !important;
  box-shadow: none !important;
}*/

/* 左邊 input */
.forget-email-input {
  flex: 1;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #cfcfcf !important;
  border-right: none !important;
  border-radius: 10px 0 0 10px;
  font-size: 16px;
  background: #fff;
  transition: 0.2s;
}

.forget-email-input:focus {
  border-color: #e89963 !important;
  box-shadow: 0 0 0 0.15rem rgba(232, 153, 99, 0.25) !important;
}

/* 右邊按鈕 */
.forget-email-btn {
  height: 48px;
  padding: 0 26px;
  background: #e89963;
  border: 1px solid #e49d00;
  color: #fff;
  font-size: 16px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: 0.2s;
}

.forget-email-btn:hover {
  background: #d97f4a;
}

/* 錯誤訊息（固定出現在下方） */
.invalid-feedback {
  font-size: 14px;
  color: #d9534f;
}

/* 購物車右側摘要 */
/* 活動區塊標題 */
.order-discount-title {
  font-weight: 700;
  text-decoration: underline;
  color: #444;
  margin-top: 8px;
  margin-bottom: 4px;
  display: block;
}

/* 活動達成 */
.promo-success {
  color: #2b8a3e;
  /* 深綠色 */
  font-weight: 600;
}

/* 活動未達成 */
.promo-warn {
  color: #d9480f;
  /* 橘紅 */
}

.cart-promo {
  line-height: 1.2em;
}

.cart-promo i {
  margin-right: 3px;
}

.cart-order-promo {
  line-height: 1.3em;
  margin-top: 4px;
}

/* 修正日期按鈕 (datepicker) 的高度 */
.birthday-picker {
  background-color: #ffffff;
  cursor: pointer;
}

/* Tags */
.tags-list {
  gap: 10px;
}

.tag-item {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #eee;
  font-size: 14px;
  transition: all 0.2s ease;
}

.tag-item:hover {
  background: #ffe9c2;
  border-color: #ffcc80;
  color: #c77700;
  text-decoration: none;
}

.title_badge span {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;

}

/* side menu */
/* 預設箭頭向右 */
.category_list li>a {
  display: flex;
  justify-content: space-between;
  /* 關鍵：內容往兩邊推 */
  align-items: center;
  /* 垂直置中 */
  width: 100%;
  /* 佔滿寬度 */
  text-decoration: none;
  padding: 5px 0;
}

.category_list li.has-child>a::after {
  content: '+';
  /* 預設顯示 + 號 */
  font-weight: bold;
  font-size: 18px;
  /* 符號大小 */
  color: #333;
  /* 符號顏色 */
  margin-left: 10px;
  /* 與文字保持距離 */
}

.category_list li.has-child.open>a::after {
  content: '-';
  /* 展開時顯示 - 號 */
  color: #333;
}

.category_list ul.sub_menu li a {
  padding-left: 30px;
  /* 數值越大，縮排越多 */
  font-size: 0.95em;
  color: #555;
}

/* 第三層縮排 */
.category_list ul.sub_menu ul.sub_menu li a {
  padding-left: 50px;
}

.category_list li>a::after {
  transform: none !important;
  transition: none !important;
}

/* 自定義分頁樣式 */
.custom-pagination {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 所有的列表項 */
.custom-pagination li {
  margin: 0 5px;
  /* 調整數字之間的間距 */
}

/* 所有的連結 */
.custom-pagination li a {
  text-decoration: none;
  /* 移除底線 */
  color: #555;
  /* 預設數字顏色，較深灰色 */
  font-size: 16px;
  /* 調整字體大小 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

/* 連結懸停效果 (選用，增加互動感) */
.custom-pagination li:not(.disabled):not(.active-page) a:hover {
  color: #f18410;
  background-color: #fff8f0;
}

/* 當前頁面的樣式 (核心修改) */
.custom-pagination li.active-page a {
  color: #f18410;
  border-color: #f18410;
  font-weight: bold;
}

/* 上一頁/下一頁按鈕的樣式 */
.custom-pagination li.page-prev a,
.custom-pagination li.page-next a {
  font-weight: bold;
  font-size: 18px;
  color: #f18410;
  border: none;
  width: auto;
}

/* 上一頁/下一頁按鈕懸停效果 */
.custom-pagination li.page-prev:not(.disabled) a:hover,
.custom-pagination li.page-next:not(.disabled) a:hover {
  color: #bf660b;
  background: none;
}

/* 禁用狀態的上一頁/下一頁按鈕 */
.custom-pagination li.disabled a {
  color: #ccc;
  /* 灰色 */
  cursor: not-allowed;
}