/* ===================================
    Crafto - Fashion store
====================================== */
/* font */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&display=swap");

/* variable */
:root {
  --base-color: #ff9c15;
  --alt-font: "Outfit", sans-serif;
  --primary-font: "Figtree", sans-serif;
  --medium-gray: #828282;
}

/* reset */
body {
  font-size: 17px;
  line-height: 32px;
}

a:hover {
  color: var(--dark-gray);
}

.input-small,
.textarea-small,
.select-small {
  font-size: 14px;
}

.input-small {
  padding: 9px 15px;
}

/* menu container */
.menu-container {
  width: 100%;
  max-width: 1920px;
  /* 你可以調整 1140 / 1280 / 1440 */
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 991px) {
  .menu-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* header */
header .navbar-brand img {
  max-height: 34px;
}

header .navbar-brand {
  padding: 22px 0;
}

.navbar.center-logo .navbar-nav .nav-link {
  padding: 29px 20px;
  font-size: 16px;
}

.header-icon .icon>a {
  padding-left: 20px;
}

.header-icon .icon .header-language>a,
.header-icon .icon .header-cart>a {
  padding-left: 18px;
}

.header-cart-icon .cart-count {
  color: var(--dark-gray);
}

header .widget {
  font-size: 17px;
  display: inline-block;
}

.navbar .navbar-nav .submenu-content ul .sub-title {
  font-size: 17px;
  margin-bottom: 3px;
}

.navbar .navbar-nav .dropdown .dropdown-menu a {
  font-size: 16px;
  padding-bottom: 3px;
  font-weight: 300;
  border-color: transparent;
}

.header-cart-icon .header-cart .cart-item-list {
  border-radius: 0;
}

.header-cart-icon .header-cart .cart-item-list .cart-item .product-detail a {
  font-size: 16px;
  line-height: 28px;
}

.header-cart-icon .cart-count {
  background-color: var(--dark-gray);
}

.navbar.center-logo .navbar-left,
.navbar.center-logo .navbar-right {
  width: 35%;
}

/* 隱藏 template 內建的下拉圖示 */
.navbar .navbar-nav .nav-item.dropdown>a>i {
  display: none !important;
}

/* 顯示create_menu() 產生的箭頭 */
.navbar .navbar-nav .nav-item>i.dropdown-toggle {
  display: inline-block !important;
}

.dropdown-toggle::after {
  display: none;
}

/* bg color */
.bg-nero-grey,
.bg-nero-grey:focus {
  background-color: #1b1b1b;
}

/* min-width */
.min-w-150px {
  min-width: 150px;
}

/* btn */
.btn.btn-large {
  padding: 15px 30px;
}

.btn {
  text-transform: inherit;
}

.btn.btn-dark-gray {
  font-weight: 400;
}

.btn.btn-extra-large {
  font-size: 19px;
  padding: 20px 38px;
}

.btn.btn-large {
  font-size: 18px;
  padding: 15px 30px;
}

.btn.btn-medium {
  font-size: 16px;
  padding: 13px 26px;
}

.btn.btn-small {
  font-size: 16px;
  padding: 10px 20px;
}

.btn.btn-very-small {
  font-size: 14px;
  padding: 9px 20px;
}

.btn.btn-link {
  padding: 0 0 2px;
}

/* page title */
.page-title-extra-large h1 {
  font-size: 4.5rem;
  line-height: 4.5rem;
}

/* top bottom left right class */
.left-15 {
  left: 15%;
}

/* interactive banner */
.interactive-banner-style-09 .image-content:hover .content-arrow {
  opacity: 1;
}

/* tab style 04 */
.tab-style-04 .nav-tabs .nav-item .nav-link {
  line-height: 50px;
}

/* progress bar 02 */
.progress-bar-style-02 .progress {
  height: 10px;
}

/* footer */
.footer-dark,
.footer-dark p,
.footer-dark a {
  color: var(--medium-gray);
}

footer .footer-logo img {
  max-height: 34px;
}

footer .nav-link {
  color: var(--white);
  padding: 0 20px;
}

footer ul li {
  margin-bottom: 0;
}

footer .elements-social.social-icon-style-02 li {
  margin: 0 14px 0 0;
}

/* tab style 07 */
.tab-style-07 .nav-tabs .nav-item .nav-link {
  padding: 20px 30px;
}

.tab-style-07 .nav-tabs .nav-item .nav-link.active span,
.tab-style-07 .nav-tabs .nav-item .nav-link:hover span {
  color: var(--dark-gray);
}

/* tooltip */
.tooltip.show {
  opacity: 1;
}

.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--dark-gray);
  top: -2px;
}

