.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.category-item {
  text-align: center;
  font-size: 1rem;
  /* 寬度增加，字體稍微調大 */
  cursor: pointer;
  flex: 0 0 auto;
  width: 12.5%;
  /* 8 個項目平分 100% */
}

.icon-circle {
  width: 70px;
  /* 增加圓圈尺寸以符合大寬度 */
  height: 70px;
  background-color: #fff5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #ff4d4f;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.icon-circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.icon-circle.highlight {
  background-color: #fffbe6;
  color: #faad14;
}

/* 針對手機版的微調 */
@media (max-width: 768px) {
  .category-item {
    width: 25%;
    /* 手機上一排顯示 4 個 */
    margin-bottom: 20px;
  }

  .pagination .page-item + .page-item {
    margin-left: 0px;
  }

  .pagination .page-item .page-link {
    border-radius: 8px;
    padding: 8px;
  }
}

.top-search .s-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(29, 29, 29);
  z-index: 99;
}

.top-search .top-search-box {
  width: 100%;
  border-radius: 8px !important;
  border: none;
  padding: 10px 10px 10px 40px;
  font-size: 14px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0px;
}

.view-more {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

/* 首頁彈窗 */
.modal-header-custom {
  background-color: #ff5722;
  color: white;
  border-bottom: none;
  text-align: center;
  display: block;
  position: relative;
  padding: 2rem 1rem 1rem;
}

.modal-title-custom {
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 0;
}

.notice-icon {
  font-size: 3rem;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  line-height: 70px;
  color: #ff5722;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-content {
  border-radius: 15px;
  overflow: hidden;
  border: none;
}

.warning-text {
  color: #ff5722;
  font-weight: bold;
  font-size: 1.25rem;
}

.list-unstyled li {
  margin-bottom: 10px;
  padding-left: 1.5rem;
  position: relative;
}

.list-unstyled li::before {
  content: '●';
  color: #ff5722;
  position: absolute;
  left: 0;
}

.modal-footer-custom {
  border-top: none;
  padding: 0 1.5rem 1.5rem;
}

/* 卡片樣式 */
.product-card {
  background: #fff;
  border: 1px solid var(--bs-component-border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* 1. 圖片容器與初始圖片狀態 */
.img-container {
  position: relative;
  height: 250px;
  /* 這裡設定你想要的固定高度 (例如 200px 或 250px) */
  width: 100%;
  /* 寬度隨父層縮放 */
  overflow: hidden;
  background-color: #000;
  /* 作為變暗後的底色 */
}

.img-container img {
  width: 100%;
  height: 100%;
  /* 強制填滿容器高度 */
  object-fit: cover;
  /* 關鍵：圖片會自動裁切以填滿空間，不被拉伸變形 */
  transition: all 0.4s ease;
  /* 變暗與縮放的過渡 */
  display: block;
}

/* 2. 遮罩層：負責變暗效果 */
.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  /* 初始透明 */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s ease;
  z-index: 2;
}

/* 3. 快速加購按鈕樣式 */
.quick-buy-btn {
  background-color: #fff;
  color: #ff4d4f;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

  /* 初始狀態：隱藏且縮小 */
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* 加入一點彈跳感 */
}

/* --- 觸發效果 (Hover) --- */

/* 當滑鼠進入圖片區域時 */
.img-container:hover img {
  filter: brightness(0.6);
  /* 圖片變暗 */
  transform: scale(1.05);
  /* 圖片稍微放大（可選，增加動態感） */
}

.img-container:hover .img-overlay {
  background-color: rgba(0, 0, 0, 0.2);
  /* 增加一層淡淡的黑色遮罩 */
}

/* 按鈕顯現 */
.img-container:hover .quick-buy-btn {
  opacity: 1;
  transform: scale(1);
  /* 恢復原始大小 */
}

/* 按鈕本身的 Hover 效果 */
.quick-buy-btn:hover {
  background-color: #ff4d4f;
  color: #fff;
}

.card-body {
  padding: 25px;
  position: relative;
}

.product-name {
  font-size: 0.95rem;
  color: #444;
  height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
  line-height: 1.4;
}

.price-row {
  color: #ff4d4f;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.stock-info {
  color: #999;
  font-size: 0.75rem;
}

/* 右下角購物車按鈕 */
.cart-btn {
  position: absolute;
  right: 25px;
  bottom: 25px;
  width: 32px;
  height: 32px;
  background-color: #ff4d4f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cart-btn:hover {
  background-color: #ff2a2d;
  color: white;
}

/* 卡片基礎樣式 */
.shop-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 店舖圖容器與圖片固定尺寸 */
.shop-logo-wrapper {
  width: 80px;
  /* 固定寬度 */
  height: 80px;
  /* 固定高度 */
  flex-shrink: 0;
  /* 防止被 Flexbox 壓縮 */
  border-radius: 12px;
  /* 圓角 */
  overflow: hidden;
  /* 確保圖片超出部分被裁切 */
  background-color: #f8f9fa;
}

.shop-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 關鍵：圖片自動縮放填滿，不變形、不拉伸 */
  display: block;
}

/* 調整店舖資訊排版，確保文字不會擠到圖 */
.shop-info {
  display: flex;
  gap: 15px;
  /* 圖與文字的間距 */
  align-items: flex-start;
  margin-bottom: 15px;
}

.shop-text {
  flex-grow: 1;
  /* 讓文字填滿剩餘空間 */
  min-width: 0;
  /* 確保文字截斷功能在 Flex 中生效 */
}

.shop-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.shop-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.4;
  margin: 0;
  /* 限制描述文字為兩行，多出的顯示省略號 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 進入店舖按鈕 */
.btn-enter {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 6px;
  color: #444;
  font-size: 0.9rem;
  padding: 8px;
  background: #fff;
  transition: all 0.2s;
}

.btn-enter:hover {
  background: var(--bs-app-theme);
  border-color: #ddd;
  color: rgb(255, 255, 255);
}

.btn-enter i {
  margin-right: 5px;
}

/* 自定義 Tab 樣式 */
.custom-tabs .nav-link {
  color: #666;
  background: transparent;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* 選中狀態：白色背景 + 陰影 */
.custom-tabs .nav-link.active {
  background-color: #fff !important;
  color: #000 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 中間大按鈕顏色 */
.btn-main-action {
  background-color: #ff4d4f;
  color: white;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-main-action:hover {
  background-color: #ff2a2d;
  color: white;
}

/* 讓 Tab 容器背景更淡一點，符合圖片感 */
.bg-light {
  background-color: #f1f3f5 !important;
}

/* 1. 外層包裹容器：控制滑動 */
.nav-scroll-wrapper {
  display: flex;
  justify-content: center;
  /* 桌機置中 */
  overflow-x: auto;
  /* 開啟左右滑動 */
  white-space: nowrap;
  /* 強制不換行 */
  -webkit-overflow-scrolling: touch;
  /* 讓手機滑動更順暢 */
  padding: 10px 0;
}

/* 隱藏滾動條 (Chrome, Safari, Opera) */
.nav-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* 隱藏滾動條 (IE, Edge, Firefox) */
.nav-scroll-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 2. 自定義 Tab 按鈕樣式 (還原圖片視覺) */
.custom-scroll-tabs {
  background-color: #f1f3f5;
  /* 淺灰色底 */
  padding: 4px;
  border-radius: 50px;
  display: inline-flex;
  /* 關鍵：讓寬度隨內容撐開 */
}

@media (max-width: 767.98px) {
  .custom-scroll-tabs {
    width: 100%;
    overflow: scroll;
  }
}

.custom-scroll-tabs .nav-link {
  color: #666;
  border: none;
  font-weight: 500;
  padding: 8px 25px;
  transition: all 0.3s ease;
}

/* 選中狀態：白色背景 + 陰影 */
.custom-scroll-tabs .nav-link.active {
  background-color: #fff !important;
  color: #000 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 3. 內容淡入淡出動畫速度調整 */
.tab-pane.fade {
  transition: opacity 0.2s linear;
}

/* 圖標項目容器 */
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  padding: 10px;
}

/* 固定圖標大小 */
.logo-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.05);
  /* 淡淡的底色 */
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 8px;
  filter: grayscale(30%);
  /* 平常稍微灰階，看起來更整齊 */
  transition: all 0.3s ease;
}

/* 文字樣式 */
.logo-item span {
  font-size: 0.7rem;
  color: #888;
  white-space: nowrap;
}

/* Hover 效果 */
.logo-item:hover img {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
  filter: grayscale(0%);
  /* 移入時恢復彩色 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logo-item:hover span {
  color: #fff;
}

/* 超小文字 */
.x-small {
  font-size: 0.65rem;
  letter-spacing: 1px;
}

/* 確保輪播容器寬度 100% */
#main-carousel .carousel-inner {
  width: 100%;
}

/* 確保圖片填滿寬度並保持比例 */
.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 針對手機版可以微調高度防止過長 (選用) */
@media (max-width: 767.98px) {
  .carousel-item img.d-md-none {
    min-height: 400px;
    /* 視你的手機版圖片比例調整 */
    object-fit: cover;
  }
}

/* 自定義左右箭頭顏色與大小 */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  /* 縮小控制區範圍以免遮擋點擊 */
  opacity: 0.8;
}

/*篩選條件 1. 調整滑桿軌道高度與圓角 */
#slider-range {
  height: 8px;
  border: none;
  background: #e9ecef;
  /* 未選中區域灰色 */
  border-radius: 10px;
}

