/* =========================================================
   新網站補充樣式：沿用舊站 style.css，只補新功能與手機版
   舊站顏色：綠 #478D06、金 #DBC585
   ========================================================= */

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

/* ---------- 選單（取代 Bootstrap 3 的 jQuery 下拉） */
.navbar-collapse.collapse.in { display: block !important; }
.dropdown.open > .dropdown-menu { display: block; }
.dropdown-menu { max-width: 92vw; }
.dropdown-menu > li > a { white-space: normal; }

/* ---------- 共用按鈕 */
.site-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #478D06;
  color: #478D06;
  background: #fff;
  font-size: 15px;
  text-decoration: none;
  margin: 4px 6px 4px 0;
}
.site-btn:hover, .site-btn:focus { background: #478D06; color: #fff; text-decoration: none; }
.site-btn-primary { background: #478D06; color: #fff; }
.site-btn-primary:hover, .site-btn-primary:focus { background: #3a7405; color: #fff; }

/* ---------- 首頁「特價優惠」：取代 flexisel 輪播，改成可左右滑動 */
.special-scroller { position: relative; margin-top: 3em; }
.special-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  scrollbar-width: thin;
}
.special-item {
  flex: 0 0 calc((100% - 48px) / 4);
  scroll-snap-align: start;
  text-align: center;
}
.special-item a { display: block; text-decoration: none; }
.special-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.special-item h5 { margin: 0.8em 0 0.3em; line-height: 1.4; }
.special-item h4 { margin: 0; }
.scroller-btn {
  position: absolute; top: 35%;
  width: 45px; height: 45px; border: 0; z-index: 5;
  background: url(../images/img-sprite-left-right.png) no-repeat 0 0;
  cursor: pointer;
}
.scroller-prev { left: -50px; }
.scroller-next { right: -50px; background-position: -54px 0; }
@media (max-width: 1280px) { .scroller-prev { left: 0; } .scroller-next { right: 0; } }
@media (max-width: 991px)  { .special-item { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 640px)  { .special-item { flex-basis: 70%; } .scroller-btn { display: none; } }

/* ---------- 幣戒欣賞 */
.gallery-list { display: flex; flex-wrap: wrap; }
.gallery-list .gallery-grid { float: none; margin-bottom: 24px; text-align: center; }
.gallery-card { display: block; text-decoration: none; }
.gallery-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-card h5 { margin: 10px 0 4px; line-height: 1.4; min-height: 2.8em; }
.gallery-card h4 { margin: 0; }

/* ---------- 產品頁 */
.product-page .crumbs { color: #999; margin-bottom: 1.5em; font-size: 14px; }
.product-page .crumbs a { color: #478D06; }
.product-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.product-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.product-thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.product-thumb.is-active { border-color: #478D06; }
.product-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.product-info .product-title { text-align: left; font-size: 1.8em; margin: 0 0 0.6em; color: #333; }
.product-price { margin: 0 0 1em; }
.product-price .style4 { color: #FF0000; font-weight: bold; font-size: 26px; font-family: Verdana, Arial, Helvetica, sans-serif; }
.product-price .style5 { color: #999; margin-left: 12px; }
.product-meta { color: #555; }
.product-sizeprice, .product-options { margin: 1.2em 0; }
.product-sizeprice h5, .product-options h5 { color: #478D06; font-size: 16px; margin-bottom: 0.6em; }
.product-sizeprice ul { padding-left: 1.2em; color: #555; }
.product-options dl { margin: 0; }
.product-options dt { color: #333; margin-top: 0.6em; }
.product-options dd { color: #666; line-height: 1.7; }
.product-actions { margin-top: 1.5em; }
.product-desc { margin-top: 3em; border-top: 1px solid #e0e0e0; padding-top: 2em; }
.product-desc h3 { color: #DBC585; }
.product-desc-body { line-height: 1.8; color: #555; overflow-wrap: anywhere; }
.product-desc-body img { max-width: 100%; height: auto !important; }
.product-desc-body iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; width: 100%; }
.product-desc-body span, .product-desc-body p { font-size: inherit !important; }

/* ---------- 文章 */
.article-date { color: #999; margin: 0 0 0.4em; }
.article-body { line-height: 1.9; overflow-wrap: anywhere; }
.team-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 聯絡 */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 2em 0; }
.contact-card { border: 1px solid #e0e0e0; padding: 20px; text-align: center; }
.contact-card h4 { color: #478D06; margin-top: 0; }
.map iframe { width: 100%; height: 360px; }

.error-msg { text-align: center; margin: 1.5em 0; }

/* ---------- 手機版：底部固定「私訊詢問／我要訂製」 */
.mobile-cta { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  .mobile-cta {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    padding: 10px 12px; background: #fff; border-top: 1px solid #e0e0e0;
  }
  .mobile-cta a {
    flex: 1; text-align: center; padding: 11px 0; font-size: 16px; text-decoration: none;
  }
  .mobile-cta-msg { border: 1px solid #478D06; color: #478D06; }
  .mobile-cta-order { background: #478D06; color: #fff; }
  .mobile-cta a:hover, .mobile-cta a:focus { text-decoration: none; }
  .product-info .product-title { font-size: 1.4em; margin-top: 1em; }
  .product-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- 如何取得戒圍 */
.ringsize-body { max-width: 820px; margin: 0 auto; line-height: 1.9; color: #555; font-size: 16px; }
.ringsize-body h3 { color: #478D06; font-size: 1.3em; margin: 1.8em 0 0.6em; text-align: left; }
.ringsize-lead { font-size: 1.1em; color: #333; }
.ringsize-tip { background: #f7f9f2; border-left: 4px solid #DBC585; padding: 14px 18px; margin: 1em 0; }
.ringsize-tip h4 { color: #333; margin-top: 0; }
.ringsize-tip ul { padding-left: 1.2em; }
.ringsize-note { color: #999; font-size: 14px; margin-top: 2em; }

/* ---------- 出貨展示（臉書同步） */
.fb-showcase .showcase-sub { text-align: center; color: #999; margin: 0.6em 0 2em; }
.showcase-filter { text-align: center; margin-bottom: 1.5em; }
.showcase-grid { display: flex; flex-wrap: wrap; }
.showcase-col { margin-bottom: 30px; }
.showcase-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e0e0e0; text-decoration: none; }
.showcase-card:hover, .showcase-card:focus { text-decoration: none; border-color: #DBC585; }
.showcase-img { position: relative; display: block; }
.showcase-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.showcase-tag, .showcase-tag-inline { font-size: 13px; padding: 3px 10px; }
.showcase-tag { position: absolute; left: 12px; top: 12px; }
.tag-shipment { background: #478D06; color: #fff; }
.tag-stock { background: #DBC585; color: #333; }
.tag-news { background: #c0392b; color: #fff; }
.showcase-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.showcase-date { color: #999; font-size: 13px; }
.showcase-title { color: #333; font-size: 17px; line-height: 1.5; }
.showcase-text { color: #666; font-size: 14px; line-height: 1.7; }
.showcase-more { text-align: center; margin: 10px 0 20px; }
.page-info { margin: 0 10px; color: #999; }
.post-page .post-title { color: #333; line-height: 1.5; }
.news-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 首頁橫幅：用最新消息的照片當背景（加暗色遮罩讓白字看得清楚） */
.banner.banner-photo { background-position: center center; }