.tooltip .tooltip-inner {
  background-color: var(--dark-gray);
  border-radius: 3px;
  font-size: 10px;
  text-transform: uppercase;
  padding: 5px 10px;
  font-weight: 500;
}

/* media query responsive */
@media (max-width: 1399px) {
  .sticky-wrap.shadow-in {
    left: 25px;
  }

  .center-logo .navbar-nav .nav-link,
  header.sticky .center-logo .navbar-nav .nav-link {
    padding-left: 13px;
    padding-right: 13px;
  }
}

@media (max-width: 1250px) {
  .sticky-wrap.shadow-in {
    left: 10px;
  }
}

@media (max-width: 991px) {
  .tab-style-07 .nav-tabs .nav-item .nav-link {
    padding: 20px;
  }

  .navbar.center-logo .navbar-left,
  .navbar.center-logo .navbar-right {
    width: 100%;
  }

  .navbar .navbar-nav .dropdown .dropdown-menu a,
  .navbar .navbar-nav .dropdown .dropdown-menu li.sub-title,
  .navbar-modern-inner .navbar-nav .dropdown .dropdown-menu li.sub-title,
  .navbar-full-screen-menu-inner .navbar-nav .dropdown .dropdown-menu li.sub-title {
    line-height: normal;
  }

  .header-icon .icon>a,
  .header-icon .icon .header-language>a,
  .header-icon .icon .header-cart>a {
    padding-left: 12px;
  }

  footer .nav-link {
    padding: 0 12px;
  }

  .tab-style-04 .nav-tabs .nav-item {
    padding: 0 16px;
  }
}

@media (max-width: 767px) {
  .tab-style-04 .nav-tabs .nav-item .nav-link {
    line-height: 35px;
  }

  .swiper-number-pagination-progress-vertical .swiper-pagination-wrapper {
    right: 15px;
  }

  .btn.btn-large {
    font-size: 17px;
    padding: 13px 25px;
  }
}

@media (min-width: 1301px) and (max-width: 1399px) {

  .navbar.center-logo .navbar-nav .nav-link,
  header.sticky .center-logo .navbar-nav .nav-link {
    padding-left: 13px;
    padding-right: 13px;
    font-size: 18px;
  }
}

@media (min-width: 1200px) and (max-width: 1300px) {

  .navbar.center-logo .navbar-nav .nav-link,
  header.sticky .center-logo .navbar-nav .nav-link {
    padding-left: 11px;
    padding-right: 11px;
    font-size: 17px;
  }

  .header-icon .icon>a {
    font-size: 16px;
    padding-left: 13px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .header-icon .icon>a {
    font-size: 16px;
    padding-left: 10px;
  }

  .header-icon .icon .header-language>a,
  .header-icon .icon .header-cart>a {
    padding-left: 10px;
    font-size: 16px;
  }

  .navbar.center-logo .navbar-nav .nav-link,
  header.sticky .center-logo .navbar-nav .nav-link {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 17px;
  }

  .btn.btn-switch-text.btn-large>span {
    padding: 16px 28px;
  }
}

/* ===============================
   避免被固定 nav 蓋住
=============================== */
.slider-section {
  /* 依你的 header 高度調整 */
  margin-top: 90px;
}

/* ===============================
   Slide 基本結構
=============================== */
.slide-item {
  position: relative;
}

/* 圖片＋熱點定位容器 */
.slide-media {
  position: relative;
  width: 100%;
  height: 600px;
  /* 桌機固定高度 */
  overflow: hidden;
}

@media (max-width: 991px) {
  .slide-media {
    height: auto;
    /* 平板以下改由圖片撐高 */
  }
}

/* 圖片：桌機填滿，手機等比例縮小 */
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 桌機填滿，允許裁切 */
}

