/* ================================
   全站 CSS 變數（主題 / 色系）
   ================================ */
:root {
  /* 主色 */
  --primery: #6FB04E;
  --primery-dark: #5A9A3F;

  --brand-green: #6c9a35;
  /* 參考圖片中的綠色 */
  --brand-light-green: #eef5e6;
  --brand-dark: #2c3e50;

  /* 舊主題綠（header / menu） */
  --theme-green: #2f7a07;
  --theme-blue: #00a7e4;
  /* 危險 / 標籤 */
  --danger: #cf2929;
  --info: #8fe1ff;


  /* 文字 */
  --text-color: #3A3A3A;
  --text-muted: #8C8C8C;
  --text-dark: #333;

  /* 白 */
  --white: #ffffff;

  /* 背景 */
  --bg-soft: #FFF9E6;
  --bg-gray: #f9f9f9;

  /* 邊框 */
  --border-soft: #E8E0C8;
  --border-gray: #dcdcdc;

  --brand-color: #6FB12E;
  /* 您的主色調 */
  --brand-color-dark: #588F24;
  /* 用於懸停時，稍深的綠色 */
  --brand-color-rgb: 111, 177, 46;
  /* 主色調的 RGB 值，用於陰影透明度 */
}

/* ================================
   通用背景 / 顏色工具類
   ================================ */
.bgcolor-lightgreen {
  background-color: #adcd20;
}


/* ================================
   Header / Menu 主題配色（color_seven）
   ================================ */
.color_seven .dropdown_currency li a:hover,
.color_seven .dropdown_language li a:hover,
.color_seven .register ul li a:hover,
.color_seven .header_account_list>a:hover,
.color_seven .main_menu nav>ul>li>a.active,
.color_seven .main_menu nav>ul>li:hover>a,
.color_seven .main_menu nav>ul>li ul.sub_menu li a:hover,
.color_seven .mega_menu_inner>li>a:hover,
.color_seven .mega_menu_inner>li ul li a:hover,
.color_seven .mini_cart_close>a:hover,
.color_seven .cart_info a:hover,
.color_seven .cart_remove a:hover,
.color_seven .product_content h4 a:hover,
.color_seven .price_box span.current_price,
.color_seven .modal_price span,
.color_seven .footer_menu ul li a:hover,
.color_seven .widgets_container.contact_us>p a:hover,
.color_seven .copyright_area p a:hover,
.color_seven .articles_date p a:hover,
.color_seven .blog_content h4 a:hover,
.color_seven .blog_footer>a:hover,
.color_seven .blog_footer>a::before {
  color: var(--theme-green);
}

.color_seven .search_box button,
.color_seven .cart_button a:hover,
.color_seven .slider_content a:hover,
.color_seven .action_links ul li a:hover,
.color_seven .modal_add_to_cart form button:hover,
.color_seven .subscribe_form form button {
  background: var(--theme-green);
  border-color: var(--theme-green);
}

.color_seven .search_box button:hover,
.color_seven .subscribe_form form button:hover {
  background: #000000;
}

.color_seven .label_product span.label_sale,
.color_seven .label_product span.label_new {
  background: var(--danger);
}

/* ================================
   全館活動橫條（跑馬燈 Promo Bar）
   ================================ */
.top-promo-bar {
  background: #ADCD21;
  color: #fff;
  font-size: 14px;
  padding: 8px 40px 8px 12px;
  position: relative;
  text-align: center;
}

.top-promo-bar .promo-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.top-promo-bar.d-none {
  display: none;
}


/* ================================
   表單區塊標題樣式
   ================================ */
.form_section h5 {
  border-left: 4px solid var(--text-color);
  font-size: 16px;
  padding-left: 8px;
  margin-bottom: 15px;
  font-weight: 700;
}

.form_section h6 {
  font-size: 14px;

  margin-bottom: 15px;
  font-weight: 600;
}

/* ================================
   滿版輪播（Owl Carousel）
   ================================ */
.full-width-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);

}

.full-width-carousel .owl-item img {
  width: 100%;
  /* 等比縮放，不裁切 */
  height: auto;
  display: block;
}

