/*
Theme Name: Astra Child
Theme URI: https://thaimarketpro.com/
Description: Child theme for ThaiMarketPro based on Astra.
Author: ThaiMarketPro
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* =========================================================
   ThaiMarketPro Child Theme Base Style v1.1
   Brand Base / Homepage Sections / WooCommerce / Policy Pages
   不包含 Header / Footer
========================================================= */
/* =========================================================
   ThaiMarketPro Child Theme Base Style v1.1
   Brand Base / Homepage Sections / WooCommerce / Policy Pages
   不包含 Header / Footer
========================================================= */


/* =========================================================
   01. Brand Variables
========================================================= */

:root {
  --tmp-navy: #23234f;
  --tmp-navy-dark: #17173a;
  --tmp-blue-gray: #475569;
  --tmp-muted: #64748b;

  --tmp-gold: #d8963c;
  --tmp-gold-dark: #b97825;
  --tmp-gold-soft: #fff1dc;

  --tmp-cream: #fffaf0;
  --tmp-cream-2: #f8f0df;
  --tmp-white: #ffffff;

  --tmp-pink-soft: #ffe8df;
  --tmp-teal-soft: #dff6f3;

  --tmp-border: rgba(35, 35, 79, 0.12);
  --tmp-shadow: 0 16px 40px rgba(35, 35, 79, 0.08);
  --tmp-shadow-hover: 0 20px 50px rgba(35, 35, 79, 0.14);

  --tmp-radius-sm: 12px;
  --tmp-radius-md: 18px;
  --tmp-radius-lg: 28px;
  --tmp-radius-pill: 999px;

  --tmp-container: 1180px;
}


/* =========================================================
   02. Global Base
========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tmp-cream);
  color: var(--tmp-blue-gray);
  font-family: "Noto Sans TC", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--tmp-navy);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

a:hover {
  color: var(--tmp-gold);
}

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

::selection {
  background: var(--tmp-gold-soft);
  color: var(--tmp-navy-dark);
}


/* =========================================================
   03. Typography
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title,
.elementor-heading-title {
  color: var(--tmp-navy);
  font-family: "Noto Sans TC", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h1,
.entry-title,
.page-title {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(21px, 2vw, 28px);
  margin-bottom: 14px;
}

p {
  margin-bottom: 1.2em;
}

strong,
b {
  color: var(--tmp-navy);
  font-weight: 700;
}


/* =========================================================
   04. Layout Base
========================================================= */

.site,
#page,
.site-content {
  background: var(--tmp-cream);
}

.container,
.ast-container,
.site-content .ast-container {
  max-width: var(--tmp-container);
}

.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-container {
  max-width: var(--tmp-container);
}

.elementor-section {
  position: relative;
}

.elementor-widget:not(:last-child) {
  margin-bottom: 18px;
}


/* =========================================================
   05. Buttons
   適用 Elementor 按鈕、WooCommerce 按鈕、一般按鈕
========================================================= */

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
.wp-block-button__link,
.elementor-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  border-radius: var(--tmp-radius-pill);
  background: var(--tmp-gold);
  color: var(--tmp-white);
  border: 1px solid var(--tmp-gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  box-shadow: 0 10px 24px rgba(216, 150, 60, 0.22);
  transition: all 0.25s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.button:hover,
.wp-block-button__link:hover,
.elementor-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--tmp-gold-dark);
  border-color: var(--tmp-gold-dark);
  color: var(--tmp-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(185, 120, 37, 0.28);
}


/* 次按鈕：之後 Elementor 可手動加 class="tmp-btn-outline" */
.tmp-btn-outline .elementor-button,
.elementor-button.tmp-btn-outline,
.tmp-btn-outline {
  background: transparent;
  color: var(--tmp-navy);
  border: 1px solid rgba(35, 35, 79, 0.28);
  box-shadow: none;
}

.tmp-btn-outline .elementor-button:hover,
.elementor-button.tmp-btn-outline:hover,
.tmp-btn-outline:hover {
  background: var(--tmp-navy);
  color: var(--tmp-white);
  border-color: var(--tmp-navy);
}


/* =========================================================
   06. Forms / Inputs
========================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
  border-radius: var(--tmp-radius-md);
  border: 1px solid var(--tmp-border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--tmp-navy);
  padding: 13px 16px;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(71, 85, 105, 0.62);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(216, 150, 60, 0.7);
  background: var(--tmp-white);
  box-shadow: 0 0 0 4px rgba(216, 150, 60, 0.12);
}


/* =========================================================
   07. Homepage / Common Section Style
   不強制改欄位，只讓首頁區塊有一致品牌感
========================================================= */

