/* ============================================================
   秋之水漾 FallRipple 品牌設計系統（前台 + 會員中心）
   依實際手寫體 Logo 重新定調
   Palette: 墨黑 ink（書寫）× 香檳金 gold（質感）× 象牙白 ivory（純淨）
   ============================================================ */

:root {
  --fr-ink: #1c1a17;          /* 品牌主色：墨黑（Logo 書寫色） */
  --fr-ink-deep: #0e0d0b;
  --fr-ink-soft: #efece5;     /* 墨色淡底 */
  --fr-gold: #a8874f;         /* 點綴色：香檳金 */
  --fr-gold-soft: #f4eddf;    /* 金色淡底 */
  --fr-cream: #faf8f3;        /* 頁面底色：象牙白 */
  --fr-text: #26231f;
  --fr-muted: #7d766b;
  --fr-line: #e7e2d7;
  --fr-radius: 14px;
  --fr-shadow: 0 6px 24px rgba(28, 26, 23, .07);
  --fr-shadow-lg: 0 14px 44px rgba(28, 26, 23, .13);
  --brand: var(--fr-ink);
  --brand-dark: var(--fr-ink-deep);
  /* 舊別名（沿用既有 class 命名） */
  --fr-teal: var(--fr-ink);
  --fr-teal-deep: var(--fr-ink-deep);
  --fr-teal-soft: var(--fr-ink-soft);
  --fr-amber: var(--fr-gold);
  --fr-amber-soft: var(--fr-gold-soft);
}

/* ---------- 基礎 ---------- */
body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--fr-cream);
  color: var(--fr-text);
  letter-spacing: .01em;
}

h1, h2, h3, h4, h5, h6, .fr-serif {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-weight: 700;
  color: var(--fr-text);
}

a { color: var(--fr-ink); }
a:hover { color: var(--fr-gold); }

::selection { background: var(--fr-gold-soft); }

/* Logo 圖（手寫體字標） */
.fr-wordmark { height: 34px; width: auto; }
.fr-wordmark-invert { filter: invert(1); }

/* ---------- 按鈕 ---------- */
.btn { border-radius: 999px; padding-inline: 1.15rem; }
.btn-lg { padding-inline: 1.75rem; }

.btn-brand {
  background: var(--fr-ink);
  border: 1px solid var(--fr-ink);
  color: #fff;
  transition: all .2s ease;
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--fr-ink-deep);
  border-color: var(--fr-ink-deep);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 13, 11, .28);
}

.btn-outline-brand {
  border: 1px solid var(--fr-ink);
  color: var(--fr-ink);
  background: transparent;
}
.btn-outline-brand:hover { background: var(--fr-ink); color: #fff; }

.btn-amber {
  background: var(--fr-gold);
  border: 1px solid var(--fr-gold);
  color: #fff;
}
.btn-amber:hover { background: #92743f; border-color: #92743f; color: #fff; }

.text-brand { color: var(--fr-ink) !important; }
.text-amber { color: var(--fr-gold) !important; }
.bg-brand { background: var(--fr-ink) !important; }
.bg-cream { background: var(--fr-cream) !important; }

/* ---------- 導覽列 ---------- */
.fr-topbar {
  background: var(--fr-ink-deep);
  color: #cfc9be;
  font-size: .8rem;
  padding: .35rem 0;
}
.fr-topbar a { color: #cfc9be; text-decoration: none; }
.fr-topbar a:hover { color: #fff; }

.navbar.fr-nav {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fr-line);
  padding-block: .7rem;
}
.fr-nav .navbar-brand { display: flex; align-items: center; }
.fr-nav .navbar-brand img.fr-wordmark { height: 38px; width: auto; }
.fr-nav .nav-link {
  color: var(--fr-text);
  font-weight: 500;
  padding-inline: .9rem;
  position: relative;
}
.fr-nav .nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 50%; bottom: .2rem;
  width: 0; height: 2px;
  background: var(--fr-gold);
  transition: all .25s ease;
  transform: translateX(-50%);
}
.fr-nav .nav-link:not(.dropdown-toggle):hover::after,
.fr-nav .nav-link:not(.dropdown-toggle).active::after { width: 55%; }
.fr-nav .nav-link:hover { color: var(--fr-ink-deep); }
.fr-nav .dropdown-menu { min-width: 15rem; }
.fr-nav .dropdown-item { font-size: .92rem; padding: .55rem 1rem; }

/* ---------- 手機版側邊選單 ---------- */
.fr-mobile-nav-bar { flex-shrink: 0; }

.fr-mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--fr-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, background .2s ease;
}
.fr-mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--fr-ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.fr-mobile-menu-btn:hover,
.fr-mobile-menu-btn:focus {
  border-color: var(--fr-gold);
  background: var(--fr-gold-soft);
}

.fr-mobile-nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--fr-line);
  border-radius: 12px;
  color: var(--fr-ink);
  text-decoration: none;
  font-size: 1.15rem;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.fr-mobile-nav-icon-btn:hover { border-color: var(--fr-gold); background: var(--fr-gold-soft); color: var(--fr-ink); }
