/**
Theme Name: design_hu_speed
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: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: design_hu
Template: astra
*/

/*
* 重要事項說明：
* 修改內容需要改 functions.php 的版本號
* 訂單步驟：
* 1.新增商品（例：iRESTORE Pro愛麗朵爾雷射生髮帽專業型 (醫師)）--使用複製即可
* 2.新增訂單頁面（例：生髮帽專業型訂單）--使用複製即可
* 3.新增感謝頁面（例：感謝頁-生髮帽專業型）--使用複製即可
* 4.ACF 開啟連結頁面（生髮帽訂單資訊 ; 生髮帽感謝頁）--使用複製（已簡化過程，不需操作此步驟）
* 5.contact form 7 新增訂單表單（生髮帽訂單-專業型）--使用複製 ; Actions 重新導向到正確的感謝頁
* 6.編輯頁面內容（訂單頁面「生髮帽訂購表單 shortcode 要填正確」 ; 感謝頁面）
* 7.程式碼 page.php 需要增加感謝頁面的ＩＤ（已簡化過程，不需操作此步驟）

*商品增加分類步驟：
* 1.主題seach-filter 需增加 search&filter 外掛的 php檔(直接複製824.php即可)
* 2.archive-product.php 需增加程式碼（該頁面搜尋關鍵字：增加分類需增加程式碼區塊）
* 3.商品裡的產品通用設定需要勾選新上架的分類
*/

/*
* 索引：
* 表區區塊
*/

/*
* "專家推薦區塊"在首頁內
* 公司支持區塊"在首頁內
*/

/*
* 外掛修改（勿更新）
* suntech(搜尋關鍵字：修改內容;刪除 E 項目)
* ry 程式選擇器（修改排序）
*/

/* 
*暫時關閉 
*/
/* doctors => 專欄推薦  */
.hiddenShort {
  display: none;
}
/* 如何運作 => 合作夥伴區塊 */

/* 隱私權政策標籤隱藏 */
.grecaptcha-badge {
  display: none;
}

/* 2024.05.15 特殊付款切換隱藏 */
body.page-id-24
  .woocommerce-shipping-totals
  ul:has(#shipping_method_0_free_shipping1)
  li:has(#shipping_method_0_flat_rate9) {
  display: none !important;
}

/* 2024.05.21 產品內頁可變商品切換下拉選單新版關閉 */
body.single-product
  div.product
  #productTop
  .productTopRight
  form
  table.variations
  tr
  td {
  border: 0 !important;
  height: auto !important;
}
body.single-product
  div.product
  #productTop
  .productTopRight
  form
  table.variations
  tr
  td:before,
body.single-product
  div.product
  #productTop
  .productTopRight
  form
  table.variations
  tr
  td:after {
  display: none;
}
body.single-product
  div.product
  #productTop
  .productTopRight
  form
  table.variations
  tr
  td
  .ast-variation-button-group {
  display: none;
}
body.single-product
  div.product
  #productTop
  .productTopRight
  form
  table.variations
  tr
  td
  select {
  display: block !important;
}
body.single-product
  div.product
  #productTop
  .productTopRight
  form
  table.variations
  tr
  td
  .reset_variations {
  display: none !important;
}

/* 2024.05.30 內建圖片開啟按鈕更改 */
.elementor-slideshow__header > svg {
  fill: #1e1e1e;
}
.elementor-lightbox .dialog-lightbox-close-button svg,
.elementor-lightbox .elementor-swiper-button svg {
  fill: #1e1e1e;
}
.elementor-slideshow__header > svg:hover,
.elementor-lightbox .dialog-lightbox-close-button:hover svg,
.elementor-lightbox .elementor-swiper-button:hover svg {
  fill: #1e1e1e;
}

/* 2024.07.09 內建圖片開啟按鈕更改 */
#short-description {
  max-height: 86px !important;
  overflow: hidden;
}

/* 2024.07.20 fancybox 和 elementor lightbox 衝突 */
body:has(.fancybox-is-open) .elementor-lightbox {
  display: none !important;
}

/* 2024.07.30 生髮帽連結樣式修正 */
@media (max-width: 921px) {
  body.single-product div.product #productTop .productTopRight .capLink {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 1024px) {
  body.admin-bar .dialog-type-lightbox {
    position: fixed;
  }
}

/* 2024.08.22 */
.compareCheckSwiper .price:not(:has(del)) ins bdi,
.compareCheckSwiper .price:not(:has(del)) ins span {
  color: #151515;
}

/* 2024.09.08 */
.text-gray1-i {
  color: #151515 !important;
}

.woocommerce-js div.product p.price del,
.woocommerce-js div.product span.price del,
.woocommerce-js div.product p.price del span,
.woocommerce-js div.product span.price del span,
.woocommerce-js div.product p.price del bdi,
.woocommerce-js div.product span.price del bdi {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  opacity: 1;
  color: rgb(157, 158, 158) !important;
}