.home .site-content,
.home #content {
  background:
    radial-gradient(circle at top left, rgba(216, 150, 60, 0.10), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(223, 246, 243, 0.65), transparent 24%),
    var(--tmp-cream);
}

.home .elementor-section {
  padding-left: 20px;
  padding-right: 20px;
}

.home .elementor-section.elementor-top-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.home .elementor-heading-title {
  color: var(--tmp-navy);
}

.home .elementor-widget-text-editor,
.home .elementor-widget-text-editor p {
  color: var(--tmp-blue-gray);
  line-height: 1.9;
}


/* 首頁區塊標題下方的小裝飾線 */
.home .elementor-widget-heading .elementor-heading-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 14px;
  border-radius: var(--tmp-radius-pill);
  background: linear-gradient(90deg, var(--tmp-gold), rgba(216, 150, 60, 0.18));
}


/* 如果標題置中，裝飾線也置中 */
.home .elementor-align-center .elementor-heading-title::after,
.home .elementor-widget-heading.elementor-align-center .elementor-heading-title::after {
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   08. Homepage Cards / Columns
   手動加 class="tmp-card" 可套用卡片感
========================================================= */

.home .elementor-column .elementor-widget-wrap,
.home .elementor-inner-column .elementor-widget-wrap {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tmp-card,
.home .tmp-card,
.home .elementor-widget-image-box,
.home .elementor-widget-icon-box {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--tmp-border);
  border-radius: var(--tmp-radius-lg);
  box-shadow: var(--tmp-shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tmp-card {
  padding: 28px;
}

.tmp-card:hover,
.home .tmp-card:hover,
.home .elementor-widget-image-box:hover,
.home .elementor-widget-icon-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--tmp-shadow-hover);
  border-color: rgba(216, 150, 60, 0.28);
}

.home .elementor-image-box-img img,
.home .elementor-widget-image img {
  border-radius: var(--tmp-radius-md);
}

.home .elementor-image-box-title,
.home .elementor-icon-box-title {
  color: var(--tmp-navy);
  font-weight: 700;
}

.home .elementor-image-box-description,
.home .elementor-icon-box-description {
  color: var(--tmp-muted);
  line-height: 1.8;
}


/* =========================================================
   09. WooCommerce Basic Polish
   先做全站商品卡基礎，不細改商品頁
========================================================= */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--tmp-border);
  border-radius: var(--tmp-radius-lg);
  padding: 16px 16px 20px;
  box-shadow: var(--tmp-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--tmp-shadow-hover);
  border-color: rgba(216, 150, 60, 0.28);
}

.woocommerce ul.products li.product a img {
  border-radius: var(--tmp-radius-md);
  margin-bottom: 16px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--tmp-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  padding: 0;
  margin-bottom: 8px;
}

.woocommerce ul.products li.product .price {
  color: var(--tmp-gold-dark);
  font-weight: 800;
  font-size: 16px;
}

.woocommerce span.onsale {
  background: var(--tmp-navy);
  color: var(--tmp-white);
  border-radius: var(--tmp-radius-pill);
  min-height: auto;
  min-width: auto;
  padding: 6px 12px;
  line-height: 1;
  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   10. Policy / Static Pages Basic
========================================================= */

.policy-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px;
  color: var(--tmp-blue-gray);
}

.policy-page h1,
.policy-main-title,
.policy-title {
  color: var(--tmp-navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.35;
  margin-bottom: 28px;
}

.policy-section {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--tmp-border);
  border-radius: var(--tmp-radius-lg);
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: var(--tmp-shadow);
}

.policy-heading,
.policy-page h2 {
  color: var(--tmp-navy);
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 16px;
}

.policy-subtitle,
.policy-page h3 {
  color: var(--tmp-navy);
  font-size: 19px;
  margin-top: 22px;
  margin-bottom: 10px;
}

.policy-text,
.policy-page p {
  color: var(--tmp-blue-gray);
  line-height: 1.95;
}

.policy-list,
.policy-link-list,
.policy-contact-list {
  padding-left: 1.2em;
  margin-bottom: 18px;
}

.policy-list li,
.policy-link-list li,
.policy-contact-list li {
  margin-bottom: 8px;
  line-height: 1.9;
}

.policy-link,
.policy-page a {
  color: var(--tmp-navy);
  font-weight: 700;
  border-bottom: 1px solid rgba(216, 150, 60, 0.4);
}

.policy-link:hover,
.policy-page a:hover {
  color: var(--tmp-gold-dark);
  border-bottom-color: var(--tmp-gold-dark);
}


/* =========================================================
   11. Responsive
========================================================= */

