
@layer legacy {
/* ==========================================================================
   Ricodisk Enterprise Theme — 18-product-archive.css
   由 main.css 自动拆分(保序连续段 18/30,作用域: product-archive)
   ========================================================================== */
body.post-type-archive-product .product-archive-hero,
body.tax-product_line .product-archive-hero {
  height: 280px !important;
  padding: 0 !important;
  background: #eef4fd !important;
  background-image: none !important;
  overflow: hidden !important;
}

body.post-type-archive-product .product-archive-hero__image,
body.tax-product_line .product-archive-hero__image {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  margin: 0 auto !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body.post-type-archive-product .archive-breadcrumb,
body.tax-product_line .archive-breadcrumb {
  display: flex;
  align-items: center;
  color: #32373f;
  font-family: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  line-height: 1.4;
  flex-wrap: wrap;
  row-gap: 4px;
}

@media (max-width: 760px) {
  body.post-type-archive-product .product-archive-hero,
  body.tax-product_line .product-archive-hero {
    height: 280px !important;
  }
}

body.post-type-archive-product .product-brand-tabs,
body.tax-product_line .product-brand-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 88px !important;
  padding: 0 0 22px !important;
  border-bottom: 1px solid #bfc2c7;
}

body.post-type-archive-product .product-brand-tabs__item,
body.tax-product_line .product-brand-tabs__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 16px !important;
  color: #20242b !important;
  font-family: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 26px;
  font-weight: 500;
  text-decoration: none !important;
}

body.post-type-archive-product .product-brand-tabs__item:hover::after,
body.post-type-archive-product .product-brand-tabs__item.is-active::after,
body.tax-product_line .product-brand-tabs__item:hover::after,
body.tax-product_line .product-brand-tabs__item.is-active::after {
  background: #e30613;
}

body.post-type-archive-product .product-attribute-filter,
body.tax-product_line .product-attribute-filter {
  display: grid;
  margin: 0 auto 54px !important;
  border: 1px solid #e2e5ea;
  background: #fff;
}

body.tax-product_line .product-attribute-filter {
  margin-top: 0 !important;
}

body.post-type-archive-product .product-attribute-filter__row,
body.tax-product_line .product-attribute-filter__row {
  display: grid;
  grid-template-columns: 116px repeat(7, minmax(0, 1fr));
  min-height: 88px;
}

body.post-type-archive-product .product-attribute-filter__row + .product-attribute-filter__row,
body.tax-product_line .product-attribute-filter__row + .product-attribute-filter__row {
  border-top: 1px solid #e2e5ea;
}

body.post-type-archive-product .product-attribute-filter__row--grade,
body.tax-product_line .product-attribute-filter__row--grade {
  grid-template-columns: 116px repeat(3, minmax(0, 1fr)) repeat(4, minmax(0, 1fr));
}

body.post-type-archive-product .product-attribute-filter__label,
body.tax-product_line .product-attribute-filter__label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e30613;
  color: #fff;
  font-family: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
}

body.post-type-archive-product .product-attribute-filter__item,
body.tax-product_line .product-attribute-filter__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 18px !important;
  border-left: 1px solid #e2e5ea;
  color: #252a31 !important;
  background: #fff;
  font-family: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: color .18s ease, background .18s ease;
}

body.post-type-archive-product .product-attribute-filter__row--grade .product-attribute-filter__item:nth-last-child(-n+4),
body.tax-product_line .product-attribute-filter__row--grade .product-attribute-filter__item:nth-last-child(-n+4) {
  pointer-events: none;
}

body.post-type-archive-product .product-attribute-filter__item:hover,
body.post-type-archive-product .product-attribute-filter__item.is-active,
body.tax-product_line .product-attribute-filter__item:hover,
body.tax-product_line .product-attribute-filter__item.is-active {
  color: #e30613 !important;
  background: #fff9f9;
}

@media (max-width: 1180px) {

  body.post-type-archive-product .product-brand-tabs__item,
  body.tax-product_line .product-brand-tabs__item {
    min-width: 80px;
    font-size: 22px;
    white-space: nowrap;
  }

  body.post-type-archive-product .product-attribute-filter,
  body.tax-product_line .product-attribute-filter {
    overflow-x: auto;
  }

  body.post-type-archive-product .product-attribute-filter__row,
  body.tax-product_line .product-attribute-filter__row {
    min-width: 980px;
  }
}

@media (max-width: 760px) {

  body.post-type-archive-product .product-brand-tabs__item::after,
  body.tax-product_line .product-brand-tabs__item::after {
    bottom: -15px;
    width: 64px;
    height: 2px;
  }

  body.post-type-archive-product .product-attribute-filter__label,
  body.tax-product_line .product-attribute-filter__label {
    font-size: 20px;
  }

  body.post-type-archive-product .product-attribute-filter__item,
  body.tax-product_line .product-attribute-filter__item {
    padding: 0 12px !important;
    font-size: 17px;
  }
}