.single_slider {
  width: 100%;
  aspect-ratio: 16 / 6;
  /* 調整成你的圖片比例，如 16:9、21:9 都可 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ================================
   首頁 Hero Banner（產品介紹區）
   ================================ */
/* 區域設定 */
.hero_banner_section {
  padding: 60px 0;
  background: #f9f9f9;
  /* 若你想改白背景可改成 #fff */
}

/* 左側特色區塊 */
.features_group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* 上下間距 */
}

.feature_box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

/* 圖跟文字 */
.feature_icon img {
  width: 42px;
  height: 42px;
}

.feature_text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.feature_text h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.feature_text span {
  margin-top: 4px;
  font-size: 14px;
  color: #666;
}

.feature_box:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 各卡片有不同「自然飄動」動畫 */
.offset-left-1 {
  animation: float1 4s ease-in-out infinite;
}

.offset-right-1 {
  animation: float2 5s ease-in-out infinite;
}

.offset-left-2 {
  animation: float1 6s ease-in-out infinite;
}

.offset-right-2 {
  animation: float2 5.5s ease-in-out infinite;
}

/* 漂浮動畫 keyframes */
@keyframes float1 {
  0% {
    transform: translateX(-8px) translateY(0);
  }

  50% {
    transform: translateX(-8px) translateY(-6px);
  }

  100% {
    transform: translateX(-8px) translateY(0);
  }
}

@keyframes float2 {
  0% {
    transform: translateX(8px) translateY(0);
  }

  50% {
    transform: translateX(8px) translateY(-4px);
  }

  100% {
    transform: translateX(8px) translateY(0);
  }
}

/* 手機版讓動畫減弱（避免太晃） */
@media (max-width: 767px) {

  .offset-left-1,
  .offset-right-1,
  .offset-left-2,
  .offset-right-2 {
    transform: translateX(0) !important;
    animation: floatMobile 6s ease-in-out infinite;
  }

  @keyframes floatMobile {
    0% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-4px);
    }

    100% {
      transform: translateY(0);
    }
  }
}

/* 中間產品圖片 */
.hero_center_image {
  text-align: center;
}

.hero_product_img {
  width: 100%;
  max-width: 500px;
}

/* 右側文字區 */
.hero_text .hero_label {
  color: #72a92c;
  font-weight: 700;
  font-size: 16px;
}

.hero_text h2 {
  font-size: 42px;
  font-weight: 700;
  margin-top: 10px;
}

.hero_text p {
  margin: 20px 0;
  color: #444;
  font-size: 16px;
}