@media (max-width: 1024px) {
  .home .elementor-section.elementor-top-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .policy-page {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .home .elementor-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home .elementor-section.elementor-top-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  h1,
  .entry-title,
  .page-title {
    font-size: 32px;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 21px;
  }

  .tmp-card {
    padding: 22px;
    border-radius: 22px;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    padding: 12px 12px 16px;
    border-radius: 22px;
  }

  .policy-page {
    padding: 44px 18px;
  }

  .policy-section {
    padding: 22px;
    border-radius: 22px;
  }
}
/* =========================================================
   ThaiMarketPro Header Fix
   修正 Astra Below Header 亮藍色背景
========================================================= */

body #masthead,
body .site-header,
body .ast-primary-header-bar,
body .ast-below-header-bar,
body .site-primary-header-wrap,
body .site-below-header-wrap,
body .ast-main-header-wrap,
body .ast-below-header-wrap,
body .ast-below-header-bar .ast-builder-grid-row-container,
body .ast-below-header-bar .ast-builder-grid-row-container-inner,
body .ast-below-header-bar .ast-builder-grid-row,
body .ast-below-header-bar .site-header-section,
body .ast-below-header-bar .ast-builder-layout-element {
  background: #23234f !important;
  background-color: #23234f !important;
}

/* Header 上下分隔線 */
body .ast-primary-header-bar {
  border-bottom: 1px solid rgba(255, 250, 240, 0.10) !important;
}

body .ast-below-header-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 250, 240, 0.12) !important;
}

/* Menu 區避免出現藍色 hover / active 背景 */
body .ast-below-header-bar .menu-item,
body .ast-below-header-bar .menu-link,
body .ast-below-header-bar .main-header-menu,
body .ast-below-header-bar .main-navigation {
  background: transparent !important;
  background-color: transparent !important;
}

/* Menu hover 不要變亮藍底，只變橘金文字 */
body .ast-below-header-bar .menu-item:hover,
body .ast-below-header-bar .menu-item:hover > .menu-link,
body .ast-below-header-bar .menu-link:hover {
  background: transparent !important;
  background-color: transparent !important;
  color: #d8963c !important;
}

/* Menu 文字 */
body .ast-below-header-bar .menu-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

/* 購物車與登入區背景也透明 */
body .ast-below-header-bar .ast-header-woo-cart,
body .ast-below-header-bar .ast-header-account-wrap,
body .ast-below-header-bar .ast-builder-layout-element {
  background: transparent !important;
  background-color: transparent !important;
}
/* =========================================================
   ThaiMarketPro Footer Final Polish
   修正 Footer 太像測試卡片的問題
========================================================= */

/* Footer 主區塊 */
body #colophon,
body .site-footer,
body .site-primary-footer-wrap,
body .site-primary-footer-wrap .ast-builder-grid-row-container,
body .site-primary-footer-wrap .ast-builder-grid-row-container-inner,
body .site-primary-footer-wrap .ast-builder-footer-grid-columns {
  background: #17173a !important;
  background-color: #17173a !important;
}

/* Footer 主區塊間距 */
body .site-primary-footer-wrap {
  padding-top: 56px !important;
  padding-bottom: 52px !important;
  border-top: 1px solid rgba(216, 150, 60, 0.32) !important;
  border-bottom: 1px solid rgba(255, 250, 240, 0.08) !important;
}

/* 清掉 widget 卡片背景 */
body .site-primary-footer-wrap .site-footer-section,
body .site-primary-footer-wrap .footer-widget-area,
body .site-primary-footer-wrap aside,
body .site-primary-footer-wrap .widget,
body .site-primary-footer-wrap .ast-builder-html-element,
body .site-primary-footer-wrap .wp-block-group,
body .site-primary-footer-wrap .wp-block-columns,
body .site-primary-footer-wrap .wp-block-column {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* 每一欄做淡淡分隔，不做卡片 */
body .site-primary-footer-wrap .site-footer-section {
  position: relative !important;
  padding: 0 28px !important;
}

body .site-primary-footer-wrap .site-footer-section:not(:last-child)::after {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  right: 0 !important;
  width: 1px !important;
  height: calc(100% - 16px) !important;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 250, 240, 0.14),
    transparent
  ) !important;
}

/* =========================================================
   Footer Title Visibility
   修正 Footer 標題太暗、不明顯
========================================================= */

