

.facets .thb-filter .thb-filter-title span:before, .facets .thb-filter .thb-filter-title span:after, .facets .thb-filter-content .thb-filter-switch[type="checkbox"], .facets .thb-filter-content .thb-filter-switch[type="checkbox"]:after, .active-facets__button span, .thb-filter ul.list-color label, .thb-filter ul.list-color label:after {
  transition: all 0.25s cubic-bezier(0.104, 0.204, 0.492, 1); }


.facets--bar {
  display: block;
  margin-bottom: 25px;
  font-size: 0.8125rem;
  z-index: 45; }
  @media only screen and (min-width: 1068px) {
    .facets--bar.facets--bar-inline {
      display: flex;
      flex-direction: row-reverse;
      gap: 20px; }
      .facets--bar.facets--bar-inline .active-facets {
        margin-left: 0;
        margin-right: auto; }
        .facets--bar.facets--bar-inline .active-facets:not(:empty) {
          margin-top: 0; }
      .facets--bar.facets--bar-inline .active-facets__button {
        margin-top: 0;
        margin-bottom: 6px; } }
  .facets--bar .facets-toggle {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-right: 30px;
    letter-spacing: 0.1em;
    color: var(--color-body); }
    .facets--bar .facets-toggle svg {
      width: 14px;
      height: auto;
      margin-right: 10px; }
      .facets--bar .facets-toggle svg path {
        stroke: var(--color-body); }
  .facets--bar .thb-filter-sort-count {
    text-align: right;
    margin-left: auto;
    display: flex;
    align-items: center;
    white-space: nowrap; }
    .facets--bar .thb-filter-sort-count .thb-filter-sort {
      margin-right: 30px; }
    .facets--bar .thb-filter-sort-count .select {
      display: none;
      margin: 0; }
      @media only screen and (min-width: 1068px) {
        .facets--bar .thb-filter-sort-count .select {
          display: block; } }
      .facets--bar .thb-filter-sort-count .select-arrow {
        right: 0; }
    .facets--bar .thb-filter-sort-count select {
      font-weight: 600;
      font-size: 0.75rem;
      line-height: 1rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      border: 0;
      height: auto;
      padding-left: 0;
      padding-top: 0;
      padding-bottom: 0; }
  .facets--bar .facets__label {
    font-size: inherit;
    margin: 0 0 0 30px; }
  .facets--bar .facets__form {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: auto 1fr;
    align-items: flex-start; }
  .facets--bar .active-facets:not(:empty) {
    margin-top: 10px; }
  .facets--bar .active-facets__button-remove {
    margin-top: 6px; }

.facets-desktop-container {
  display: none;
  min-height: 65px; }
  @media only screen and (min-width: 1068px) {
    .facets-desktop-container {
      display: block; } }
  .facets-desktop-container .thb-filter-count .loading-overlay {
    left: auto;
    right: 0; }
  .facets-desktop-container .facets__form {
    position: sticky;
    top: calc(var(--header-height, 0) + 20px);
    left: 0; }

.facets__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-right: 30px;
  letter-spacing: 0.1em; }

.facets .thb-filter-count {
  margin: 0 0 0 30px; }
  .facets .thb-filter-count .facets__label {
    margin: 0; }