/* 手機：等比例縮小，不裁切左右 */
@media (max-width: 767px) {
  .slide-img {
    height: auto;
    /* 由圖片原比例決定高度 */
    object-fit: contain;
    /* 不裁切，等比例縮小 */
    display: block;
  }
}

.owl-carousel .owl-dots {
  display: flex !important;
  justify-content: center;
  margin-top: 15px;
}

/* 每一點 */
.owl-dot span {
  width: 10px;
  height: 10px;
  display: block;
  background: #ccc;
  border-radius: 50%;
  transition: 0.25s;
  margin: 0 5px;
}

/* Hover 效果 */
.owl-dot:hover span {
  background: #999;
}

/* 啟用中的點 */
.owl-dot.active span {
  background: #ff6b00;
  /* 你網站主色 */
  transform: scale(1.3);
}

/* ===============================
   Desktop Hotspot
=============================== */
.hotspot-desktop {
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
}

/* Mobile 上只顯示點位的那層 */
.hotspot-mobile-spots {
  position: absolute;
  inset: 0;
}

/* 單一熱點 */
.hs-spot {
  position: absolute;
  transform: translate(-50%, -50%);
}

/* 點位樣式 */
.hs-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #ff6b00;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  .hs-dot {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }
}

/* Popup 泡泡（桌機顯示、手機關閉） */
.hs-pop {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px;
  background: #222;
  color: #fff;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  min-width: 180px;
  z-index: 10;
}

.hs-spot:hover .hs-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

@media (max-width: 767px) {
  .hs-pop {
    display: none !important;
  }
}

/* ===============================
   Mobile Hotspot 卡片（橫向滑動）
=============================== */
.hotspot-mobile-cards {
  padding: 15px 10px;
  background: #fff;
}

/* 注意：卡片本身會被 Owl 包在 .owl-stage-outer 裡，
   由於外層 .slide-item 沒固定高度 + autoHeight: true，
   不會再被裁掉 */
.hotspot-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 200px;
}

.hotspot-thumb {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Owl 裡的小卡高度讓內容決定即可 */
.hotspot-owl .owl-stage-outer {
  overflow: visible;
}

/* YouTube 背景影片 */
.video-bg-container {
  z-index: 1;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  /* 禁止滑鼠點到 iframe */
}

/* blog */
/* =====================================================
   1. 修正 blog 圖片不填滿紅框
===================================================== */
.blog-grid .card .blog-image {
  width: 100%;
  height: 260px;
  /* 可依需要調整 */
  overflow: hidden;
}

.blog-grid .card .blog-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 4px 4px 0 0;
}

/* =====================================================
   2. 修正 author 消失（主題預設 hover 才出現）
      → 我們將它改為「永遠顯示」
===================================================== */

/* 移除原始程式把作者隱藏在底部的 transform */
.blog-grid .card .card-body .author .author-name {
  position: relative !important;
  /* 從 absolute 改為正常佈局 */
  left: auto !important;
  bottom: auto !important;
  transform: translateY(0) !important;
  /* 不再往下移動 */
  opacity: 1 !important;
  visibility: visible !important;
}