body #colophon .site-primary-footer-wrap h1,
body #colophon .site-primary-footer-wrap h2,
body #colophon .site-primary-footer-wrap h3,
body #colophon .site-primary-footer-wrap h4,
body #colophon .site-primary-footer-wrap h5,
body #colophon .site-primary-footer-wrap h6,
body #colophon .site-primary-footer-wrap .widget-title,
body #colophon .site-primary-footer-wrap .wp-block-heading,
body #colophon .site-primary-footer-wrap [class*="title"],
body #colophon .site-primary-footer-wrap [class*="heading"] {
  color: #fffaf0 !important;
  opacity: 1 !important;
  filter: none !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  letter-spacing: 0.04em !important;
}
body #colophon .site-primary-footer-wrap h1 *,
body #colophon .site-primary-footer-wrap h2 *,
body #colophon .site-primary-footer-wrap h3 *,
body #colophon .site-primary-footer-wrap h4 *,
body #colophon .site-primary-footer-wrap h5 *,
body #colophon .site-primary-footer-wrap h6 *,
body #colophon .site-primary-footer-wrap .widget-title *,
body #colophon .site-primary-footer-wrap .wp-block-heading *,
body #colophon .site-primary-footer-wrap [class*="title"] *,
body #colophon .site-primary-footer-wrap [class*="heading"] * {
  color: #fffaf0 !important;
  opacity: 1 !important;
}

/* Footer 標題短線 */
body .site-primary-footer-wrap h1::after,
body .site-primary-footer-wrap h2::after,
body .site-primary-footer-wrap h3::after,
body .site-primary-footer-wrap h4::after,
body .site-primary-footer-wrap .widget-title::after {
  content: "" !important;
  display: block !important;
  width: 34px !important;
  height: 2px !important;
  margin-top: 10px !important;
  background: #d8963c !important;
  border-radius: 999px !important;
}

/* Footer 文字 */
body .site-primary-footer-wrap p,
body .site-primary-footer-wrap li,
body .site-primary-footer-wrap span,
body .site-primary-footer-wrap div {
  color: rgba(255, 250, 240, 0.74) !important;
}

/* Footer 連結 */
body .site-primary-footer-wrap a {
  color: rgba(255, 250, 240, 0.84) !important;
  text-decoration: none !important;
}

body .site-primary-footer-wrap a:hover {
  color: #d8963c !important;
}

/* Footer list */
body .site-primary-footer-wrap ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

body .site-primary-footer-wrap li {
  margin-bottom: 9px !important;
}

/* Footer 連結小點 */
body .site-primary-footer-wrap li a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body .site-primary-footer-wrap li a::before {
  content: "" !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: #d8963c !important;
}

/* Logo 欄 */
body .site-footer-primary-section-1 img {
  max-height: 78px !important;
  width: auto !important;
  background: rgba(255, 250, 240, 0.96) !important;
  border-radius: 12px !important;
  padding: 6px !important;
}

/* Copyright 區 */
body .site-below-footer-wrap,
body .site-below-footer-wrap .ast-builder-grid-row-container,
body .site-below-footer-wrap .ast-builder-grid-row-container-inner,
body .site-below-footer-wrap .ast-builder-footer-grid-columns {
  background: #0c0c22 !important;
  background-color: #0c0c22 !important;
}

body .site-below-footer-wrap {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  border-top: 1px solid rgba(255, 250, 240, 0.08) !important;
}

body .site-below-footer-wrap,
body .site-below-footer-wrap p,
body .site-below-footer-wrap span,
body .site-below-footer-wrap div,
body .ast-footer-copyright {
  color: rgba(255, 250, 240, 0.62) !important;
  font-size: 13px !important;
  text-align: center !important;
  letter-spacing: 0.04em !important;
}
/* =========================================================
   ThaiMarketPro Header / Footer Small Fix
   修正下拉選單、Footer 標題、VPNGuard
========================================================= */


/* =========================
   01. Header Dropdown Fix
========================= */

body #masthead .main-header-menu .sub-menu,
body #masthead .ast-builder-menu .sub-menu,
body .site-header .main-header-menu .sub-menu,
body .site-header .ast-builder-menu .sub-menu {
  background: rgba(23, 23, 58, 0.98) !important;
  background-color: rgba(23, 23, 58, 0.98) !important;
  border: 1px solid rgba(255, 250, 240, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24) !important;
  padding: 8px !important;
  overflow: hidden !important;
}

body #masthead .main-header-menu .sub-menu .menu-item,
body #masthead .main-header-menu .sub-menu .menu-link,
body #masthead .ast-builder-menu .sub-menu .menu-item,
body #masthead .ast-builder-menu .sub-menu .menu-link {
  background: transparent !important;
  background-color: transparent !important;
}

body #masthead .main-header-menu .sub-menu .menu-link,
body #masthead .ast-builder-menu .sub-menu .menu-link {
  color: rgba(255, 250, 240, 0.88) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  line-height: 1.5 !important;
}

body #masthead .main-header-menu .sub-menu .menu-link:hover,
body #masthead .ast-builder-menu .sub-menu .menu-link:hover {
  background: rgba(216, 150, 60, 0.14) !important;
  background-color: rgba(216, 150, 60, 0.14) !important;
  color: #d8963c !important;
}


