@keyframes gradient-loading {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

section {
  margin-top: 50px;
  margin-bottom: 50px;
  /* background-color: #eee; */
}
.filter-items a {
  text-decoration: none !important;
}

.block_product_filter {
  margin-top: 6em;
  margin-top: 0;
  display: flex;
  align-items: center;
}

.login_link {
  white-space: nowrap;
  float: left;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.block_product_filter .filter-group {
  width: 100%;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  width: fit-content;
  margin-right: 1em;
  border-right: 1 solid #cbcbcb;
}
@media all and (max-width: 767px) {
  .block_product_filter .filter-group {
    width: 100%;
  }
}

.filter-group {
  border-bottom: 1px solid #cbcbcb;
  position: relative;
}

.filter-group.loading {
  /*
  background: linear-gradient(to right, #e0e0e0, #f8f8f8);
  background-size: 200% 200%;
  animation: gradient-loading 1.5s ease-in-out infinite;
  border-color: transparent;
*/
}

.filter-group.loading * {
  visibility: hidden;
}

.filter-group:first-of-type {
  border-top: 1px solid #cbcbcb;
}

.filter-group > h4 {
  margin-bottom: 0;
  padding-bottom: 0;
  position: relative;
  cursor: pointer;
  font-size: 1rem;
}

.filter-group > h4::before {
  position: absolute;

  content: "";
  display: block;

  right: 0px;
  top: 50%;
  transform: translate3d(0, -50%, 0);

  transform-style: preserve-3d;
  width: 1em;
  height: 1em;

  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAxNlYwaDE2djE2eiIvPjxwYXRoIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0ibm9uemVybyIgZD0iTTggMTIuMjA3TC42NDYgNC44NTNsLjcwOC0uNzA2TDggMTAuNzkzbDYuNjQ2LTYuNjQ2LjcwOC43MDZ6Ii8+PC9nPjwvc3ZnPg==)
    no-repeat;
  transition: all 0.8s ease-in-out;
}

.filter-group.expand > h4::before {
  transform: rotateX(180deg) translate3d(0, 50%, 0);
}

.filter-group li {
  width: 100%;
}

.block_product_filter .filter-items {
  border-radius: 5px;
  /* border: 1px solid #ccc; */
  transition: all 0.5s ease-in-out;

  /* background: linear-gradient(to right, #e0e0e0, #f8f8f8); */
  background-size: 200% 200%;
  /* animation: gradient-loading 1.5s ease-in-out infinite; */

  float: none;
  padding-bottom: 0;
  margin-bottom: 0;
  overflow: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  /* max-height: 0px; */
}

.block_product_filter .filter-items.show {
  /* border: 1px solid transparent; */
  background: none;
}

/* .filter-group.expand .filter-items {
  max-height: 60vh;
} */
.filter-group.expand .ul-container {
  max-height: 60vh;
}

.block_product_filter .filter-items label {
  visibility: hidden;
}

.block_product_filter .filter-item > label > span,
.block_product_filter .filter-item > label > a {
  display: block;
}

/* .block_product_filter .filter-items.show label {
  visibility: visible;
} */
.block_product_filter .ul-container.show label {
  visibility: visible;
}

/* .filter-item:first-of-type {
  margin-top: 1em;
} */

.filter-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.2em;
}

.gray_text {
  color: #999;
}
@media all and (min-width: 767px) {
  .woocommerce-pagination {
    margin-left: 15px;
  }
}
@media all and (max-width: 767px) {
  .storefront-sorting {
    flex-wrap: wrap;
    height: fit-content;
    align-items: center;
  }
  .storefront-sorting .sort {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
  }
  .storefront-sorting .sort .woocommerce-ordering {
    margin-bottom: 0;
  }
  .woocommerce-pagination {
    width: 100%;
  }
}

/* 控制导航 */

@media all and (max-width: 900px) {
  .handheld-navigation {
    display: block;
    pointer-events: auto;
    touch-action: auto;
  }

  .handheld-navigation .menu {
    display: none;
    pointer-events: none;
    touch-action: none;
  }

  .handheld-navigation .menu[aria-expanded="true"] {
    display: block;
    pointer-events: auto;
    touch-action: auto;
  }

  /* 1.41575em */
  .handheld-navigation > .menu {
    left: 0;
    margin-right: 1.41575em;
  }
  .handheld-navigation > .menu .dropdown-toggle {
    display: none;
  }
  .primary-navigation {
    display: none;
    pointer-events: none;
    touch-action: none;
  }
  .handheld-navigation ul.menu .sub-menu {
    visibility: visible;
    max-height: 9999px;
    opacity: 1;
  }
}

