/* === 後續加上的元件樣式（不汙染 legacy/style.css） === */

/* 站台搜尋欄 */
.site-search {
  display: none;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.site-search.open { display: block; }
.ss-inner {
  max-width: 900px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; gap: 10px;
}
.ss-inner input[type="search"] {
  flex: 1; padding: 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: inherit; font-size: 15px;
  color: var(--brown); background: #fff;
  letter-spacing: 1px;
}
.ss-inner input[type="search"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,126,34,.12); }
.ss-submit {
  padding: 0 24px; border-radius: 999px;
  background: var(--gold); color: #fff;
  border: none; cursor: pointer;
  letter-spacing: 3px; font-family: inherit;
}
.ss-close {
  width: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 22px;
  color: var(--brown-light);
}

/* 電子報訂閱條 */
.newsletter-band {
  background: linear-gradient(135deg, #3a2512 0%, #2c2416 100%);
  border-top: 1px solid rgba(230,126,34,.18);
  padding: 24px 32px;
}
.nb-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 24px;
  align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.nb-text h3 {
  color: var(--gold); letter-spacing: 4px;
  font-size: 18px; margin-bottom: 4px;
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
}
.nb-text p { color: #d4c5a3; font-size: 13px; letter-spacing: 1px; }
.nb-form { display: flex; gap: 8px; min-width: 320px; }
.nb-form input {
  flex: 1; padding: 12px 18px;
  background: rgba(255,255,255,.92); border: none;
  border-radius: 999px;
  font-family: inherit; font-size: 14px;
  color: var(--brown);
}
.nb-form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(230,126,34,.4); }
.nb-form button {
  padding: 12px 26px; background: var(--gold); color: #fff;
  border: none; border-radius: 999px; cursor: pointer;
  letter-spacing: 3px; font-family: inherit;
}
.nb-form button:hover { background: var(--gold-dark); }

/* 願望清單 ❤ */
.wishlist-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line);
  color: var(--brown-light); cursor: pointer;
  font-family: inherit; font-size: 14px; letter-spacing: 2px;
  transition: all .2s;
}
.wishlist-toggle:hover { border-color: var(--gold); color: var(--gold-dark); }
.wishlist-toggle.is-active { background: #ffe6cc; border-color: var(--gold); color: var(--gold-dark); }
.wishlist-toggle svg { width: 18px; height: 18px; }

/* 商品多圖 gallery 縮圖 */
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line);
  cursor: pointer; padding: 0;
  background: #fff;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(230,126,34,.3); }

/* 搜尋結果 */
.search-results h3 { color: var(--brown); margin: 24px 0 14px; letter-spacing: 3px; }
.search-empty { text-align: center; color: var(--brown-light); padding: 60px 20px; letter-spacing: 1px; }

/* 訂單追蹤 */
.track-form {
  max-width: 520px; margin: 0 auto;
  background: #fff; padding: 40px;
  border-radius: 20px; border: 1px solid var(--line);
}
.track-result {
  max-width: 720px; margin: 24px auto;
  background: #fff; padding: 30px;
  border-radius: 16px; border: 1px solid var(--line);
}
.track-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}

/* 會員等級 badge */
.tier-badge {
  display: inline-block; padding: 3px 12px;
  border-radius: 999px; font-size: 12px;
  letter-spacing: 2px; margin-left: 8px;
}
.tier-regular { background: var(--cream-dark); color: var(--brown); }
.tier-silver  { background: linear-gradient(135deg,#c0c0c0,#9e9e9e); color: #fff; }
.tier-gold    { background: linear-gradient(135deg,#f5c842,#d4a017); color: #fff; }
.tier-vip     { background: linear-gradient(135deg,#7b4397,#dc2430); color: #fff; }

/* 優惠券輸入區 */
.coupon-row {
  display: flex; gap: 8px; align-items: center;
  padding: 12px 0; border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-top: 14px;
}
.coupon-row input {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; text-transform: uppercase;
  letter-spacing: 2px; font-size: 14px;
}
.coupon-row button {
  padding: 10px 18px; border: none; border-radius: 8px;
  background: var(--gold); color: #fff; cursor: pointer;
  letter-spacing: 2px; font-family: inherit; font-size: 13px;
}

@media (max-width: 720px) {
  .nb-inner { flex-direction: column; align-items: stretch; }
  .nb-form { min-width: 0; }
}
