/**
 * assets/css/custom.css — 前台自訂樣式（女性客群・法式輕奢日系美學）
 * movertrip Women's Travel Lifestyle
 */

:root {
  /* ── 現代輕奢旅人生活選物調色盤 (Modern Tech-Luxury Travel Lifestyle) ── */
  /* 1. BACKGROUND 背景色 | 柔霧白 #F6F7F9 */
  --bg-primary:         #F6F7F9; /* 柔霧白・透亮洗鍊空間 */
  --bg-secondary:       #EEF2F6; /* 淺冷灰微霧底襯 */
  --bg-soft-accent:     #FFF2EE; /* 旅程橘柔和底襯 */
  --bg-card:            #FFFFFF; /* 純淨白卡片 */

  /* 2. PRIMARY 品牌主色 | 深炭黑 #0F1720 */
  --primary:            #0F1720; /* 深炭黑・權威尊貴與俐落品味 */
  --primary-hover:      #1E293B; /* 炭黑懸浮光感 */
  --primary-light:      #F1F5F9; /* 炭黑微霧淺洗底 */

  /* 3. SECONDARY 輔助色 | 石墨灰 #374151 */
  --secondary:          #374151; /* 石墨灰・高階理性說明與沉穩輔助 */
  --secondary-hover:    #1F2937;
  --secondary-light:    #F3F4F6;

  /* 4. NEUTRAL 中性灰 | 冷灰 #9CA3AF */
  --neutral:            #9CA3AF; /* 中性冷灰・典雅平衡 */
  --neutral-dark:       #4B5563; /* 深冷灰 */
  --neutral-light:      #E5E7EB; /* 淺冷灰框線 */

  /* 5. ACCENT 跳色 | 旅程橘 #FF6C45 */
  --accent:             #FF6C45; /* 旅程橘・活力破曉與心動旅程焦點 */
  --accent-hover:       #E55A35;
  --accent-light:       #FFF1ED; /* 旅程橘輕柔透光底 */

  /* 品牌金與鼠尾草綠點綴（維修保固與自然選品） */
  --accent-gold:        #C29F58; /* 典雅香檳金 */
  --accent-gold-light:  #FCF6EA;
  --accent-sage:        #5E8270; /* 質感鼠尾草綠 */
  --accent-sage-light:  #F0F5F2;

  /* 文字階層 */
  --text-main:          #0F1720; /* 品牌深炭黑（最高閱讀對比度） */
  --text-muted:         #374151; /* 輔助石墨灰（清晰閱讀） */
  --text-light:         #9CA3AF; /* 中性冷灰（次要備註與失效態） */

  /* 邊框與微界線 */
  --border:             #E5E7EB; /* 冷灰柔光框線 */
  --border-light:       #F1F5F9;

  /* 圓角弧度規範 */
  --radius-xs:          .375rem;
  --radius-sm:          .75rem;
  --radius-md:          1rem;
  --radius-lg:          1.5rem;
  --radius-pill:        9999px;

  /* 深度陰影系統 */
  --shadow-sm:          0 2px 8px rgba(15, 23, 32, 0.04);
  --shadow-card:        0 8px 24px -4px rgba(15, 23, 32, 0.06), 0 2px 8px rgba(15, 23, 32, 0.02);
  --shadow-hover:       0 16px 36px -6px rgba(15, 23, 32, 0.12), 0 6px 14px rgba(15, 23, 32, 0.04);
  --shadow-glow:        0 8px 24px rgba(255, 108, 69, 0.32);
}

/* ── 全域重設與基礎字體 ─────────────────────── */
body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', '微軟正黑體', sans-serif;
  line-height: 1.68;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
}

