/* 輝煌官網共用樣式（首頁、選購小幫手、代理產品、自家產品、健檢共用）。2026-12-02 */

/* 手機選單按鈕：電腦版不顯示 */
.menu-btn { display: none; }
.hero-coupon { padding: 10px 0; }

/* 右下角 LINE 按鈕：捲到頁尾時讓開 */
.line-fab { transition: opacity .2s ease, transform .2s ease; }
.line-fab.away { opacity: 0; transform: translateY(12px); pointer-events: none; }


@media (prefers-reduced-motion: reduce) {
  .line-fab { transition: none; }
}

@media (max-width: 600px) {
  /* 頁首：logo 小一點，選單收進「選單」按鈕 */
  header.site-hd > div { padding: 10px 16px !important; gap: 10px !important; }
  header.site-hd img { height: 40px !important; }
  .js .site-hd .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    background: transparent; color: #ffffff; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 8px;
    padding: 8px 14px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  }
  .js .site-hd nav { display: none !important; }
  .js .site-hd.open nav {
    display: flex !important; flex: 1 1 100%; flex-direction: column; flex-wrap: nowrap !important;
    overflow: visible !important; white-space: normal !important; gap: 0 !important;
    -webkit-mask-image: none !important; mask-image: none !important;
  }
  .js .site-hd.open nav a { padding: 13px 4px !important; font-size: 17px !important; border-top: 1px solid rgba(255, 255, 255, .18); }
  .js .site-hd.open nav a[aria-current="page"] { box-shadow: none !important; color: #FFC58F !important; }

  /* 商品分類：兩欄小卡 */
  #cats { padding-top: 48px !important; gap: 18px !important; }
  #cats .cat-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  #cats .cat-card { padding: 14px !important; gap: 4px !important; }
  #cats .cat-card .cat-ico { width: 26px; height: 26px; }
  #cats .cat-card .cat-en { font-size: 13px !important; letter-spacing: 1.5px !important; }
  #cats .cat-card .cat-name { font-size: 18px !important; }
  #cats .cat-card .cat-desc { font-size: 13px !important; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #cats .cat-card .cat-tags { display: none !important; }


  /* 頁尾留空間給右下角 LINE 按鈕 */
  footer { padding-bottom: 64px; }
}