/* 按鈕 */
.hero_btn {
  display: inline-block;
  background: #6cbc2c;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

a.hero_btn:hover {
  background: #5aa225 !important;
  color: #fff !important;
}

/* RWD */
@media (max-width: 991px) {
  .hero_banner_section {
    text-align: center;
  }

  .hero_features {
    margin-bottom: 30px;
  }

  .hero_text h2 {
    font-size: 32px;
  }

  .feature_box {
    padding: 12px 16px;
    border-radius: 40px;
  }
}


/* ================================
   品牌沿革 Timeline
   ================================ */
.timeline-bg {
  background: url("../images/timeline-bg.png") no-repeat center top;
  background-size: contain;
}

.timeline {
  width: 100%;

  margin: 0px auto;
  margin-bottom: -180px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 75%;
  background: #dcdcdc;
}

.timeline-item {
  width: 50%;
  padding: 18px 30px;
  box-sizing: border-box;
  position: relative;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(2) {
  left: 50%;
  transform: translateY(-100px);
}

.timeline-item:nth-child(3) {
  transform: translateY(-100px);
}

.timeline-item:nth-child(4) {
  left: 50%;
  transform: translateY(-250px);
}

.timeline-item::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #6ab547;
  /* 更柔和的綠 */
  border-radius: 50%;
  border: 4px solid white;
  position: absolute;
  top: 30px;
  z-index: 2;
}

.timeline-item:nth-child(odd)::before {
  right: -7px;
}

.timeline-item:nth-child(even)::before {
  left: -7px;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 25px 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: inline-block;
  width: 100%;

  text-align: left;
}

.card .year {
  font-size: 24px;
  color: #6ab547;
  font-weight: bold;
  margin-bottom: 6px;
}

.card .text {
  font-size: 18px;
  line-height: 2;
  color: #333;
}

/* mobile */
@media (max-width: 768px) {
  .timeline {
    margin-top: 40px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 55px;
    padding-right: 20px;

    position: relative;
    transform: none !important;
    margin: 25px 0;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0 !important;
    text-align: left !important;
  }

  .timeline-item::before {
    left: 13px !important;
    right: auto !important;
  }

  .timeline::before {
    left: 20px;
    height: 100%;
  }
}

/* ================================
   品牌故事（Brand Story）
   ================================ */
.brand {
  padding: 80px 20px;
  background: #fff;
}

.brand-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

/* 左側圖片 */
.brand-img-group {
  position: relative;
  width: 520px;
}

.brand-img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.brand-img-main {
  aspect-ratio: 4 / 3;
}

.brand-img-sub {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 75%;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 圓形徽章 */
.brand-badge {
  position: absolute;
  right: -30px;
  top: 40px;
  width: 90px;
  height: 90px;
  background-color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(46, 46, 46, 0.35);
  animation: badge-rotate 20s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes badge-rotate {
  to {
    transform: rotate(360deg);
  }
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 右側文字 */
.brand-content {
  max-width: 100%;
  margin-left: 20px;
}

.brand-tag {
  color: #d84a6a;
  font-weight: 600;
  letter-spacing: 1px;
}

.brand-content h2 {
  font-size: 42px;
  line-height: 1.2;
  margin: 16px 0 32px;
  color: #0c2340;
}

.brand-content p {
  line-height: 1.8;
  font-size: 15px;
}

.brand-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.brand-features li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.brand-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d84a6a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: bold;
  flex-shrink: 0;
}

.brand-features h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.brand-features p {
  margin: 0;
  color: #666;
}

/* 行動區 */
.brand-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand-btn {
  background: #132f63;
  color: #fff;
  padding: 14px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.brand-phone span {
  display: block;
  font-size: 14px;
  color: #666;
}

.brand-phone strong {
  font-size: 18px;
  color: #132f63;
}

/* RWD */
@media (max-width: 992px) {
  .brand-container {
    flex-direction: column;
    gap: 40px;
  }

  .brand-img-group {
    width: 100%;
    max-width: 520px;
  }

  .brand-img-sub {
    right: 0;
    bottom: -30px;
  }

  .brand-content h2 {
    font-size: 34px;
  }
}

@media (max-width: 576px) {
  .brand-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-badge {
    width: 70px;
    height: 70px;
    right: 10px;
  }
}

/* ================================
   搜尋框（Search Box）
   ================================ */
.search_box {
  position: relative;
}

.search_box input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 40px 10px 12px;
}

.search_box button {
  border-radius: 0 10px 10px 0;
  position: absolute;
  right: 0px;
  border: none;
  background: #6cbc2c;
  color: #fff;
}

/* ================================
   商品頁圖片 Gallery（主圖＋縮圖）
   ================================ */
.product-thumb-carousel .item {
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.product-thumb-carousel .item.active {
  opacity: 1;
  border-color: #9fb36d;
  /* 品牌色 */
}

.product-main-carousel {
  max-height: 350px;
  /* 關鍵 */
  display: flex;
  align-items: center;
  /* 垂直置中 */
}

.product-main-carousel .item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-main-carousel img {
  max-height: 350px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ================================
   運送 / 免運提示資訊
   ================================ */
.delivery_info {
  /* 版面 */
  display: block;
  margin: 16px 0;
  padding: 14px 18px;

  /* 外觀 */
  background-color: var(--bg-soft, #FFF9E6);
  border: 1.5px solid var(--border-soft, #E8E0C8);
  border-radius: 6px;
  /* 直角＋小圓弧 */

  /* 文字 */
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-color, #3A3A3A);

  /* 視覺穩定 */
  box-sizing: border-box;
}

/* 強調文字（滿額免運） */
.delivery_info span {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--primery, #6FB04E);
}

/* hover（可選，加一點精緻感） */
.delivery_info:hover {
  border-color: var(--primery, #6FB04E);
  background-color: #fffdf4;
}

/* ================================
   最新消息 / 部落格圖片樣式
   ================================ */
.single_blog .blog_thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f0f0f0;
}

.single_blog .blog_thumb a,
.single_blog .blog_thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.single_blog .blog_thumb img {
  object-fit: cover;
  transition: transform 0.3s ease;
}

.single_blog .blog_thumb:hover img {
  transform: scale(1.05);
}

/* ================================
   購物車頁（Cart）
   ================================ */
table .cart_item {
  display: table-row;
}

.cart_table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cart_table th {
  background-color: #fff;
  font-weight: 600;
  white-space: nowrap;

  border-bottom: 3px solid #2f7a07;
  padding: 15px 10px;
}

.cart_table td {
  text-align: center;
  padding: 15px 10px;
  vertical-align: middle;
  border-bottom: 1px solid #bdbdbd;
}



.cart_table td.product_thumb img {
  width: 60px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.cart_table td input[type="number"] {
  width: 80px;

  text-align: center;
  padding: 5px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
}

@media screen and (max-width:764px) {
  .cart_table td input[type="number"] {
    width: 60px;
  }
}

.cart_table td .remove_btn {

  color: #dc3545;

  cursor: pointer;
  font-size: 20px;
}

/* ================================
   結帳流程步驟條（Checkout Steps）
   ================================ */
.checkout-steps {
  width: 100%;
}

.checkout-steps .steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

/* 中間的橫線 */
.checkout-steps .steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e5e5e5;
  transform: translateY(-50%);
  z-index: 1;
}

/* 每個 step */
.checkout-steps .steps li {
  position: relative;
  z-index: 2;
  background-color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: #999;
  border: 2px solid #e5e5e5;
  white-space: nowrap;
}

/* 當前步驟 */
.checkout-steps .steps li.active {
  color: #fff;
  background-color: #6fb04e;

  border-color: #6fb04e;
}

/* 已完成步驟*/
.checkout-steps .steps li.done {
  color: #6fb04e;
  background-color: #eef6ea;
  border-color: #6fb04e;
}

/* ================================
   登入提示 / 主操作按鈕
   ================================ */
.alert-login {
  background-color: #fff9e6;
  border: 1px solid #f7e3a2;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: var(--text-color);
}

/* 主色按鈕（登入 / 結帳） */
.btn_login,
.btn_checkout {
  color: var(--white);
  background-color: var(--theme-green);
  font-size: 16px;
  padding: 10px 40px;
  border-radius: 10px;
  position: relative;
  transition: 0.4s all;
  z-index: 2;
  overflow: hidden;
  border: solid 1px var(--theme-green);
  display: inline-block;
  text-align: center;
}

.btn_bycash {
  color: var(--white);
  background-color: var(--theme-blue);
  font-size: 16px;
  padding: 10px 40px;
  border-radius: 10px;
  position: relative;
  transition: 0.4s all;
  z-index: 2;
  overflow: hidden;
  border: solid 1px var(--theme-blue);
  display: inline-block;
  text-align: center;
}

.btn_bycash:hover {
  color: var(--white);
  background-color: var(--info);
  /* 建議用深棕色或黑色 */
}

/* hover 狀態：字變深色 */
.btn_login:hover,
.btn_checkout:hover {
  color: var(--white);
  background-color: var(--primery);
  /* 建議用深棕色或黑色 */
}


/* ================================
   Quick View Modal（快速檢視）
   ================================ */
/* QuickView 主圖容器 */
#modal_product_container .product_gallery {
  max-width: 380px;
  margin: 0 auto;
}

#modal_product_container .qv-main-carousel {
  width: 100%;
  border: 1px solid #ddd;
}

/* 主圖圖片 */
#modal_product_container .qv-main-carousel img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}

/* 縮圖 carousel 外框 */
#modal_product_container .qv-thumb-carousel {
  margin-top: 12px;
  width: 100%;
}

/* 每個縮圖 item */
#modal_product_container .qv-thumb-carousel .owl-item {
  cursor: pointer;
}

/* 縮圖圖片尺寸 */
#modal_product_container .qv-thumb-carousel img {
  width: 100%;
  height: 80px;

  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.modal-content button.close {
  position: absolute;
  left: 94%;
  top: 10px;
  width: 35px;
  height: 35px;
  line-height: 34px;
  display: block;
  border: 1px solid #ccc;
  /* 原 $grey_color */
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 9;
  background: transparent;
}

/* hover 狀態 */
.modal-content button.close:hover {
  color: #6FB12E;
  /* 原 $secondary_color，可自行調整 */
}

/* 內部 span */
.modal-content button.close span {
  display: block;
}

/* 手機尺寸（large mobile） */
@media (max-width: 767px) {
  .modal-content button.close {
    left: 83%;
    top: 4px;
    width: 32px;
    height: 32px;
    line-height: 35px;
    margin-bottom: 14px;
  }
}

/* ================================
   提示文字 error
   ================================ */
label.error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 6px;
  display: block;
}

/* ================================
   會員登入
   ================================ */
/* 登入卡片容器 */
.login_card {

  margin: 50px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-family: "Microsoft JhengHei", sans-serif;
}

/* 標題文字與連結 */
.login_card p {
  color: #666;
  font-size: 0.95rem;
}

.login_card a {
  color: #ADCD21;
  text-decoration: none;
  transition: 0.3s;
}

.login_card a:hover {
  color: #8bba1d;
  text-decoration: underline;
}

/* 輸入框樣式 */
.form-label {
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

.form-control {
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

/* 輸入框聚焦時變綠色 */
.form-control:focus {
  border-color: #ADCD21;
  box-shadow: 0 0 0 0.25 remote rgba(173, 205, 33, 0.25);
  outline: none;
}

/* 密碼眼睛按鈕包裹器 */
.input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  z-index: 10;
}

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

/* 登入按鈕自訂 (btn_back_products) */
.btn_back_products {
  background-color: #ADCD21;
  border: none;
  color: white;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn_back_products:hover {
  background-color: #8bba1d;
  box-shadow: 0 4px 12px rgba(173, 205, 33, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

/* 驗證碼圖片調整 */
.img-fluid.rounded {
  border: 1px solid #eee;
  cursor: pointer;
}

/* 忘記密碼與註冊連結 */
.forgot_link,
.register_link {
  font-weight: 600;
  font-size: 0.9rem;
}

.text-danger,
small {
  color: #ADCD21 !important;
  /* 將星號也改為綠色系或保留紅色 */
}



/* ================================
   會員登入
   ================================ */


.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* =========================
   左側選單
========================= */

.account-sidebar {
  background: #fafafa;
  border-radius: 16px;
  padding: 24px;
}

.account-sidebar a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

.account-sidebar .nav-link {
  color: #555;
  border-radius: 10px;
  margin-bottom: 6px;
}

.account-sidebar .nav-link.active {
  background: rgba(160, 190, 90, 0.18);
  color: #6fb12e;
  font-weight: 600;
  border: none;
}

/* =========================
   右側卡片
========================= */

.account-content {
  width: 100%;
}

.profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

/* =========================
   標題
========================= */

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-desc {
  font-size: 14px;
  color: #999;
  margin-bottom: 32px;
}

/* =========================
   表單分區
========================= */

.form-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* =========================
   Label / Input
========================= 

label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  display: block;
}

input,
select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 0 14px;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #6fb12e;
}*/

/* order detail 手風琴版*/
.order-detail-row {
  background: #f8f9fa;
}

.order-detail-box {
  border-top: 2px solid #6c8f2b;
}

.toggle-order {
  cursor: pointer;
}

@media (max-width: 768px) {
  .order-list thead {
    display: none;
  }

  .order-list tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
  }

  .order-list td {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border: none;
  }

  .order-list td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
  }

  .order-detail-row td {
    display: block;
  }
}

/* Email readonly */

.input-readonly,
input[readonly] {
  background: #f8f9fa;
  border: 1px dashed #ddd;
  color: #666;
}

/* 自訂 checkbox */


.checkbox-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  cursor: pointer;
}

.checkbox-custom>input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  /* ★ 把全域 input 影響全部歸零 */
  height: 18px !important;
  width: 18px !important;
  min-height: 18px;
  max-height: 18px;
  line-height: 1 !important;
  padding: 0 !important;

  border-radius: 4px;
  border: 2px solid #ccc;
  background: #fff;

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

  box-sizing: border-box;
  flex: 0 0 18px;
}