/* 2. 選中區域 (區間內) 改為紅色 */
#slider-range .ui-widget-header {
  background: #ff4d4d;
  /* 圖片中的紅色 */
}

/* 3. 調整圓形手把樣式 */
#slider-range .ui-state-default,
#slider-range .ui-widget-content .ui-state-default {
  width: 22px;
  height: 22px;
  top: -8px;
  /* 讓手把垂直居中軌道 */
  border-radius: 50%;
  background: #fff !important;
  border: 2px solid #ff4d4d !important;
  /* 紅色邊框 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  outline: none;
}

/* 滑動時的圓鈕效果 */
#slider-range .ui-state-hover,
#slider-range .ui-state-active {
  transform: scale(1.1);
  transition: transform 0.1s;
}

#backToTop {
  display: none;
  /* 預設隱藏，由 JS 控制顯示 */
  position: fixed;
  /* 固定定位 */
  bottom: 20px;
  /* 距離底部距離 */
  right: 20px;
  /* 距離右邊距離 */
  z-index: 99;
  /* 確保在最上層 */
  border: none;
  outline: none;
  background-color: #555;
  /* 背景顏色 */
  color: white;
  /* 箭頭顏色 */
  cursor: pointer;
  padding: 15px;
  align-items: center;
  border-radius: 50%;
  /* 圓形按鈕 */
  width: 50px;
  height: 50px;
  font-size: 20px;
  transition: background-color 0.3s;
  /* 懸停動畫 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#backToTop:hover {
  background-color: #333;
  /* 滑鼠移上去變深色 */
}