/* =========================
   02. Footer Title Fix
========================= */

body #colophon .site-primary-footer-wrap h1,
body #colophon .site-primary-footer-wrap h2,
body #colophon .site-primary-footer-wrap h3,
body #colophon .site-primary-footer-wrap h4,
body #colophon .site-primary-footer-wrap .widget-title,
body .site-footer .site-primary-footer-wrap h1,
body .site-footer .site-primary-footer-wrap h2,
body .site-footer .site-primary-footer-wrap h3,
body .site-footer .site-primary-footer-wrap h4,
body .site-footer .site-primary-footer-wrap .widget-title {
  color: #fffaf0 !important;
  opacity: 1 !important;
  filter: none !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

body #colophon .site-primary-footer-wrap h1 *,
body #colophon .site-primary-footer-wrap h2 *,
body #colophon .site-primary-footer-wrap h3 *,
body #colophon .site-primary-footer-wrap h4 *,
body #colophon .site-primary-footer-wrap .widget-title *,
body .site-footer .site-primary-footer-wrap h1 *,
body .site-footer .site-primary-footer-wrap h2 *,
body .site-footer .site-primary-footer-wrap h3 *,
body .site-footer .site-primary-footer-wrap h4 *,
body .site-footer .site-primary-footer-wrap .widget-title * {
  color: #fffaf0 !important;
  opacity: 1 !important;
}


/* =========================
   03. Footer Padding Slightly Tighter
========================= */

body .site-primary-footer-wrap {
  padding-top: 46px !important;
  padding-bottom: 42px !important;
}


/* =========================
   04. Hide VPNGuard Text
   如果還沒消失，建議從外掛或主題設定移除
========================= */

body a[href*="vpnguard"],
body a[href*="VPNGuard"] {
  display: none !important;
}

body p:has(a[href*="vpnguard"]),
body div:has(a[href*="vpnguard"]),
body p:has(a[href*="VPNGuard"]),
body div:has(a[href*="VPNGuard"]) {
  display: none !important;
}

/* =========================================================
   ThaiMarketPro WooCommerce Shop Archive Polish v1
   商店頁 / 商品分類頁 / 商品列表細節
========================================================= */


/* =========================================================
   01. Shop Page Base
========================================================= */

body.woocommerce-shop .site-content,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.woocommerce-page .site-content {
  background: var(--tmp-cream);
}


/* =========================================================
   02. Result Count / Sorting
========================================================= */

.woocommerce .woocommerce-result-count {
  color: var(--tmp-muted);
  font-size: 14px;
  line-height: 42px;
}

.woocommerce .woocommerce-ordering select {
  border-radius: var(--tmp-radius-pill);
  border: 1px solid var(--tmp-border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--tmp-navy);
  font-size: 14px;
  padding: 10px 18px;
  min-height: 42px;
  box-shadow: 0 8px 22px rgba(35, 35, 79, 0.06);
}

.woocommerce .woocommerce-ordering select:focus {
  border-color: rgba(216, 150, 60, 0.7);
  box-shadow: 0 0 0 4px rgba(216, 150, 60, 0.12);
}


/* =========================================================
   03. Product Grid
========================================================= */

.woocommerce ul.products {
  margin-top: 24px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(35, 35, 79, 0.10);
  border-radius: var(--tmp-radius-lg);
  box-shadow: 0 14px 34px rgba(35, 35, 79, 0.07);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 150, 60, 0.32);
  box-shadow: 0 22px 48px rgba(35, 35, 79, 0.13);
}


/* =========================================================
   04. Product Image
========================================================= */

.woocommerce ul.products li.product a img {
  border-radius: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.025);
  opacity: 0.96;
}


/* =========================================================
   05. Product Title / Price / Stock
========================================================= */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--tmp-navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--tmp-gold-dark);
  font-weight: 800;
}

.woocommerce ul.products li.product .price del {
  color: rgba(100, 116, 139, 0.58);
  font-weight: 500;
}

.woocommerce ul.products li.product .price ins {
  color: var(--tmp-gold-dark);
  text-decoration: none;
}

.woocommerce .stock {
  color: var(--tmp-blue-gray);
  font-size: 14px;
  font-weight: 600;
}

.woocommerce .stock.in-stock {
  color: #3f7f63;
}

.woocommerce .stock.out-of-stock {
  color: #b45b4d;
}


/* =========================================================
   06. Add To Cart Button
========================================================= */

.woocommerce ul.products li.product .button {
  border-radius: var(--tmp-radius-pill);
  background: var(--tmp-gold);
  border: 1px solid var(--tmp-gold);
  color: var(--tmp-white);
  font-size: 14px;
  font-weight: 800;
  padding: 11px 20px;
  box-shadow: 0 10px 24px rgba(216, 150, 60, 0.20);
}