/* 讓日期保持在原位，不會往上飄 */
.blog-grid .card .card-body .author .blog-date {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 移除 overflow-hidden 避免作者被切掉 */
.blog-grid .card .card-body .author {
  overflow: visible !important;
}

/* =====================================================
   3. 取消 hover 動畫效果（不需要往上浮現）
===================================================== */
.blog-grid .card:hover .author .blog-date,
.blog-grid .card:hover .author .author-name {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Page Header 區塊 */
.page-header {
  margin-top: 130px;
  padding: 30px 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url("../images/header-bg.png");
}

/* 內部 Flex 排版：左標題 + 右麵包屑 */
.page-header .col-12 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 標題 */
.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2a44;
  /* 深藍灰，依圖片視覺 */
  margin: 0;
}

/* 麵包屑 */
.breadcrumbs {
  font-size: 14px;
  color: #777;
}

.breadcrumbs a {
  color: #777;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #000;
}

.breadcrumbs .main-title {
  margin-left: 6px;
  font-weight: 600;
  color: #1f2a44;
}

.breadcrumbs i {
  font-size: 12px;
  margin: 0 6px;
  color: #999;
}

/* RWD：手機時改為上下排列 */
@media (max-width: 767px) {
  .page-header .col-12 {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* side bar */
.menu {
  width: 100%;
  background: #fff;
  font-family: "Microsoft JhengHei", Arial, sans-serif;
  border-right: 1px solid #eee;
  /* 選用：右側邊界線 */
}

/* 清除預設列表樣式 */
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- 第一層連結樣式 --- */
.menu>ul>li>a {
  display: block;
  padding: 12px 20px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.3s, color 0.3s;
  position: relative;
  /* 為了定位箭頭 */
}

.menu>ul>li>a:hover {
  background-color: #f9f9f9;
  color: #000;
}

/* --- 子選單樣式 (第二層以後) --- */
.menu ul.submenu {
  display: none;
  /* 預設隱藏，由 JS 控制滑開 */
  background-color: #fafafa;
}

/* 子選單連結 */
.menu ul.submenu li a {
  display: block;
  padding: 10px 20px 10px 40px;
  /* 左側縮排較多，顯示層級 */
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border-bottom: 1px dashed #eee;
}

.menu ul.submenu li a:hover {
  color: #d32f2f;
  /* 懸停時變色 (範例：紅色) */
  background-color: #f0f0f0;
}

/* 第三層 (如果有的話) 再縮排 */
.menu ul.submenu ul.submenu li a {
  padding-left: 60px;
}

/* --- CSS 箭頭 (純代碼繪製) --- */
/* 只有帶有 has-sub class 的連結才顯示箭頭 */
.menu a.has-sub::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -4px;
  /* 垂直置中微調 */
  width: 6px;
  height: 6px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(45deg);
  /* 向下箭頭 */
  transition: transform 0.3s ease;
}

.menu a.has-sub.open::after {
  transform: rotate(-135deg);
  /* 箭頭轉向上 */
  border-color: #d32f2f;
}

/* 設定商品圖片區塊內的 img */
img.custom-img-fix {
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover;
  object-position: top;

}

/* product toolbar*/
.product_topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.product_topbar select {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/*----------product dropdown sort -------------*/
.tf-dropdown-sort {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tf-dropdown-sort .btn-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.tf-dropdown-sort .btn-select:hover {
  border-color: #f28311;
}

.tf-dropdown-sort .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 10;
  margin-top: 6px;
}

.tf-dropdown-sort.show .dropdown-menu {
  display: block;
}

.tf-dropdown-sort .select-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tf-dropdown-sort .select-item:hover {
  background-color: #fafafa;
  color: #f28311;
}

.tf-dropdown-sort .select-item.active {
  font-weight: 600;
  color: #f28311;
}

/*----------End product dropdown sort -------------*/

/* ================================
   購物車頁（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 #ff9c15;
  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;
}

/* ================================
   購物車-表單
   ================================ */

.form_section {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;

  padding: 25px;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);

  transition: all 0.3s ease;
}

.form_section:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);

}


.fs-26 {
  font-size: 1.5rem;
  /* 對應 fs-26 */
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  /* 標題底線 */
  padding-bottom: 10px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}


.form-control {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 10px 15px;
  font-size: 15px;
  height: 48px;

  background-color: #fcfcfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  background-color: #fff;
  border-color: #4a4a4a;

  box-shadow: 0 0 0 3px rgba(255, 156, 21, 0.15);

}


.form-label {
  font-weight: 600;
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}


