/* ===== LOGO（解決你現在最大問題）===== */
.custom-logo {
    max-width: 140px !important;
    height: auto;
}

/* Header 整體平衡 */
.site-header {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* Header 內容左右平衡 */
.site-header .site-branding {
    display: flex;
    align-items: center;
}

/* 導覽列 */
.main-navigation a {
    font-size: 14px;
    color: #333;
    margin: 0 14px;
}

.main-navigation a:hover {
    color: #ff799d;
}

/* ===== 內容寬度（不要再滿版壓力）===== */
.site-main,
.elementor-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 標題系統 ===== */
h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ===== 商品卡「微優化（不破壞結構）」===== */
.woocommerce ul.products li.product {
    padding: 10px;
}

.woocommerce ul.products li.product h2 {
    font-size: 14px;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price {
    color: #111;
    font-weight: 600;
}

/* 按鈕質感 */
.woocommerce ul.products li.product .button {
    background: #0d3d82;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 0;
}

.woocommerce ul.products li.product .button:hover {
    background: #ff799d;
}

/* ===== 分類圖片（只微調，不動結構）===== */
.woocommerce ul.products li.product-category img {
    border-radius: 14px;
}

/* ===== 手機 ===== */
@media (max-width: 768px) {
    .custom-logo {
        max-width: 110px !important;
    }

    h1 {
        font-size: 22px;
    }
}
body {
  padding-top: 80px;
}
post-title-fix
.post-title-fix {
  white-space: normal !important;
  word-break: break-word;
  line-height: 1.4;
}
.post-title-fix {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ===== 修正：文章卡片標題（不影響原本CSS）===== */
.post-title-fix {
  white-space: normal !important;
  word-break: break-word;
  line-height: 1.4;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 60px;
}

/* 防止標題內連結破版 */
.post-title-fix a {
  display: block;
}
/* ===== 強制修正 Elementor 文章標題 ===== */
.elementor-heading-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  white-space: normal !important;
  word-break: break-word;
  line-height: 1.4;

  min-height: 60px;
}
/* ===== 強制修正 Elementor 文章標題 ===== */
.elementor-heading-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  white-space: normal !important;
  word-break: break-word;
  line-height: 1.4;

  min-height: 60px;
}
.push-bottom {
  margin-top: auto;
}
/* ===== 我的帳號頁整體排版 ===== */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 40px;
}

/* ===== 左側選單 ===== */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 清掉原本點點 */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 每一項 */
.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin-bottom: 10px;
}

/* 連結樣式 */
.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

/* hover */
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: #ffe3ea;
    color: #ff4f7a;
}

/* 當前頁 */
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: #ff4f7a;
    color: #fff;
    font-weight: 600;
}

/* ===== 右側內容 ===== */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 表格優化 */
.woocommerce-account table {
    border-radius: 10px;
    overflow: hidden;
}

/* 按鈕 */
.woocommerce-account .button {
    background: #ff4f7a;
    color: #fff;
    border-radius: 20px;
    padding: 6px 14px;
}

.woocommerce-account .button:hover {
    background: #e63e66;
}
/* ===== 修正內文文字疊在一起 ===== */
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
  white-space: normal !important;
  line-height: 1.8 !important;
}

/* ===== 限制「只讓標題截斷」 ===== */
.elementor-post__title,
.post-title-fix {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ===== 修正整頁無法正常滾動 ===== */
html, body {
  overflow: auto !important;
  height: auto !important;
}

/* 避免 Elementor container 鎖住畫面 */
.elementor-section,
.elementor-container,
.elementor {
  overflow: visible !important;
  height: auto !important;
}
html, body {
  height: auto !important;
  overflow: visible !important;
}

.elementor {
  height: auto !important;
}

.elementor-section,
.elementor-container {
  overflow: visible !important;
}
/* 強制解除所有內部滾動與高度限制 */
html, body {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}

/* Elementor 外層 */
.elementor,
.elementor-page,
.elementor-page-content,
.elementor-section-wrap {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}

/* WordPress 主題容器（關鍵） */
#page,
.site,
.site-content,
.content-area,
.site-main {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}
/* 修正頁面只能內部滾動問題 */
.site-main,
.elementor-location-single,
.elementor-section-wrap {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
/* 解鎖整頁滾動（關鍵） */
.site-main {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.site-main,
.page-content {
  overflow: visible !important;
}