/* 雜誌感襯線體（中文思源宋體） */
.font-serif,
.editorial-title,
.section-title {
  font-family: 'Noto Serif TC', 'Playfair Display', Georgia, serif;
  letter-spacing: 0.04em;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
a:hover {
  color: var(--accent);
}

/* ── Bootstrap 輔助類別覆寫 ───────────────── */
.text-primary       { color: var(--primary) !important; }
.text-accent        { color: var(--accent) !important; }
.text-gold          { color: var(--accent-gold) !important; }
.text-sage          { color: var(--accent-sage) !important; }

.bg-primary         { background-color: var(--primary) !important; }
.bg-primary-light   { background-color: var(--primary-light) !important; }
.bg-accent          { background-color: var(--accent) !important; }
.bg-accent-light    { background-color: var(--accent-light) !important; }
.bg-gold-light      { background-color: var(--accent-gold-light) !important; }
.bg-sage-light      { background-color: var(--accent-sage-light) !important; }
.bg-soft            { background-color: var(--bg-secondary) !important; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: .6rem 1.4rem;
  transition: all .25s ease;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 32, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: .6rem 1.4rem;
  transition: all .25s ease;
}
.btn-secondary:hover {
  background: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: .6rem 1.4rem;
  transition: all .25s ease;
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* ── LINE 官方品牌綠色按鈕 (LINE Official Green #06C755) ── */
:root {
  --line-green:        #06C755;
  --line-green-hover:  #05B34C;
  --line-green-active: #049B41;
}

.btn-line {
  background-color: var(--line-green) !important;
  border-color: var(--line-green) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.2);
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-line:hover,
.btn-line:focus {
  background-color: var(--line-green-hover) !important;
  border-color: var(--line-green-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.32);
  transform: translateY(-1px);
}
.btn-line:active {
  background-color: var(--line-green-active) !important;
  border-color: var(--line-green-active) !important;
  color: #ffffff !important;
  transform: translateY(0);
}

.btn-outline-line {
  background-color: #ffffff !important;
  border: 1.5px solid var(--line-green) !important;
  color: var(--line-green) !important;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all .2s ease;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline-line:hover,
.btn-outline-line:focus {
  background-color: var(--line-green) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.25);
}

.badge-line {
  background-color: var(--line-green) !important;
  color: #ffffff !important;
}

.text-line {
  color: var(--line-green) !important;
}

/* ── 頂部導覽列專用：白底細框質感 LINE 登入按鈕 ── */
.btn-header-line {
  background-color: #ffffff !important;
  border: 1px solid var(--border) !important;
  color: var(--text-main) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(15, 23, 32, 0.04);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  height: 38px;
  min-width: 38px;
  padding: 0 .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.btn-header-line .bi-line {
  color: var(--line-green) !important;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform .2s ease;
}
.btn-header-line:hover,
.btn-header-line:focus {
  background-color: #F0FDF4 !important;
  border-color: var(--line-green) !important;
  color: var(--line-green-hover) !important;
  box-shadow: 0 3px 10px rgba(6, 199, 85, 0.16);
  transform: translateY(-1px);
}
.btn-header-line:hover .bi-line {
  transform: scale(1.12);
}
.btn-header-line:active {
  transform: translateY(0);
}

/* 頂部導覽列行動端對稱圓鈕 (會員 / 購物車) */
.navbar-mobile-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--radius-pill) !important;
  border: 1px solid var(--border) !important;
  background: #ffffff !important;
  color: var(--text-main) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 32, 0.04);
  transition: all .2s ease;
  position: relative;
}
.navbar-mobile-btn:hover,
.navbar-mobile-btn:focus {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.navbar-mobile-btn:active {
  transform: translateY(0);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: var(--radius-pill);
  font-weight: 500;
  padding: .5rem 1.25rem;
  transition: all .25s ease;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 32, 0.2);
}

.btn-outline-accent {
  color: var(--accent);
  border-color: var(--accent);
  border-radius: var(--radius-pill);
  font-weight: 500;
  padding: .5rem 1.25rem;
  transition: all .25s ease;
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-outline-dark {
  border-color: var(--border);
  color: var(--text-main);
  border-radius: var(--radius-pill);
  background: #fff;
  transition: all .2s ease;
}
.btn-outline-dark:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── 頂部公告列 ────────────────────────────── */
.top-announcement-bar {
  background: #0F1720;
  color: #F6F7F9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: .84rem;
  font-weight: 500;
  padding: .45rem 1rem;
  letter-spacing: 0.03em;
}
.top-announcement-bar a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.top-announcement-bar a:hover {
  text-decoration: underline;
}

/* ── 頂部導覽列 (Frosted Glass Navbar) ─────── */
.navbar-custom {
  background-color: rgba(246, 247, 249, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
  position: sticky;
  top: 0;
  z-index: 1040 !important;
}

/* 確保全站導覽列下拉選單具備最高層級，絕不被下方側邊欄、卡片或滾動元件覆蓋 */
.navbar-custom .dropdown-menu {
  z-index: 1050 !important;
}

/* 頁面內側邊欄 sticky 物件（如分類篩選、訂單試算等）層級維持 20，避免蓋到導覽列下拉選單 */
.sticky-top:not(.navbar-custom),
.sticky-lg-top {
  z-index: 20 !important;
}
.navbar-custom .navbar-brand {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  white-space: nowrap !important;
}
.navbar-custom .navbar-brand span.logo-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  margin-top: -3px;
  white-space: nowrap !important;
}
.navbar-custom .nav-link {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-main);
  padding: .5rem .85rem !important;
  border-radius: var(--radius-pill);
  transition: all .2s ease;
  white-space: nowrap !important;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--accent) !important;
  background-color: rgba(15, 23, 32, 0.05);
}
.navbar-custom .nav-link.active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── 導覽列下拉選單滑鼠懸停展開 (Desktop Hover Dropdown) ── */
@media (min-width: 992px) {
  .navbar-custom .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: navDropdownFadeIn .2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .navbar-custom .dropdown-menu {
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 32, 0.08) !important;
    padding: .5rem 0;
    min-width: 170px;
    border: 1px solid var(--border) !important;
    z-index: 1050 !important;
  }
  .navbar-custom .dropdown-item {
    font-size: .92rem;
    transition: all .15s ease;
  }
  .navbar-custom .dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary) !important;
    padding-left: 1.25rem !important;
  }
}

