/**
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
*/

.newsletter input#form-field-email {
    height: 50px;
    color: #757575 !important;
}

input#reg_email {
    padding: 6px 16px;
}

/* 主選單項目間距 */
ul#ast-hf-menu-1 {
    gap: 80px;
}

/* 移除主要和下方標頭的邊框 */
.ast-primary-header-bar {
    border: none;
}

.ast-below-header-bar {
    border: none;
}

/* 替換購物袋圖標 (隱藏內建 SVG) */
span.ast-icon.icon-bag>svg {
    display: none;
}

/* 購物袋圖標替換為自訂圖片 (ph_handbag.svg) */
span.ast-icon.icon-bag {
    background-image: url(https://weitech.designhu-demo.com/wp-content/uploads/ph_handbag.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    height: 20px;
    width: 20px;
    display: block;
}


/* 替換用戶帳戶圖標 (隱藏內建 SVG) */
a.ast-header-account-link span.ahfb-svg-iconset.ast-inline-flex.svg-baseline>svg {
    display: none;
}

/* 用戶帳戶圖標替換為自訂圖片 (lucide_user.svg) */
a.ast-header-account-link span.ahfb-svg-iconset.ast-inline-flex.svg-baseline {
    background-image: url(https://weitech.designhu-demo.com/wp-content/uploads/lucide_user.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 35px;
    width: 21px;
}

@media (min-width: 922px) {
    ul#ast-hf-menu-1 a.menu-link:after {
        content: "";
        border-bottom: 4px solid #003B73;
        display: block;
        width: 100%;
        position: absolute;
        bottom: 0;
        opacity: 0;
        transition: all .4s;
    }

    ul#ast-hf-menu-1 a.menu-link:hover:after {
        opacity: 1;
    }

    ul#ast-hf-menu-1 li.current-menu-item>a.menu-link:after {
        opacity: 1;
    }
}

.ast-single-entry-banner {
    background: transparent;
}

/* 迷你購物車按鈕 (查看購物車/結帳) 移除圓角 */
p.woocommerce-mini-cart__buttons.buttons>a {
    border-radius: 0;
}

/* 查看購物車按鈕樣式 */
a.button.wc-forward {
    border: 1px solid #003B73;
    color: #003B73;
}

/* 結帳按鈕樣式 */
a.button.checkout.wc-forward {
    background-color: #003B73;
    color: #fff;
}