.woocommerce ul.products li.product .button:hover {
  background: var(--tmp-gold-dark);
  border-color: var(--tmp-gold-dark);
  color: var(--tmp-white);
  transform: translateY(-2px);
}


/* =========================================================
   07. Sale Badge
========================================================= */

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  background: var(--tmp-navy);
  color: var(--tmp-white);
  border-radius: var(--tmp-radius-pill);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  min-height: auto;
  min-width: auto;
}


/* =========================================================
   08. Pagination
   修正原主題藍色 hover / active
========================================================= */

.woocommerce nav.woocommerce-pagination {
  margin-top: 42px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--tmp-radius-pill);
  border: 1px solid rgba(35, 35, 79, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--tmp-navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 42px;
  box-shadow: 0 8px 20px rgba(35, 35, 79, 0.06);
  transition: all 0.25s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--tmp-gold);
  border-color: var(--tmp-gold);
  color: var(--tmp-white);
  box-shadow: 0 12px 26px rgba(216, 150, 60, 0.24);
  transform: translateY(-2px);
}


/* =========================================================
   09. Mobile
========================================================= */

@media (max-width: 767px) {
  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering {
    float: none;
    width: 100%;
    text-align: left;
  }

  .woocommerce .woocommerce-ordering {
    margin-bottom: 20px;
  }

  .woocommerce .woocommerce-ordering select {
    width: 100%;
  }

  .woocommerce nav.woocommerce-pagination ul li a,
  .woocommerce nav.woocommerce-pagination ul li span {
    min-width: 38px;
    height: 38px;
    line-height: 38px;
  }
}
/* =========================================================
   10. WooCommerce Shop Sidebar / Archive Title
   只處理商店頁左欄分類 + 右欄 H1
========================================================= */


/* 左欄外框：只鎖定商店頁的 sidebar */
.woocommerce-page .widget-area.secondary {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* 只針對商品分類 widget 做卡片 */
.woocommerce-page .widget-area.secondary .widget_product_categories {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(35, 35, 79, 0.10);
  border-radius: var(--tmp-radius-lg);
  padding: 22px;
  box-shadow: 0 14px 34px rgba(35, 35, 79, 0.06);
}


/* 左欄標題，例如 Categories */
.woocommerce-page .widget-area.secondary .widget-title,
.woocommerce-page .widget-area.secondary h2 {
  color: var(--tmp-navy);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}

.woocommerce-page .widget-area.secondary .widget-title::after,
.woocommerce-page .widget-area.secondary h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 9px;
  border-radius: var(--tmp-radius-pill);
  background: var(--tmp-gold);
}


/* 左欄分類列表 */
.woocommerce-page .widget-area.secondary .widget_product_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-page .widget-area.secondary .widget_product_categories li {
  margin-bottom: 10px;
}

.woocommerce-page .widget-area.secondary .widget_product_categories li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tmp-blue-gray);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.48);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.woocommerce-page .widget-area.secondary .widget_product_categories li a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--tmp-radius-pill);
  background: rgba(216, 150, 60, 0.72);
  flex: 0 0 auto;
}

.woocommerce-page .widget-area.secondary .widget_product_categories li a:hover,
.tax-product_cat .widget-area.secondary .widget_product_categories li.current-cat > a {
  color: var(--tmp-navy);
  background: var(--tmp-gold-soft);
  border-color: rgba(216, 150, 60, 0.28);
  transform: translateX(3px);
}


/* 右欄 H1 / 商店頁標題 */
.woocommerce-shop .page-title,
.post-type-archive-product .page-title,
.tax-product_cat .page-title,
.woocommerce-products-header__title {
  color: var(--tmp-navy) !important;
  font-size: clamp(26px, 2.6vw, 34px) !important;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

.woocommerce-shop .page-title::after,
.post-type-archive-product .page-title::after,
.tax-product_cat .page-title::after,
.woocommerce-products-header__title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 12px;
  border-radius: var(--tmp-radius-pill);
  background: linear-gradient(90deg, var(--tmp-gold), rgba(216, 150, 60, 0.18));
}


/* 手機版 */
@media (max-width: 767px) {
  .woocommerce-page .widget-area.secondary {
    padding: 18px;
    margin-top: 26px;
    border-radius: 20px;
  }

  .woocommerce-page .widget-area.secondary .widget-title,
  .woocommerce-page .widget-area.secondary h2 {
    font-size: 16px;
  }

  .woocommerce-shop .page-title,
  .post-type-archive-product .page-title,
  .tax-product_cat .page-title,
  .woocommerce-products-header__title {
    font-size: 28px;
  }
}
/* =========================================================
   11. Policy Pages
   服務條款 / 購物運送流程 / 退換貨須知 / 隱私權政策
========================================================= */