@media all and (max-width: 767px) {
  .selected_taxonomy {
    display: none;
  }
}
@media all and (min-width: 900px) {
  .primary-navigation {
    display: block;
    pointer-events: auto;
    touch-action: auto;
    text-align: center;
    position: relative;
    z-index: 999;
  }
  .handheld-navigation {
    display: none;
    pointer-events: none;
    touch-action: none;
  }
  .handheld-navigation .menu {
    z-index: 999;
  }
  .one-image.x-add .prev {
    left: 30px;
  }
}

.yith-add-to-wishlist-button-block.yith-add-to-wishlist-button-block--single
  svg {
  height: auto !important;
}

.brand_title_des {
  /* margin-top: 3em;
  margin-bottom: 3em; */
  display: flex;
  min-height: 10em;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.brand_title_des h2 {
  text-align: center;
  font-weight: 500;
}
.brand_title_des .text_block {
  max-width: 600px;
  width: 100%;
  margin: auto;
  text-align: justify;
}

.breadcrumbs_item {
  margin-top: 0.5em;
  display: inline-block;
}

.breadcrumbs_item::after {
  content: "/";
  display: inline-block;
  margin-left: 0.5em;
  margin-right: 0.5em;
}

.breadcrumbs_item:last-of-type::after {
  display: none;
}

@media all and (min-width: 767px) {
  .block_product_filter .filter-group {
    width: fit-content;
    float: left;
    position: relative;
    border-bottom: none;
  }
  .filter-group:first-of-type {
    border-top: none;
  }
  .block_product_filter .filter-group .h4 {
    display: flex;
    align-items: center;
    padding: 0;
    padding-right: 20px;
    /* min-width: 200px; */
    font-weight: 500;
  }
  .block_product_filter .filter-group .h4::before {
    position: static;
    margin-right: 10px;
    transform: translate(0, 0);
  }
  .block_product_filter .filter-group .filter-items {
    height: 100%;
    padding: 20px;
    overflow-y: auto;
  }
  .block_product_filter .filter-group .ul-container {
    min-width: 300px;
    position: absolute;
    background-color: #eeeeee;
    top: calc(100% + 1px);
    z-index: 9;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    max-height: 0px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
  }
  .filter-group.expand .ul-container {
    max-height: 80vh;
    opacity: 1;
    pointer-events: unset;
  }
  .filter-group.expand .filter-items {
    max-height: calc(80vh - 60px);
  }
  .other_class_name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-bottom: 1px solid #cbcbc3; */
  }

  .full_width_border {
    border-bottom: 1px solid #cbcbc3;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
  }

  .block_product_filter .storefront-sorting {
    height: fit-content;
  }
  .other_class_name .phone {
    position: absolute;
  }
  .left-sidebar .content-area {
    width: 100%;
  }
  .selected_taxonomy {
    margin: 0 0 0 0;
    margin-top: 0.5em;
  }
  .block_product_filter {
    margin-bottom: 15px;
    margin-bottom: 0;
  }
  .selected_taxonomy .btn,
  .selected_taxonomy .clear {
    padding: 5px 10px;
    position: relative;
    padding-left: 25px;
    margin-right: 15px;
    background-color: #ccc;
    color: #fff;
    color: #000;
    border-radius: 5px;
    line-height: 1.618;
    display: inline-block;
    font-size: 0.8em;
  }
  .selected_taxonomy .clear {
    background-color: transparent;
    color: #646464;
    text-decoration: underline;
  }
  .selected_taxonomy .btn::before,
  .selected_taxonomy .btn::after {
    display: block;
    content: "";
    background-color: #fff;
    background-color: #000;
    width: 12px;
    height: 1px;
    position: absolute;
    top: 50%;
    left: 10px;
  }
  .selected_taxonomy .btn::before {
    transform: translateY(-50%) rotate(45deg);
  }
  .selected_taxonomy .btn::after {
    transform: translateY(-50%) rotate(135deg);
  }
  .selected_taxonomy .clear {
    background-color: transparent;
    text-decoration: underline;
    color: #646464;
  }
  .block_product_filter .storefront-sorting .results {
    margin-right: 15px;
  }

  .site-main .storefront-sorting .woocommerce-ordering {
    display: none;
  }

  .storefront-sorting {
    height: auto;
  }

  .woocommerce-pagination {
    padding-bottom: 15px;
  }

  #shop-page-sidebar .widget_block {
    margin-bottom: 2rem;
    margin-top: 5em;
  }
  /* shop 页(woocommerce-shop)顶部间距归零, 其他页面保留 5em */
  body.woocommerce-shop #shop-page-sidebar .widget_block {
    margin-top: 0em;
  }
}
@media all and (max-width: 767px) {
  .filter-group .ul-container {
    max-height: 0;
    overflow: hidden;
  }
  .filter-group.expand .ul-container {
    max-height: none;
  }

  .block_product_filter .filter-group {
    margin-right: 0;
  }

  .block_product_filter .storefront-sorting {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .block_product_filter .storefront-sorting .sort {
    width: 100%;
  }
}

.shop_top_banner {
  min-height: 10em;
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
}