@keyframes navDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-custom .btn {
  white-space: nowrap !important;
}
.navbar-search {
  max-width: 220px;
  flex-shrink: 1;
}
.navbar-search .form-control {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  font-size: .88rem;
  padding: .45rem 1rem;
}
.navbar-search .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 108, 69, 0.18);
}
.navbar-search .btn {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  border-color: var(--border);
  background: #fff;
  color: var(--text-muted);
}
.navbar-search .btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── 區塊標題 (Section Header) ─────────────── */
.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}
.section-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .4rem;
  display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: .6rem;
  position: relative;
}
.section-desc {
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── 首頁大輪播 (Hero Swiper) ─────────────── */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
#heroSwiper .swiper-slide {
  position: relative;
  overflow: hidden;
}
.hero-slide-img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease;
}
.swiper-slide-active .hero-slide-img {
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 32, 0.08) 0%, rgba(15, 23, 32, 0.45) 70%, rgba(15, 23, 32, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 3.5rem 2rem;
}
.hero-caption {
  max-width: 720px;
  color: #fff;
}
.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-desc {
  font-size: 1.05rem;
  opacity: .92;
  margin-bottom: 1.5rem;
  line-height: 1.65;
  max-width: 580px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

/* Swiper 導航按鈕 */
.swiper-button-prev,
.swiper-button-next {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  color: var(--primary) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all .25s ease;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #fff;
  color: var(--accent) !important;
  transform: scale(1.08);
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.1rem !important;
  font-weight: bold;
}
.swiper-pagination-bullet {
  background: #fff !important;
  opacity: .5;
  width: 9px;
  height: 9px;
  transition: all .3s ease;
}
.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  opacity: 1;
  width: 26px;
  border-radius: 5px;
}

@media (max-width: 767.98px) {
  .hero-slide-img { height: 340px; }
  .hero-overlay { padding: 2rem 1.25rem; }
  .hero-desc { display: none; }
  .hero-title { font-size: 1.6rem; }
}