/* 外層 */
.policy-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 56px;
  color: var(--tmp-blue-gray);
}


/* 內容卡片感 */
.policy-page {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(35, 35, 79, 0.10);
  border-radius: var(--tmp-radius-lg);
  box-shadow: 0 16px 40px rgba(35, 35, 79, 0.07);
  margin-top: 40px;
  margin-bottom: 72px;
}


/* H1 主標題 */
.policy-page h1 {
  color: var(--tmp-navy);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 34px;
  padding-bottom: 16px;
  position: relative;
}


/* H1 下方橘金線 */
.policy-page h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 14px;
  border-radius: var(--tmp-radius-pill);
  background: linear-gradient(90deg, var(--tmp-gold), rgba(216, 150, 60, 0.18));
}


/* H2 章節標題 */
.policy-page h2 {
  color: var(--tmp-navy);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.45;
  margin-top: 42px;
  margin-bottom: 16px;
}


/* H3 小標 */
.policy-page h3 {
  color: var(--tmp-navy);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 28px;
  margin-bottom: 10px;
}


/* 段落文字 */
.policy-page p {
  color: var(--tmp-blue-gray);
  font-size: 16px;
  line-height: 1.95;
  margin-bottom: 16px;
}


/* 列表 */
.policy-page ul {
  margin: 0 0 22px 0;
  padding-left: 1.3em;
}

.policy-page li {
  color: var(--tmp-blue-gray);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 8px;
  padding-left: 2px;
}


/* 列表符號顏色 */
.policy-page li::marker {
  color: var(--tmp-gold);
}


