/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* === 修复 Product 页面底部白边（保留 Post Navigation） === */

/* 1. 清理 entry-content 内最后一个 uagb 容器的下方 margin */
.single-products .entry-content > *:last-child,
.single-products .entry-content > .wp-block-uagb-container:last-child {
    margin-bottom: 0 !important;
}

/* 2. 清理 entry-content 容器自身的 margin-bottom（2em → 0） */
.single-products .entry-content {
    margin-bottom: 0 !important;
}

/* 3. 清理 post-navigation 的 padding-bottom（2em → 0），但保留 post-navigation 显示 */
.single-products .post-navigation,
.single-products nav.navigation.post-navigation {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 4. 清理 article / site-content / #primary 的 margin（防止叠加） */
.single-products article.type-products,
.single-products #primary.content-area.primary {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 修复产品页面大块底部的 1.5em 边距（不影响内部小组件） */
.single-products .entry-content > .wp-block-uagb-container {
    margin-bottom: 0 !important;
}


/* ============================================
   PipeGuard 表格样式 V5 — 修复表下方空白鬼影
   ============================================ */

.entry-content figure.wp-block-table {
  margin: 0 0 1.8em 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 0 !important;
}

.entry-content figure.wp-block-table table,
.entry-content table.has-fixed-layout {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  background: #ffffff !important;
  border: 1px solid #dbeafe !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(15, 44, 77, 0.06) !important;
  table-layout: fixed !important;
  margin: 0 !important;
}

/* ---------- 表头：深蓝底白字 ---------- */
.entry-content figure.wp-block-table table thead tr,
.entry-content figure.wp-block-table table tbody tr:first-child,
.entry-content table.has-fixed-layout thead tr,
.entry-content table.has-fixed-layout tbody tr:first-child {
  background: #0f2c4d !important;
  background-color: #0f2c4d !important;
  background-image: none !important;
}

.entry-content figure.wp-block-table table thead th,
.entry-content figure.wp-block-table table tbody tr:first-child td,
.entry-content table.has-fixed-layout thead th,
.entry-content table.has-fixed-layout tbody tr:first-child td {
  color: #ffffff !important;
  font-family: 'Urbanist', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 14px 18px !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
}

/* 表头单元格圆角 */
.entry-content figure.wp-block-table table thead tr th:first-child,
.entry-content figure.wp-block-table table tbody tr:first-child td:first-child,
.entry-content table.has-fixed-layout thead tr th:first-child,
.entry-content table.has-fixed-layout tbody tr:first-child td:first-child {
  border-top-left-radius: 9px !important;
}
.entry-content figure.wp-block-table table thead tr th:last-child,
.entry-content figure.wp-block-table table tbody tr:first-child td:last-child,
.entry-content table.has-fixed-layout thead tr th:last-child,
.entry-content table.has-fixed-layout tbody tr:first-child td:last-child {
  border-top-right-radius: 9px !important;
}

/* ---------- 数据行 ---------- */
.entry-content figure.wp-block-table table tbody tr:not(:first-child),
.entry-content table.has-fixed-layout tbody tr:not(:first-child) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  transition: background 0.15s ease !important;
}

/* ---------- 斑马纹 ---------- */
.entry-content figure.wp-block-table table tbody tr:nth-child(even),
.entry-content table.has-fixed-layout tbody tr:nth-child(even) {
  background: #f0f7ff !important;
  background-color: #f0f7ff !important;
}
.entry-content figure.wp-block-table table:has(thead) tbody tr:nth-child(odd),
.entry-content table.has-fixed-layout:has(thead) tbody tr:nth-child(odd) {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* ---------- 数据单元格 ---------- */
.entry-content figure.wp-block-table table td,
.entry-content figure.wp-block-table table th,
.entry-content table.has-fixed-layout td,
.entry-content table.has-fixed-layout th {
  padding: 12px 18px !important;
  border: none !important;
  color: #0F172A !important;
  font-size: 15px !important;
  vertical-align: middle !important;
  background: transparent !important;
  word-wrap: break-word !important;
}
.entry-content figure.wp-block-table table tbody tr td,
.entry-content table.has-fixed-layout tbody tr td {
  border-bottom: 1px solid #e8f0fe !important;
}

/* ---------- 末行去底边框 + 圆角收尾 ---------- */
.entry-content figure.wp-block-table table tbody tr:last-child td,
.entry-content table.has-fixed-layout tbody tr:last-child td {
  border-bottom: none !important;
}
.entry-content figure.wp-block-table table tbody tr:last-child td:first-child,
.entry-content table.has-fixed-layout tbody tr:last-child td:first-child {
  border-bottom-left-radius: 9px !important;
}
.entry-content figure.wp-block-table table tbody tr:last-child td:last-child,
.entry-content table.has-fixed-layout tbody tr:last-child td:last-child {
  border-bottom-right-radius: 9px !important;
}

/* ---------- 鼠标悬停 ---------- */
.entry-content figure.wp-block-table table tbody tr:hover:not(:first-child),
.entry-content table.has-fixed-layout tbody tr:hover:not(:first-child) {
  background: #e6f1ff !important;
  background-color: #e6f1ff !important;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .entry-content figure.wp-block-table,
  .entry-content figure.wp-block-table table,
  .entry-content table.has-fixed-layout {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
  }
}

/* ---------- 关键修复：figure 自带样式清零 ---------- */
.entry-content figure.wp-block-table,
.entry-content figure.wp-block-table::before,
.entry-content figure.wp-block-table::after {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}


/* ============================================
   Spectra Icon List 横向排列（精简）
   ============================================ */

.wp-block-uagb-icon-list > .uagb-icon-list__wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 24px !important;
}