.checkbox-custom>input[type="checkbox"]:checked {
  background: #6fb12e;
  border-color: #6fb12e;
}

.checkbox-custom>input[type="checkbox"]:checked::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

/*自訂 radio*/

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;

  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;

  border-radius: 50%;
  border: 2px solid #a3c87e;
  /* 淡綠外框 */
  background-color: #fff;

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

  cursor: pointer;
  vertical-align: middle;
  box-sizing: border-box;
}

/* checked 狀態 */
input[type="radio"]:checked {
  border-color: #6fb12e;
  background-color: #6fb12e;
}

/* 中間勾勾 */
input[type="radio"]:checked::after {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

#orderAccordion>tr>td {
  vertical-align: middle;
}



/* =========================
   按鈕
========================= */

.form-actions {
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.btn-save {
  padding: 12px 36px;
  font-size: 15px;
  border-radius: 999px;
  background: #a5c94d;
  color: #fff;
  border: none;
  cursor: pointer;
}

.btn-save:hover {
  background: #95b83f;
}


/* =========================
   手機版 RWD
========================= */

@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px 60px;
  }

  .account-sidebar {
    padding: 16px;
  }

  .profile-card {
    padding: 24px 20px;
  }

  .page-title {
    font-size: 22px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-save {
    width: 100%;
    text-align: center;
  }
}