/* 連結 */
.policy-page a {
  color: var(--tmp-navy);
  font-weight: 700;
  border-bottom: 1px solid rgba(216, 150, 60, 0.45);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.policy-page a:hover {
  color: var(--tmp-gold-dark);
  border-bottom-color: var(--tmp-gold-dark);
}


/* 每個 h2 區塊之間的淡分隔 */
.policy-page h2:not(:first-of-type) {
  border-top: 1px solid rgba(35, 35, 79, 0.08);
  padding-top: 34px;
}


/* 個別頁面：可保留之後微調用 */
.return-policy {}
.shipping-policy {}
.terms-page {}
.privacy-policy {}


/* 手機版 */
@media (max-width: 767px) {
  .policy-page {
    padding: 42px 20px;
    margin-top: 32px;
    margin-bottom: 48px;
    border-radius: 22px;
	padding: 42px 20px;
  }

  .policy-page h1 {
    font-size: 30px;
    margin-bottom: 28px;
  }

  .policy-page h2 {
    font-size: 22px;
    margin-top: 34px;
  }

  .policy-page h3 {
    font-size: 18px;
  }

  .policy-page p,
  .policy-page li {
    font-size: 15px;
    line-height: 1.85;
  }
}
/* =========================================================
   Blog Image Overflow Safety
   防止文章圖片超出內容區
========================================================= */

.single-post .entry-content img,
.single-post .post-thumb img,
.single-post .wp-post-image,
.blog .wp-post-image,
.archive .wp-post-image {
  max-width: 100%;
  height: auto;
}

.single-post #primary,
.single-post .site-main,
.single-post .entry-content {
  overflow: hidden;
}
/* =========================================================
   12. Blog / Post Title Size
   控制文章列表與單篇文章標題
========================================================= */


/* 文章列表 / 彙整頁卡片標題 */
.blog .entry-title.ast-blog-single-element,
.archive .entry-title.ast-blog-single-element,
.category .entry-title.ast-blog-single-element,
.search .entry-title.ast-blog-single-element {
  font-size: clamp(20px, 2vw, 26px) !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}


/* 文章列表卡片內的標題連結 */
.blog .entry-title.ast-blog-single-element a,
.archive .entry-title.ast-blog-single-element a,
.category .entry-title.ast-blog-single-element a,
.search .entry-title.ast-blog-single-element a {
  color: #ffffff !important;
}


/* 單篇文章 H1 標題 */
.single-post .entry-title,
.single-post .entry-title.ast-blog-single-element {
  color: var(--tmp-navy) !important;
  font-size: clamp(30px, 3.2vw, 42px) !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 18px !important;
}


/* 手機版 */
@media (max-width: 767px) {
  .blog .entry-title.ast-blog-single-element,
  .archive .entry-title.ast-blog-single-element,
  .category .entry-title.ast-blog-single-element,
  .search .entry-title.ast-blog-single-element {
    font-size: 22px !important;
  }

  .single-post .entry-title,
  .single-post .entry-title.ast-blog-single-element {
    font-size: 30px !important;
  }
}
/* =========================================================
   13. WooCommerce Single Product
   商品詳細頁樣式
========================================================= */


/* 商品頁整體背景 */
.single-product .site-content {
  background: var(--tmp-cream);
}


/* 商品主標題 */
.single-product div.product .product_title,
.single-product .entry-title {
  color: var(--tmp-navy) !important;
  font-size: clamp(24px, 2.2vw, 32px) !important;
  line-height: 1.38 !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 18px !important;
}


/* 價格 */
.single-product div.product p.price,
.single-product div.product span.price {
  color: var(--tmp-gold-dark) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  margin-bottom: 18px !important;
}

.single-product div.product p.price del,
.single-product div.product span.price del {
  color: rgba(100, 116, 139, 0.55) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

.single-product div.product p.price ins,
.single-product div.product span.price ins {
  color: var(--tmp-gold-dark) !important;
  text-decoration: none !important;
}


/* 短描述 */
.single-product div.product .woocommerce-product-details__short-description {
  color: var(--tmp-blue-gray);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 22px;
}


/* 商品圖片區 */
.single-product div.product div.images img {
  border-radius: var(--tmp-radius-lg);
  background: rgba(255, 255, 255, 0.75);
}

.single-product div.product div.images {
  margin-bottom: 32px;
}


/* 規格表單 */
.single-product div.product form.cart {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(35, 35, 79, 0.10);
}

.single-product div.product form.cart .variations {
  margin-bottom: 20px;
}

.single-product div.product form.cart .variations label {
  color: var(--tmp-navy);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}

.single-product div.product form.cart .variations select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(35, 35, 79, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--tmp-navy);
  padding: 11px 14px;
  font-size: 15px;
}


/* 數量欄位 */
.single-product div.product form.cart div.quantity {
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
}

.single-product div.product .quantity .qty {
  width: 64px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(35, 35, 79, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--tmp-navy);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}


/* 加入購物車按鈕 */
.single-product div.product form.cart .button,
.single-product div.product .single_add_to_cart_button {
  min-height: 44px;
  border-radius: var(--tmp-radius-pill) !important;
  background: var(--tmp-gold) !important;
  border-color: var(--tmp-gold) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 12px 28px !important;
  box-shadow: 0 12px 26px rgba(216, 150, 60, 0.24) !important;
}

.single-product div.product form.cart .button:hover,
.single-product div.product .single_add_to_cart_button:hover {
  background: var(--tmp-gold-dark) !important;
  border-color: var(--tmp-gold-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}


/* SKU / 分類 */
.single-product div.product .product_meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(35, 35, 79, 0.10);
  color: var(--tmp-blue-gray);
  font-size: 14px;
  line-height: 1.8;
}

.single-product div.product .product_meta span {
  color: var(--tmp-blue-gray);
}

.single-product div.product .product_meta a {
  color: var(--tmp-navy);
  font-weight: 700;
}

.single-product div.product .product_meta a:hover {
  color: var(--tmp-gold-dark);
}


/* 商品頁 tabs */
.single-product .woocommerce-tabs {
  margin-top: 48px;
}

.single-product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid rgba(35, 35, 79, 0.12);
  padding-left: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: transparent !important;
  margin-right: 18px !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  color: var(--tmp-blue-gray) !important;
  font-weight: 800 !important;
  padding: 12px 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--tmp-navy) !important;
  border-bottom: 3px solid var(--tmp-gold);
}


/* tabs 內容 */
.single-product .woocommerce-Tabs-panel {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(35, 35, 79, 0.08);
  border-radius: var(--tmp-radius-md);
  padding: 32px 36px !important;
  color: var(--tmp-blue-gray);
  line-height: 1.9;
}
/* 描述區文字 */
.single-product .woocommerce-Tabs-panel p {
  margin-bottom: 16px;
}

/* 描述區列表 */
.single-product .woocommerce-Tabs-panel ul,
.single-product .woocommerce-Tabs-panel ol {
  padding-left: 1.4em;
  margin-bottom: 18px;
}

.single-product .woocommerce-Tabs-panel li {
  margin-bottom: 8px;
  line-height: 1.9;
}



/* 手機版 */
@media (max-width: 767px) {
  .single-product div.product .product_title,
  .single-product .entry-title {
    font-size: 28px !important;
  }

  .single-product div.product p.price,
  .single-product div.product span.price {
    font-size: 22px !important;
  }

  .single-product div.product form.cart .button,
  .single-product div.product .single_add_to_cart_button {
    width: 100%;
    margin-top: 12px;
  }

  .single-product div.product form.cart div.quantity {
    margin-right: 0;
  }

  .single-product .woocommerce-Tabs-panel {
    padding: 24px 20px !important;
  }
}