/* ==========================================================================
   頂級櫻桃一頁式導購網站 - 亮色手機排版設計系統 (Cherry Premium CSS)
   ========================================================================== */

/* 1. 全局變數與基礎設計 */
:root {
  --bg-page: #FAF0F2;           /* 櫻桃淡奶粉頁面底色 */
  --bg-container: #FFFFFF;      /* 容器白 */
  --font-primary: 'Noto Sans TC', 'Outfit', -apple-system, sans-serif;
  
  /* 品牌色 */
  --primary: #800020;           /* 櫻桃深紅 */
  --primary-light: #ab002c;     /* 明亮櫻桃紅 */
  --primary-bg-light: #FFF3F5;  /* 櫻桃淡粉底色 */
  --primary-border: #FAD2D8;    /* 櫻桃淡粉邊框 */
  
  --gold: #ca8a04;              /* 質感金 */
  --gold-light: #fef9c3;        /* 淺香檳金 */
  --text-primary: #2C1A1D;      /* 深紅灰文字 (取代黑色，增加質感) */
  --text-secondary: #5C4A4D;    /* 灰紅文字 */
  --text-muted: #9C8B8E;        /* 淺灰紅文字 */
  
  --border-radius: 20px;
  --shadow-soft: 0 10px 30px rgba(128, 0, 32, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 16px 40px rgba(128, 0, 32, 0.12), 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* 基礎重設 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  background-color: var(--bg-page);
  display: flex;
  justify-content: center;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* 捲軸美化 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-container);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   2. 主手機容器 (Mobile Container)
   ========================================================================== */
.landing-container {
  width: 100%;
  max-width: 500px; /* 電腦上呈置中手機頁面，手機上滿版 */
  background-color: var(--bg-container);
  box-shadow: 0 0 40px rgba(128, 0, 32, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
}

/* 跑馬燈與倒數計時 */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 8px 12px;
  z-index: 1001;
  position: relative;
  font-weight: 700;
  text-align: center;
}

.announcement-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.announcement-text {
  line-height: 1.4;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
}

.time-box {
  background-color: #ffffff;
  color: var(--primary);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ==========================================================================
   3. 置頂導覽列 (Sticky Header Navigation)
   ========================================================================== */
.sticky-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary-border);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  width: 100%;
}

.nav-scroll-wrap {
  position: relative;
  flex: 1;
  margin-right: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.nav-links-scroll {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  mask-image: linear-gradient(to right, #000 82%, transparent 98%);
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 98%);
}

.nav-links-scroll::-webkit-scrollbar {
  display: none;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-bg-light);
}

.nav-link.active {
  font-weight: 800;
}

.nav-btn-order {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(128, 0, 32, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-btn-order:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.scroll-indicator-arrow {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 0.65rem;
  box-shadow: 0 2px 6px rgba(128, 0, 32, 0.2);
  z-index: 5;
  animation: bounce-right 1.6s infinite ease-in-out;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.scroll-indicator-arrow.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.8);
}

@keyframes bounce-right {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(3px); }
}

/* ==========================================================================
   4. 通用區塊排版 (Sections)
   ========================================================================== */
.section-container {
  padding: 50px 15px;
  width: 100%;
}

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

.section-tag {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.header-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  margin: 0 auto 15px;
  border-radius: 2px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(128, 0, 32, 0.3);
}