/* =========================
   經銷商招募區塊
========================= */
/* 為了配合 FontAwesome，確保 icon 顏色正確 */
.text-success {
  color: var(--brand-green) !important;
}

/* 圖片 hover 放大效果 (對應 HTML 中的 hover-scale class) */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* =========================================
   主區塊與標題 (Main Area & Headers)
   ========================================= */
.dealer-join-area {
  max-width: 1100px;
  margin: 0 auto;
  /* 背景與圓角已在 HTML 使用 Bootstrap class (bg-white rounded)，這裡主要控距 */
}

.section-title {
  color: var(--brand-green);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 28px;
}

.highlight-text {
  color: #d35400;
  /* 橘紅色強調 */
  font-weight: bold;
}

/* =========================================
   左側內容區：為什麼選擇漢菓緣 (Features)
   ========================================= */
.left-content-area {
  background: linear-gradient(to right, #f9fff5, #ffffff);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #f0f0f0;
  /* 極淡的邊框增加層次 */
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.feature-desc {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.6;
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--brand-green);
  margin-top: 4px;
  /* 對齊文字視覺重心 */
}

/* =========================================
   新增：限制右側大圖寬度
   ========================================= */
.image-wrapper-limited img {
  max-width: 80%;
  max-height: 100%;
  height: auto;
}

.image-wrapper-limited .position-absolute {
  right: 8% !important;
}

@media (max-width: 991px) {

  .image-wrapper-limited {
    height: auto !important;
    /* 取消 h-100 */
    padding: 20px 0;
  }

  .image-wrapper-limited img {
    max-width: 100%;
  }

  .image-wrapper-limited .position-absolute {
    right: 0 !important;
  }

  .left-content-area {
    height: auto !important;
    /* 取消 h-100 */
    margin-top: 20px;
  }
}

/* =========================================
   優勢四格卡片 (Benefit Items)
   ========================================= */
.benefit-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px 15px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(108, 154, 53, 0.15);
  border-color: var(--brand-green);
}