/* ── 4大旅行貼心承諾 (Trust Pillars) ──────── */
.trust-bar-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
}
.trust-pillar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-card);
  transition: all .3s ease;
  height: 100%;
}
.trust-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 23, 32, 0.16);
}
.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0;
  flex-shrink: 0;
}
.trust-icon-box.rose  { background: var(--accent-light); color: var(--accent); }
.trust-icon-box.peach { background: var(--accent-light); color: var(--accent); }
.trust-icon-box.gold  { background: var(--accent-gold-light); color: var(--accent-gold); }
.trust-icon-box.sage  { background: var(--accent-sage-light); color: var(--accent-sage); }
.trust-icon-box.line  { background: rgba(6, 199, 85, 0.12); color: #06C755; }
.trust-icon-box.dark  { background: var(--primary-light); color: var(--primary); }

/* ── 旅行情境選箱指南 (Scenario Cards) ──── */
.scenario-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow-card);
  transition: all .35s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-color: #EEF2F6;
}
.scenario-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.scenario-img-wrap {
  position: relative;
  padding-top: 125%; /* 4:5 比例，極具雜誌美感 */
  overflow: hidden;
}
.scenario-img-wrap img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.scenario-card:hover .scenario-img-wrap img {
  transform: scale(1.06);
}
.scenario-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(15, 23, 32, 0.25) 50%, rgba(15, 23, 32, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}
.scenario-tag {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: .25rem .7rem;
  border-radius: var(--radius-pill);
  margin-bottom: .6rem;
}
.scenario-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.scenario-subtitle {
  font-size: .82rem;
  opacity: .88;
  margin-bottom: 0;
}

/* ── 精緻商品卡片 (Product Cards) ─────────── */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all .3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(15, 23, 32, 0.16);
}
.product-card .product-img-wrap {
  position: relative;
  padding-top: 100%;
  background: #F6F7F9;
  overflow: hidden;
}
.product-card .product-img-wrap img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

/* 商品標籤 */
.badge-floating {
  position: absolute;
  top: .75rem;
  z-index: 2;
  font-size: .7rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}
.badge-floating.badge-sale {
  left: .75rem;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 108, 69, 0.35);
}
.badge-floating.badge-warranty {
  right: .75rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  border: 1px solid rgba(15, 23, 32, 0.15);
  backdrop-filter: blur(4px);
}

/* 顏色圓點指示器與卡片即時選色 */
.card-color-picker {
  margin: 0.35rem 0 0.45rem 0;
  min-height: 24px;
}
.color-swatch-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 0;
}
.color-dot,
.card-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  display: inline-block;
  padding: 0;
  cursor: pointer;
  outline: none;
  background-clip: padding-box;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  vertical-align: middle;
  position: relative;
  user-select: none;
}
.card-color-dot:hover {
  transform: scale(1.25);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px var(--accent);
  z-index: 2;
}
.card-color-dot:active {
  transform: scale(0.95);
}
.card-color-dot.active {
  transform: scale(1.25);
  border-color: #ffffff !important;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px var(--primary) !important;
  z-index: 3;
}
.card-color-name {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 22px;
  margin-bottom: .25rem;
}

.product-brand {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.product-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: .5rem;
  min-height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 6px;
  row-gap: 2px;
  min-height: 26px;
  margin-top: auto;
  padding-top: .4rem;
}
.product-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.product-price-original {
  color: var(--text-light);
  text-decoration: line-through;
  font-size: .84rem;
  line-height: 1.2;
  white-space: nowrap;
}
.shipping-pill {
  font-size: .72rem;
  padding: .2rem .5rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

/* ── 品牌櫥窗 (Brand Showcase) ────────────── */
.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
}
.brand-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.brand-card img {
  max-height: 55px;
  max-width: 80%;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: .85;
  transition: all .25s ease;
}
.brand-card:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

/* ── IG 旅人生活靈感牆 (Lookbook Grid) ───────── */
.lookbook-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding-top: 100%;
  background: #EEF2F6;
  box-shadow: var(--shadow-sm);
}
.lookbook-item img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.lookbook-hover {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 32, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  padding: 1rem;
  text-align: center;
}
.lookbook-item:hover .lookbook-hover { opacity: 1; }
.lookbook-item { cursor: pointer; }
.lookbook-tag {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: .4rem;
}
.bg-gradient-dark {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
}