.fr-mobile-nav-icon-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.fr-mobile-nav {
  width: min(88vw, 360px);
  border-left: 1px solid var(--fr-line);
  box-shadow: -8px 0 32px rgba(28, 26, 23, .12);
}
.fr-mobile-nav-header {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--fr-line);
  background: linear-gradient(180deg, #fff 0%, var(--fr-cream) 100%);
}
.fr-mobile-nav-brand img { height: 32px; width: auto; }
.fr-mobile-nav-close {
  opacity: .55;
  padding: .65rem;
  margin: -.35rem -.35rem -.35rem auto;
}
.fr-mobile-nav-body {
  padding: 1rem 1.1rem 1.25rem;
  overflow-y: auto;
}

.fr-mobile-nav-search .input-group-text {
  background: var(--fr-cream);
  border-color: var(--fr-line);
  border-radius: 12px 0 0 12px;
  color: var(--fr-muted);
}
.fr-mobile-nav-search .form-control {
  border-color: var(--fr-line);
  background: var(--fr-cream);
  border-radius: 0 12px 12px 0;
  padding-block: .65rem;
}
.fr-mobile-nav-search .form-control:focus {
  border-color: var(--fr-gold);
  box-shadow: none;
  background: #fff;
}

.fr-mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.fr-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  color: var(--fr-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  transition: background .2s ease, color .2s ease;
}
.fr-mobile-nav-link i:first-child {
  width: 1.25rem;
  text-align: center;
  color: var(--fr-gold);
  font-size: 1.05rem;
}
.fr-mobile-nav-link:hover { background: var(--fr-gold-soft); color: var(--fr-ink-deep); }
.fr-mobile-nav-link.is-active {
  background: var(--fr-ink);
  color: #fff;
}
.fr-mobile-nav-link.is-active i:first-child { color: #e8d5b5; }

.fr-mobile-nav-group { display: flex; flex-direction: column; gap: .25rem; }
.fr-mobile-nav-toggle {
  width: 100%;
  border: none;
  background: transparent;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}
.fr-mobile-nav-link-main {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.fr-mobile-nav-chevron {
  color: var(--fr-muted);
  font-size: .85rem;
  transition: transform .25s ease;
}
.fr-mobile-nav-toggle[aria-expanded="true"] .fr-mobile-nav-chevron { transform: rotate(180deg); }

.fr-mobile-nav-sub {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin: .15rem 0 .35rem 2rem;
  padding-left: .75rem;
  border-left: 2px solid var(--fr-gold-soft);
}
.fr-mobile-nav-sub a {
  display: block;
  padding: .5rem .65rem;
  border-radius: 8px;
  color: var(--fr-muted);
  text-decoration: none;
  font-size: .9rem;
  transition: background .2s ease, color .2s ease;
}
.fr-mobile-nav-sub a:hover { background: var(--fr-gold-soft); color: var(--fr-ink); }
.fr-mobile-nav-sub a i { color: var(--fr-gold); }

.fr-mobile-nav-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--fr-line);
}
.fr-mobile-nav-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .65rem .35rem;
  border-radius: 12px;
  background: var(--fr-cream);
  border: 1px solid var(--fr-line);
  color: var(--fr-text);
  text-decoration: none;
  font-size: .72rem;
  text-align: center;
  line-height: 1.3;
  transition: border-color .2s ease, background .2s ease;
}
.fr-mobile-nav-quick-item i { font-size: 1.1rem; color: var(--fr-gold); }
.fr-mobile-nav-quick-item:hover { border-color: var(--fr-gold); background: #fff; color: var(--fr-ink); }
.fr-mobile-nav-quick-item .badge { font-size: .62rem; margin-top: .1rem; }

.fr-mobile-nav-footer {
  padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--fr-line);
  background: #fff;
  box-shadow: 0 -4px 20px rgba(28, 26, 23, .05);
}

