/* =====================================================================
   嘉聯醫藥生技 - 前台品牌樣式(全新設計)
   Bootstrap 5 之上客製化,使用 Noto Sans TC
   設計重點:醫藥/照護/溫暖,品牌色 #0CA29A(青綠) + #0F6EB8(藍)
   ===================================================================== */

:root {
  /* ===== 品牌色 ===== */
  --brand-primary: #0CA29A;     /* 主色:青綠 */
  --brand-primary-dark: #08756F; /* hover/active 深青綠 */
  --brand-primary-light: #4FB5AF;
  --brand-secondary: #0F6EB8;   /* 副色:藍 */
  --brand-secondary-dark: #0B5A99;
  --brand-accent: #199B92;       /* 強調色:較深青綠 */

  /* ===== 中性色 ===== */
  --text-strong: #1F2937;       /* 主要文字 */
  --text-body:   #4A5568;
  --text-muted:  #718096;
  --bg-white:    #FFFFFF;
  --bg-light:    #F7FAFB;
  --bg-soft:     #EEF4F4;       /* 工作區背景 */
  --border:      #E2E8F0;

  /* ===== 字型 ===== */
  --font-sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', -apple-system,
               BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  /* ===== 圓角/陰影 ===== */
  --radius-sm: 6px;
  --radius:   12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow:    0 4px 12px rgba(12, 162, 154, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(12, 162, 154, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);

  /* ===== BS5 變數覆寫 ===== */
  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: 12, 162, 154;
  --bs-link-color: var(--brand-primary);
  --bs-link-hover-color: var(--brand-primary-dark);
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--text-body);
  --bs-body-font-size: 15px;
  --bs-body-line-height: 1.7;
  --bs-border-color: var(--border);
}

/* =====================================================================
   全域重置
   ===================================================================== */
html, body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

a { transition: color 0.2s ease; }

/* =====================================================================
   品牌顏色工具類
   ===================================================================== */
.bg-brand { background-color: var(--brand-primary) !important; }
.bg-brand-secondary { background-color: var(--brand-secondary) !important; }
.bg-brand-soft { background-color: var(--bg-soft) !important; }
.text-brand { color: var(--brand-primary) !important; }
.text-brand-secondary { color: var(--brand-secondary) !important; }
.text-strong { color: var(--text-strong) !important; }
.border-brand { border-color: var(--brand-primary) !important; }

.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}
.btn-brand:hover, .btn-brand:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(12, 162, 154, 0.25);
}

.btn-outline-brand {
  background-color: transparent;
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
  background-color: var(--brand-primary);
  color: #fff;
}

/* =====================================================================
   Header / Topbar
   ===================================================================== */
.site-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-topbar {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.site-topbar a { color: #fff; text-decoration: none; }
.site-topbar a:hover { color: #fff; opacity: 0.85; }

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 18px;
}
.site-logo img { width: 40px; height: 40px; }
.site-logo .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo .brand-text small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .nav-link {
  color: var(--text-strong);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}
.site-nav .nav-link:hover {
  color: var(--brand-primary);
  background-color: var(--bg-soft);
}
.site-nav .nav-link.active {
  color: var(--brand-primary);
}
.site-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.site-search {
  position: relative;
}
.site-search .form-control {
  border-radius: 24px;
  border: 1.5px solid var(--border);
  padding: 0.5rem 1rem 0.5rem 1rem;
  font-size: 14px;
  background: var(--bg-light);
  transition: all 0.2s ease;
}
.site-search .form-control:focus {
  background: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(12, 162, 154, 0.12);
}
.site-search .search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-primary);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.hot-tags-label {
  color: #888;
  white-space: nowrap;
}
.hot-tag {
  color: var(--brand-primary);
  text-decoration: none;
  background: rgba(12, 162, 154, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.hot-tag:hover {
  background: var(--brand-primary);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-action-btn {
  background: transparent;
  border: 0;
  color: var(--text-strong);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  position: relative;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.header-action-btn:hover {
  background: var(--bg-soft);
  color: var(--brand-primary);
}
.header-action-btn .badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* =====================================================================
   Hero / Banner
   ===================================================================== */
.hero-carousel .carousel-item {
  height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.05) 100%);
}
.hero-carousel .carousel-caption {
  left: 10%;
  right: auto;
  bottom: 50%;
  transform: translateY(50%);
  text-align: left;
  max-width: 480px;
}
.hero-carousel .hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: 1px;
}
.hero-carousel .hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
}
.hero-carousel .carousel-indicators {
  margin-bottom: 24px;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
}
.hero-carousel .carousel-indicators .active {
  background: #fff;
}

/* =====================================================================
   Section
   ===================================================================== */
.section {
  padding: 64px 0;
}
.section-sm {
  padding: 40px 0;
}
.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-strong);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--brand-primary);
  border-radius: 2px;
  margin: 12px auto 32px;
}