.benefit-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: var(--brand-light-green);
  color: var(--brand-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
}

/* =========================================
  申請表單區塊 (Form Section)
   ========================================= */
.dealer-form-card {
  background-color: var(--brand-light-green);
  border: none;
  border-left: 5px solid var(--brand-green);
  /* 左側裝飾線 */
}

/* 輸入框樣式優化 */
.dealer-form-card .form-control {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ddd;
  background-color: #fff;
}

.dealer-form-card .form-control:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 0.25rem rgba(108, 154, 53, 0.25);
  outline: none;
}

.dealer-form-card .form-label {
  margin-bottom: 6px;
  color: #555;
}


.captcha-input {
  height: 46px;
}

/* 圖片樣式設定 */
.captcha-img {
  height: 46px;

  width: 100%;

  object-fit: cover;

  cursor: pointer;

  background-color: #fff;
  transition: opacity 0.2s;
}

.captcha-img:hover {
  opacity: 0.8;
}

.captcha-img:hover {
  opacity: 0.8;
}

/* =========================================
   按鈕樣式 (Buttons)
   ========================================= */
.btn-brand {
  background-color: var(--brand-green);
  color: white;
  font-weight: bold;
  padding: 12px 40px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
}

.btn-brand:hover {
  background-color: #557d29;
  /* 深一點的綠色 */
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 154, 53, 0.4);
}