.facets .thb-filter {
  width: 100%;
  margin-bottom: 20px;
  position: relative; }
  .facets .thb-filter .thb-filter-title {
    letter-spacing: 0.02em;
    position: relative;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    display: flex;
    padding: 5px 0;
    align-items: center;
    cursor: pointer;
    color: var(--color-body); }
    .facets .thb-filter .thb-filter-title span {
      position: relative;
      display: inline-flex;
      width: 12px;
      height: 12px;
      margin-right: 17px; }
      .facets .thb-filter .thb-filter-title span:before, .facets .thb-filter .thb-filter-title span:after {
        content: "";
        display: block;
        position: absolute;
        background: var(--color-body); }
      .facets .thb-filter .thb-filter-title span:before {
        top: 0;
        width: 1px;
        left: 5.5px;
        height: 12px; }
      .facets .thb-filter .thb-filter-title span:after {
        top: 5.5px;
        left: 0;
        width: 12px;
        height: 1px; }
    .facets .thb-filter .thb-filter-title::marker, .facets .thb-filter .thb-filter-title::-webkit-details-marker {
      display: none; }
  .facets .thb-filter[open] .thb-filter-content {
    display: block; }
  .facets .thb-filter[open] .thb-filter-title span:before {
    transform: rotate(90deg); }
  .facets .thb-filter-content {
    padding-top: 10px; }
    .facets .thb-filter-content scroll-shadow {
      display: block;
      width: 100%; }
    .facets .thb-filter-content .count {
      margin-left: 2px;
      font-size: 0.75rem; }
    .facets .thb-filter-content input[type="checkbox"],
    .facets .thb-filter-content input[type="radio"] {
      margin-right: 10px;
      width: 14px;
      height: 14px; }
    .facets .thb-filter-content ul {
      list-style: none;
      margin: 0;
      padding: 0;
      overflow-y: scroll;
      max-height: 250px;
      scrollbar-width: none; }
      .facets .thb-filter-content ul::-webkit-scrollbar {
        display: none; }
    .facets .thb-filter-content .thb-filter-switch[type="checkbox"] {
      -webkit-appearance: none;
      appearance: none;
      width: 48px;
      height: 24px;
      border-radius: 12px;
      border: 0;
      background: var(--color-border);
      position: relative;
      cursor: pointer; }
      .facets .thb-filter-content .thb-filter-switch[type="checkbox"]:after {
        content: "";
        display: block;
        width: 16px;
        height: 16px;
        position: absolute;
        top: 4px;
        left: 4px;
        border-radius: 8px;
        background: #fff; }
      .facets .thb-filter-content .thb-filter-switch[type="checkbox"]:checked {
        background: var(--color-accent); }
        .facets .thb-filter-content .thb-filter-switch[type="checkbox"]:checked:after {
          transform: translateX(24px); }
  .facets .thb-filter-sort-count {
    display: flex;
    align-items: center;
    margin-left: auto; }
  .facets .thb-filter-sort {
    display: flex;
    align-items: center; }
    .facets .thb-filter-sort .select {
      margin-bottom: 0; }
      .facets .thb-filter-sort .select:after {
        right: 0; }
    .facets .thb-filter-sort select {
      margin-bottom: 0;
      border: 0;
      padding-left: 0;
      font-size: 0.875rem; }
  .facets .thb-filter label.facet-checkbox--disabled {
    cursor: not-allowed; }

.facets__mobile_form .thb-filter-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%; }
  .facets__mobile_form .thb-filter-sort .thb-filter-title {
    margin: 0; }
  .facets__mobile_form .thb-filter-sort .select {
    border: 0;
    padding: 0;
    margin: 0; }
    .facets__mobile_form .thb-filter-sort .select select {
      padding-left: 0;
      padding-top: 0;
      padding-bottom: 0;
      border: 0;
      height: auto; }

.price_range .price-highest {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 15px; }

.price_range .price_slider_amount {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 25px; }
  .price_range .price_slider_amount > div {
    display: flex;
    align-items: center; }
    .price_range .price_slider_amount > div .field-currency {
      font-size: 0.8125rem;
      margin-right: 10px; }
  .price_range .price_slider_amount input {
    box-sizing: border-box;
    margin-bottom: 0;
    height: 44px;
    padding: 12px 16px;
    font-size: 0.8125rem;
    flex: 1;
    width: 0; }
    .price_range .price_slider_amount input:-moz-placeholder {
      color: rgba(var(--color-body-rgb), 0.3); }
    .price_range .price_slider_amount input::-moz-placeholder {
      color: rgba(var(--color-body-rgb), 0.3); }
    .price_range .price_slider_amount input:-ms-input-placeholder {
      color: rgba(var(--color-body-rgb), 0.3); }
    .price_range .price_slider_amount input::-webkit-input-placeholder {
      color: rgba(var(--color-body-rgb), 0.3); }

.price_slider {
  touch-action: none;
  user-select: none;
  padding: 0 9px; }
  .price_slider_wrapper {
    display: block; }
  .price_slider * {
    touch-action: none;
    user-select: none; }
  .price_slider .noUi-base,
  .price_slider .noUi-connects {
    height: 3px;
    background: var(--color-border);
    position: relative;
    margin-bottom: 25px; }
  .price_slider .noUi-connect {
    height: 100%;
    width: 100%;
    background: var(--color-accent); }
  .price_slider .noUi-origin {
    height: 0;
    width: 10%; }
  .price_slider .noUi-connect,
  .price_slider .noUi-origin {
    will-change: transform;
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    transform-origin: 0 0;
    transform-style: preserve-3d;
    transform-style: flat; }
  .price_slider .noUi-handle {
    display: block;
    outline: none;
    position: absolute;
    top: -7px;
    right: -9px;
    width: 17px;
    height: 17px;
    border: 1px solid var(--color-accent);
    background: #fff url("data:image/svg+xml,%3Csvg width='7' height='7' viewBox='0 0 7 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H1V7H0V0Z' fill='%23151515'/%3E%3Cpath d='M3 0H4V7H3V0Z' fill='%23151515'/%3E%3Cpath d='M6 0H7V7H6V0Z' fill='%23151515'/%3E%3C/svg%3E%0A") center center no-repeat;
    backface-visibility: hidden;
    cursor: pointer; }
    .price_slider .noUi-handle .noUi-touch-area {
      height: 100%;
      width: 100%; }
    .price_slider .noUi-handle:focus-visible {
      outline: 2px solid #015ecc;
      outline-offset: 2px; }

