/*
 *
 * CSS for your public-facing side
 *
 */


.page-title h1.entry-title.title {
  color: #d02732;
  font-size: 32px;;
}

@media screen and (max-width: 767px) {

  .whb-general-header {
    padding-top: 0px;
  }

  .wd-header-overlap .page-title {
    padding-top: 76px !important;
  }

  [data-elementor-type="wp-page"] {
    margin-top: 40px;
  }
}


/*
 *
 * 隱藏 GDPR 按鈕
 *
 */
.cky-btn-revisit-wrapper {
  display: none !important;
}


/*
 *
 * 隱藏 reCAPTCHA privacy 按鈕
 *
 */
.grecaptcha-badge {
  visibility: hidden;
}


/*
 *
 * 首頁商品篩選器
 *
 */
#home-product-filter svg path {
  fill: #d02732 !important;
}

#home-product-filter > div {
  margin-top: -58px;
  z-index: 9;
  background: #fff;
  padding: 10px 20px;
  box-shadow: 5px 5px 10px #ddd;
  margin-bottom: 60px;
  border-radius: 5px;
}

#home-product-filter .wd-style-form .wd-pf-title,
#home-product-filter .wd-style-form .wd-pf-btn button {
  border-radius: 4px !important;
}

#home-product-filter .wd-style-form .wd-pf-btn button {
  background-color: #d02732;
}


/*
 *
 * 產品資訊頁 page title 中的分類選單
 *
 */
.wd-nav-product-cat {
  display: none;
}


/*
 *
 * 產品資訊頁 小工具 - 未分類分類
 *
 */
.product-categories .cat-item.cat-item-20,
.wd-nav-product-cat .cat-item.cat-item-20 {
  display: none;
}


/*
 *
 * 顯示比較按鈕的文字
 *
 */
.wd-compare-btn > a {
  width: auto !important;
  flex-direction: row !important;
}

.wd-compare-btn > a::before {
  width: 20px !important;
}

.wd-compare-btn > a > span {
  font-size: 14px !important;
  position: relative !important;
  top: -1px !important;
  padding-left: 4px !important;
  overflow: hidden;
  height: 20px;
  line-height: 20px;
  text-align: left;
}


/*
 *
 * 顯示比較按鈕的文字
 *
 */
.related-products .product-grid-item:hover .wd-buttons {
  display: none !important;
}


/*
 *
 * 回到頂部按鈕
 *
 */
body .scrollToTop {
  width: 55px;
  height: 55px;
  bottom: 100px;
  right: 27px;
}


/*
 *
 * 頁面標題
 *
 */
body .page-title .title {
  font-size: 27px;
}

@media (min-width: 1025px){
  body .title-size-default .title {
    font-size: 49px
  }
}


/*
 *
 * 篩選頁區塊標題
 *
 */
.title.element-title.url-query-title {
  font-size: 15px;
}


/*
 *
 * 產品分類
 *
 */
/* 上一頁按鈕 */
.wd-back-btn.wd-action-btn.wd-style-icon {
  display: none;
}

/* 沒有商品 */
.empty-filter-holder {
  justify-content: center;
}

.empty-filter-holder .nothing-found {
  width: 90%;
  margin: 20px auto 0;
  border-radius: 5px;
}


/*
 *
 * Single product 單一產品頁
 *
 */
.product_title.entry-title.wd-entities-title {
  font-size: 24px;
}

 /* 價錢欄位 */
.product-image-summary-inner .summary-inner > .price {
  font-size: 116%
}

 /* 標籤斷行、上下間距 */
.product-image-summary-inner .summary-inner .product_meta .posted_in > span {
  padding-top: 10px;
  display: block;
}

.product-image-summary-inner .summary-inner .product_meta .posted_in > span:first-child {
  padding-top: 0px;
}

 /* 標籤內容間距 */
.product-image-summary-inner .summary-inner .product_meta .posted_in .tagged_as a {
  margin-left: 5px;
}

 /* 頁首空間過大處理 */
@media (max-width: 1024px) {
  .single-product .whb-overcontent {
    padding-top: 61px;
  }
}

 /* 商品頁 電腦樣式 下，最大圖片寬度縮減為 80% */
@media (min-width: 969px) {
  .entry-content.woocommerce-Tabs-panel img {
    max-width: 80%;
  }
}


 /* 商品頁 下載檔案樣式 */