.btn-secondary {
  background: rgba(128, 0, 32, 0.05);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.btn-secondary:hover {
  background: rgba(128, 0, 32, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   5. 首頁區塊 (Hero Section)
   ========================================================================== */
.hero-section {
  padding: 65px 15px 40px; /* Increased top padding to prevent sticky header clipping */
  background-color: var(--primary-bg-light);
  border-bottom: 1px solid var(--primary-border);
  text-align: center;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid var(--primary-border);
  color: var(--primary-light);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.6;
}

.hero-image-wrapper {
  margin: 0 auto 25px;
  max-width: 440px; /* Enlarged from 280px to make image fit mobile container better */
  width: 90%;
  position: relative;
}

.hero-main-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(128, 0, 32, 0.15));
  animation: float-img 6s ease-in-out infinite;
}

@keyframes float-img {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--primary-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 25px;
  background-color: var(--primary-border);
}

/* ==========================================================================
   6. 鮮果特色區 (Features Section)
   ========================================================================== */
.features-section {
  background-color: var(--bg-container);
  border-bottom: 1px solid #f2eaec;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card {
  background: var(--primary-bg-light);
  border: 1.5px solid var(--primary-border);
  padding: 25px 20px;
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--primary-light);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 15px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   7. 產地影片直擊區 (Videos Section)
   ========================================================================== */
.videos-section {
  background-color: var(--bg-container);
  border-bottom: 1px solid #f2eaec;
}

.videos-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.video-item-wrapper {
  background: var(--bg-container);
  border: 1px solid var(--primary-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
}

.product-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(128, 0, 32, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 5;
  transition: all 0.2s ease;
  border: 1.5px solid var(--gold-light);
  pointer-events: none;
}

.video-container:hover .video-overlay-play {
  background: var(--primary-light);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Hide play icon when playing */
.video-container.playing .video-overlay-play {
  opacity: 0;
  visibility: hidden;
}

.video-info {
  padding: 15px 18px;
}

.video-tag {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.video-info h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.video-info p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ==========================================================================
   8. 鮮果相簿區 (Gallery Section)
   ========================================================================== */
.gallery-section {
  background-color: var(--bg-container);
  border-bottom: 1px solid #f2eaec;
  padding: 0;
}

.gallery-stacked-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gallery-stacked-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402; /* Pre-reserves layout space to prevent viewport calculation jumps & lag */
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* ==========================================================================
   9. 結帳與優惠碼區 (Coded Plans Section)
   ========================================================================== */
.coded-plans-section {
  background-color: var(--primary-bg-light);
  border-bottom: 1px solid var(--primary-border);
}

/* 優惠券輸入框 */
.plans-coupon-container {
  background-color: #ffffff;
  border: 1.5px solid var(--primary-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plans-coupon-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.plans-coupon-box {
  display: flex;
  gap: 10px;
  width: 100%;
}

.plans-coupon-box input {
  flex: 1;
  border: 1.5px solid #cbd5e1;
  outline: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.plans-coupon-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.plans-coupon-box button {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 10px;
  font-weight: 800;
  background-color: var(--text-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plans-coupon-box button:hover {
  background-color: var(--primary);
}

.plans-coupon-box button.applied {
  background-color: #10b981 !important; /* Green */
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
  cursor: default;
}

.plans-coupon-tip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background-color: var(--primary-bg-light);
  border-left: 3px solid var(--primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.coupon-badge {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.copy-code-btn {
  background-color: #ffffff;
  border: 1px dashed var(--primary);
  color: var(--primary);
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  transition: all 0.15s ease;
}

.copy-code-btn:hover {
  background-color: var(--primary-border);
  transform: scale(1.05);
}

.plans-coupon-msg {
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 16px;
}

.plans-coupon-msg.success { color: #10b981; }
.plans-coupon-msg.error { color: #ef4444; }

/* 產品卡片設定器 */
.product-selector-wrapper {
  background-color: #ffffff;
  border-radius: 18px;
  border: 1.5px solid var(--primary-border);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  transition: all 0.3s ease;
}

.product-selector-wrapper.coupon-active {
  border-color: #10b981;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.06);
}

.product-selector-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-image-column {
  position: relative;
  width: 100%;
  aspect-ratio: 1.1;
  background-color: var(--primary-bg-light);
  border-radius: 14px;
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 10px rgba(128, 0, 32, 0.25);
  line-height: 1.2;
}

.product-name-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.product-price-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.product-price-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.product-price-label.strike {
  text-decoration: line-through;
  color: var(--text-muted);
}

.product-current-price-row {
  display: flex;
  align-items: baseline;
  color: var(--primary);
  font-weight: 800;
}

.currency-symbol {
  font-size: 1.05rem;
  margin-right: 2px;
}

.price-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
}

.saving-badge {
  margin-left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), #ca8a04);
}

/* 付款選擇器 */
.payment-selection-section {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-selection-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-options-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.payment-option-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--primary-border);
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.payment-option-card:hover {
  background-color: var(--primary-bg-light);
}

.payment-option-card.active {
  border-color: var(--primary);
  background-color: var(--primary-bg-light);
  box-shadow: 0 0 0 2px rgba(128, 0, 32, 0.1);
}

.payment-option-icon {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.payment-option-card.active .payment-option-icon {
  color: var(--primary);
}

.payment-option-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.payment-option-card.active .payment-option-label {
  color: var(--primary);
}

.payment-option-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.payment-card-brands {
  display: flex;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 1px;
}

.payment-option-card.active .payment-card-brands {
  color: var(--primary);
}

.payment-option-subtext {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 2px;
}

.payment-option-card.active .payment-option-subtext {
  color: var(--primary-light);
}

/* 配送資訊卡片 */
.shipping-info-grid {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--primary-bg-light);
  border-radius: 14px;
  border: 1px solid var(--primary-border);
  padding: 14px;
}

.shipping-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.shipping-info-card:not(:last-child) {
  border-bottom: 1px dashed rgba(128, 0, 32, 0.1);
  padding-bottom: 10px;
}

.shipping-card-icon {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 50%;
  border: 1px solid var(--primary-border);
  box-shadow: var(--shadow-soft);
}

.shipping-card-content {
  flex: 1;
}

.shipping-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.shipping-card-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.text-green { color: #10b981; }

.product-divider {
  border: none;
  border-top: 1px solid #f2eaec;
  margin: 15px 0;
}

.product-desc-block {
  background-color: rgba(202, 138, 4, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 15px;
}

.product-desc-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 2px;
}

.product-desc-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* 箱數選擇器 */
.qty-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.qty-title {
  font-size: 0.88rem;
  font-weight: 800;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--primary-border);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.qty-btn {
  border: none;
  background: var(--primary-bg-light);
  color: var(--primary);
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--primary-border);
}

.qty-input {
  border: none;
  border-left: 1.5px solid var(--primary-border);
  border-right: 1.5px solid var(--primary-border);
  width: 44px;
  height: 34px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
}

.purchase-notice-box {
  background-color: #FFF9F3;  /* 溫馨淺橘底色 */
  border: 1px solid #FFE4CE;   /* 淺橘邊框 */
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 15px;
  text-align: left;
}

.purchase-notice-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #c2410c;             /* 暖橘紅字體 */
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.purchase-notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.purchase-notice-list li {
  font-size: 0.72rem;
  color: #431407;             /* 深褐橘字體 */
  line-height: 1.45;
  position: relative;
  padding-left: 10px;
}

.purchase-notice-list li::before {
  content: "•";
  color: #f97316;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.checkout-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(128, 0, 32, 0.25);
  border: none;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.checkout-btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, #d10036 100%);
  box-shadow: 0 6px 18px rgba(171, 0, 44, 0.45);
  transform: translateY(-1px);
}

/* ==========================================================================
   10. 常見問題風琴摺疊 (FAQ Section)
   ========================================================================== */
.faq-section {
  background-color: var(--bg-container);
  border-bottom: 1px solid #f2eaec;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--primary-bg-light);
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 15px 18px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq-icon-arrow i {
  color: var(--primary);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-arrow i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.faq-answer p {
  padding: 0 18px 15px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ==========================================================================
   11. 頁尾與其它 (Footer)
   ========================================================================== */
.footer-sec {
  background: #2C1A1D;
  color: #ffffff;
  padding: 30px 15px;
  text-align: center;
  border-top: 1px solid var(--primary-border);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-sec .brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.footer-sec .highlight {
  color: var(--gold-light);
}

.footer-slogan {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-sec p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-disclaimer {
  font-size: 0.65rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
  line-height: 1.4;
  margin-top: 10px;
}

/* 置頂按鈕 */
.floating-nav-group {
  position: fixed;
  bottom: 80px; /* Above mobile bottom cta bar */
  right: calc(50% - 235px); /* Pin relative to 500px container boundary */
  z-index: 999;
  pointer-events: none;
}

/* Align right on mobile viewports */
@media (max-width: 500px) {
  .floating-nav-group {
    right: 15px;
  }
}

.btn-top-simple {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  pointer-events: all;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.btn-top-simple.visible {
  opacity: 1;
  visibility: visible;
}

.btn-top-simple:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   12. 浮動購買社群證明 (Social Toast Notification)
   ========================================================================== */
.purchase-notification {
  position: fixed;
  bottom: 80px;
  left: calc(50% - 240px); /* Align relative to 500px container */
  z-index: 999;
  background-color: #ffffff;
  border: 1.5px solid var(--primary-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(128, 0, 32, 0.08);
  max-width: 280px;
  width: 90%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 500px) {
  .purchase-notification {
    left: 15px;
  }
}

.purchase-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-avatar {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  text-align: left;
}

.notification-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.notification-time {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.notification-close:hover {
  color: var(--primary);
}

/* ==========================================================================
   13. 置底浮動購買條 (Mobile Sticky Bottom CTA Bar)
   ========================================================================== */
.floating-cta-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--primary-border);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
  padding: 10px 15px;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-cta-bar.show {
  opacity: 1;
  visibility: visible;
}

.floating-cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.floating-cta-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.floating-p-name {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.floating-p-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
}

.floating-buy-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(128, 0, 32, 0.15);
  transition: all 0.2s ease;
}

.floating-buy-btn:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   14. 相簿 Lightbox 預覽樣式
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(12, 8, 9, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2200;
}

.lightbox-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2100;
}

.lightbox-nav:hover {
  background: var(--primary);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   15. 折抵價格彈跳動畫與自訂提示視窗
   ========================================================================== */
@keyframes price-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.price-bounce-active {
  animation: price-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) ease-in-out;
}

.copied-tooltip {
  position: fixed;
  background-color: #10b981;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 999999;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
  transform: translate(-50%, 0);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.copied-tooltip.show {
  opacity: 1;
  transform: translate(-50%, -5px);
}