@media (max-width: 991.98px) {
  .navbar.fr-nav { padding-block: .55rem; }
  .fr-nav .navbar-brand img.fr-wordmark { height: 34px; }
}

.fr-search input {
  border-radius: 999px;
  border-color: var(--fr-line);
  background: var(--fr-cream);
  padding-left: 1rem;
}
.fr-search input:focus { border-color: var(--fr-gold); box-shadow: 0 0 0 .2rem rgba(168, 135, 79, .12); }

.fr-cart-badge {
  font-size: .62rem;
  transform: translate(-40%, -30%);
}

/* ---------- Hero ---------- */
.fr-hero {
  position: relative;
  border-radius: calc(var(--fr-radius) + 6px);
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: center;
  background: #14120f center / cover no-repeat;
  box-shadow: var(--fr-shadow-lg);
}
.fr-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16, 14, 11, .82) 5%, rgba(16, 14, 11, .45) 45%, rgba(16, 14, 11, 0) 75%);
}
.fr-hero .hero-body { position: relative; z-index: 1; padding: 3.5rem; max-width: 640px; }
.fr-hero .hero-eyebrow {
  color: #d8bd8a;
  letter-spacing: .35em;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.fr-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.fr-hero p { color: #d9d3c8; font-size: 1.05rem; margin-bottom: 1.75rem; }

/* ---------- 區段標題 ---------- */
.fr-section { padding-block: 3.25rem; }
.fr-section-title { text-align: center; margin-bottom: 2.25rem; }
.fr-section-title .eyebrow {
  color: var(--fr-gold);
  letter-spacing: .3em;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.fr-section-title h2 { font-size: 1.75rem; position: relative; display: inline-block; padding-bottom: .75rem; }
.fr-section-title h2::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fr-ink), var(--fr-gold));
}

/* ---------- USP 帶 ---------- */
.fr-usp {
  background: #fff;
  border: 1px solid var(--fr-line);
  border-radius: var(--fr-radius);
  box-shadow: var(--fr-shadow);
}
.fr-usp .usp-item { padding: 1.4rem 1rem; text-align: center; }
.fr-usp .usp-item i { font-size: 1.7rem; color: var(--fr-gold); }
.fr-usp .usp-item h6 { margin: .55rem 0 .2rem; font-size: .95rem; }
.fr-usp .usp-item p { margin: 0; font-size: .8rem; color: var(--fr-muted); }
.fr-usp [class*="col"]:not(:first-child) .usp-item { border-left: 1px solid var(--fr-line); }
@media (max-width: 767px) {
  .fr-usp [class*="col"]:not(:first-child) .usp-item { border-left: 0; border-top: 1px solid var(--fr-line); }
}

/* ---------- 卡片 ---------- */
.card {
  border: 1px solid var(--fr-line);
  border-radius: var(--fr-radius);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--fr-line);
  font-weight: 600;
  border-radius: var(--fr-radius) var(--fr-radius) 0 0 !important;
}