/* ── 保固與 VIP 禮遇橫幅 ────────────────────── */
.warranty-vip-banner {
  background: linear-gradient(135deg, #0F1720 0%, #1E293B 50%, #374151 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 32, 0.45);
}
.warranty-vip-banner::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 108, 69, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* ── 頁尾 (Modern Dark Tech-Luxury Footer) ───────── */
.footer-custom {
  background-color: #0F1720;
  color: #9CA3AF;
  margin-top: 5rem;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-custom h5,
.footer-custom h6 {
  color: #fff;
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 0.06em;
}
.footer-custom a {
  color: #9CA3AF;
  transition: color .2s ease;
}
.footer-custom a:hover {
  color: var(--accent);
}
.footer-trust-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 3rem;
  margin-bottom: 3.5rem;
}
.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  transition: all .25s ease;
}
.social-icon-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ── 購物車 ──────────────────────────────── */
.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--border);
}

/* ── 響應式與平板介面專屬最佳化 (Tablet & Responsive Optimizations) ── */

/* 1. iPad Pro / 筆記型電腦 (1200px ~ 1399.98px，例如 1366px iPad Pro) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-custom .navbar-brand {
    font-size: 1.32rem;
  }
  .navbar-custom .navbar-brand img {
    height: 32px;
  }
  .navbar-custom .nav-link {
    font-size: .9rem;
    padding: .45rem .65rem !important;
  }
  .navbar-custom .navbar-nav {
    gap: 3px !important;
  }
  .navbar-search {
    max-width: 180px;
    margin-right: .5rem !important;
  }
  .navbar-search .form-control {
    font-size: .84rem;
    padding: .38rem .75rem;
  }
  .navbar-custom .btn-sm {
    font-size: .84rem;
    padding: .38rem .85rem !important;
  }
  .hero-slide-img {
    height: 520px;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .trust-pillar-card {
    padding: 1.15rem .95rem;
  }
  .trust-pillar-card h6 {
    font-size: .9rem;
  }
  .trust-pillar-card p {
    font-size: .76rem;
  }
  .trust-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

/* 2. 平板橫向模式 (992px ~ 1199.98px，例如 iPad 1024px, iPad Pro 11" 1194px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-custom {
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
  }
  .navbar-custom .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 0.03em;
  }
  .navbar-custom .navbar-brand img {
    height: 30px;
  }
  .navbar-custom .navbar-brand span.logo-sub {
    font-size: .56rem;
    letter-spacing: 0.12em;
  }
  .navbar-custom .nav-link {
    font-size: .84rem;
    padding: .35rem .45rem !important;
  }
  .navbar-custom .navbar-nav {
    gap: 2px !important;
  }
  .navbar-search {
    max-width: 140px;
    margin-right: .35rem !important;
  }
  .navbar-search .form-control {
    font-size: .78rem;
    padding: .32rem .55rem;
  }
  .navbar-search .form-control::placeholder {
    font-size: .75rem;
  }
  .navbar-search .btn {
    padding: .32rem .55rem;
  }
  .navbar-custom .btn-sm {
    font-size: .8rem;
    padding: .32rem .65rem !important;
  }
  .hero-slide-img {
    height: 460px;
  }
  .hero-overlay {
    padding: 2.5rem 1.5rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-desc {
    font-size: .95rem;
    max-width: 480px;
    margin-bottom: 1.25rem;
  }
  .trust-bar-section {
    margin-top: -2rem;
  }
  .trust-pillar-card {
    padding: 1rem .75rem;
    gap: .65rem;
  }
  .trust-pillar-card h6 {
    font-size: .84rem;
  }
  .trust-pillar-card p {
    font-size: .72rem;
    line-height: 1.35;
  }
  .trust-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .scenario-title {
    font-size: 1.05rem;
  }
  .scenario-subtitle {
    font-size: .78rem;
  }
  .scenario-tag {
    font-size: .68rem;
    padding: .2rem .55rem;
  }
  .scenario-overlay {
    padding: 1.25rem 1rem;
  }
  .product-card .p-3 {
    padding: .85rem !important;
  }
  .product-title {
    font-size: .88rem;
  }
  .product-price {
    font-size: 1.05rem;
  }
  .btn-add-cart {
    font-size: .8rem;
    padding: .4rem .5rem !important;
  }
  .warranty-vip-banner {
    padding: 2.25rem 1.75rem;
  }
}

/* 3. 平板直向模式 (768px ~ 991.98px，例如 iPad 直立 768px ~ 834px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-slide-img {
    height: 420px;
  }
  .hero-overlay {
    padding: 2.25rem 1.75rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-desc {
    font-size: .92rem;
    margin-bottom: 1.2rem;
    max-width: 450px;
  }
  .trust-bar-section {
    margin-top: -2rem;
  }
  .trust-pillar-card {
    padding: 1.25rem 1.1rem;
  }
  .section-header {
    margin-bottom: 2.25rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .warranty-vip-banner {
    padding: 2.5rem 2rem;
  }
  .footer-custom {
    padding-top: 3.5rem;
    margin-top: 3.5rem;
  }
}

/* 4. 折疊選單專用精修 (< 992px，含所有手機與平板直立模式) */
@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 36px rgba(15, 23, 32, 0.12);
    padding: 1.25rem;
    margin-top: .75rem;
  }
  .navbar-custom .nav-link {
    padding: .75rem 1rem !important;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }
  .navbar-custom .nav-link:hover,
  .navbar-custom .nav-link.active {
    background: rgba(15, 23, 32, 0.05);
  }
  .navbar-search {
    margin: .75rem 0 !important;
    max-width: 100% !important;
    width: 100%;
  }
  .navbar-search .form-control {
    font-size: .95rem;
    padding: .6rem 1rem;
  }
  .navbar-search .btn {
    padding: .6rem 1.2rem;
  }
  .navbar-custom .navbar-nav.align-items-lg-center {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border-light);
  }
  .navbar-collapse .btn-line {
    width: 100%;
    justify-content: center;
    padding: .7rem 1.5rem !important;
    font-size: .98rem;
  }
}