.arrow {
  display: block;
  line-height: 20px;
}

.shop-card-b {
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.shop-img-top {
  height: 240px;
  /* 固定高度 */
  width: 100%;
  /* 寬度隨父層容器 */
  position: relative;
  overflow: hidden;
  /* 確保圖片不超出圓角邊界 */
}

.shop-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 關鍵：裁切並填滿容器，保持比例不變形 */
  transition: all 0.4s ease;
  display: block;
}

/* 當滑鼠進入圖片區域時 */
.shop-img-top:hover img {
  filter: brightness(0.6);
  /* 圖片變暗 */
  transform: scale(1.05);
  /* 圖片稍微放大（可選，增加動態感） */
}

.btn-enter2 {
  background-color: #ff4d4d;
  color: white;
  border: none;
  width: 100%;
  border-radius: 8px;
  padding: 10px;
}

.btn-enter2:hover {
  background-color: #e63e3e;
  color: white;
}

.heart-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffffff69;
  border-radius: 50%;
  padding: 3px 8px 1px;
  border: 0px solid #ddd;
}

/* 預設樣式 (未加入) */
.heart-icon {
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  /* 或是你想要的邊框顏色 */
  font-size: 1.2rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  /* 增加陰影讓白色圖示在淺色圖上清楚 */
}