.facet-drawer .side-panel-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh; }

.facet-drawer .side-panel-content {
  overflow-y: scroll; }

.facet-drawer .side-panel-footer {
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 7px;
  padding: 20px; }
  .facet-drawer .side-panel-footer > div {
    display: flex;
    align-items: center;
    justify-content: center; }
  .facet-drawer .side-panel-footer .text-button {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em; }

.thb-filter-count.loading .facets__label {
  opacity: 0; }

.thb-filter-count .facets__label {
  margin: 0; }

.thb-filter-count .facets__label {
  font-size: 0.75rem;
  margin-top: 10px; }

.thb-filter-count .loading-overlay {
  width: 18px;
  height: 18px;
  left: auto;
  right: 0; }

.thb-filter-count.mobile-filter-count .loading-overlay {
  left: 0;
  transform: translateY(-50%); }

.active-facets {
  display: block;
  font-size: 0.6875rem; }
  .active-facets__button {
    border: 1px solid var(--color-border);
    height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 3px 0 3px 10px;
    margin: 6px 6px 0 0;
    font-size: 0.75rem;
    color: var(--color-body); }
    .active-facets__button span {
      margin-left: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 27px;
      height: 26px;
      border-left: 1px solid var(--color-border); }
    .active-facets__button svg {
      width: 6px;
      height: 6px; }
    .active-facets__button:hover {
      border-color: var(--color-accent);
      color: var(--color-body); }
      .active-facets__button:hover span {
        background: var(--color-accent);
        border-left-color: var(--color-accent); }
      .active-facets__button:hover svg path {
        fill: #fff; }
  .active-facets__button-remove {
    font-size: 0.75rem;
    margin-left: 13px;
    margin-bottom: 14px; }
    .active-facets__button-remove:only-child {
      display: none; }

.thb-filter ul label {
  font-size: 0.875rem; }

.thb-filter ul.list-color {
  display: flex;
  flex-wrap: wrap;
  padding: 1px 0 0 1px; }
  .thb-filter ul.list-color li {
    display: inline-flex;
    margin-left: -1px;
    margin-top: -1px; }
  .thb-filter ul.list-color input {
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    position: absolute;
    height: 1px;
    width: 1px; }
    .thb-filter ul.list-color input:checked + label {
      z-index: 5;
      box-shadow: 0 0 0 1px var(--color-body) inset; }
    .thb-filter ul.list-color input:disabled + label:before {
      content: ""; }
    .thb-filter ul.list-color input:disabled + label:after {
      opacity: 0.4; }
    .thb-filter ul.list-color input:focus-visible + label {
      transform: scale(0.9);
      box-shadow: 0 0 0 2px #015ecc inset; }
  .thb-filter ul.list-color label {
    width: 48px;
    height: 48px;
    display: inline-flex;
    text-indent: -9999em;
    position: relative;
    cursor: pointer;
    color: transparent;
    z-index: 4;
    box-shadow: 0 0 0 1px var(--color-border) inset;
    position: relative;
    z-index: 0; }
    .thb-filter ul.list-color label:before {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      background: linear-gradient(to bottom left, transparent calc(50% - 1px), var(--color-border), transparent calc(50% + 1px)) no-repeat;
      z-index: 1; }
    .thb-filter ul.list-color label:after {
      content: "";
      display: block;
      position: absolute;
      top: 14px;
      left: 14px;
      right: 14px;
      bottom: 14px;
      border-radius: 50%;
      background-size: cover;
      background-color: var(--bg-color, "black");
      background-image: var(--option-color-image); }
    .thb-filter ul.list-color label:hover:after {
      transform: scale(0.9); }
    .thb-filter ul.list-color label:not(.facet-checkbox--disabled):hover {
      z-index: 1;
      box-shadow: 0 0 0 1px var(--color-body) inset; }

/* ============================================================
   分类页 / 商店列表 —— 干净的 collection 版式
   ============================================================ */
.thb-shop-layout { margin-top: 6px; }
.thb-shop-sidebar { padding-right: 28px; }
@media (max-width: 1024px) { .thb-shop-sidebar { padding-right: 0; } }

/* 头部：面包屑 + 标题 */
.thb-shop-main .woocommerce-breadcrumb {
	font-size: 0.78rem; letter-spacing: 0.02em; color: #9a9a9a; margin: 0 0 12px;
}
.thb-shop-main .woocommerce-breadcrumb a { color: #9a9a9a; }
.thb-shop-main .woocommerce-breadcrumb a:hover { color: var(--color-accent, #151515); }
.thb-shop-main .page-title,
.thb-shop-main h1.woocommerce-products-header__title,
.thb-shop-main > h1 {
	font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 4px; letter-spacing: 0.01em;
}
.thb-shop-main .term-description,
.thb-shop-main .woocommerce-archive-description {
	max-width: 720px; color: #666; font-size: 0.95rem; line-height: 1.6; margin: 8px 0 0;
}

/* 工具栏：结果数(左) + 排序(右) */
.thb-shop-toolbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
	margin: 20px 0 26px; padding-bottom: 14px;
	border-bottom: 1px solid var(--color-border, #ececec);
}
.thb-shop-toolbar .woocommerce-result-count { margin: 0; color: #9a9a9a; font-size: 0.82rem; }
.thb-shop-toolbar .woocommerce-ordering { margin: 0; }
.thb-shop-toolbar select.orderby,
.thb-shop-toolbar .woocommerce-ordering select {
	appearance: none; -webkit-appearance: none;
	border: 1px solid var(--color-border, #ddd); border-radius: 6px;
	padding: 9px 34px 9px 14px; font-size: 0.82rem; background-color: #fff; color: #333;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; cursor: pointer;
}

/* 左侧筛选栏 */
.thb-filters__head {
	display: flex; align-items: center; justify-content: space-between;
	margin: 0 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border, #e6e6e6);
}
.thb-filters__title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.thb-filters__clear { font-size: 0.76rem; color: #9a9a9a; text-decoration: underline; }
.thb-filter-group { border-bottom: 1px solid #efefef; }
.thb-filter-group__title {
	display: flex; align-items: center; justify-content: space-between;
	list-style: none; cursor: pointer;
	padding: 15px 2px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.thb-filter-group__title::-webkit-details-marker { display: none; }
.thb-filter-group__chev {
	width: 8px; height: 8px; border-right: 1.5px solid #444; border-bottom: 1.5px solid #444;
	transform: rotate(45deg); transition: transform 0.2s ease; margin-right: 4px; flex: 0 0 auto;
}
.thb-filter-group[open] .thb-filter-group__chev { transform: rotate(-135deg); }
.thb-filter-group__list { list-style: none; margin: 0; padding: 2px 0 16px; }
.thb-filter-group__list li { margin: 0; }
.thb-filter-option {
	display: flex; align-items: center; gap: 9px; padding: 6px 2px; font-size: 0.85rem; cursor: pointer; color: #444;
}
.thb-filter-option:hover { color: var(--color-accent, #151515); }
.thb-filter-option input { accent-color: var(--color-accent, #151515); margin: 0; }
.thb-filter-option__label { flex: 1; }
.thb-filter-option__count { color: #bbb; font-size: 0.78rem; }

/* 产品卡：去掉常驻按钮，点图进产品页 */
.thb-shop-main .product-card-actions { display: none; }
.thb-shop-main .product-card-info { padding-bottom: 6px; }

/* ============================================================
   分类页进阶：色块 / 手机抽屉 / 悬停快速加购 / 分类横幅
   ============================================================ */

/* ---- ④ 分类横幅（全宽居中） ---- */
.thb-cat-banner { text-align: center; padding: 22px 0 6px; }
.thb-cat-banner .woocommerce-breadcrumb {
	display: flex; justify-content: center; flex-wrap: wrap; gap: 4px;
	font-size: 0.78rem; color: #9a9a9a; margin: 0 0 14px;
}
.thb-cat-banner .woocommerce-breadcrumb a { color: #9a9a9a; }
.thb-cat-banner .woocommerce-breadcrumb a:hover { color: var(--color-accent, #151515); }
.thb-cat-banner__title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 8px; letter-spacing: 0.01em; }
.thb-cat-banner__desc { max-width: 640px; margin: 0 auto; color: #666; font-size: 0.98rem; line-height: 1.6; }
.thb-cat-banner__desc p { margin: 0; }

/* ---- ① 颜色色块 swatch ---- */
.thb-filter-option--swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.thb-swatch {
	width: 20px; height: 20px; border-radius: 999px; flex: 0 0 auto;
	background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
	transition: box-shadow 0.15s ease;
}
.thb-filter-option--swatch input:checked ~ .thb-swatch {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--color-accent, #151515);
}
.thb-filter-option--swatch input:checked ~ .thb-filter-option__label { font-weight: 600; }

/* ---- ③ 悬停快速加购（浮现在图片底部） ---- */
.product-featured-image { position: relative; }
.thb-shop-main .product-card-actions,
.related .product-card-actions,
.up-sells .product-card-actions {
	display: block; position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6;
	opacity: 0; transform: translateY(8px); pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease;
}
.thb-shop-main .product-card:hover .product-card-actions,
.related .product-card:hover .product-card-actions,
.up-sells .product-card:hover .product-card-actions {
	opacity: 1; transform: none; pointer-events: auto;
}
.thb-shop-main .product-card-actions .button,
.related .product-card-actions .button,
.up-sells .product-card-actions .button {
	display: block; width: 100%; text-align: center;
	background: #fff; color: #151515; border: 1px solid #151515;
	padding: 11px 12px; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 4px;
}
.thb-shop-main .product-card-actions .button:hover,
.related .product-card-actions .button:hover,
.up-sells .product-card-actions .button:hover { background: #151515; color: #fff; }
@media (hover: none) {
	.thb-shop-main .product-card-actions,
	.related .product-card-actions,
	.up-sells .product-card-actions { display: none; }
}

/* ---- ② 手机端筛选抽屉 ---- */
.thb-filter-toggle { display: none; }
.thb-filters__close { display: none; }
@media (max-width: 1024px) {
	.thb-filter-toggle {
		display: inline-flex; align-items: center; gap: 8px; order: -1;
		border: 1px solid var(--color-border, #ddd); border-radius: 6px;
		padding: 9px 16px; font-size: 0.82rem; background: #fff; color: #333; cursor: pointer;
		text-transform: uppercase; letter-spacing: 0.06em;
	}
	.thb-filter-toggle__icon {
		width: 14px; height: 10px; flex: 0 0 auto;
		background:
			linear-gradient(#333, #333) 0 0 / 100% 2px no-repeat,
			linear-gradient(#333, #333) 0 4px / 100% 2px no-repeat,
			linear-gradient(#333, #333) 0 8px / 100% 2px no-repeat;
	}
	.thb-shop-sidebar {
		position: fixed; top: 0; left: 0; bottom: 0; width: 86%; max-width: 340px; z-index: 1000;
		background: #fff; padding: 20px 20px 48px; overflow-y: auto;
		transform: translateX(-100%); transition: transform 0.28s ease;
		box-shadow: 0 0 30px rgba(0, 0, 0, 0.18);
	}
	.thb-shop-sidebar.is-open { transform: none; }
	.thb-filters__head-actions { display: inline-flex; align-items: center; gap: 14px; }
	.thb-filters__close {
		display: inline-flex; border: none; background: none; font-size: 1.7rem; line-height: 1;
		color: #333; cursor: pointer; padding: 0 2px;
	}
	body.thb-filters-open { overflow: hidden; }
	.thb-filter-overlay {
		position: fixed; inset: 0; background: rgba(0, 0, 0, 0.42); z-index: 999;
		opacity: 0; visibility: hidden; transition: opacity 0.28s ease;
	}
	.thb-filter-overlay.is-open { opacity: 1; visibility: visible; }
}

/* ---- 色块填色兜底（强制优先级，避免全局 checkbox/span 样式干扰） ---- */
.thb-filter-group__list--swatch input[type="checkbox"] {
	position: absolute !important; opacity: 0 !important;
	width: 1px !important; height: 1px !important; min-width: 0 !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important;
}
.thb-filter-group__list--swatch .thb-swatch {
	width: 22px !important; height: 22px !important; min-width: 22px !important;
	border-radius: 999px !important; border: 0 !important;
	background-color: var(--sw, #cccccc) !important;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15) !important;
}
.thb-filter-group__list--swatch input:checked ~ .thb-swatch {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--color-accent, #151515) !important;
}