.shipping-method-selector label,
.form-check-inline label {
  cursor: pointer;
  font-weight: 500;
  color: #444;
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
}

/* 1. 針對所有區塊的 Radio Button 設定 */
.invoice-box input[type="radio"],
.form_section input[type="radio"],
.shipping-method-selector input[type="radio"] {

  /* 強制清除預設樣式 */
  -webkit-appearance: none !important;
  appearance: none !important;

  /* 強制固定尺寸 (防止變橢圓的關鍵) */
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;

  /* 防止被 Flexbox 擠壓 (關鍵！) */
  flex-shrink: 0 !important;

  /* 排版 */
  margin-top: 0 !important;
  margin-right: 10px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  cursor: pointer;

  /* 未選取樣式 */
  border: 1px solid #aaa !important;
  border-radius: 50% !important;
  background-color: #fff !important;
  box-shadow: none !important;
  /* 移除 Bootstrap 的陰影 */
  outline: none !important;
}

/* 2. 選取狀態 (Checked) */
.invoice-box input[type="radio"]:checked,
.form_section input[type="radio"]:checked,
.shipping-method-selector input[type="radio"]:checked {

  border: 2px solid #ff9c15 !important;
  /* 橘色外框 */
  background-color: #444 !important;
  /* 深色內圓 */

  /* 利用 padding 擠出白色間隙 */
  padding: 3px !important;
  background-clip: content-box !important;
}

/* 3. Label 文字對齊修正 */
.radio-label-wrapper {
  display: flex !important;
  /* 強制橫向排列 */
  align-items: center !important;
  /* 強制垂直置中 */
  justify-content: flex-start !important;
  /* 強制靠左 (解決分開問題) */
  width: 100%;
  cursor: pointer;
}

.home_section,
.store_section {
  background-color: #f8fcf9;
  border: 1px dashed #c3e6cb;
  border-radius: 8px;
  padding: 20px;
}


.home_section h6,
.store_section h6 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  background-color: #fffaf0;
  border: 1px dashed #ffdbb0;
  display: flex;
  align-items: center;
}

.home_section h6::before,
.store_section h6::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: #ff9c15;

  margin-right: 8px;
  border-radius: 2px;
}

.home_section .form-check-inline label {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.2s;
  font-size: 14px;
}

.home_section .form-check-inline label:hover {
  border-color: #ff9c15;
  color: #ff9c15;
}

.home_section .form-check-inline:has(input:checked) label:has(input:checked) {
  /* 選中後的背景色 (淡橘色) */
  background-color: #fff5e6;
  border-color: #ff9c15;
  color: #e68a00;
  /* 文字稍微深一點的橘色，確保易讀性 */
}

/* (備用) 如果不支援 :has，這段是給 label 本身的通用選取樣式 */
.home_section .form-check-inline input:checked+label {
  border-color: #ff9c15;
  color: #ff9c15;
}

/* ================================
   結帳流程步驟條（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;
  transition: all 0.3s;
}

/* 當前步驟 - 改為主色橘 */
.checkout-steps .steps li.active {
  color: #fff;
  background-color: #ff9c15;
  /* 主色 */
  border-color: #ff9c15;
  box-shadow: 0 0 0 3px rgba(255, 156, 21, 0.2);
  /* 增加一點光暈質感 */
}

/* 已完成步驟 - 改為橘色文字 + 淡橘背景 */
.checkout-steps .steps li.done {
  color: #ff9c15;
  background-color: #fff5e6;
  /* 極淡的橘色背景 */
  border-color: #ff9c15;
}

/* ================================
   登入提示 / 主操作按鈕
   ================================ */
.alert-login {
  /* 改為暖色系背景，呼應橘色主題 */
  background-color: #fffaf0;
  border: 1px dashed #ffdbb0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #555;
}