/* =========================================
   手機版微調 (Mobile Responsive)
   ========================================= */
@media (max-width: 767px) {
  .section-title {
    font-size: 24px;
    /* 手機標題小一點 */
  }

  .left-content-area {
    padding: 20px;
    /* 減少內距 */
    margin-top: 20px;
  }

  .dealer-form-card {
    padding: 25px !important;
    /* 覆蓋原本的 p-5 */
  }

  .benefit-item {
    margin-bottom: 10px;
  }
}

/* ================================
聯絡我們
================================ */
/* --- 聯絡我們頁面專用樣式 --- */

/* 標題區塊間距 */
.mb-50 {
  margin-bottom: 50px;
}

/* --- 左側：聯絡資訊樣式 --- */
.contact-info-wrapper {
  padding-right: 20px;
}

.single-contact-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

/* 圖標樣式 */
.contact-icon {
  flex: 0 0 50px;
  height: 50px;
  background-color: #f3f4f6;

  color: var(--brand-color);
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  font-size: 20px;
  margin-right: 20px;
  transition: all 0.3s ease;
}

/* 滑鼠懸停時圖標變色效果 */
.single-contact-info:hover .contact-icon {

  background-color: var(--brand-color);
  color: #fff;
}

.contact-text h4 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-text p {
  margin-bottom: 0;
  color: #6c757d;
  line-height: 1.6;
}

/* 營業時間小圖標 */
.contact-info-wrapper h5 i {
  color: var(--brand-color);
}


/* --- 右側：聯絡表單樣式 --- */

/* 表單輸入框優化 */
.contact-form-wrapper .form-control {
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  /* 較圓潤的邊角 */
  background-color: #f9fafb;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* 輸入框聚焦時的顏色與光暈 */
.contact-form-wrapper .form-control:focus {
  background-color: #fff;
  border-color: var(--brand-color);
  /* 使用 RGB 變數產生綠色的淡光暈 */
  box-shadow: 0 0 0 0.25rem rgba(var(--brand-color-rgb), 0.15);
}

.contact-form-wrapper .form-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #343a40;
}


.contact-form-wrapper .btn-primary {
  /* 按鈕背景與邊框色 */
  background-color: var(--brand-color);
  border-color: var(--brand-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* 按鈕懸停效果 */
.contact-form-wrapper .btn-primary:hover,
.contact-form-wrapper .btn-primary:focus,
.contact-form-wrapper .btn-primary:active {
  background-color: var(--brand-color-dark) !important;
  /* 使用較深的綠色 */
  border-color: var(--brand-color-dark) !important;
  transform: translateY(-2px);
  /* 輕微上浮效果 */
}

.contact-form-wrapper .btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--brand-color-rgb), 0.25) !important;
}

/* 確保容器有足夠的上下間距 */
.shopping_cart_area.mt-70 {
  margin-top: 70px;
  margin-bottom: 100px;
}