.product-card {
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  background: #fff;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fr-shadow-lg);
}
.product-card .product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--fr-gold-soft);
}
.product-card .product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-card-body {
  color: inherit;
  cursor: pointer;
  transition: background-color .2s ease;
}
.product-card-body:hover {
  background-color: rgba(168, 135, 79, .04);
}
.product-card .card-title {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 600;
  font-size: .95rem;
}
.product-card .price { color: var(--fr-ink-deep); font-weight: 700; }
.product-card .price-member { color: var(--fr-gold); font-size: .8rem; font-weight: 600; }

.badge-pv {
  background: var(--fr-ink-soft);
  color: var(--fr-ink-deep);
  font-weight: 600;
  border-radius: 999px;
  padding: .35em .8em;
  font-size: .8125rem;
}

.product-detail-card {
  padding: 1.25rem;
  border-radius: 1rem;
}
@media (min-width: 768px) {
  .product-detail-card {
    padding: 1.75rem;
  }
}
.product-detail-main-image {
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--fr-amber-soft);
}
.product-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.product-detail-thumb {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.product-detail-thumb:hover {
  transform: translateY(-1px);
}
.product-detail-thumb.is-active {
  border-color: var(--fr-gold);
}
.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-header {
  margin-bottom: 1rem;
}
.product-detail-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.25;
  margin-bottom: .35rem;
  color: var(--fr-ink-deep);
}
.product-detail-subline {
  font-size: .8125rem;
  color: #8b8b8b;
  letter-spacing: .02em;
}
.product-detail-lead {
  margin: .75rem 0 0;
  color: #666;
  font-size: .9375rem;
  line-height: 1.75;
}
.product-detail-price-panel {
  background: var(--fr-cream);
  border-radius: .875rem;
  padding: 1rem 1.125rem;
  margin-bottom: 1rem;
}
.product-detail-price-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
}
.product-detail-price-current {
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  color: var(--fr-ink-deep);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.product-detail-price-retail {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 1rem;
}
.product-detail-member-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .75rem;
  margin-top: .875rem;
  padding: .65rem .9rem;
  background: #fff;
  border: 1px solid rgba(181, 140, 74, .22);
  border-radius: .625rem;
  font-size: .875rem;
  color: var(--fr-ink);
}
.product-detail-member-cta-label {
  color: var(--fr-gold);
  font-weight: 600;
}
.product-detail-member-cta-price {
  font-weight: 700;
  color: var(--fr-ink-deep);
}
.product-detail-member-cta-link {
  margin-left: auto;
  color: var(--fr-gold);
  font-weight: 700;
  text-decoration: none;
}
.product-detail-member-cta-link:hover {
  color: var(--fr-ink-deep);
  text-decoration: underline;
}
.product-detail-purchase {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .875rem;
  padding: 1rem 1.125rem;
  background: #fff;
  margin-bottom: 1.25rem;
}
.product-detail-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-detail-option-label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--fr-ink-deep);
  margin-bottom: .4rem;
}
.product-detail-select {
  border-radius: .625rem;
  border-color: rgba(0, 0, 0, .12);
  padding-top: .6rem;
  padding-bottom: .6rem;
  font-size: .9375rem;
}
.product-detail-select:focus {
  border-color: var(--fr-gold);
  box-shadow: 0 0 0 .2rem rgba(181, 140, 74, .15);
}
.product-detail-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.product-detail-buy-main {
  flex: 1 1 220px;
  min-width: 0;
}
.product-detail-add-btn {
  width: 100%;
  padding: .8rem 1.5rem;
  font-weight: 600;
  border-radius: 999px;
  font-size: 1rem;
}
.qty-stepper-wrap {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 0 0 auto;
}
.qty-stepper-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--fr-ink-deep);
  margin-bottom: 0;
}
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  min-width: 132px;
  height: 46px;
}
.qty-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--fr-ink-deep);
  font-size: 1.125rem;
  line-height: 1;
  padding: 0;
  transition: background .15s ease, color .15s ease;
}
.qty-stepper-btn:hover:not(:disabled) {
  background: var(--fr-cream);
  color: var(--fr-gold);
}
.qty-stepper-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.qty-stepper-input {
  width: 2.75rem;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, .08);
  border-right: 1px solid rgba(0, 0, 0, .08);
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--fr-ink-deep);
  background: transparent;
  padding: 0 .25rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(181, 140, 74, .25);
}
.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-detail-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
}
@media (min-width: 768px) {
  .product-detail-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.product-detail-trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .85rem;
  background: var(--fr-cream);
  border-radius: .625rem;
  color: #555;
  font-size: .8125rem;
  line-height: 1.4;
}
.product-detail-trust-item:hover {
  color: var(--fr-ink-deep);
}
.product-detail-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--fr-gold);
  flex-shrink: 0;
  font-size: .95rem;
}