/* 主色按鈕（登入 / 結帳）- 改為橘色 */
.btn_login,
.btn_checkout {
  color: #fff;
  background-color: #ff9c15;
  /* 主色 */
  font-size: 16px;
  padding: 10px 40px;
  border-radius: 10px;
  position: relative;
  transition: 0.4s all;
  z-index: 2;
  overflow: hidden;
  border: solid 1px #ff9c15;
  display: inline-block;
  text-align: center;
  font-weight: 500;
}

/* 現金/其他按鈕 - 原本是藍色，建議改為深灰色以襯托橘色，避免配色衝突 */
.btn_bycash {
  color: #fff;
  background-color: #4a4a4a;
  /* 深灰色 */
  font-size: 16px;
  padding: 10px 40px;
  border-radius: 10px;
  position: relative;
  transition: 0.4s all;
  z-index: 2;
  overflow: hidden;
  border: solid 1px #4a4a4a;
  display: inline-block;
  text-align: center;
}

/* hover 狀態：統一變深橘色 */
.btn_login:hover,
.btn_checkout:hover {
  color: #fff;
  background-color: #e68a00;
  /* 深一點的橘色 */
  border-color: #e68a00;
}

/* 次要按鈕 hover 狀態：也變橘色，增加互動感 */
.btn_bycash:hover {
  color: #fff;
  background-color: #ff9c15;
  border-color: #ff9c15;
}

/* ================================
   會員登入 (橘金色系版)
   ================================ */
/* 登入卡片容器 */
.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: #ff9c15;
  text-decoration: none;
  transition: 0.3s;
}

.login_card a:hover {
  color: #e68a00;
  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: #ff9c15;
  box-shadow: 0 0 0 0.25rem rgba(255, 156, 21, 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: #ff9c15;
}

/* 登入按鈕自訂 (btn_back_products) */
.btn_back_products {
  /* ★ 修改：按鈕背景改為主色橘 */
  background-color: #ff9c15;
  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: #e68a00;
  box-shadow: 0 4px 12px rgba(255, 156, 21, 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: #ff9c15 !important;
}

/* checkout 發票選項 */
/* --- 強制修正排版 --- */
.invoice-option-row {
  display: block;
  /* 確保每一行都是獨立區塊，垂直排列 */
  text-align: left;
  /* 強制內容靠左 */
}

.cursor-pointer {
  cursor: pointer;
}


/* --- 文字樣式微調 --- */
.fw-500 {
  font-weight: 500;
  color: #333;
}


/* ==============================================
   自定義 Radio (絕對防跑版、防樣式衝突版)
   ============================================== */

/* 1. 外層容器：強制將圓點與文字綁在一起，靠左對齊 */
.custom-radio-label {
  display: inline-flex !important;
  /* 關鍵：讓內容緊密排列 */
  align-items: center !important;
  /* 垂直置中 */
  position: relative;
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
  /* 防止連點選取文字 */
}

/* 2. 隱藏原本的 Radio Button (但保留功能) */
.custom-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* 3. 自己畫的圓圈 (未選取狀態) */
.checkmark {
  position: relative;
  display: inline-block;
  height: 22px;
  /* 固定高度 */
  width: 22px;
  /* 固定寬度 */
  min-width: 22px;
  /* 防止被擠壓變形 */
  background-color: #fff;
  border: 1px solid #aaa;
  /* 灰色邊框 */
  border-radius: 50%;
  margin-right: 12px;
  /* 與文字的距離 */
  transition: all 0.2s;
}

/* 4. 當 Input 被選取時，改變外圈顏色 */
.custom-radio-label input:checked~.checkmark {
  border: 2px solid #ff9c15;
  /* 橘色外框 */
}

/* 5. 畫出中間的圓點 (預設隱藏) */
.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  /* 圓點定位 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 圓點樣式 */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
  /* 深色內圓 */
}

/* 6. 當 Input 被選取時，顯示中間圓點 */
.custom-radio-label input:checked~.checkmark::after {
  display: block;
}

/* 7. 滑鼠移過去的 hover 效果 */
.custom-radio-label:hover input~.checkmark {
  border-color: #ff9c15;
}

/* ==============================================
   news的圖片調整
   ============================================== */

.uniform-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}