/* =====================================================================
   Card
   ===================================================================== */
.card-brand {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  
}
.card-brand:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.service-card {
  text-align: center;
  padding: 32px 20px;
}
.service-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}
.service-card h5 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* =====================================================================
   Product
   ===================================================================== */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}
.product-card .product-img {
  background: #fff;
  padding: 16px;
  text-align: center;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.product-card .product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .product-nhi {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.product-card .product-name {
  color: var(--text-strong);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card .product-price {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.product-card .product-actions {
  display: flex;
  gap: 6px;
}
.product-card .product-actions .btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 6px;
}

/* =====================================================================
   Pagination
   ===================================================================== */
.pagination .page-link {
  color: var(--brand-primary);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
}
.pagination .page-item.active .page-link {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.pagination .page-link:hover {
  background-color: var(--bg-soft);
  color: var(--brand-primary-dark);
}

/* =====================================================================
   Forms
   ===================================================================== */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 14px;
  transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(12, 162, 154, 0.12);
}
.form-label {
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 6px;
}

/* =====================================================================
   Tables (前台)
   ===================================================================== */
.table-brand {
  width: 100%;
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-brand th {
  background: var(--bg-soft);
  color: var(--text-strong);
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid var(--brand-primary);
}
.table-brand td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.table-brand tr:last-child td {
  border-bottom: 0;
}
.table-brand tbody tr:hover {
  background: var(--bg-light);
}

/* =====================================================================
   Notice / Alert
   ===================================================================== */
.notice-card {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #fff 100%);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  position: relative;
}
.notice-card .notice-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.notice-card h6 {
  color: var(--brand-primary-dark);
  font-weight: 600;
  margin-bottom: 8px;
}
.notice-card p {
  color: var(--text-body);
  margin: 0;
  line-height: 1.6;
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: #2D3748;
  color: #CBD5E0;
  margin-top: auto;
  padding: 56px 0 0;
}
.site-footer h6 {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.site-footer .footer-brand img {
  width: 48px;
  height: 48px;
}
.site-footer .footer-brand .footer-brand-name {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}
.site-footer p {
  font-size: 14px;
  line-height: 1.7;
  color: #A0AEC0;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li {
  margin-bottom: 8px;
}
.site-footer ul a {
  color: #CBD5E0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.site-footer ul a:hover {
  color: var(--brand-primary-light);
}
.site-footer .footer-bottom {
  border-top: 1px solid #4A5568;
  margin-top: 40px;
  padding: 16px 0;
  font-size: 13px;
  color: #A0AEC0;
  text-align: center;
}
.site-footer .footer-bottom a {
  color: var(--brand-primary-light);
  text-decoration: none;
}

/* =====================================================================
   Login Modal
   ===================================================================== */
.modal-content {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.modal-title {
  font-weight: 600;
  color: var(--text-strong);
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}

.login-panel {
  text-align: center;
  padding: 8px 0 16px;
}
.login-panel .login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: block;
}
.login-panel .welcome-text {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* =====================================================================
   Member Center
   ===================================================================== */
.member-tab {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.member-tab .tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  background: transparent;
  border: 0;
  color: var(--text-body);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 100px;
}
.member-tab .tab-btn:hover {
  color: var(--brand-primary);
}
.member-tab .tab-btn.active {
  background: #fff;
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.member-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  margin-bottom: 24px;
}
.member-card h5 {
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-soft);
}

/* =====================================================================
   Order / Cart
   ===================================================================== */
.cart-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 16px;
}
.cart-summary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.cart-summary h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 16px;
}
.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.cart-summary .summary-row.total {
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: 0;
  margin-top: 8px;
}
.cart-summary .summary-row.total .amount {
  color: #FFE082;
}
.cart-summary .btn-light {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* =====================================================================
   News / Medical News
   ===================================================================== */
.news-list-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-body);
}
.news-list-item:hover {
  border-color: var(--brand-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow);
  color: var(--text-body);
}
.news-list-item .news-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--brand-primary);
  font-weight: 600;
  min-width: 80px;
}
.news-list-item .news-date .day {
  display: block;
  font-size: 1.3rem;
  line-height: 1.1;
}
.news-list-item .news-date .month {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.news-list-item .news-content {
  flex: 1;
  min-width: 0;
}
.news-list-item .news-title {
  color: var(--text-strong);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-list-item .news-snippet {
  color: var(--text-muted);
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* =====================================================================
   Captcha
   ===================================================================== */
.captcha-img {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* =====================================================================
   About page banner
   ===================================================================== */
.page-banner {
  background-size: cover;
  background-position: center;
  height: 280px;
  display: flex;
  align-items: center;
  position: relative;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 162, 154, 0.85) 0%, rgba(15, 110, 184, 0.7) 100%);
}
.page-banner .container {
  position: relative;
  z-index: 1;
  color: #fff;
}
.page-banner h1 {
  color: #fff;
  font-weight: 700;
  font-size: 2.2rem;
  margin: 0;
  letter-spacing: 1px;
}
.page-banner .breadcrumb-banner {
  background: transparent;
  margin: 8px 0 0;
  padding: 0;
}
.page-banner .breadcrumb-banner .breadcrumb-item,
.page-banner .breadcrumb-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.page-banner .breadcrumb-banner .breadcrumb-item.active {
  color: #fff;
}
.page-banner .breadcrumb-banner .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 991.98px) {
  .hero-carousel .carousel-item { height: 360px; }
  .hero-carousel .hero-title { font-size: 1.8rem; }
  .hero-carousel .carousel-caption { max-width: 80%; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
}
@media (max-width: 575.98px) {
  .hero-carousel .carousel-item { height: 300px; }
  .hero-carousel .hero-title { font-size: 1.4rem; }
  .hero-carousel .hero-subtitle { font-size: 0.95rem; }
  .section { padding: 36px 0; }
  .page-banner { height: 200px; }
  .page-banner h1 { font-size: 1.6rem; }
}


/* === 會員中心 - 產品列表 (favorite / track-items) === */
.product-list {
  display: flex;
  flex-direction: column;
}

.product-card-row {
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 1rem;
  transition: box-shadow 0.2s, transform 0.1s;
}
.product-card-row:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-primary);
}