/* 已加入最愛的樣式 */
.heart-icon.active {
  color: #ff4757;
  /* 愛心紅 */
  transform: scale(1.1);
  /* 稍微放大增加動態感 */
}

/* 如果你想用填滿的愛心，可以配合 Bootstrap Icon 的切換 */
.heart-icon.active i::before {
  content: '\f415';
  /* bi-heart-fill 的代碼 */
}

.shop-logo {
  width: 50px;
  height: 50px;
  background: #eee;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-badge {
  background-color: #ff4d4d;
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

/* --- 列表模式 (List View) 專用樣式 --- */

/* 自定義按鈕顏色 */
.btn-list {
  background-color: var(--bs-app-theme);
  color: #fff;
  border: 1px solid var(--bs-app-theme);
}

.btn-list:hover,
.btn-list.active {
  background-color: var(--bs-app-theme);
  filter: brightness(0.9);
  /* 稍微變深一點點作區分 */
  color: #fff;
}

/* 1. 讓每一列佔滿 100% */
.list-view .col-md-4 {
  width: 100% !important;
  max-width: 100% !important;
}

/* 2. 卡片改為橫向排列 */
.list-view .shop-card-b {
  flex-direction: row;
  height: 240px !important;
  /* 設定一個固定高度讓列表整齊 */
  align-items: stretch;
}

/* 3. 左側圖片容器：調整這裡的 width 來增加寬度 */
.list-view .shop-img-top {
  width: 45%;
  /* 使用百分比，或者設為 350px */
  min-width: 300px;
  /* 確保在平板上不會縮太小 */
  height: 100%;
  position: relative;
}

.list-view .shop-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 確保圖片不變形且填滿 */
}

/* 4. 右側內容區 */
.list-view .card-body {
  flex: 1;
  padding: 2rem;
  /* 增加留白感 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 5. 調整列表模式下的按鈕位置 (可選) */
.list-view .btn-enter2 {
  width: fit-content;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* 手機版：回到原本的垂直排列，不然手機會太擠 */
@media (max-width: 767px) {
  .list-view .shop-card-b {
    flex-direction: column;
    height: auto !important;
  }

  .list-view .shop-img-top {
    width: 100%;
    min-width: 100%;
    height: 200px;
  }
}

/* 規格按鈕基本樣式 */
.spec-btn {
  border: 1px solid #ddd;
  color: #333;
  padding: 5px 15px;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  overflow: hidden;
}

.spec-btn.active {
  border-color: #ff4b2b;
  color: #ff4b2b;
  position: relative;
}

.spec-btn.active::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  border: 5px solid transparent;
  border-right-color: #ff4b2b;
  border-bottom-color: #ff4b2b;
}

.qty-input {
  width: 60px;
  text-align: center;
  border: 1px solid #ddd;
  background: #f8f8f8;
}

/* 1. 隱藏主視窗捲軸 */
body.lb-disable-scrolling {
  overflow: hidden !important;
}

/* 2. 限制 Lightbox 最大高度，預留空間給底部資訊 */
.lb-image {
  max-height: 80vh !important;
  /* 視情況調整，保留空間給標題 */
  width: auto !important;
}

/* 3. 關閉按鈕移至右上角 (相對於圖片容器) */
.lb-outerContainer {
  position: relative !important;
}

.lb-dataContainer {
  padding-top: 10px;
}

.lb-data .lb-close {
  position: fixed;
  /* 改用 fixed 定位在視窗右上 */
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  background-size: contain;
  z-index: 10000;
  opacity: 0.7;
}

.lb-data .lb-close:hover {
  opacity: 1;
}

/* 4. 確保導航箭頭易於點擊 */
.lb-nav a.lb-prev,
.lb-nav a.lb-next {
  opacity: 0.3;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
  opacity: 1;
}

.policy-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}

.policy-container {
  width: 100%;
  max-width: 900px;
  /* 關鍵修改：設定最大高度為視窗高度的一定比例 */
  max-height: 80vh;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);

  /* 關鍵修改：內容超過時出現內部捲軸 */
  overflow-y: auto;
  position: relative;
}