/* 左側欄位的背景紋理 (使用 CSS 繪製一個簡單的幾何圖案) */
.contact-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  /* 非常淡的透明度 */
  background-image:
    linear-gradient(30deg, #4a7c26 12%, transparent 12.5%, transparent 87%, #4a7c26 87.5%, #4a7c26),
    linear-gradient(150deg, #4a7c26 12%, transparent 12.5%, transparent 87%, #4a7c26 87.5%, #4a7c26),
    linear-gradient(30deg, #4a7c26 12%, transparent 12.5%, transparent 87%, #4a7c26 87.5%, #4a7c26),
    linear-gradient(150deg, #4a7c26 12%, transparent 12.5%, transparent 87%, #4a7c26 87.5%, #4a7c26),
    linear-gradient(60deg, #4a7c2677 25%, transparent 25.5%, transparent 75%, #4a7c2677 75%, #4a7c2677),
    linear-gradient(60deg, #4a7c2677 25%, transparent 25.5%, transparent 75%, #4a7c2677 75%, #4a7c2677);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  z-index: 0;
}

.z-index-1 {
  z-index: 1;
}

/* 標題裝飾線 */
.title-decoration-line {
  width: 60px;
  height: 4px;
  border-radius: 2px;
}

/* 圖標樣式優化 */
.contact-icon-box {
  transition: all 0.3s ease;
}

.contact-icon-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(74, 124, 38, 0.25) !important;
  /* 加深陰影 */
}

/* 表單輸入框細緻化 (配合 Bootstrap Floating Labels) */
.form-floating>.form-control {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding-left: 1.25rem;
  transition: all 0.2s ease-in-out;
}

.form-floating>.form-control:focus {
  border-color: #6FB12E;
  box-shadow: 0 0 0 0.25rem rgba(111, 177, 46, 0.15);
  /* 綠色光暈 */
}

.form-floating>label {
  padding-left: 1.25rem;
  color: #8c98a4;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
  color: #6FB12E;
  /* 聚焦時標籤變色 */
  font-weight: 500;
}

/* 按鈕樣式優化 */
.btn-lg {
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(111, 177, 46, 0.3) !important;
  filter: brightness(1.05);
  /* 輕微變亮 */
}

/* 響應式微調 */
@media (max-width: 991px) {

  .contact-info-col,
  .bg-white.p-5 {
    padding: 2.5rem !important;
  }

  .contact-info-wrapper {
    padding-right: 0;
    margin-bottom: 40px;
  }
}

.form-check-input.invoice-option:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
  background-color: #ADCD21 !important;
  border-color: #ADCD21 !important;
}

.form-check-input.invoice-option {
  border-radius: 50%;
}


/* 隱私權政策區塊容器 */
.privacy {
  background-color: #f4f4f4;
  padding: 80px 20px;
  font-family: "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  color: #333;
  line-height: 1.8;
}

.privacy-container {
  max-width: 850px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  /* 略帶透明感，若有背景圖會更好看 */
  padding: 60px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-top: 5px solid #666;
  /* 頂部深灰色強調線 */
}

/* 標題與生效日期 */
.privacy-container h1 {
  font-size: 1.8rem;
  color: #000;
  text-align: center;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.effective-date {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 50px;
  display: block;
}

/* 章節標題 */
.privacy-container h2 {
  font-size: 1.3rem;
  color: #222;
  margin-top: 45px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.privacy-container h3 {
  font-size: 1.05rem;
  color: #444;
  margin-top: 25px;
  font-weight: 600;
}

/* 內容文字與清單 */
.privacy-container p {
  margin-bottom: 18px;
  text-align: justify;
}

.privacy-container ul {
  margin-bottom: 25px;
  padding-left: 25px;
}

.privacy-container li {
  margin-bottom: 10px;
  list-style-type: square;
  /* 使用方塊符號增加線條感 */
  color: #555;
}

.privacy-container strong {
  color: #000;
}

/* 響應式：手機版調整 */
@media (max-width: 768px) {
  .privacy {
    padding: 40px 15px;
  }

  .privacy-container {
    padding: 30px 20px;
  }

  .privacy-container h1 {
    font-size: 1.5rem;
  }
}