/* 移除購物車項目圖標替換 (Vector-3.svg) */
a.remove.remove-cart-item.remove-quote-item {
    background-image: url(http://weitech.designhu-demo.com/wp-content/uploads/Vector-3.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 1;
    color: transparent !important;
    /* 隱藏 'x' 文字 */
}

.ast-product-name>a {
    color: var(--primary-1, #003B73);
    text-align: center;
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    /* 28.8px */
    letter-spacing: 1.28px;
}

a.checkout-button.button.alt.wc-forward {
    border: 1px solid #000;
    background: var(--primary-1, #003B73);
    border-radius: 0;
    color: #fff;
}

/* ------------------------------------------------------------------------- */
/* 麵包屑導航 (Breadcrumbs) 樣式 */
/* ------------------------------------------------------------------------- */

/* 替換麵包屑導航首頁圖標 (Vector-2.svg) */
li.trail-item.trail-begin>span {
    display: inline-block;
}

body.post-type-archive-product li.trail-item.trail-begin>span>span {
    background-image: url(http://weitech.designhu-demo.com/wp-content/uploads/Vector-2.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 16px;
    height: 12px;
    display: block;
}

/* 麵包屑連結文字樣式 */
.ast-breadcrumbs>ul>li>a {
    color: var(--gray-1, #000);
    font-family: "Noto Sans TC";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.44px;
}

.ast-breadcrumbs>ul>li>a:hover,
.ast-breadcrumbs>ul>li>a:hover>span,
a.woocommerce-review-link {
    color: #003b73;
}


/* 麵包屑目前頁面文字樣式 */
.ast-breadcrumbs>ul>li>span {
    color: var(--gray-1, #000);
    font-family: "Noto Sans TC";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 180%;
    letter-spacing: 1.44px;
}

/* 隱藏產品摘要中的報價按鈕 */
ul.products.columns-3>li .astra-shop-summary-wrap a.afrfqbt.button {
    display: none;
}

/* 產品網格價格樣式 */
.gridPrice span.woocommerce-Price-amount.amount {
    color: var(--gray-3, #939393);
    text-align: center;
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.28px;
}

/* 隱藏網格中的報價按鈕 */
.gridBtns a.afrfqbt {
    display: none;
}

/* 網格中 "加入購物車" 按鈕樣式 (透明背景、有邊框、有下劃線) */
a.button.view-details-button,
.gridBtns a.add_to_cart_button {
    border: 1px solid var(--gray-4, #D1D1D1) !important;
    background: var(--gray-6, #FFF);
    padding: 5px 14px !important;
    color: var(--gray-3, #939393) !important;
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
    background-color: transparent !important;
    text-decoration: underline;
}

/* 隱藏報價按鈕 (適用於所有列表) */
ul.products.columns-3 a.afrfqbt.button,
ul.products.elementor-grid.columns-4 a.afrfqbt.button {
    display: none;
}

/* 產品卡片內容區塊置中 */
ul.products.columns-3 .astra-shop-summary-wrap,
ul.products.elementor-grid.columns-4 .astra-shop-summary-wrap {
    text-align: center;
}

/* 評價星級置中 */
ul.products.columns-3 .review-rating,
ul.products.elementor-grid.columns-4 .review-rating {
    justify-content: center;
}

/* 產品類別文字樣式 (淺灰、下劃線) */
ul.products.columns-3 span.ast-woo-product-category,
ul.products.elementor-grid.columns-4 span.ast-woo-product-category {
    color: var(--gray-4, #D1D1D1);
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
    text-align: center;
    text-decoration: underline;
}

/* 產品標題文字樣式 (深灰、下劃線) */
ul.products.columns-3 a.ast-loop-product__link h2,
ul.products.elementor-grid.columns-4 a.ast-loop-product__link h2 {
    color: var(--gray-2, #555) !important;
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 180%;
    letter-spacing: 1.12px;
    text-decoration: underline;
    text-align: center;
}

/* 產品價格文字樣式 (中灰) */
ul.products.columns-3 span.price>span,
ul.products.elementor-grid.columns-4 span.price>span {
    color: var(--gray-3, #939393);
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.28px;
    margin: 20px auto 0;
    text-align: center;
    display: block;
}

/* "選擇選項/加入購物車" 按鈕樣式 (透明背景、有邊框、有下劃線) */
ul.products.columns-3 a.button,
ul.products.elementor-grid.columns-4 a.button {
    color: var(--gray-3, #939393) !important;
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
    border: 1px solid #939393 !important;
    background-color: transparent !important;
    text-decoration: underline;
    padding: 5px 14px;
}

/* 按鈕 Hover 效果 */
ul.products.columns-3 a.button:hover,
ul.products.elementor-grid.columns-4 a.button:hover {
    border: 1px solid #003b73 !important;
    color: #003b73 !important;
}

/* 快速檢視圖標替換 (Vector-1-1.svg) */
ul.products.columns-3 a.ast-quick-view-text:before,
ul.products.elementor-grid.columns-4 a.ast-quick-view-text:before {
    content: "";
    background-image: url(http://weitech.designhu-demo.com/wp-content/uploads/Vector-1-1.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 16px;
}

/* 熱銷列表佈局 (側邊欄/單欄) */
.hotSaleList ul>li {
    display: flex !important;
    gap: 16px;
}

body.single-product .hotSaleList ul.products {
    grid-template-columns: 1fr !important;
}

body.single-product .hotSaleList ul.products>li {
    margin-bottom: 0 !important;
}

body.single-product h1.product_title.entry-title {
    text-align: left;
}

.hotSaleList ul>li>.astra-shop-thumbnail-wrap {
    width: 30%;
    /* 縮圖佔比 */
}

/* 產品標題樣式 */
.hotSaleList ul>li .astra-shop-summary-wrap>a.ast-loop-product__link>h2 {
    color: var(--gray-3, #939393) !important;
    font-family: "Noto Sans TC" !important;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 180%;
    letter-spacing: 1.12px;
    margin: 0 0;
}

/* 價格樣式 (綠色) */
.hotSaleList ul>li .astra-shop-summary-wrap>span.price {
    color: var(--green, #A9D1AE) !important;
    font-family: "Noto Sans TC" !important;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
}

/* 隱藏熱銷列表中的分類和按鈕 */
.hotSaleList ul>li .astra-shop-summary-wrap>span.ast-woo-product-category,
.hotSaleList ul>li .astra-shop-summary-wrap>.add_to_cart_button {
    display: none !important;
}

/* 強制熱銷列表使用單欄佈局 */
.hotSaleList .woocommerce-page.rel-up-columns-4 ul.products {
    grid-template-columns: 1fr;
}


/* ========================================================================= */
/* ====== 3. 單個產品頁面 (Single Product) 樣式自訂義 ====== */
/* ========================================================================= */

/* 產品導航按鈕 (上一個/下一個) 樣式 */
.ast-product-navigation-wrapper .product-links a {
    background-color: transparent;
    border: none;
}

.ast-product-navigation-wrapper .product-links a>i {
    display: none;
}

/* 替換 '下一個' 產品按鈕圖標 (ei_arrow-up.svg) */
.ast-product-navigation-wrapper .product-links a[rel="next"] {
    background-image: url(http://weitech.designhu-demo.com/wp-content/uploads/ei_arrow-up.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 產品標題樣式 (24px, 底部邊框) */
h1.product_title.entry-title {
    color: #000;
    font-family: "Noto Sans TC";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 1.92px;
    border-bottom: 1px solid #D1D1D1;
    padding-bottom: 18px !important;
}

/* 產品價格樣式 (40px, 粗體, 藍色) */
p.price {
    font-family: "Noto Sans TC";
    font-style: normal;
    font-weight: 700 !important;
    line-height: 150%;
    letter-spacing: 3.2px;
}

/* 產品簡短描述文字樣式 */
.woocommerce-js div.product div.summary .woocommerce-product-details__short-description :last-child {
    color: var(--gray-2, #555);
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
}

/* 隱藏 SKU 資訊 */
span.sku_wrapper {
    display: none !important;
}

/* 產品分類/標籤 (Meta) 樣式 */
.product_meta {
    padding: 0 0 !important;
    margin: 0 0 !important;
}

.product_meta>.posted_in {
    color: var(--gray-1, #000);
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
}

.product_meta>.posted_in>a {
    color: var(--gray-2, #555);
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
}

form.cart {
    /* display: flex; */
    /* 註解掉的 Flexbox 設置 */
    margin-bottom: 16px;
}

/* 變體選項表格樣式 (移除內部邊框，添加頂部邊框) */
table.variations {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    border-top: 1px solid #D1D1D1 !important;
    padding-top: 16px;
}

.woocommerce-js div.product form.cart .variations th {
    display: none;
    /* 隱藏變體標題 */
}

/* 隱藏數量輸入欄位的浮動樣式 */
.woocommerce-js div.product form.cart div.quantity {
    /*     float: none; */
    margin: 0 0;
}

/* 數量輸入框容器 (Flexbox 排列) */
.qty-wrapper {
    display: flex;
    align-items: center;
    float: left;
    clear: right;
    margin-right: 20px;
}

/* 數量增減按鈕樣式 (透明背景、有邊框) */
.qty-wrapper button {
    height: 36px;
    padding: 0;
    width: 36px;
    border-radius: 0;
    background-color: transparent;
    border: 1px solid #D1D1D1;
    color: var(--gray-3, #939393);
    font-family: "Noto Sans TC";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 1.6px;
}

/* 數量輸入欄位樣式 (移除左右邊框) */
.qty-wrapper input.input-text {
    height: 36px;
    width: 36px !important;
    padding: 0 !important;
    border-right: none;
    border-left: none;
}

/* 變體 "加入購物車" 區塊設為 Flexbox */
.woocommerce-variation-add-to-cart {
    /* display: flex;
    align-items: center; */

    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr;
}

a.added_to_cart.added_to_quote.wc-forward.button {
    grid-column: 3 / 3;
    grid-row: 2 / 3;
    background: var(--primary-1, #003B73);
    padding: 8px 16px;
    border-radius: 0;
    color: var(--gray-6, #FFF);
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.28px;
    width: 120.64px !important;
    text-align: center;
    margin: 10px 0 0 10px;
}

.product-type-simple form.cart {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "qty cart quote"
        ". . view";
    gap: 10px;
    align-items: stretch;
}

.product-type-simple form.cart .quantity.buttons_added {
    grid-area: qty;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.product-type-simple form.cart button.single_add_to_cart_button.button.alt {
    grid-area: cart;
    width: 100%;
}

.product-type-simple form.cart a.afrfqbt_single_page.single_add_to_cart_button.button.alt.product_type_simple {
    grid-area: quote;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
}

.product-type-simple form.cart a.added_to_cart.added_to_quote.wc-forward.button {
    grid-area: view;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 124.64px !important;
}

.product-type-simple form.cart input[name="quantity"] {
    height: 44.8px;
}

ul.products.elementor-grid.columns-3>li a.button.product_type_variable,
div#tab-additional_information,
.single_variation_wrap .woocommerce-variation-price {
    display: none !important;
}

/* 加入購物車按鈕樣式 (藍色背景、白色文字、移除圓角) */
a.afrfqbt_single_page.single_add_to_cart_button,
a.afrfqbt_single_page.single_add_to_cart_button.button.alt.product_type_variable,
button.single_add_to_cart_button.button.alt {
    color: var(--gray-6, #FFF);
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: .5px;
    background-color: #003B73;
    border-radius: 0;
    padding: 8px 16px !important;
    margin-bottom: 0px !important;
    margin-right: 0px !important;
    text-align: center;
}

/* 加入購物車按鈕禁用狀態樣式 */
a.afrfqbt_single_page.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed.product_type_variable,
button.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed {
    padding: 8px 6px !important;
    color: var(--gray-6, #FFF);
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: .5px;
    background-color: #003B73;
    border-radius: 0;
    margin-bottom: 0px !important;
    text-align: center;
}

/* 變體價格區塊移除底部間距 */
.woocommerce-js div.product form.cart .single_variation_wrap .single_variation {
    margin-bottom: 0;
}

/* 聯繫區塊樣式 (底部邊框) */
.spContact {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #D1D1D1;
}

/* 聯繫區塊標題樣式 */
.spContact h3 {
    color: var(--gray-1, #000);
    font-family: "Noto Sans TC";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 1.6px;
    margin: 0 0;
}

/* 聯繫方式列表間距 */
.spContact .spcList {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

/* 產品分享按鈕樣式 */
.sps span.elementor-share-btn__icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin-top: 4px;
    background-color: #003B73 !important;
}

.sps .elementor-share-btn__text {
    display: inline-block;
    width: 70%;
    padding-right: 0;
}

/* 產品頁籤置中 */
ul.tabs.wc-tabs {
    text-align: center;
}

/* 頁籤底部邊框線 */
.woocommerce-js div.product .woocommerce-tabs ul.tabs::before {
    border-bottom: 1px solid #D1D1D1 !important;
}

.woocommerce-js div.product .woocommerce-tabs ul.tabs::after {
    content: '';
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-top: 1px solid #D1D1D1 !important;
}

/* 頁籤文字樣式 (藍色) */
.woocommerce-js div.product .woocommerce-tabs ul.tabs li a {
    color: var(--primary-1, #003B73);
    font-family: "Noto Sans TC";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 1.6px;
}

/* 頁籤活躍狀態樣式 */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active:before {
    background: #003B73;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    box-shadow: none;
    bottom: 0;
    left: 0;
    border-radius: 0;
    background: #003B73;
}

/* 隱藏 "附加信息" 頁籤 */
li#tab-title-additional_information {
    display: none !important;
}

/* 產品描述內容文字樣式 */
div#tab-description {
    color: #000;
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
}

/* 新聞頁面標題樣式 (30px, 置中) */
h1.entry-title {
    color: #000;
    text-align: center;
    font-family: "Noto Sans TC";
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 2.4px;
}

/* 側邊欄列表左側間距 */
.newsSideBar ul {
    margin-left: 12px;
}

/* 側邊欄列表項目前添加 "・" 符號 */
.newsSideBar ul>li:before {
    content: "・";
}

.newsSideBar ul>li {
    display: flex;
    align-items: center;
}

/* 側邊欄列表項目間距 */
.newsSideBar ul>li:not(:last-child) {
    margin-bottom: 8px !important;
}

/* 側邊欄文章列表項目分隔線 */
.newsSideBarPostList article:not(:last-child) {
    border-bottom: 1px solid #D1D1D1 !important;
    margin-bottom: 16px !important;
    padding-bottom: 11px !important;
}

/* 產品側邊欄選單 (二級) 樣式 */
.productSidebarMenu ul.sub-menu>li>a {
    display: flex;
}

.productSidebarMenu ul.sub-menu>li>a:before {
    content: "-";
    margin-right: 4px;
}

a.a2a_button_x .a2a_s_x {
    content: url('https://weitech.designhu-demo.com/wp-content/uploads/Frame-84.svg') !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
}

a.a2a_button_facebook .a2a_s_facebook {
    content: url('https://weitech.designhu-demo.com/wp-content/uploads/Frame-85.svg') !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
}

a.a2a_button_sms .a2a_s_sms {
    content: url('https://weitech.designhu-demo.com/wp-content/uploads/Frame-88-1.svg') !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
}

a.a2a_button_pinterest .a2a_s_pinterest {
    content: url('https://weitech.designhu-demo.com/wp-content/uploads/Frame-88.svg') !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
}

a.a2a_button_linkedin .a2a_s_linkedin {
    content: url('https://weitech.designhu-demo.com/wp-content/uploads/Frame-87.svg') !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 0 !important;
}

/* 類別圖標容器 (Flexbox 排列) */
.category-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
}

a.category-icon-item {
    display: block;
}

a.category-icon-item span {
    display: block;
    text-align: center;
}

/* 類別名稱文字樣式 */
a.category-icon-item span.category-icon-name {
    color: var(--gray-1, #000);
    font-family: "Noto Sans TC";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 1.6px;
    margin-top: 12px;
}

/* 類別圖標圖片尺寸 */
a.category-icon-item span.category-icon-thumb>img {
    height: 48px;
    width: auto;
}

/* 文章列表項目分隔線 */
.newsList .e-loop-item:not(:last-child) {
    border-bottom: 1px solid #D1D1D1;
    padding-bottom: 28px;
}


.af-quote-field-table .form_row {
    text-align: center !important;
    /* 按鈕置中 */
}

/* 提交報價按鈕樣式 (藍色背景、24px 字體) */
button.button.alt.addify_checkout_place_quote {
    border: 1px solid #000;
    background: var(--primary-1, #003B73);
    border-radius: 0;
    color: var(--gray-6, #FFF);
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 1.92px;
    padding: 8px 16px;
}

/* 半寬輸入框樣式 (邊框、填充) */
p.addify-option-field.adf_half_width input {
    border: 0.5px solid var(--gray-3, #939393) !important;
}

/* 必填欄位標籤前添加紅色星號 "*" */
p.addify-option-field.adf_half_width label:after {
    content: "*";
    color: var(--primary-2, #E83839);
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.28px;
}

/* 全寬文字區域樣式 */
p.addify-option-field.adf_full_width textarea {
    height: 150px;
    border: 0.5px solid var(--gray-3, #939393) !important;
}

/* 報價欄位容器設為相對定位 */
.addify-option-field {
    position: relative;
    margin-bottom: 0;
}

div.af_quote_fields {
    display: flex;
    justify-content: center;
}

/* 報價欄位標籤樣式 (作為輸入框內的佔位符) */
div.af_quote_fields label {
    margin-bottom: 0;
    color: var(--gray-3, #939393);
    font-family: "Noto Sans TC";
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 180%;
    letter-spacing: 1.28px;
    pointer-events: none;
    margin-bottom: 0;
}

/* 電子報輸入框高度 */
.newsletter input#form-field-email {
    height: 50px;
}

/* 電子報提交按鈕定位 (位於輸入框右側) */
.newsletter .elementor-field-group.e-form__buttons {
    position: absolute;
    display: inline-flex;
    width: auto;
    right: 6px;
    top: 5px;
}

/* 電子報提交按鈕填充 */
.newsletter .elementor-field-group.e-form__buttons button.elementor-button {
    padding: 8px 16px;
}

/* 隱私同意文字樣式 */
.newsletter .elementor-field-type-acceptance.elementor-field-required.elementor-mark-required {
    color: #D1D1D1;
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
    text-align: center;
    padding-top: 20px;
}

/* 產品卡片容器連結樣式 */
.productCardItem>a {
    display: block;
    z-index: 10;
    position: relative;
}

/* 產品卡片圖片容器樣式 */
.productCardItem>a>.img {
    width: 100%;
    height: 252px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: end;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 產品卡片內容區塊樣式 */
.productCardItem>a>.content {
    padding: 32px 0 0;
    text-align: center;
}

/* 產品卡片分類標籤樣式 */
.productCardItem>a>.content>.meta {
    display: inline-block;
}

.productCardItem>a>.content>.meta>span {
    color: var(--gray-4, #D1D1D1);
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
    text-decoration: underline;
}

/* 產品卡片分類標籤分隔符 */
.productCardItem>a>.content>.meta>span:not(:last-child):after {
    content: ", ";
    margin-right: 4px;
}

/* 產品卡片標題樣式 (深灰、下劃線) */
.productCardItem>a>.content>h3 {
    color: var(--gray-2, #555);
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
    text-decoration: underline;
    margin: 0 0 20px;
}

/* 產品卡片價格樣式 */
.productCardItem>a>.content>.price {
    color: var(--gray-3, #939393);
    text-align: center;
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.28px;
}

/* 產品卡片按鈕樣式 (白色背景、有邊框、有下劃線) */
.productCardItem a.button {
    color: var(--gray-3, #939393);
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
    padding: 6px 16px;
    background-color: #fff !important;
    border: 1px solid #D1D1D1;
    text-decoration: underline;
    display: block;
    margin: 8px auto;
    width: fit-content;

    &:hover {
        /* SCSS-style nested hover, 實際 CSS 需要解開 */
        color: #F9C966;
        border: 1px solid #F9C966;
        background-color: #fff !important;
    }
}

/* 產品卡片 Hover 時按鈕樣式 */
.productCardItem:hover a.button {
    color: #F9C966;
    border: 1px solid #F9C966;
    background-color: #fff !important;
}

/* 快速檢視覆蓋層樣式 (黑色半透明、位於底部) */
.productCardItem>a>.img>.quickView {
    background: rgba(0, 0, 0, 0.70);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-6, #FFF);
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
    text-decoration: underline;
    padding: 8px;
    width: 100%;
    transform: translateY(45px);
    /* 預設隱藏在底部 */
    transition: all .4s;
    z-index: 9;
    position: absolute;
}

/* 產品卡片 Hover 時顯示快速檢視覆蓋層 */
.productCardItem:hover .quickView {
    transform: translateY(0) !important;
}

/* 快速檢視圖標與文字間距 */
.productCardItem>a>.img>.quickView svg {
    margin-right: 16px;
}

/* 快速檢視內容的調整 */
#ast-quick-view-modal .ast-lightbox-content {
    max-width: 1000px !important;
    width: 100%;
}

div#ast-quick-view-content,
#ast-quick-view-content div.summary {
    max-height: fit-content !important;
}

#ast-quick-view-content h1.product_title.entry-title {
    text-align: left;
}

#ast-quick-view-content .qty-wrapper button {
    display: none;
    /* 隱藏快速檢視中的數量增減按鈕 */
}

/* 隱藏文章圖片陰影 */
.ast-article-single img {
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

/* 移除側邊欄填充 */
div#secondary {
    padding: 0 !important;
}

.is-quote-hide-price p.price {
    /* display: none; */
    text-align: left;
}

.is-quote-hide-price button.single_add_to_cart_button.button.alt {
    display: none;
}

.is-quote-hide-price .afrfqbt_single_page {
    margin-left: 0;
}

.is-quote-show-price button[type="submit"].single_add_to_cart_button {
    display: none !important;
}

/* 桌面尺寸 (min-width: 922px) 下的側邊欄和內容區寬度設置 */
@media (min-width: 922px) {

    .ast-left-sidebar #secondary {
        border-right: none;
        width: 25%;
        /* 側邊欄佔 25% */
    }

    .ast-left-sidebar #primary {
        padding-left: 48px;
        border-left: none;
        width: 75%;
        /* 主要內容區佔 75% */
    }
}

.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    border-color: #003b73;
    background: #003b73;
}

.woocommerce nav.woocommerce-pagination ul li>.page-numbers,
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li {
    border-color: #003b73;
    color: #003b73;
}

.afrfq_success_message {
    background-color: transparent;
    color: #333;
    padding: 0;
    border: none;
    text-align: center;
}


/* 購物車計數/圖標替換為自訂圖片 (Vector-1.svg) */
.ast-site-header-cart i.astra-icon:after {
    /*     top: 22px;
    right: -40px; */
    background-image: url(https://weitech.designhu-demo.com/wp-content/uploads/Vector-1.svg);
    background-size: contain;
    border-radius: 0;
    background-color: transparent !important;
    box-shadow: none;
    background-repeat: no-repeat;
    height: 19px;
    width: 20px;
    display: -webkit-flex;
    align-content: center;
    justify-content: center;
    position: relative;
    top: 0;
    right: 0;
}

i.astra-icon.ast-icon-shopping-bag {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.home a.ast-loop-product__link {
    height: 58px;
}

/* 
.woocommerce #ast-quick-view-modal div.product form.cart .button.single_add_to_cart_button {
    height: 45px;
} */

/* p.cart-empty */
@media (min-width: 768px) {
    div#ast-quick-view-content {
        max-width: 100% !important;
    }

    .everyone_title,
    ul.products.columns-3 a.ast-loop-product__link h2,
    ul.products.elementor-grid.columns-4 a.ast-loop-product__link h2 {
        height: 58px;
    }

    .singleProductRelated ul.products.elementor-grid.columns-3 li span.price {
        display: inline-flex !important;
        gap: 8px;
    }

    /*     .ast-site-header-cart i.astra-icon:after {
        min-width: 26px !important;
         
    } */

    a.astra-shop-filter-button.ast-flyout-filter {
        display: none !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {

    .singleProductRelated ul.products.elementor-grid.columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.single-product div#secondary {
        width: 26%;
    }

    body.single-product .ast-left-sidebar #content>.ast-container,
    body.post-type-archive-product .ast-left-sidebar .ast-container {
        flex-direction: row;
    }

    body.single-product div#secondary body.post-type-archive-product div#secondary {
        width: 40%;
    }

    body.single-product div#secondary .elementor-element.elementor-element-29ea4a3.e-con-full.e-flex.e-con.e-child,
    body.post-type-archive-product div#secondary .elementor-element.elementor-element-29ea4a3.e-con-full.e-flex.e-con.e-child {
        --width: 100%;
    }

    body.single-product div#primary,
    body.post-type-archive-product div#primary {
        width: 74%;
    }

    .wc-notices-above-ast-banner .woocommerce-message {
        margin-right: 24px;
        width: 66% !important;
        gap: 4px !important;
        padding: 10px;
    }

    .wc-notices-above-ast-banner .woocommerce-message a.button.wc-forward {
        padding: 16px 8px !important;
        font-size: 14px;
        width: 120px;
    }

    a.added_to_cart.added_to_quote.wc-forward.button {
        font-size: 12px;
        padding: 7px 16px !important;
        margin: 0px 0px 0px 8px !important;
        width: auto !important;
    }

    .ast-left-sidebar #content>.ast-container {
        flex-direction: row;
        gap: 40px;
    }

    body.post-type-archive-product div#secondary {
        width: 30%;
        margin-right: 30px;
    }

}

.adf-request-quote-page.template_one {
    margin: auto;
}

.woocommerce-message {
    text-align: center;
}

@media only screen and (min-width: 769px) and (max-width: 820px) {
    .wc-notices-above-ast-banner {
        margin: 0 auto !important;
    }

    .wc-notices-above-ast-banner .woocommerce-message {
        width: 70% !important;
    }
}

/* 行動裝置尺寸 (max-width: 768px) 下的樣式調整 */
@media (max-width: 1024px) {


    a.afrfqbt_single_page.single_add_to_cart_button,
    a.afrfqbt_single_page.single_add_to_cart_button.button.alt.product_type_variable,
    button.single_add_to_cart_button.button.alt {
        padding: 8px 12px !important;
    }

    /* .woocommerce-variation-add-to-cart {
        display: block;
    } */

    .woocommerce-js table.shop_table,
    .woocommerce-page table.shop_table,
    tr.woocommerce-cart-form__cart-item.cart_item td {
        border-color: #d3d3d34d;
    }

    .woocommerce-js #content table.cart td,
    .woocommerce-page #content table.cart td {
        border-bottom: 1px solid #d3d3d34d !important;
        border-top: 1px solid #d3d3d34d;
    }

    td.product-remove {
        display: flex !important;
        justify-content: center;
        margin: auto;
    }

    body.post-type-archive-product section.ast-archive-description {
        text-align: center;
        justify-content: center;
    }

    div#ast-quick-view-modal .ast-content-main-wrapper {
        padding: 40px 20px !important;
    }

    /* 單品頁按鈕字體調整 */
    a.afrfqbt_single_page.single_add_to_cart_button.button.alt.product_type_variable,
    button.single_add_to_cart_button.button.alt,
    a.afrfqbt_single_page.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed.product_type_variable,
    button.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed,
    a.afrfqbt_single_page.single_add_to_cart_button.button.alt.product_type_simple,
    a.added_to_cart.added_to_quote.wc-forward.button {
        font-size: 12px;
        letter-spacing: 0;
    }

    /* 隱藏分享按鈕文字，只保留圖標 */
    .sps .elementor-share-btn__text {
        display: none;
    }

}

ul.products.columns-3>li a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    display: none;
}

input#reg_email::placeholder {
    color: transparent;
}

ul.products>li a.button.product_type_variable {
    display: none;
}

.elementor-element.elementor-element-4a91300 ul>li span.price.price--inquiry {
    margin-bottom: 0;
}

ul#ast-hf-mobile-menu>li button.ast-menu-toggle {
    box-shadow: none;
}

@media (max-width: 767px) {

    .woocommerce #content div.product .woocommerce-tabs ul.tabs li,
    .woocommerce-page #content div.product .woocommerce-tabs ul.tabs li {
        display: inline-block;
        margin: 0 14px;
    }

    body.single-post .ast-breadcrumbs {
        text-align: center;
    }

    .singleProductRelated ul.products.elementor-grid.columns-3 li span.price {
        display: block !important;
    }

    .singleProductRelated ul.products.elementor-grid.columns-3 li span.price>span {
        line-height: 16px;
        margin: 0 auto auto;
    }

    /* .ast-site-header-cart i.astra-icon:after {
        top: -18px !important;
    } */
    a.astra-shop-filter-button.ast-flyout-filter {
        display: none !important;
    }

    .wc-notices-above-ast-banner {
        width: 80% !important;
        margin: 24px auto 0 !important;
    }

    .wc-notices-above-ast-banner .woocommerce-message {
        padding: 16px;
        display: block !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
    }

    .wc-notices-above-ast-banner .woocommerce-message>a.button.wc-forward {
        margin: 16px auto 0px !important;
        display: block;
        width: 100%;
    }

    a.added_to_cart.added_to_quote.wc-forward.button {
        margin: 10px 0 auto auto;
        float: right !important;
        padding: 8px 15px !important;
        width: 95px !important;
    }

    ul.products>li a.ast-woo-product-category {
        height: 50px;
    }

    body.single-product .ast-left-sidebar #content>.ast-container {
        display: block;
    }

    /* 類別圖標改為垂直排列 (block) */
    .category-icons {
        display: block;
    }

    /* 類別圖標項目改為 Flexbox 橫向排列 (圖標+文字) */
    a.category-icon-item {
        display: flex;
        gap: 24px;
        margin-bottom: 16px;
    }
}

@media only screen and (max-width: 667px) {
    a.added_to_cart.added_to_quote.wc-forward.button {
        width: 92% !important;
    }
}

/* 變體產品價格區塊的填充調整 */
.woocommerce-js div.product form.cart .single_variation_wrap {
    padding-bottom: 16px;
}

/* 回到頂部按鈕背景色 */
#ast-scroll-top {
    background-color: #003B73;
}

.readMoreTitle>h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 50px;
}

@media (min-width: 922px) {
    .ast-narrow-container .site-content>.ast-container {
        max-width: 1240px;
    }
}

a.checkout-button.button.alt.wc-forward,
a.button.wc-forward {
    background-color: #fff !important;
    color: #003B73 !important;
}

a.checkout-button.button.alt.wc-forward:hover,
a.button.wc-forward:hover {
    background-color: #003B73 !important;
    color: #fff !important;
}


@media (min-width: 1660px) {
    .elementor-388 {
        min-width: 366px !important;
    }
}

.woocommerce-js .variations select,
.woocommerce-js .woocommerce-ordering select {
    padding: .5em 2em .5em 0em !important;
}

.woocommerce-js ul.products li.product .ast-woo-product-category,
.woocommerce-page ul.products li.product .ast-woo-product-category {
    color: #B3B3B3;
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
    text-align: center;
    text-decoration: underline;
    opacity: 1;
}

.everyone_title,
ul.products.columns-3 a.ast-loop-product__link h2,
ul.products.elementor-grid.columns-4 a.ast-loop-product__link h2 {
    color: var(--gray-2, #555) !important;
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-weight: 400 !important;
    line-height: 1.8;
    letter-spacing: 1.12px;
    text-decoration: underline;
    text-align: center;

    /* 固定兩行 */
    max-height: calc(1.8em * 2);
    height: 58px;

    /* 超過兩行截斷 */
    /*     display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; */
    overflow: hidden;

    margin-bottom: 0;
}

.elementor-428 .elementor-element.elementor-element-db330fc .elementor-heading-title {
    font-family: "Noto Sans TC", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 1.6px;
    color: #555555;

    min-height: 30px;

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

    position: relative;
}

/* 淡出遮罩 */
/* .elementor-428 .elementor-element.elementor-element-db330fc .elementor-heading-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1em;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            #fff);
    pointer-events: none;
} */
a.woocommerce-button.button.afrfq-pdf-download {
    display: none !important;
}

.cart-collaterals ul#shipping_method li label>span {
    float: right;
    clear: left;
}

div#order_review tr.woocommerce-shipping-totals.shipping>th {
    padding-right: 0;
}

div#order_review tr.woocommerce-shipping-totals.shipping>td {
    width: 65%;
    padding-right: 0;
}

div#order_review ul#shipping_method li:not(.elementor-widget-woocommerce-cart #shipping_method li) {
    padding-left: 0;
}

div#order_review ul#shipping_method li:not(.elementor-widget-woocommerce-cart #shipping_method li) span.woocommerce-Price-amount.amount {
    margin-left: 22px;
}

.woocommerce-billing-fields label,
form.woocommerce-EditAccountForm.edit-account label {
    position: relative !important;
    padding: 0 !important;
    font-size: 16px !important;
    margin-bottom: 8px;
    opacity: 1 !important;
}

.woocommerce-password-strength.bad {
    background-color: lightblue;
    border-color: #f78b53;
}

.woocommerce-billing-fields input::placeholder,
form.woocommerce-EditAccountForm.edit-account input::placeholder {
    color: transparent;
}

.woocommerce-billing-fields input,
form.woocommerce-EditAccountForm.edit-account input {
    padding: 8px 16px !important;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset label {
    display: none;
}

/* 統一價格區塊高度：不管有無特價都一致 */
ul.products.columns-3 span.price,
ul.products.elementor-grid.columns-4 span.price {
    display: block;
    text-align: center;

    /* 你要固定幾行就設幾行
     同一行顯示原價+特價 → 通常 1 行即可 */
    min-height: calc(1.8em * 1);
}

/* 只保留字體，不要用它控制高度/排版 */
ul.products.columns-3 span.price>span,
ul.products.elementor-grid.columns-4 span.price>span {
    color: var(--gray-3, #939393);
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 1.28px;
    text-align: center;
}

.woocommerce form .show-password-input::after,
.woocommerce-page form .show-password-input::after {
    display: none;
}

button.show-password-input {
    background-repeat: no-repeat !important;
    background-position: center !important;
    height: 18px;
    width: 24px;
    background-image: url(http://weitech.designhu-demo.com/wp-content/uploads/visibility_off.svg) !important;
}

button.show-password-input.display-password {
    background-image: url(http://weitech.designhu-demo.com/wp-content/uploads/visibility.svg) !important;
}

.price--inquiry {
    color: var(--gray-3, #939393) !important;
    font-family: "Noto Sans TC" !important;
    font-size: 16px;
    font-weight: 400 !important;
    line-height: 1.8;
    letter-spacing: 1.28px;
    text-align: left;
    display: block;
}

.woocommerce-Price-amount.amount bdi {
    color: var(--gray-3, #939393) !important;
    font-family: "Noto Sans TC" !important;
    font-size: 16px;
    font-weight: 400 !important;
    line-height: 1.8;
    letter-spacing: 1.28px;

    text-align: center;
    display: inline-block;
    vertical-align: baseline;
}

.astra-shop-summary-wrap span.price.price--inquiry {
    color: var(--gray-3, #939393) !important;
    font-family: "Noto Sans TC" !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    letter-spacing: 1.28px !important;
}

del .woocommerce-Price-amount.amount bdi {
    opacity: 0.55 !important;
    text-decoration: line-through !important;
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
}

/* 統一產品卡的 price（包含特價/非特價/變體），以你正常商品為準 */
/* .elementor-widget-woocommerce-products ul.products li.product .astra-shop-summary-wrap>span.price {
    font-size: 16px !important;
    line-height: 1.8 !important;
    /* 16 * 1.8 = 28.8 */
/* letter-spacing: 1.28px !important;

    margin-top: 20px !important;
    margin-bottom: 0 !important;

    min-height: 28.8px !important;
    display: block !important;
    text-align: center !important; */
/* } */

.elementor-widget-woocommerce-products ul.products li.product .astra-shop-summary-wrap span.price>del,
.elementor-widget-woocommerce-products ul.products li.product .astra-shop-summary-wrap span.price>ins {
    display: inline !important;
    vertical-align: baseline;
}

.elementor-widget-woocommerce-products ul.products li.product .astra-shop-summary-wrap span.price>del {
    margin-right: 8px !important;
    opacity: 0.55 !important;
    text-decoration: line-through !important;
}

/* badge 本體（維持原本位置與大小） */
.woocommerce span.onsale.circle {
    font-size: 0;
    /* 隱藏原「特賣！」 */
    width: 38px;
    height: 38px;
}

/* 置中文字 */
.woocommerce span.onsale.circle::before {
    content: "特賣";
    position: absolute;
    inset: 0;
    /* 上下左右 = 0 */
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12.8px;
    font-weight: 500;
    line-height: 1;
}

.woocommerce-js ul.products li.product .onsale {
    top: -10px;
    right: -10px;
}

.elementor-nav-menu--dropdown.elementor-nav-menu__container {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

ul.sub-menu.elementor-nav-menu--dropdown {
    margin-top: .75em;
}

/* Home crumb：顯示 icon */
.breadcrumb-trail .trail-begin>a[rel="home"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 讓空的 span 不佔怪空間 */
.breadcrumb-trail .trail-begin>a[rel="home"]>span {
    display: none;
}

/* 用 ::before 畫 icon（跟文字顏色走） */
.breadcrumb-trail .trail-begin>a[rel="home"]::before {
    content: "";
    width: 12px;
    height: 12px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2012%2012%27%3E%3Cpath%20d%3D%27M2%2010.5V4.5L6%201.5L10%204.5V10.5H7V7H5V10.5H2Z%27/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2012%2012%27%3E%3Cpath%20d%3D%27M2%2010.5V4.5L6%201.5L10%204.5V10.5H7V7H5V10.5H2Z%27/%3E%3C/svg%3E") no-repeat center / contain;
}


/* 取消底線（包含 hover/active） */
.elementor-nav-menu a,
.elementor-nav-menu a:hover,
.elementor-nav-menu a:focus,
.elementor-nav-menu a:active,
.elementor-nav-menu a.elementor-item-active,
.elementor-nav-menu a[aria-current="page"] {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* 當前項目（子項）亮 */
.elementor-nav-menu li.current-menu-item>a,
.elementor-nav-menu a[aria-current="page"],
.elementor-nav-menu a.elementor-item-active {
    color: #003b73 !important;
    font-weight: 500;
}

/* 父層（一路到最上層）也亮 */
.elementor-nav-menu li.current-menu-parent>a,
.elementor-nav-menu li.current-menu-ancestor>a,
.elementor-nav-menu li.current-menu-branch>a {
    color: #003b73 !important;
    font-weight: 500;
}

/* 父層自動展開子選單（關鍵） */
.elementor-nav-menu li.current-menu-ancestor>.sub-menu,
.elementor-nav-menu li.current-menu-parent>.sub-menu,
.elementor-nav-menu li.current-menu-branch>.sub-menu {
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}



/* 單商品頁：加入購物車提示改為浮動提示 */
/* .single-product .woocommerce-message,
.single-product .woocommerce-error,
.single-product .woocommerce-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(920px, calc(100% - 24px));
    z-index: 99999;
    margin: 0 !important;
} */
.hotSaleList .woocommerce-message,
.hotSaleList .woocommerce-error,
.hotSaleList .woocommerce-info {
    display: none;
}

body.tax-product_cat section.ast-archive-description,
body.post-type-archive-product section.ast-archive-description {
    display: grid;
    justify-content: center;
    text-align: center;
}


body.tax-product_cat section.ast-archive-description nav.breadcrumb-trail.breadcrumbs,
body.post-type-archive-product section.ast-archive-description nav.breadcrumb-trail.breadcrumbs {
    text-align: center;
}

body.tax-product_cat section.ast-archive-description h1,
body.post-type-archive-product section.ast-archive-description h1 {
    order: 1;
}

body.tax-product_cat .ast-breadcrumbs-wrapper,
body.post-type-archive-product .ast-breadcrumbs-wrapper {
    order: 2;
}

.hotSaleList a.ast-woo-product-category,
.hotSaleList a.ast-quick-view-text {
    display: none !important;
}

.ast-search-menu-icon .search-form {
    border-radius: 100px;
}

.ast-search-menu-icon .search-form input {
    border-radius: 100px;
}

.astra-shop-summary-wrap a.button.product_type_variable.add_to_cart_button {
    display: none;
}

.astra-shop-summary-wrap a.moreDetail {
    color: var(--gray-3, #939393) !important;
    font-family: "Noto Sans TC";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.12px;
    border: 1px solid #939393 !important;
    background-color: transparent !important;
    text-decoration: underline;
    padding: 5px 14px;
    border-radius: 5px;
    margin-top: 12px;
    display: inline-block;
}

.hotSaleList .astra-shop-summary-wrap a.moreDetail {
    display: none;
}

.hotSaleList .astra-shop-summary-wrap {
    padding: 0 !important;
    width: 70%;
}

button.search-submit.normal-search {
    box-shadow: none;
}

.summary.entry-summary p.price span,
.summary.entry-summary p.price bdi {
    color: var(--primary-1, #003B73) !important;
    font-family: "Noto Sans TC";
    font-size: 20px;
    font-style: normal;
    font-weight: 700 !important;
    line-height: 150%;
    letter-spacing: 3.2px;
}

.singleProductRelated ul.products.elementor-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.singleProductRelated ul.products.elementor-grid.columns-3 li .review-rating {
    display: flex;
}

.entry-content .woocommerce-message,
.entry-content .woocommerce-error,
.entry-content .woocommerce-info {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0 0 40px;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    display: none;
}

.woocommerce-js #respond input#submit,
.woocommerce-js a.button,
.woocommerce-js button.button,
.woocommerce-js input.button {
    color: var(--gray-6, #FFF);
    font-family: "Noto Sans TC";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1.28px;
    background: var(--primary-1, #003B73);
    padding: 8px 16px;
    border-radius: 0;
}

p.return-to-shop {
    text-align: center;
}

form.woocommerce-form.woocommerce-form-register.register label,
form.woocommerce-form.woocommerce-form-login.login label {
    position: relative !important;
    opacity: 1 !important;
    padding: 0 !Important;
    font-size: 16px !important;
    margin-bottom: 8px;
}

td.product-remove>a>span {
    display: none;
}

td.product-remove>a {
    background-image: url(http://weitech.designhu-demo.com/wp-content/uploads/Vector-3.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 1 !important;
}

.woocommerce-js a.remove:before {
    border: none;
}

@media (max-width: 544px) {
    .review-rating {
        display: flex !important;
    }
}

.woocommerce .star-rating {
    letter-spacing: 1px;
}

.woocommerce-js .star-rating::before {
    content: '\53\53\53\53\53';
    opacity: .25;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.woocommerce .star-rating::before {
    color: #424242;
}

.hotSaleList .astra-shop-summary-wrap {
    display: grid;
}

.hotSaleList .astra-shop-summary-wrap a.ast-loop-product__link {
    order: 1;
}

.hotSaleList .astra-shop-summary-wrap .review-rating {
    order: 2;
}

.hotSaleList .astra-shop-summary-wrap span.price {
    order: 3;
}

.hotSaleList span.price.price--inquiry {
    text-align: left;
}

.elementor-element.elementor-element-358781c.elementor-widget.elementor-widget-theme-post-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

ul.products.elementor-grid.columns-3>li a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    display: none;
}

.wc-notices-above-ast-banner {
    max-width: 1200px;
    margin: 50px auto 0;
    width: 100%;
}

.wc-notices-above-ast-banner .woocommerce-message {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 71%;
    float: right;
    clear: left;
}

.wc-notices-above-ast-banner .woocommerce-message>a.button.wc-forward {
    margin: auto 0 auto auto;
}

form.woocommerce-form.woocommerce-form-login.login input::placeholder {
    color: transparent;
}

form.woocommerce-form.woocommerce-form-login.login input[type="text"],
form.woocommerce-form.woocommerce-form-login.login input[type="password"] {
    padding: 8px !important;
}

@media screen and (min-width: 821px) and (max-width: 1180px) {
    .wc-notices-above-ast-banner .woocommerce-message {
        padding: 20px;
        margin-right: 40px;
        width: 64%;
    }

    .gridPrice span.price.price--inquiry {
        text-align: center;
    }

    .woocommerce-js ul.products li.product .ast-woo-product-category,
    .woocommerce-page ul.products li.product .ast-woo-product-category {
        height: 48px;
    }

    body.woocommerce-account .site-content>.ast-container {
        max-width: 1000px;
        padding: 0;
    }

    .ast-woo-shop-archive .site-content>.ast-container {
        max-width: 1000px;
    }

    body.single-product .site-content>.ast-container {
        max-width: 1000px;
        padding: 0;
    }

    .woocommerce-variation-add-to-cart a.afrfqbt_single_page,
    .woocommerce-js div.product form.cart .button.single_add_to_cart_button {
        padding: 8px 4px !important;
        font-size: 13px !important;
    }

}

/* @media (min-width: 768px) and (max-width: 1199px) {
	.ast-site-header-cart i.astra-icon:after {
		top: -16px; 
	}
} */
/* =========================================================
 * Elementor Pagination — WooCommerce-like (DOM-accurate)
 * Container: <nav class="elementor-pagination">
 * prev/current: <span class="page-numbers prev|current">
 * next: <a class="page-numbers next">
 * ======================================================= */

/* container */
nav.elementor-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;

    margin-top: 40px;
}

/* base reset + square buttons (a + span) */
nav.elementor-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    border: 1px solid #0B3C88;
    border-radius: 0;

    background: #fff;
    color: #0B3C88;

    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;

    text-decoration: none;
    box-shadow: none;
}

/* current page */
nav.elementor-pagination .page-numbers.current {
    background: #0B3C88;
    color: #fff;
}

/* hover (keep white like your screenshot) */
nav.elementor-pagination a.page-numbers:hover,
nav.elementor-pagination a.page-numbers:focus {
    background: #fff;
    color: #0B3C88;
    outline: none;
    text-decoration: none;
}

/* ---------------------------------------------------------
 * Hide Prev on first page:
 * Your DOM shows: <span class="page-numbers prev">上一頁</span>
 * We can safely hide span.prev always (it only appears when disabled)
 * --------------------------------------------------------- */
nav.elementor-pagination span.page-numbers.prev {
    display: none !important;
}

/* Hide Next on last page if Elementor outputs it as span.next */
nav.elementor-pagination span.page-numbers.next {
    display: none !important;
}

/* ---------------------------------------------------------
 * Next/Prev arrows (tail arrow, thicker)
 * - next is <a class="page-numbers next">
 * - prev (when enabled) would be <a class="page-numbers prev">
 * --------------------------------------------------------- */
nav.elementor-pagination a.page-numbers.prev,
nav.elementor-pagination a.page-numbers.next {
    position: relative;
    font-size: 0 !important;
    /* hide any text */
    text-indent: -9999px;
    overflow: hidden;
}

/* arrow icon box */
nav.elementor-pagination a.page-numbers.prev::before,
nav.elementor-pagination a.page-numbers.next::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* right arrow (→ with tail, thicker) */
nav.elementor-pagination a.page-numbers.next::before {
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M4 12h12' fill='none' stroke='%230B3C88' stroke-width='2.5' stroke-linecap='round'/>\
<path d='M12 6l6 6-6 6' fill='none' stroke='%230B3C88' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
}

/* left arrow (← with tail, thicker) */
nav.elementor-pagination a.page-numbers.prev::before {
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path d='M20 12H8' fill='none' stroke='%230B3C88' stroke-width='2.5' stroke-linecap='round'/>\
<path d='M12 6l-6 6 6 6' fill='none' stroke='%230B3C88' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li {
    display: flex;
    gap: 8px;
}

div.addify {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
}

.ast-site-header-cart .widget_shopping_cart .product_list_widget,
.woocommerce .ast-site-header-cart .widget_shopping_cart .product_list_widget {
    padding: 1em;
}

.woocommerce .widget_shopping_cart .cart_list li,
.woocommerce.widget_shopping_cart .cart_list li {
    padding: 1.2em 1.5em 1.2em 5em;
}

.elementor-32 .elementor-element.elementor-element-cf7b866 .elementor-field-group .elementor-field:not(.elementor-select-wrapper) {
    color: #757575;
}

.cart_item .product-name a {
    color: #000;
}

.site-header-section .site-header-above-section-right .ast-builder-layout-element {
    width: 100%;
}

.elementor-12 .elementor-element.elementor-element-dc86988 .elementor-icon-list-text:hover,
.elementor-335 .elementor-element.elementor-element-3f9a274 .elementor-heading-title:hover,
ul.products.columns-3 a.ast-loop-product__link h2:hover,
ul.products.elementor-grid.columns-4 a.ast-loop-product__link h2:hover,
.hotSaleList ul>li .astra-shop-summary-wrap>a.ast-loop-product__link>h2:hover,
.elementor-362 .elementor-element.elementor-element-97ad5f1 .elementor-nav-menu--dropdown a:hover,
.elementor-362 .elementor-element.elementor-element-97ad5f1 .elementor-nav-menu--dropdown a:focus,
.elementor-362 .elementor-element.elementor-element-97ad5f1 .elementor-nav-menu--dropdown a.elementor-item-active,
.elementor-362 .elementor-element.elementor-element-97ad5f1 .elementor-nav-menu--dropdown a.highlighted,
.elementor-362 .elementor-element.elementor-element-97ad5f1 .elementor-menu-toggle:hover,
.elementor-362 .elementor-element.elementor-element-97ad5f1 .elementor-menu-toggle:focus,
.cart_item .product-name a:hover,
.woocommerce-js ul.products li.product .ast-woo-product-category:hover,
.woocommerce-page ul.products li.product .ast-woo-product-category:hover,
.elementor-32 .elementor-element.elementor-element-e1c8864 .elementor-nav-menu--main .elementor-item:hover,
.elementor-32 .elementor-element.elementor-element-e1c8864 .elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-32 .elementor-element.elementor-element-e1c8864 .elementor-nav-menu--main .elementor-item.highlighted,
.elementor-32 .elementor-element.elementor-element-e1c8864 .elementor-nav-menu--main .elementor-item:focus,
.elementor-32 .elementor-element.elementor-element-d88217c .elementor-nav-menu--main .elementor-item:hover,
.elementor-32 .elementor-element.elementor-element-d88217c .elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-32 .elementor-element.elementor-element-d88217c .elementor-nav-menu--main .elementor-item.highlighted,
.elementor-32 .elementor-element.elementor-element-d88217c .elementor-nav-menu--main .elementor-item:focus,
a.footer-address:hover {
    color: #003b73 !important;
}

@media (max-width: 475px) {

    .elementor-388 .elementor-element.elementor-element-df71d61:not(.elementor-motion-effects-element-type-background),
    .elementor-388 .elementor-element.elementor-element-df71d61>.elementor-motion-effects-container>.elementor-motion-effects-layer {
        background-position: right !important;
    }
}



/* Chrome / Edge / Safari 桌機 */
@media (min-width: 1024px) and (max-width: 1366px) {
    body {
        zoom: 0.95;
    }

    a.added_to_cart.added_to_quote.wc-forward.button {
        padding: 7px 8px !important;
        margin: 7px 0px 0px 10px !important;
    }
}

/* Firefox 桌機 */
@supports (-moz-appearance: none) {
    @media (min-width: 1024px) and (max-width: 1366px) and (pointer: fine) {
        body {
            transform: scale(0.9);
            transform-origin: top left;
            width: 111.11%;
        }
    }
}

.woocommerce-js #respond input#submit.added::after, .woocommerce-js a.button.added::after, .woocommerce-js button.button.added::after, .woocommerce-js input.button.added::after {
display: none!important;
}