@media (max-width: 767.98px) {
  .hero-slide-img { height: 340px; }
  .hero-overlay { padding: 2rem 1.25rem; }
  .hero-desc { display: none; }
  .hero-title { font-size: 1.6rem; }

  /* 平板直向與大手機卡片優化 */
  .product-card .p-3 {
    padding: .75rem !important;
  }
  .product-card .p-3.pt-0 {
    padding-top: 0 !important;
    padding-bottom: .75rem !important;
  }
  .product-title {
    font-size: .88rem;
    line-height: 1.35;
    margin-bottom: .35rem;
    min-height: 2.7em;
    max-height: 2.7em;
  }
  .btn-quick-select,
  .btn-add-cart {
    font-size: .8rem !important;
    padding: .42rem .5rem !important;
  }
}

@media (max-width: 575.98px) {
  .section-header { margin-bottom: 2rem; }
  .section-title { font-size: 1.45rem; }
  .trust-bar-section { margin-top: -1.5rem; }
  .warranty-vip-banner { padding: 2rem 1.5rem; }
  .scenario-img-wrap { padding-top: 100%; }

  /* ── 手機單欄商品卡片極致美型排版 (一排一個) ── */
  .product-card {
    border-radius: var(--radius-md);
  }
  .product-card .p-3 {
    padding: .95rem 1.05rem !important;
  }
  .product-card .p-3.pt-0 {
    padding-top: 0 !important;
    padding-bottom: 1.05rem !important;
  }

  /* 浮動標籤（特惠、輪子保固）舒適大器 */
  .badge-floating {
    top: .75rem;
    font-size: .72rem;
    padding: .28rem .65rem;
    letter-spacing: 0.02em;
  }
  .badge-floating.badge-sale {
    left: .75rem;
  }
  .badge-floating.badge-warranty {
    right: .75rem;
    padding: .28rem .65rem;
  }
  .badge-floating.badge-warranty i {
    font-size: .75rem;
    margin-right: 3px;
  }

  /* 品牌名稱與配送標籤單行對齊，充裕優雅 */
  .card-meta-row {
    min-height: 24px;
    margin-bottom: .35rem !important;
    gap: 8px;
  }
  .product-brand {
    font-size: .78rem;
    letter-spacing: 0.06em;
    max-width: none;
  }
  .shipping-pill {
    font-size: .72rem;
    padding: .2rem .55rem;
    letter-spacing: 0;
  }
  .shipping-pill i {
    font-size: .72rem;
    margin-right: 3px !important;
  }

  /* 商品標題清晰大器 */
  .product-title {
    font-size: .98rem;
    line-height: 1.45;
    margin-bottom: .4rem;
    min-height: auto;
    max-height: none;
  }

  /* 顏色選項列：充足空間展示完整色票與名稱 */
  .card-color-picker {
    margin: 0.35rem 0 0.5rem 0;
    min-height: 26px;
    max-height: none;
    height: auto;
  }
  .card-color-picker > div {
    height: auto;
  }
  .color-swatch-list {
    flex-wrap: wrap;
    gap: .45rem;
    max-width: none;
  }
  .card-color-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-width: 1.5px;
  }
  .card-color-dot.active {
    transform: scale(1.22);
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px var(--primary) !important;
  }
  .card-color-name {
    font-size: .78rem;
    max-width: none;
    text-align: right;
  }

  /* 價格區大器吸睛 */
  .product-price-row {
    min-height: 28px;
    column-gap: 8px;
    row-gap: 4px;
    padding-top: .4rem !important;
  }
  .product-price {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }
  .product-price-original {
    font-size: .88rem;
    margin-left: 0;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* 購物車按鈕：標準 44px 舒適點擊尺寸 */
  .btn-quick-select,
  .btn-add-cart {
    font-size: .92rem !important;
    padding: .62rem 1rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    gap: 6px !important;
    min-height: 44px;
  }
  .btn-quick-select i,
  .btn-add-cart i {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .product-card .p-3 {
    padding: .85rem .9rem !important;
  }
  .product-title {
    font-size: .92rem;
  }
  .product-price {
    font-size: 1.15rem;
  }
  .product-price-original {
    font-size: .82rem;
  }
  .btn-quick-select,
  .btn-add-cart {
    font-size: .88rem !important;
    padding: .55rem .75rem !important;
  }
}

/* ── 輕奢風格美型分類切換器 (Editorial Category Tabs) ── */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  margin-bottom: 2.25rem;
  position: relative;
}

