:root {
  --product-show-title-size: 24px;
  --product-show-menu-item-size: 10px;
  --product-show-shop-all-size: 13px;
  --product-show-subtitle-size: 13px;
  --product-show-menu-item-title-size: 10px;
  --product-show-menu-item-price-size: 10px;
  --product-show-menu-item-title-size-pc: 13px;
  --product-show-menu-item-price-size-pc: 13px;
  --product-show-subtitle-size-pc: 16px;
  --product-show-menu-item-size-pc: 13px;
}

.bb-collection-product-show {
  padding-top: 54px;
  display: block;
  font-family: 'DM Sans';
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-text));
}

.bb-collection-product-show__image {
  display: block;
  width: 100%;
  height: 100%;
}

.bb-collection-product-show__title {
  font-size: var(--product-show-title-size);
  line-height: 1em;
  text-align: center;
}

.bb-collection-product-show__subtitle {
  font-size: var(--product-show-menu-item-size);
  line-height: 1em;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 18px;
}

.bb-collection-product-show__menu {
  display: flex;
  padding: 0 9px;
}

.bb-collection-product-show__menu-item {
  appearance: none;
  background: transparent;
  border: 0;
  border-top: 1px solid rgb(var(--color-entry-line));
  color: rgb(var(--color-light-text));
  cursor: pointer;
  flex: 1;
  font: inherit;
  font-size: var(--product-show-menu-item-size);
  line-height: 1em;
  padding: 18px 0;
  text-align: center;
  text-transform: uppercase;
  transition: all 300ms ease;
}

.bb-collection-product-show__menu-item[active] {
  border-top-color: currentColor;
  color: rgb(var(--color-text));
}

.bb-collection-product-show__container {
  display: none;
  animation: bbCollectionShowAnimate 800ms ease;
  padding-left: 9px;
}

.bb-collection-product-show__container[active] {
  display: block;
}

@keyframes bbCollectionShowAnimate {
  0% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}

.bb-collection-product-show__list .swiper-wrapper .swiper-slide {
  padding-right: 5px;
}

.bb-collection-product-show__item {
  display: block;
}

.bb-collection-product-show__item-title {
  margin-top: 18px;
  margin-bottom: 9px;
  color: rgb(var(--color-text));
  font-size: var(--product-show-menu-item-title-size);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.3;
  padding-bottom: 2px;
  text-align: center;
}

.bb-collection-product-show__item-price {
  color: rgb(var(--color-button-text-link));
  font-size: var(--product-show-menu-item-price-size);
  line-height: 9px;
  text-align: center;
}

.bb-collection-product-show__all {
  padding-right: 9px;
}

.bb-collection-product-show__all-link {
  text-align: center;
  border: 1px solid rgb(var(--color-entry-line));
  margin: 36px 0;
  font-size: var(--product-show-shop-all-size);
  line-height: 36px;
  height: 36px;
  display: block;
}

.bb-collection-product-show .swiper {
  --swiper-navigation-color: rgb(var(--color-button-text-link));
  --swiper-navigation-size: 14px;
  --swiper-navigation-top-offset: calc(50% - 18px);
}

@media (min-width: 960px) {
  .bb-collection-product-show {
    padding-top: 60px;
    max-width: 1920px;
    margin: 0 auto;
  }

  .bb-collection-product-show__title {
    padding-top: 9px;
    padding-left: 9px;
  }

  .bb-collection-product-show__subtitle {
    font-size: var(--product-show-subtitle-size-pc);
    padding-bottom: 40px;
  }


  .bb-collection-product-show__menu {
    max-width: 800px; /* 放宽一点，避免三个标题太拥挤 */
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .bb-collection-product-show__menu-item {
    font-weight: 600;
    font-size: var(--product-show-menu-item-size-pc);
    text-align: center !important; /* 强制所有标题居中 */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* .bb-collection-product-show__menu {
    max-width: 58%;
    margin: 0 auto 30px;
  }

  .bb-collection-product-show__menu-item {
    font-weight: 600;
    font-size: var(--product-show-menu-item-size-pc);
  } */

  /* .bb-collection-product-show__menu .bb-collection-product-show__menu-item:nth-child(1) {
    text-align: start;
    padding-left: 40px;
  }

  .bb-collection-product-show__menu .bb-collection-product-show__menu-item:nth-child(2) {
    text-align: end;
    padding-right: 40px;
  } */

  .bb-collection-product-show__container {
    padding: 0 30px;
  }

  .bb-collection-product-show .swiper {
    --swiper-navigation-top-offset: 8px;
    --swiper-navigation-sides-offset: 10px;
  }

  .bb-collection-product-show__list .swiper-wrapper .swiper-slide {
    padding: 0 9.5px;
  }

  .bb-collection-product-show__list .swiper-button-next,
  .bb-collection-product-show__list .swiper-button-prev {
    height: 87%;
    width: 30px;
    background: none;
    border: none;
  }

  .bb-collection-product-show__list .swiper-button-next svg,
  .bb-collection-product-show__list .swiper-button-prev svg {
    display: block;
    width: var(--swiper-navigation-size);
    height: var(--swiper-navigation-size);
  }

  .bb-collection-product-show__item-title {
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: var(--product-show-menu-item-title-size-pc);
  }

  .bb-collection-product-show__item-price {
    font-size: var(--product-show-menu-item-price-size-pc);
  }

  .bb-collection-product-show__all {
    padding: 0 9px;
  }

  .bb-collection-product-show__all-link {
    margin: 60px auto;
    line-height: 53px;
    height: 53px;
    width: 400px;
  }

}