.product-image img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  background: #f8f9fa;
}

/* === 會員中心 - 訂單列表 (order) === */
.order-list {
  display: flex;
  flex-direction: column;
}

.order-card {
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: box-shadow 0.2s;
}
.order-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.order-no {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 600;
  color: var(--brand-primary);
}

.order-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.order-status.status-已處理 {
  background: #d1f4e0;
  color: #0a7c5a;
}
.order-status.status-未處理 {
  background: #fff3cd;
  color: #b07300;
}
.order-status.status-default {
  background: #e0e0e0;
  color: #555;
}

.order-sum {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-secondary);
}

.order-period-tab .nav-link {
  background: white;
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  border-radius: 8px;
  margin-right: 0.5rem;
  padding: 0.5rem 1rem;
}
.order-period-tab .nav-link.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}


/* === 公告 / 最新消息 HTML 內容 === */
.bulletin-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.bulletin-content p {
  margin-bottom: 0.5rem;
}
.bulletin-content h1,
.bulletin-content h2,
.bulletin-content h3,
.bulletin-content h4,
.bulletin-content h5,
.bulletin-content h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.bulletin-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0.5rem 0;
}
.bulletin-content ul,
.bulletin-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.bulletin-content a {
  color: var(--brand-primary);
  text-decoration: underline;
}
.bulletin-content table {
  max-width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}
.bulletin-content table td,
.bulletin-content table th {
  padding: 0.25rem 0.5rem;
  border: 1px solid #ddd;
}


/* === 公告頁右側 sidebar 緊湊化 === */
.sidebar-card-link h6,
.sidebar-card-line h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.sidebar-card-link ul li {
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
}
.sidebar-card-line {
  padding: 0.75rem !important;
}
.sidebar-card-line p {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.sidebar-card-line img {
  display: block;
  margin: 0 auto;
  max-width: 140px;
  height: auto;
}


/* === 購物車 Slide Panel === */
.cart-slide-panel {
  width: 400px;
  max-width: 90vw;
}
.cart-slide-panel .offcanvas-header {
  background: var(--brand-primary);
  color: white;
}
.cart-slide-panel .offcanvas-header .btn-close {
  filter: invert(1);
}
.cart-slide-panel .offcanvas-body {
  padding: 0;
}
.cart-slide-items {
  display: flex;
  flex-direction: column;
}
.cart-slide-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  background: white;
}
.cart-slide-item:hover {
  background: #f8f9fa;
}
.cart-slide-panel .offcanvas-footer {
  background: #f8f9fa;
}

/* =====================================================================
   產品詳述(wangEditor HTML 內容)
   ===================================================================== */
.product-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.product-detail-content table {
  max-width: 100%;
}
.product-detail-content h1,
.product-detail-content h2,
.product-detail-content h3,
.product-detail-content h4,
.product-detail-content h5,
.product-detail-content h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}
.product-detail-content p {
  line-height: 1.8;
}