/* 膠囊按鈕基底 */
.category-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.58rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: #ffffff;
  color: var(--secondary);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 32, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.category-pill-btn i {
  font-size: 0.98rem;
  color: var(--accent);
  opacity: 0.85;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover 狀態 */
.category-pill-btn:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 32, 0.08);
}

.category-pill-btn:hover i {
  transform: scale(1.12);
  opacity: 1;
}

/* Active 選中狀態 */
.category-pill-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(15, 23, 32, 0.25);
  transform: translateY(-1px);
}

.category-pill-btn.active i {
  color: var(--accent) !important;
  opacity: 1;
}

/* 數字統計徽章 */
.category-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  background: var(--bg-secondary);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.category-pill-btn.active .category-pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.category-pill-btn:hover:not(.active) .category-pill-badge {
  background: var(--primary-light);
  color: var(--primary);
}

/* 手機與平板水平滑動支援 */
@media (max-width: 767.98px) {
  .category-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.75rem;
    margin-right: -1rem;
    padding-right: 1rem;
  }
  .category-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .category-pill-btn {
    padding: 0.48rem 1.05rem;
    font-size: 0.86rem;
  }
}

/* ── 旅人日誌卡片 (Editorial News Cards) ── */
.news-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  border-radius: var(--radius-lg, 18px) !important;
  border: 1px solid var(--border) !important;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #ffffff !important;
  position: relative;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px -10px rgba(15, 23, 32, 0.15) !important;
  border-color: rgba(15, 23, 32, 0.22) !important;
}

.news-img-wrap {
  position: relative;
  overflow: hidden;
  height: 230px;
  width: 100%;
  background: var(--bg-secondary);
  display: block;
}

.news-card .news-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
}

.news-img-wrap .news-img {
  height: 100% !important;
}

.news-card:hover .news-img {
  transform: scale(1.06);
}

.news-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem !important;
  background: #ffffff;
}

.news-card .card-title a {
  color: var(--text-main);
  transition: color 0.2s ease;
}

.news-card:hover .card-title a {
  color: var(--accent);
}

/* ── 商品規格與選色按鈕 (Product Variant & Color Swatches) ── */
.options-selector-wrap {
  border: 1px solid var(--border) !important;
  background: #ffffff;
  border-radius: var(--radius-md) !important;
}