/* Privacy圖示 */
.icon-circle {
  width: 80px;
  height: 80px;
  background-color: #fff1f1;
  /* 淺紅色背景 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.icon-circle i {
  font-size: 40px;
  color: #ff4d4f;
  /* 紅色盾牌線條 */
}

.header-section {
  text-align: center;
  margin-bottom: 30px;
}

/* 美化捲軸 (選用) */
.policy-container::-webkit-scrollbar {
  width: 8px;
}

.policy-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.policy-container::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.policy-container .header-section {
  text-align: center;
  margin-bottom: 40px;
}

.policy-container .policy-icon {
  color: #ff6b6b;
  font-size: 3rem;
  margin-bottom: 10px;
}

.policy-container .alert-custom {
  background-color: #eef2ff;
  border: none;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.policy-container .section-title {
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.policy-container .section-title i {
  margin-right: 10px;
  color: #ff6b6b;
}

.policy-container .sub-section-title {
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
}

.policy-container .content-list {
  list-style-type: disc;
  padding-left: 25px;
  color: #555;
}

.policy-container .content-list li {
  margin-bottom: 5px;
}

/* 上方返回按鈕 */
.btn-back {
  background-color: white;
  border-radius: 6px;
  padding: 6px 15px;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.store-card {
  background: white;
  border: 1px slategrey;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  margin: 0 auto;
  margin-top: -60px;
}

.store-logo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 5px;
  object-fit: contain;
}

.status-badge {
  background-color: #ff4d4f;
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
}

.store-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 15px;
}

.store-no-box {
  max-width: 1000px;
  background-color: #fafafa;
  border-style: dashed !important;
}

.store-circle {
  width: 40px;
  height: 40px;
}

.store-circle i {
  font-size: 20px;
}

.stat-box {
  background-color: #fff9f9;
  border-radius: 8px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  flex: 1;
}

.stat-icon {
  font-size: 1.5rem;
  color: #ff4d4f;
  margin-right: 15px;
}

.stat-label {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0;
}

.stat-value {
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
}

.btn-fav {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #333;
  font-size: 0.9rem;
  padding: 8px 20px;
}

/* 購物車 針對圖片樣式的自定義 CSS */
.cart-container {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
}

.cart-header {
  background-color: #f8fff9;
  /* 淺綠色背景 */
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.qty-btn {
  background-color: #f5f5f5;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.qty-input {
  background-color: #f5f5f5;
  border: none;
  width: 50px;
  height: 32px;
  text-align: center;
  margin: 0 5px;
  border-radius: 4px;
}

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

.trash-btn {
  color: #333;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  padding: 3px 5px;
  border-radius: 6px;
}

.trash-btn:hover {
  background-color: rgb(231, 231, 231);
}

.price-total {
  font-weight: 600;
  font-size: 1.1rem;
}

.order-summary-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  background-color: #fff;
}

.step-circle {
  width: 30px;
  height: 30px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #333;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-checkout {
  background-color: #ff4d4f;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-weight: 500;
  margin-top: 24px;
}

.btn-checkout:hover {
  background-color: #ff7875;
  color: white;
}

/* 增加小動畫讓質感更好 */
.hover-shadow:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6 !important;
}

.transition {
  transition: all 0.2s ease-in-out;
}

/* 讓選中的標籤變白色並有陰影，未選中的變透明 */
#orderTab .nav-link {
  color: #6c757d;
  /* 預設文字顏色 */
  background-color: transparent;
  border: none;
  transition: all 0.3s ease;
}

#orderTab .nav-link.active {
  background-color: #fff !important;
  /* 選中時變白色 */
  color: #333 !important;
  /* 選中時文字變深色 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* 增加一點點陰影感 */
}

/* 處理中標籤的特殊藍色 */
#orderTab #processing-tab:not(.active) {
  color: #0d6efd;
}

#about-us-cover,
#checkout-cart {
  background-color: #fffdf7;
}