body.post-type-archive-product .product-attribute-filter__row--grade .product-attribute-filter__item,
body.tax-product_line .product-attribute-filter__row--grade .product-attribute-filter__item {
  pointer-events: auto !important;
}

body.post-type-archive-product .product-brand-tabs__item,
body.tax-product_line .product-brand-tabs__item,
body.post-type-archive-product .product-attribute-filter__label,
body.tax-product_line .product-attribute-filter__label,
body.post-type-archive-product .product-attribute-filter__item,
body.tax-product_line .product-attribute-filter__item {
  font-size: 16px !important;
}

body.post-type-archive-product .product-brand-tabs,
body.tax-product_line .product-brand-tabs {
  width: min(100%, 1280px) !important;
  gap: clamp(28px, 4vw, 58px) !important;
  margin-bottom: 54px !important;
  padding-bottom: 14px !important;
}

body.post-type-archive-product .product-brand-tabs__item,
body.tax-product_line .product-brand-tabs__item {
  min-width: 72px !important;
  padding-bottom: 10px !important;
  line-height: 1.1 !important;
}

body.post-type-archive-product .product-brand-tabs__item::after,
body.tax-product_line .product-brand-tabs__item::after {
  content: "";
  position: absolute;
  left: 50%;
  background: transparent;
  transform: translateX(-50%);
  bottom: -15px !important;
  width: 62px !important;
  height: 2px !important;
}

body.post-type-archive-product .product-attribute-filter,
body.tax-product_line .product-attribute-filter {
  width: min(100%, 1260px) !important;
  margin-bottom: 42px !important;
  box-shadow: 0 3px 10px rgba(12, 20, 32, .10) !important;
}

body.post-type-archive-product .product-attribute-filter__row,
body.tax-product_line .product-attribute-filter__row,
body.post-type-archive-product .product-attribute-filter__row--grade,
body.tax-product_line .product-attribute-filter__row--grade {
  grid-template-columns: 84px repeat(7, minmax(0, 1fr)) !important;
  min-height: 56px !important;
}

body.post-type-archive-product .product-attribute-filter__label,
body.tax-product_line .product-attribute-filter__label,
body.post-type-archive-product .product-attribute-filter__item,
body.tax-product_line .product-attribute-filter__item {
  min-height: 56px !important;
  padding: 0 10px !important;
  line-height: 1.15 !important;
}

@media (max-width: 1180px) {
  body.post-type-archive-product .product-brand-tabs,
  body.tax-product_line .product-brand-tabs {
    gap: 34px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-left: 4px !important;
    margin-bottom: 36px !important;
  }

  body.post-type-archive-product .product-attribute-filter__row,
  body.tax-product_line .product-attribute-filter__row,
  body.post-type-archive-product .product-attribute-filter__row--grade,
  body.tax-product_line .product-attribute-filter__row--grade {
    min-width: 820px !important;
  }
}

@media (max-width: 760px) {
  body.post-type-archive-product .product-brand-tabs,
  body.tax-product_line .product-brand-tabs {
    gap: 18px !important;
    margin-bottom: 24px !important;
    padding-bottom: 10px !important;
  }

  body.post-type-archive-product .product-brand-tabs__item,
  body.tax-product_line .product-brand-tabs__item {
    font-size: 18px;
    padding-bottom: 10px !important;
    min-width: max-content !important;
  }

  body.post-type-archive-product .product-brand-tabs__item::after {
    bottom: -5px !important;
  }

  body.post-type-archive-product .product-attribute-filter,
  body.tax-product_line .product-attribute-filter {
    margin-bottom: 24px !important;
  }

  body.post-type-archive-product .product-attribute-filter__row,
  body.tax-product_line .product-attribute-filter__row,
  body.post-type-archive-product .product-attribute-filter__row--grade,
  body.tax-product_line .product-attribute-filter__row--grade {
    grid-template-columns: 72px repeat(7, 104px) !important;
    min-width: 800px !important;
    min-height: 48px !important;
  }

  body.post-type-archive-product .product-attribute-filter__label,
  body.tax-product_line .product-attribute-filter__label,
  body.post-type-archive-product .product-attribute-filter__item,
  body.tax-product_line .product-attribute-filter__item {
    min-height: 48px !important;
    padding: 0 8px !important;
  }
}

body.post-type-archive-product .content-area,
body.tax-product_line .content-area,
body.post-type-archive-product .content-area > .container,
body.tax-product_line .content-area > .container {
  background: #fff !important;
}

body.post-type-archive-product .product-attribute-filter__empty,
body.tax-product_line .product-attribute-filter__empty {
  display: block;
  min-width: 0;
  border-left: 0 !important;
  background: #fff !important;
}

body.post-type-archive-product .product-attribute-filter__empty + .product-attribute-filter__empty,
body.tax-product_line .product-attribute-filter__empty + .product-attribute-filter__empty {
  border-left: 0 !important;
}
}
