/* 商店頁（電腦版）：一個畫面顯示兩行、每行三件商品 */
@media (min-width: 922px) {
  html:root body.woocommerce.archive .ast-woocommerce-container {
    max-width: 730px;
    margin-left: auto;
    margin-right: auto;
  }
  html:root body.woocommerce.archive ul.products.columns-3 {
    column-gap: 20px;
  }
  html:root body.woocommerce.archive ul.products.columns-3 > li.product.type-product.type-product {
    margin-bottom: 16px !important;
    padding-bottom: 0 !important;
  }
  html:root body.woocommerce.archive ul.products li.product .astra-shop-summary-wrap {
    padding: 6px 4px 0 !important;
    margin-top: 0 !important;
  }
  html:root body.woocommerce.archive ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  html:root body.woocommerce.archive ul.products li.product .price {
    margin-bottom: 6px !important;
  }
  html:root body.woocommerce.archive ul.products li.product .button {
    margin: 0 !important;
  }
}

/* 頁首 CONTACT 按鈕：文字不換行 */
.ast-header-button-1 .ast-custom-button,
.ast-builder-button-wrap .ast-custom-button {
  white-space: nowrap;
}
/* mobile menu toggle visible on green header */
.ast-header-break-point .main-header-menu-toggle{color:#fff!important;border-color:rgba(255,255,255,.7)!important}
.ast-header-break-point .main-header-menu-toggle svg,.ast-header-break-point .main-header-menu-toggle .ast-mobile-svg{fill:#fff!important}

/* 全站字型統一：Noto Sans TC */
h6,.entry-content :where(h6),.ast-builder-menu-mobile .main-navigation .menu-item > .menu-link{font-family:'Noto Sans TC',sans-serif}

/* 介面優化：頁尾連結不要從中間斷行 */
.site-footer h5.wp-block-heading a{white-space:nowrap}
/* 介面優化：數量欄位與按鈕等高 */
.woocommerce .quantity{display:inline-flex!important;align-items:stretch}
.woocommerce .quantity .qty,.woocommerce .quantity .minus,.woocommerce .quantity .plus{min-height:44px;height:44px;margin:0!important}
/* 介面優化：按鈕最小高度 44px，方便手機點擊 */
.woocommerce a.button,.woocommerce button.button,.woocommerce .single_add_to_cart_button{min-height:44px;display:inline-flex!important;align-items:center;justify-content:center;font-size:15px!important;text-transform:none!important}

/* ===== 頁尾：工作室風格（2026-11-13） ===== */
.site-footer .site-primary-footer-wrap{background:#1C1713 !important;color:rgba(239,231,220,.72);border-top:0}
.site-footer .site-primary-footer-wrap :is(p,li,span,div,.widget){color:rgba(239,231,220,.72)}
.site-footer .site-primary-footer-wrap a{color:#EFE7DC !important;display:inline-flex;align-items:center;min-height:44px;text-decoration-color:#C9A173;text-underline-offset:5px}
.site-footer .site-primary-footer-wrap a:hover{text-decoration:underline}
.site-footer .site-primary-footer-wrap a:focus-visible{outline:3px solid #C9A173;outline-offset:2px}
.site-footer .site-primary-footer-wrap :is(hr,.wp-block-separator){border-color:rgba(239,231,220,.15) !important;background:rgba(239,231,220,.15) !important;opacity:1}
.site-footer .site-primary-footer-wrap *{border-color:rgba(239,231,220,.15)}
.site-footer .site-primary-footer-wrap p{font-size:14px;line-height:1.9}
.site-footer .site-below-footer-wrap{border-top:1px solid rgba(239,231,220,.12)}
.site-footer .site-below-footer-wrap,.site-footer .site-below-footer-wrap *{color:rgba(239,231,220,.6)}

.site-footer .site-primary-footer-wrap .ast-builder-grid-row{padding-left:16px;padding-right:16px}
.site-footer .site-primary-footer-wrap :is(hr,.wp-block-separator){border-width:1px 0 0 !important;height:0 !important}

/* 結帳頁（專心結帳版頭）：綠底，讓網站名稱看得見 */
body.woocommerce-checkout .site-header{background:#0D654B}
body.woocommerce-checkout .site-header .site-title a{color:#FBF8F3}

/* 商店：特賣標籤放大（2026-11-13） */
.woocommerce span.onsale,.woocommerce-page span.onsale{font-size:13px;font-weight:700;min-width:auto;min-height:auto;padding:4px 10px;line-height:1.4;border-radius:3px;background:#8A5A2B;color:#fff}
@media (max-width:544px){.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px;line-height:1.5}}

/* ===== 文章與一般頁面：閱讀版型（2026-11-13，不含商城與 Elementor 頁面） ===== */
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) :is(.entry-header,.entry-content,.ast-single-entry-banner .ast-container){max-width:44rem;margin-left:auto;margin-right:auto}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content{font-size:17px;line-height:1.85;color:#2A2420}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content :is(p,li){color:#2A2420}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-title{font-size:clamp(1.75rem,1.4rem + 1.4vw,2.5rem);line-height:1.35;color:#2A2420}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content h2{font-size:clamp(1.375rem,1.2rem + .6vw,1.75rem);margin:2.2em 0 .6em;color:#2A2420;line-height:1.4}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content h3{font-size:1.25rem;margin:1.8em 0 .5em;color:#2A2420;line-height:1.45}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content a{color:#0D654B;text-decoration:underline;text-decoration-color:#8A5A2B;text-underline-offset:4px}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content :is(table){border-collapse:collapse;font-size:15px;line-height:1.6}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content :is(th,td){border:0;border-bottom:1px solid #D9CEBF;padding:10px 12px;text-align:left}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content th{background:#F3EEE6;font-weight:700}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content .wp-block-group[style*="border-left"]{background:#F3EEE6 !important;border-left-color:#8A5A2B !important;border-radius:3px}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content img{border-radius:3px}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content figcaption{color:#5F554C;font-size:14px}
.single-post .ast-article-single,.single-post .ast-related-posts-wrapper,.single-post .comments-area{border-radius:3px}
body:is(.single-post,.page):not(.ast-page-builder-template):not(.woocommerce-page) .entry-content :is(figure.wp-block-table,.wp-block-table table){box-shadow:none !important;border:0 !important}

/* ===== 版頭：工作室風格（2026-11-13） ===== */
.ast-primary-header-bar .ast-builder-grid-row{min-height:72px}
.ast-primary-header-bar .site-title,.ast-primary-header-bar .site-title a{font-size:22px;letter-spacing:.01em}
.main-header-menu > .menu-item > .menu-link{font-weight:500;font-size:15px;letter-spacing:.02em;box-shadow:inset 0 -2px 0 transparent;transition:box-shadow .15s}
.main-header-menu > .menu-item > .menu-link:hover{box-shadow:inset 0 -2px 0 rgba(251,248,243,.5)}
.main-header-menu > :is(.current-menu-item,.current-menu-ancestor,.current_page_item) > .menu-link{box-shadow:inset 0 -2px 0 #C9A173}
.main-header-menu > .menu-item > .menu-link:focus-visible{outline:3px solid #C9A173;outline-offset:2px}
.ast-header-button-1 .ast-custom-button{display:inline-flex;align-items:center;min-height:44px;border-radius:3px !important;border-width:1px !important;border-color:rgba(251,248,243,.65) !important;padding:10px 18px !important;font-size:14px !important;font-weight:700;background:transparent !important;color:#FBF8F3 !important;transition:background-color .15s,color .15s}
.ast-header-button-1 .ast-custom-button:hover{background:#FBF8F3 !important;color:#0D654B !important}
/* 手機版頭 */
.ast-mobile-header-wrap .menu-toggle{min-width:44px;min-height:44px}
.ast-mobile-header-content{background:#0A4F3B !important;border-top:1px solid rgba(251,248,243,.15)}
.ast-mobile-header-content .main-header-menu{background:transparent !important}
.ast-mobile-header-content .menu-item > .menu-link{color:#FBF8F3 !important;font-size:16px !important;font-weight:500;min-height:48px;display:flex;align-items:center;border-bottom:1px solid rgba(251,248,243,.12) !important;background:transparent !important}
.ast-mobile-header-content :is(.current-menu-item,.current_page_item) > .menu-link{color:#C9A173 !important}
.ast-mobile-header-content .ast-menu-toggle,.ast-mobile-header-content .dropdown-menu-toggle{color:#FBF8F3 !important}
.ast-mobile-header-content .sub-menu{background:rgba(0,0,0,.12) !important}
@media (prefers-reduced-motion:reduce){.main-header-menu > .menu-item > .menu-link,.ast-header-button-1 .ast-custom-button{transition:none}}