.product-region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.product-region-tag {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  letter-spacing: .02em;
}

/* ---------- 多階層分類樹（側邊欄） ---------- */
.fr-cat-tree { padding: .4rem 0; }
.fr-cat-node { --depth: 0; }
.fr-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .9rem .5rem calc(.9rem + var(--depth) * 1rem);
  border-bottom: 1px solid var(--fr-cream);
  transition: background .15s ease;
}
.fr-cat-row:hover { background: var(--fr-gold-soft); }
.fr-cat-row.active { background: var(--fr-ink); }
.fr-cat-row.active .fr-cat-link { color: #fff; font-weight: 600; }
.fr-cat-link {
  flex: 1;
  color: var(--fr-text);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.4;
}
.fr-cat-node[style*="--depth:0"] > .fr-cat-row > .fr-cat-link { font-weight: 600; }
.fr-cat-toggle {
  border: 0;
  background: transparent;
  color: var(--fr-gold);
  padding: 0 .25rem;
  line-height: 1;
}
.fr-cat-toggle i { transition: transform .2s ease; display: inline-block; font-size: .8rem; }
.fr-cat-toggle.collapsed i { transform: rotate(-90deg); }

/* ---------- 商品列表手機版分類篩選 ---------- */
.fr-products-mobile-cat {
  display: flex;
  align-items: stretch;
  gap: .65rem;
  position: sticky;
  top: calc(var(--fr-navbar-height, 56px) + .5rem);
  z-index: 102;
}
.fr-products-mobile-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
  padding: .65rem 1rem;
  border: 1px solid var(--fr-line);
  border-radius: .65rem;
  background: var(--fr-ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(26, 22, 18, .12);
}
.fr-products-mobile-cat-btn i { font-size: 1rem; }
.fr-products-mobile-cat-btn:active { transform: scale(.98); }
.fr-products-mobile-cat-current {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .5rem .85rem;
  border: 1px solid var(--fr-line);
  border-radius: .65rem;
  background: #fff;
}
.fr-products-mobile-cat-label {
  font-size: .68rem;
  color: var(--fr-muted, #8a8278);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fr-products-mobile-cat-name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--fr-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fr-product-cat-offcanvas {
  --bs-offcanvas-height: min(85vh, 640px);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border-top: 0;
}
.fr-product-cat-offcanvas-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--fr-line);
  background: var(--fr-cream);
}
.fr-product-cat-offcanvas-body {
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.fr-product-cat-offcanvas .fr-cat-row {
  padding-top: .72rem;
  padding-bottom: .72rem;
}
.fr-product-cat-offcanvas .fr-cat-toggle {
  min-width: 2.25rem;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 分類膠囊 ---------- */
.fr-cat-pill {
  display: inline-block;
  padding: .45rem 1.25rem;
  border: 1px solid var(--fr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fr-text);
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s ease;
}
.fr-cat-pill:hover, .fr-cat-pill.active {
  background: var(--fr-ink);
  border-color: var(--fr-ink);
  color: #fff;
}

/* ---------- 訂購地區／分類導覽卡片 ---------- */
.fr-region-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--fr-line);
  border-radius: calc(var(--fr-radius) + 2px);
  box-shadow: var(--fr-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fr-region-card:hover {
  transform: translateY(-2px);
  border-color: var(--fr-gold);
  box-shadow: var(--fr-shadow-lg);
  color: inherit;
}
.fr-region-card-body {
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.fr-region-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto .75rem;
  border-radius: 50%;
  background: var(--fr-gold-soft);
  color: var(--fr-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.fr-region-title {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: .75rem;
  color: var(--fr-ink-deep);
}
.fr-region-link {
  font-size: .85rem;
  color: var(--fr-gold);
  font-weight: 600;
}

/* ---------- 品牌故事 / 事業區 ---------- */
.fr-story img { border-radius: calc(var(--fr-radius) + 4px); box-shadow: var(--fr-shadow-lg); }
.fr-story .story-eyebrow { color: var(--fr-gold); letter-spacing: .3em; font-size: .75rem; font-weight: 600; }
.fr-story h2 { font-size: 1.7rem; margin: .5rem 0 1rem; }
.fr-story p { color: var(--fr-muted); line-height: 1.9; }

.fr-keyword {
  display: inline-block;
  padding: .4rem 1.1rem;
  border: 1px solid var(--fr-gold);
  border-radius: 999px;
  color: var(--fr-gold);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
}

.fr-biz {
  background: linear-gradient(115deg, var(--fr-ink-deep), #2c2822);
  border-radius: calc(var(--fr-radius) + 6px);
  color: #fff;
  overflow: hidden;
}
.fr-biz-main h2,
.fr-biz-main > .story-eyebrow + h2,
.fr-biz .col-lg-7:not(.fr-biz-side) h2 { color: #fff; }
.fr-biz-main p,
.fr-biz .col-lg-7:not(.fr-biz-side) p { color: #cfc8bb; }
.fr-biz-main .biz-point,
.fr-biz .col-lg-7:not(.fr-biz-side) .biz-point {
  color: #e5e0d6;
  font-size: .9rem;
}
.fr-biz-main .biz-point i,
.fr-biz .col-lg-7:not(.fr-biz-side) .biz-point i { color: #d8bd8a; }

.fr-biz-side {
  background: var(--fr-cream);
  color: var(--fr-text);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.fr-biz-side h5 {
  color: var(--fr-ink);
  font-weight: 600;
}
.fr-biz-side-list {
  line-height: 1.85;
  padding-left: 1.2rem;
}
.fr-biz-side-list li {
  color: #3d3934;
  margin-bottom: .15rem;
}
.fr-biz-side-list li::marker {
  color: var(--fr-gold, #c9a962);
}

@media (min-width: 992px) {
  .fr-biz .row {
    align-items: center;
  }
  .fr-biz-side {
    border-top: none;
    border-left: 1px solid var(--fr-line);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .fr-biz-media {
    margin: 1.75rem 0 1.75rem 1.75rem;
    height: min(340px, 100%);
    max-height: 340px;
    border-radius: calc(var(--fr-radius) + 2px);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  }
  .fr-biz-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
  }
}

/* ---------- 消息列表 ---------- */
.fr-news-item {
  background: #fff;
  border: 1px solid var(--fr-line);
  border-radius: var(--fr-radius);
  padding: 1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--fr-text);
  transition: all .2s ease;
}
.fr-news-item:hover { border-color: var(--fr-gold); box-shadow: var(--fr-shadow); color: var(--fr-ink-deep); }
.fr-news-item .date { color: var(--fr-gold); font-size: .8rem; white-space: nowrap; }

/* ---------- Blog / 最新消息 ---------- */
.fr-blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.fr-blog-cat {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--fr-line);
  color: var(--fr-text);
  text-decoration: none;
  font-size: .875rem;
  transition: all .2s ease;
}
.fr-blog-cat:hover { border-color: var(--fr-gold); color: var(--fr-ink-deep); }
.fr-blog-cat.is-active {
  background: var(--fr-brand);
  border-color: var(--fr-brand);
  color: #fff;
}
.fr-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--fr-line);
  border-radius: var(--fr-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--fr-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.fr-blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--fr-gold);
  box-shadow: var(--fr-shadow);
  color: inherit;
}
.fr-blog-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--fr-cream);
  overflow: hidden;
}
.fr-blog-card-cover--sm { aspect-ratio: 16 / 9; }
.fr-blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.fr-blog-card:hover .fr-blog-card-cover img { transform: scale(1.04); }
.fr-blog-card-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--fr-gold);
  opacity: .45;
}
.fr-blog-card-cat {
  position: absolute;
  left: .75rem;
  top: .75rem;
  background: rgba(255,255,255,.92);
  color: var(--fr-brand);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 4px;
}
.fr-blog-card-body { padding: 1rem 1.15rem 1.2rem; flex: 1; }
.fr-blog-card-date {
  display: block;
  font-size: .78rem;
  color: var(--fr-gold);
  margin-bottom: .35rem;
}
.fr-blog-card-title {
  font-family: "Noto Serif TC", serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 .5rem;
  color: var(--fr-ink-deep);
}
.fr-blog-card-excerpt {
  font-size: .875rem;
  color: var(--fr-text-muted);
  margin: 0;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fr-blog-article-cover {
  border-radius: var(--fr-radius);
  overflow: hidden;
  max-height: 420px;
}
.fr-blog-article-cover img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}
.fr-blog-article-content {
  line-height: 1.85;
  color: var(--fr-text);
}
.fr-blog-article-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------- 頁尾 ---------- */
footer.fr-footer {
  background: var(--fr-ink-deep);
  color: #b3ada2;
  margin-top: 4rem;
}
.fr-footer .footer-main { padding: 3rem 0 2rem; }
.fr-footer h6 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 1rem;
  letter-spacing: .08em;
}
.fr-footer a { color: #b3ada2; text-decoration: none; display: inline-block; margin-bottom: .5rem; font-size: .875rem; }
.fr-footer a:hover { color: #d8bd8a; }
.fr-footer .footer-brand { margin-bottom: 1rem; }
.fr-footer .footer-brand img { height: 44px; width: auto; }
.fr-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.1rem 0;
  font-size: .8rem;
}

/* ---------- 我的網站（個人頁） ---------- */
.fr-shop-site .fr-footer { margin-top: 0; }
.fr-shop-hero {
  background: linear-gradient(180deg, var(--fr-cream) 0%, #fff 100%);
  border-bottom: 1px solid var(--fr-line);
}
.fr-shop-strip { background: #fff; }
.fr-shop-avatar { display: inline-block; }

/* ---------- 表單 ---------- */
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--fr-line);
  padding: .55rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--fr-gold);
  box-shadow: 0 0 0 .2rem rgba(168, 135, 79, .14);
}
.fr-addr-region-fields .row + .row {
  margin-top: .5rem;
}
.fr-addr-region-fields .invalid-feedback {
  margin-top: .25rem;
  margin-bottom: .15rem;
}
.form-check-input:checked { background-color: var(--fr-ink); border-color: var(--fr-ink); }

/* ---------- 認證頁 ---------- */
.fr-auth-wrap { max-width: 460px; margin: 2.5rem auto; }
.fr-auth-wrap .card { box-shadow: var(--fr-shadow-lg); border: 0; }
.fr-auth-logo { text-align: center; margin-bottom: 1.25rem; }
.fr-auth-logo img { height: 56px; width: auto; }

/* ---------- 表格 ---------- */
.table > :not(caption) > * > * { padding: .8rem .9rem; }
.table thead th {
  background: var(--fr-ink-soft);
  color: var(--fr-ink-deep);
  font-weight: 600;
  font-size: .85rem;
  border-bottom: 0;
}

/* ---------- 分頁 ---------- */
.pagination .page-link { color: var(--fr-ink); border-color: var(--fr-line); border-radius: 8px; margin-inline: 2px; }
.pagination .page-item.active .page-link { background: var(--fr-ink); border-color: var(--fr-ink); }

/* ---------- 會員中心 ---------- */
.member-sidebar .list-group { border-radius: var(--fr-radius); overflow: hidden; box-shadow: var(--fr-shadow); }
.member-sidebar .list-group-item {
  border: 0;
  border-bottom: 1px solid var(--fr-cream);
  padding: .8rem 1.15rem;
  color: var(--fr-text);
  font-size: .92rem;
}
.member-sidebar .list-group-item i { color: var(--fr-gold); width: 1.4rem; }
.member-sidebar .list-group-item:hover { background: var(--fr-gold-soft); }
.member-sidebar .list-group-item.active {
  background: var(--fr-ink);
  color: #fff;
}
.member-sidebar .list-group-item.active i { color: #d8bd8a; }

.member-mobile-toolbar {
  position: sticky;
  top: var(--fr-navbar-height, 56px);
  z-index: 1020;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--fr-line);
  backdrop-filter: blur(8px);
  padding-block: .65rem;
}
.member-mobile-toolbar-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .55rem .85rem;
  margin-bottom: .55rem;
  border: 1px solid var(--fr-line);
  border-radius: 12px;
  background: #fff;
  color: var(--fr-ink-deep);
  font-weight: 600;
  font-size: .95rem;
  text-align: left;
  box-shadow: var(--fr-shadow);
}
.member-mobile-toolbar-btn .member-mobile-toolbar-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.member-quick-nav {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .1rem;
}
.member-quick-nav::-webkit-scrollbar { display: none; }
.member-quick-nav-link {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  min-width: 4.1rem;
  padding: .45rem .55rem;
  border: 1px solid var(--fr-line);
  border-radius: 12px;
  background: #fff;
  color: var(--fr-muted);
  font-size: .72rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.member-quick-nav-link i { font-size: 1.05rem; color: var(--fr-gold); }
.member-quick-nav-link.is-active {
  background: var(--fr-ink);
  border-color: var(--fr-ink);
  color: #fff;
}
.member-quick-nav-link.is-active i { color: var(--fr-amber-soft); }

.member-mobile-offcanvas { max-width: min(88vw, 320px); }
.member-mobile-offcanvas .fr-mobile-nav-header {
  background: linear-gradient(135deg, var(--fr-teal-deep), var(--fr-teal));
  border-bottom: 0;
}
.member-mobile-offcanvas.fr-mobile-nav {
  border-left: 0;
  border-right: 1px solid var(--fr-line);
  box-shadow: 8px 0 32px rgba(28, 26, 23, .12);
}
.member-mobile-offcanvas .fr-mobile-nav-header .small.text-white { color: #fff !important; }
.member-mobile-nav-section {
  padding: .85rem .15rem .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fr-muted);
}
.member-mobile-nav-link { margin-bottom: .15rem; }

@media (max-width: 991.98px) {
  .member-main > .alert:first-child { margin-top: 0; }
  body:has(.member-mobile-toolbar) .container.py-4 { padding-top: 1rem !important; }
}

.org-chart-card,
.org-chart-card .card-body {
  overflow: visible;
}
.org-chart-card .org-chart-scroll {
  border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
}

.fr-stat-card {
  background: #fff;
  border: 1px solid var(--fr-line);
  border-radius: var(--fr-radius);
  padding: 1.15rem 1.3rem;
  height: 100%;
}
.fr-stat-card .stat-label { color: var(--fr-muted); font-size: .8rem; margin-bottom: .25rem; }
.fr-stat-card .stat-value { font-size: 1.45rem; font-weight: 700; color: var(--fr-ink-deep); }
.fr-stat-card i { font-size: 1.6rem; color: var(--fr-gold); }

/* ---------- 徽章圓角統一 ---------- */
.badge { border-radius: 999px; font-weight: 600; }

/* ---------- 動畫 ---------- */
@keyframes frFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.fr-fade-up { animation: frFadeUp .5s ease both; }