.somdn-available-downloads {
  display: none !important;
}

.somdn-download-wrap:before {
  content: "檔案下載:";
  font-weight: bold;
  color: #333;
  margin-top: -10px;
  padding-bottom: 10px;
  display: block;
}
.wd-social-icons + .somdn-available-downloads,
.wd-social-icons + * + .somdn-available-downloads {
  margin-top: -10px;
  margin-bottom: 0px;
  font-weight: bold;
  color: #333;
}

.somdn-download-wrap .product-download-link {
  color: #c6012a;
  padding: 3px 0 0;
  display: inline-block;
  margin: 5px 0;
  border-radius: 8px;
}

/* 商品頁 > 相關商品: 移除購物車按鈕 */
.product_type_simple.add-to-cart-loop {
  display: none;
}


/*
 *
 * Compare 比較頁面
 *
 */
.wd-compare-table .button.product_type_simple.add-to-cart-loop {
  background-color: #d02732;
}

p.return-to-shop a.button,
p.return-to-shop a.button:hover {
  background-color: #d02732;
}


/*
 *
 * News 最新消息
 *
 */
/* 處理沒有文章 */
.empty-blog-holder {
  height: initial !important;
}

.empty-blog-holder .nothing-found {
  width: 90%;
  margin: 20px auto 0;
  border-radius: 5px;
}

/* 影音專區 */
.video-list .blog-design-masonry.blog-post-loop .meta-categories-wrapp {
  top: -32px;
}

.video-list .blog-design-masonry.blog-style-flat .article-body-container {
  padding-top: 13px;
}

/* 標籤頁面 - 影音 */
.tag-video-post.blog-design-masonry.blog-post-loop .meta-categories-wrapp {
  top: -32px;
}

.tag-video-post.blog-design-masonry.blog-style-flat .article-body-container {
  padding-top: 13px;
}

/* 標籤頁面 - 一般文章 */
.tag-post.blog-design-masonry.blog-post-loop .meta-categories-wrapp {
  top: -26px;
}

.tag-post.blog-design-masonry.blog-style-flat .article-body-container {
  padding-top: 20px;
}


/* 子選單（頁面分類選單） */
.elementor-widget-nav-menu {
  margin-top: -20px;
}

.elementor-widget-nav-menu .elementor-menu-toggle {
  margin-left: 0 !important;
}


/* 列表文章標題 */
.blog-design-masonry .article-body-container .post-title {
  font-size: 20px;
}


@media (max-width: 767px){
  .category-list-search {
    position: absolute !important;
    top: -25px;
    right: 0px;
    width: 150px !important;
  }
  .category-list-search .wd-search-form {
    width: 130px;
  }
}


/* 問答標題 */
.wd-accordion {
  padding-bottom: 50px;
}

.categories-accordion-on .woodmart-title-container {
  color: #d02732;
}


/*
 *
 * Article 文章內容
 *
 */
.article-body-container p {
  font-size: 1rem;
}