.opt-val-btn {
  background: #ffffff;
  border: 1.5px solid var(--border);
  color: var(--text-main);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.opt-val-btn:hover {
  border-color: var(--accent);
  background-color: #fff;
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 108, 69, 0.18);
}

.opt-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
}

.opt-check-icon {
  font-size: 0.9rem;
  display: none;
  font-weight: 700;
}

/* 選中狀態 (Active) */
.opt-val-btn.active {
  border-color: var(--primary) !important;
  background-color: var(--primary-light) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 32, 0.18) !important;
}

.opt-val-btn.active .opt-check-icon {
  display: inline-block;
}

.opt-color-btn.active .opt-color-dot {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px var(--primary);
}

/* 前台商品詳情圖文說明內容排版 */
#desc {
  font-size: 1rem;
  line-height: 1.85;
  color: #2c2c2c;
  word-break: break-word;
}
#desc img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
  margin: 1.2rem auto;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
#desc p {
  margin-bottom: 1.1rem;
}
#desc h1, #desc h2, #desc h3, #desc h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}
#desc blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1.25rem;
  background: #F6F7F9;
  border-radius: 0 6px 6px 0;
  margin: 1.2rem 0;
  color: #555;
}
#desc ul, #desc ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}

/* 前台富文字圖文說明內容：YouTube 嵌入影片 (橫式 16:9 / 直式 9:16 Shorts) */
#desc iframe.ql-video,
.article-content iframe.ql-video,
iframe.ql-video {
  display: block;
  border: 0;
  border-radius: 8px;
  background: #000;
}
#desc iframe.ql-video.ql-video-landscape,
.article-content iframe.ql-video.ql-video-landscape,
iframe.ql-video.ql-video-landscape,
iframe.ql-video:not(.ql-video-portrait) {
  width: 100% !important;
  max-width: 760px !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  margin: 1.5rem auto !important;
}
#desc iframe.ql-video.ql-video-portrait,
.article-content iframe.ql-video.ql-video-portrait,
iframe.ql-video.ql-video-portrait {
  width: 340px !important;
  max-width: 90% !important;
  aspect-ratio: 9 / 16 !important;
  height: auto !important;
  margin: 1.5rem auto !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14) !important;
}

/* ── 商品列表頁手機篩選折疊列 (Mobile Filter Collapse) ── */
.transition-transform {
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#filterToggleBtn:not(.collapsed) .filter-toggle-chevron,
#filterToggleBtn[aria-expanded="true"] .filter-toggle-chevron {
  transform: rotate(180deg);
}

@media (min-width: 992px) {
  #filterCollapse.collapse:not(.show) {
    display: block !important;
  }
  .filter-card-body {
    border-top: 0 !important;
  }
}

/* ── 快速選規格彈窗 (Quick Select Lightbox) 手機版防卡住與高度自適應 ── */
#quickSelectModal .modal-dialog {
  max-height: calc(100vh - 1.5rem);
}
#quickSelectModal .modal-content {
  max-height: calc(100vh - 1.5rem);
  display: flex;
  flex-direction: column;
}
#quickSelectModal .modal-header {
  flex-shrink: 0;
}
#quickSelectModal .modal-footer {
  flex-shrink: 0;
}
#quickSelectModal .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
  #quickSelectModal .modal-dialog {
    margin: 0.5rem auto;
    max-width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
  }
  #quickSelectModal .modal-content {
    border-radius: var(--radius-lg, 16px) !important;
    max-height: calc(100vh - 1rem);
  }
  #quickSelectModal .modal-header {
    padding: 0.75rem 1rem !important;
  }
  #quickSelectModal .modal-body {
    padding: 0.85rem 1rem !important;
  }
  #quickSelectModal .qs-img-container {
    min-height: 140px !important;
    max-height: 180px !important;
    padding: 0.5rem !important;
  }
  #quickSelectModal #qsProductImg {
    max-height: 150px !important;
  }
  #quickSelectModal .modal-footer {
    padding: 0.75rem 1rem !important;
  }
  #quickSelectModal .btn-close {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}