/* 2024.09.19 如果是超商取貨隱藏運送到不同地址 */
body.page-id-24
  form.checkout:has(#shipping_method_0_cw-ezship8:checked)
  #customer_details
  .woocommerce-shipping-fields,
body.page-id-24
  form.checkout:has(#shipping_method_0_logistics_suntech_71110:checked)
  #customer_details
  .woocommerce-shipping-fields,
body.page-id-24
  form.checkout:has(#shipping_method_0_logistics_suntech_family11:checked)
  #customer_details
  .woocommerce-shipping-fields,
body.page-id-24
  form.checkout:has(#shipping_method_0_logistics_suntech_hilife12:checked)
  #customer_details
  .woocommerce-shipping-fields,
body.page-id-24
  form.checkout:has(#shipping_method_0_logistics_suntech_okmart13:checked)
  #customer_details
  .woocommerce-shipping-fields {
  display: none !important;
}

.header-widget-area[data-section="sidebar-widgets-header-widget-3"] {
  display: none !important;
}

/* 2024.11.01 修正 header */
.ast-header-break-point
  .header-widget-area[data-section="sidebar-widgets-header-widget-2"] {
  padding-left: 20px;
}

@media (max-width: 768px) {
  .ast-above-header.ast-above-header-bar,
  .ast-header-break-point #masthead.site-header .ast-above-header-bar {
    display: inline-block;
    width: 100%;
  }
}

body.page-id-24
  #content
  #primary
  .woocommerce
  .woocommerce-form-login
  .form-row-first
  label,
body.page-id-24
  #content
  #primary
  .woocommerce
  .woocommerce-form-login
  .form-row-last
  label {
  margin-top: 0;
  padding-left: 10px;
  font-size: 0.7em;
  line-height: 1.625;
}

/* 限制條件運送與付款除錯模式隱藏 */
.woocommerce-NoticeGroup.woocommerce-NoticeGroup-updateOrderReview {
  display: none;
}

/* 2024.11月改版 */
li.payment_method_suntech_buysafe .payment_method_suntech_buysafe,
li.payment_method_suntech_sunship .payment_method_suntech_sunship {
  display: none !important;
}

/* 2024.12.18 針對舊版 iphone 的 navbar 設定 */
@media (max-width: 1415px) {
  .ast-main-header-nav-open
    .mobile-menu-toggle-icon
    .ahfb-svg-iconset:last-child,
  .ast-main-header-nav-open
    .mobile-menu-toggle-icon
    .ahfb-svg-iconset:last-child
    svg {
    display: inline-block;
  }
}

/*
*暫時加上
*/
/* skin 影片 目前影片量只有三部暫時置中，回覆時移除。 */
/* .artistSkinSwiper .swiper-wrapper {
  justify-content: center !important;
} */
.artistSwiperOut,
.artistSwiperOut2 {
  width: 90%;
}
@media (max-width: 1024px) {
  .artistSwiperOut,
  .artistSwiperOut2 {
    width: 100%;
  }
}
/* 針對header 美容面罩項目暫時移除padding-top。 */
header
  #ast-hf-menu-1
  > li:nth-child(5)
  .astra-full-megamenu-wrapper
  > ul
  > li
  > a
  .menu-text,
body:has(#huSkinPage)
  header
  #ast-hf-menu-1
  > li:nth-child(5)
  .astra-full-megamenu-wrapper
  > ul
  > li
  > a
  .menu-text,
body:has(#huSkinPage)
  header
  #ast-hf-menu-1
  > li:nth-child(5)
  .astra-full-megamenu-wrapper
  > ul
  > li
  > a
  .menu-text {
  padding-top: 0;
}

.widget_shopping_cart_content {
  overflow: hidden !important;
}
.widget_shopping_cart_content a div {
  color: #1e1e1e !important;
}

/* 2025.02.11 */
/* li:has(#shipping_method_0_cw-ezship8){
  display: none;
} */

/* 2025.02.13 調整進入肌膚首頁時，選單出現低線 與 修正 astra css 太晚載入問題 */
@media (min-width: 1415.98px) {
  body:has(#huSkinPage) header nav ul li,
  body:has(#huSkinPage) #ast-mobile-popup-wrapper #ast-hf-mobile-menu > li,
  body:has(#huSkinPage) #ast-hf-mobile-menu > li,
  body:has(#huSkinPage) header nav ul li a,
  body:has(#huSkinPage) #ast-mobile-popup-wrapper #ast-hf-mobile-menu > li a,
  body:has(#huSkinPage) #ast-hf-mobile-menu > li a,
  .ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item,
  header #ast-hf-menu-1 > li > a {
    border-bottom: 0 !important;
  }
  #ast-hf-menu-1 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    justify-self: center;
  }
  #ast-hf-menu-1 > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #ast-hf-menu-1 .ast-menu-toggle {
    display: none;
  }
}

/* 2025.03.17 特定頁面不要出現優惠訊息表單 */
.page-id-24 .bottomForm {
  display: none;
}
#content:has(.orderBlock) .bottomForm {
  display: none;
}

.elementor-lightbox .dialog-lightbox-close-button svg,
.elementor-lightbox .dialog-lightbox-close-button svg:hover,
.elementor-slideshow__header > svg,
.elementor-slideshow__header > svg:hover {
  fill: white !important;
}

@media (max-width: 768px) {
  .homeBannerSwiperOut .homeBannerSwiper {
    height: 100%;
  }
}
@media (max-width: 480px) {
  .homeBannerSwiperOut .homeBannerSwiper {
    height: 100%;
  }
  .homeBannerSwiperOut .homeBannerSwiper .swiper-slide {
    aspect-ratio: 480/790;
    height: auto;
  }
}