@media screen and (max-width: 645px) {

  /* R2_複合式篩選表單 */
  /*
  section#home-product-filter
    div.elementor-container
      div.elementor-column
        div.elementor-widget-wrap
          section.elementor-inner-section:nth-child(1)
            div.elementor-container
              div.elementor-inner-column:nth-child(1)
                div.elementor-widget-wrap
                  div.elementor-widget-container
                    [標題/說明]
              div.elementor-inner-column:nth-child(2)
                div.elementor-widget-wrap
                  div.elementor-widget-container
                    [全部商品按鈕]
          section.elementor-inner-section:nth-child(2)
            div.elementor-container
              div.elementor-inner-column
                div.elementor-widget-wrap
                  div.elementor-widget-container
                    [篩選表單]
  */
  #home-product-filter section:nth-child(1) .elementor-inner-column:nth-child(1) .elementor-widget-wrap,
  #home-product-filter section:nth-child(1) .elementor-inner-column:nth-child(1) .elementor-widget-container {
    padding-bottom: 0px;
    margin-bottom: 0px;
  }

  #home-product-filter section:nth-child(1) .elementor-inner-column:nth-child(2) .elementor-widget-wrap,
  #home-product-filter section:nth-child(1) .elementor-inner-column:nth-child(2) .elementor-widget-container {
    margin-bottom: 5px;
    padding-top: 0;
    margin-top: 0px;
  }

  #home-product-filter section:nth-child(2) .elementor-inner-column:nth-child(1) .elementor-widget-wrap {
    padding-top: 0;
  }

  #home-product-filter section:nth-child(2) .elementor-widget-container {
    padding-top: 0px;
    margin-top: 0px;
  }

  /* R3_產品資訊的大分類連結按鈕_1 */
  /* R4_產品資訊的大分類連結按鈕_2 */
  /*
  section#home-section-3
    div.elementor-container
      div.elementor-column:nth-child(1)
        div.elementor-widget-wrap
          div.elementor-widget
            div.elementor-widget-container

      div.elementor-column:nth-child(2)
      div.elementor-column:nth-child(3)
  */
  section#home-section-3 .main-wrapp-img,
  section#home-section-4 .main-wrapp-img {
    position: relative;
    width: 100%;
    padding-bottom: 47.98%;
    background-color: #f0f0f0;
    height: 0px;
  }

  /* R5_品牌優勢icon+文字介紹 */
  /*
  section#home-section-5
    div.elementor-container
      div.elementor-column:nth-child(1)
        div.elementor-widget-wrap
          div.elementor-widget
            div.elementor-widget-container
              div.info-box-wrapper
      div.elementor-column:nth-child(2)
        div.elementor-widget-wrap
          div.elementor-widget
            div.elementor-widget-container
              div.info-box-wrapper
      div.elementor-column:nth-child(3)
        div.elementor-widget-wrap
          div.elementor-widget
            div.elementor-widget-container
              div.info-box-wrapper
      div.elementor-column:nth-child(4)
        div.elementor-widget-wrap
          div.elementor-widget
            div.elementor-widget-container
              div.info-box-wrapper
  */
  section#home-section-5 div.elementor-column div.elementor-widget {
    width: 75%;
    max-width: 255px;
  }

  /* R6_主推產品介紹_1 */
  /*
    div.elementor-element
    div.elemtn-sction
  */
  section#home-section-6 section.elementor-section {
    display: block;
    position: absolute;
    top: 56px;
    left: -4%;
  }

  section#home-section-6 section.elementor-section .elementor-widget-wrap {
    padding-left: 0px;
    padding-right: 0px;
  }

  section#home-section-6 section.elementor-section .elementor-widget-wrap img {
    width: 108%;
    max-width: 108%;
  }

  /* R7_主推產品介紹_2 */
  section#home-section-7 {
    padding-bottom: 30px;
  }

  section#home-section-7 > .elementor-container > div.elementor-column:nth-child(2) .box-icon-wrapper {
    margin-bottom: 0px;
  }

  section#home-section-7 > .elementor-container > div.elementor-column:nth-child(2) .info-box-icon {
    position: relative;
    width: 100%;
    padding-bottom: 53%;
    height: 0px;
  }

  section#home-section-7 > .elementor-container > div.elementor-column:nth-child(2) .info-box-icon img {
    position: absolute;
    top: -29%;
    left: 10%;
    width: 80%;
  }

  section#home-section-7 > .elementor-container > div.elementor-column:nth-child(2) .info-box-content a.btn {
    font-size: 16px;
    padding: 5px 22px;
  }

  section#home-section-7 > .elementor-container > div.elementor-column:nth-child(1) .elementor-widget-wd_title h4 {
    color: #000;
  }

  section#home-section-7 > .elementor-container > div.elementor-column:nth-child(1) section.elementor-inner-section .elementor-widget-container {
    margin-bottom: 0px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 0px;
  }

  section#home-section-7 > .elementor-container > div.elementor-column:nth-child(1) section.elementor-inner-section .elementor-widget-wrap {
    padding: 20px 15px 0;
    margin-bottom: 0px;
  }

  /* R8_熱門產品 */
  section#home-section-8 {
    margin-bottom: 60px;
  }

  /* R9_產品影音專區連結 */
  section#home-section-9 {
    margin-bottom: 45px;
  }

  section#home-section-9 h4 {
    color: #fff;
  }

  /* R10_產品指南 */
  section#home-section-10 {
    margin-bottom: 0px;
  }

  section#home-section-10 .elementor-widget-wrap {
    justify-content: center;
  }

  section#home-section-10 h4 {
    color: #000;
  }
}