/* settings 左側選單選中樣式 */
#settings-tab .nav-link.active {
  background-color: #fff5f5 !important;
  color: #dc3545 !important;
  border-radius: 8px !important;
  font-weight: bold;
}

/* 自定義 Switch 顏色為紅色 */
.custom-switch:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* 虛線邊框樣式 */
.border-dashed {
  border-style: dashed !important;
}

/* 移除捲動軸視覺干擾 (選配) */
.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* RWD 樣式調整 */
@media (max-width: 767.98px) {
  .settings-sidebar-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  #settings-tab .nav-link {
    border-bottom: 2px solid transparent;
    border-radius: 0 !important;
    padding: 12px 20px !important;
  }

  #settings-tab .nav-link.active {
    background-color: white !important;
    color: #dc3545 !important;
    border-bottom: 3px solid #dc3545 !important;
    /* 手機版改為底線 */
    border-left: none !important;
  }
}

/* 電腦版樣式 (維持原樣) */
@media (min-width: 768px) {
  #settings-tab .nav-link.active {
    background-color: #fff5f5 !important;
    color: #dc3545 !important;
    border-left: 3px solid #dc3545;
    /* 電腦版維持左側條紋 */
    border-radius: 8px !important;
    font-weight: bold;
  }
}

.custom-switch:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

/* 修正表單焦點效果 */
#securityEditMode .form-control:focus {
  background-color: #fff !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1) !important;
  border: 1px solid #91d5ff !important;
}

/* 通知中心 */
/* 隱藏滾動條但保留功能 (針對 Tab) */
.bg-light::-webkit-scrollbar {
  display: none;
}

.bg-light {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 通知項目懸停 */
.hover-bg-light {
  transition: background 0.2s;
  cursor: pointer;
}

.hover-bg-light:hover {
  background-color: #f8f9fa;
}

/* 修正 Bootstrap Tab 在 RWD 下的切換行為 */
#notificationTab .nav-link {
  border-radius: 8px;
  color: #6c757d;
  border: none;
}

#notificationTab .nav-link.active {
  background-color: white !important;
  color: #212529 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* 防止長文字破版 */
.min-width-0 {
  min-width: 0;
}

/* 讓 Modal 出現時背景模糊 (選用) */
.modal-backdrop.show {
  opacity: 0.3;
}

/* 彈窗內容圓角優化 */
.modal-content {
  overflow: hidden;
}

.header .header-nav .nav > li > a.login,
.header .header-nav .nav > li > a.register {
  line-height: 20px !important;
  padding: 8px 15px;
  background-color: rgba(255, 255, 255, 0.21);
}

.header .header-nav .nav > li > a.login:hover,
.header .header-nav .nav > li > a.register:hover {
  line-height: 20px !important;
  padding: 8px 15px;
  background-color: rgba(255, 255, 255, 0.3);
}

.user-img-styled {
  width: 40px;
  /* 設定固定寬度 */
  height: 40px;
  /* 設定固定高度 */
  object-fit: cover;
  /* 確保圖片不變形 */
  border-radius: 50%;
  /* 圓形 */
  border: 2px solid #fff;
  /* 白色外框 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* 柔和陰影 */
  transition: transform 0.3s ease;
  /* 滑過動畫 */
}

.user-img-styled:hover {
  transform: scale(1.1);
  /* 滑過微放大的互動感 */
}

/* Tab 切換樣式：選中時白色底，未選中時透明 */
.nav-pills .nav-link.active {
  background-color: rgb(21, 21, 21) !important;
  color: rgb(251, 251, 251) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: bold;
}

.nav-pills .nav-link {
  transition: all 0.2s ease;
}

/* 切換按鈕樣式優化 */
#view-tab .nav-link {
  color: #6c757d;
  transition: all 0.3s;
}

#view-tab .nav-link.active {
  background-color: #ff4d4d !important;
  color: white !important;
}

/* 確保捲動條美化且隱藏不必要的橫向捲動 */
#chatContent::-webkit-scrollbar {
  width: 6px;
}

#chatContent::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 10px;
}

/* 快捷鍵區域隱藏捲動條 */
.scroll-hide::-webkit-scrollbar {
  display: none;
}

.scroll-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
