/* Shop category showcase — Figure 2 (category + product cards); carousel shell mirrors advice-showcase-slider (.acs__*) */

.shop-category-showcase {
  --scs-max: 1400px;
  /*
   * Horizontal inset of title + first carousel card must match:
   * gutter = max(shell padding, centered column offset).
   */
  --scs-shell-padding: 0px;
  --scs-gutter: max(var(--scs-shell-padding), calc((100vw - var(--scs-max)) / 2));
  --scs-arrow-size: 50px;
  --scs-radius: 24px;
  display: block;
  width: 100%;
  overflow-x: clip;
  overflow-x: hidden;
  color: #000;
}

@media screen and (min-width: 768px) and (max-width: 1439.98px) {
  .shop-category-showcase {
    --scs-shell-padding: 20px;
  }
}

@media screen and (max-width: 767.98px) {
  .shop-category-showcase {
    --scs-shell-padding: 20px;
    --scs-radius: 12px;
  }
}

.shop-category-showcase .acs__viewport {
  width: 100%;
}

.shop-category-showcase .acs__shell {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--scs-max);
  margin-inline: auto;
  padding-inline: var(--scs-shell-padding);
}

@media screen and (max-width: 767.98px) {
  .shop-category-showcase .acs__shell {
    width: calc(100% - 40px);
    padding-inline: 0;
    /*
     * Outer margins center the shell; 20px inset matches --scs-shell-padding for gutter.
     */
  }
}

/*
 * Full-bleed carousel row inside .acs__shell (same idea as .acs__slider-bleed).
 */
.shop-category-showcase .acs__slider-bleed {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: auto;
  right: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.shop-category-showcase .acs__slider-bleed .acs__carousel-inner {
  width: 100%;
}

/* Gutters on first/last slide so track scroll math stays aligned (advice pattern). */
.shop-category-showcase .acs__track.carousel__track > .acs__slide:first-child {
  padding-inline-start: var(--scs-gutter);
}

.shop-category-showcase .acs__track.carousel__track > .acs__slide:last-child {
  padding-inline-end: var(--scs-gutter);
}

.shop-category-showcase button.new-swiper-button {
  border: 0;
}

.shop-category-showcase .custom-color-radio button {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgb(0, 0, 0);
  margin-left: 10px;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.shop-category-showcase .custom-color-radio button:first-of-type {
  margin-left: 5px;
}

.shop-category-showcase .custom-color-radio button.active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  border-radius: 50%;
  border: 1px solid #000;
}

.shop-category-showcase .custom-color-radio button:focus-visible {
  outline: revert;
  outline-offset: 4px;
}

.shop-category-showcase.shop-main .custom-btn-row .btn-buy:focus-visible {
  outline: revert;
  outline-offset: 4px;
}

.shop-category-showcase .new-title-box {
  width: 100%;
  margin-bottom: 20px;
}

.shop-category-showcase .new-title-box h2 {
  font-size: 28px;
  color: #000;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.shop-category-showcase .new-title-box h2 + p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 5px;
}

@media screen and (max-width: 767.98px) {
  .shop-category-showcase .new-title-box h2 {
    font-size: 24px;
  }

  .shop-category-showcase .new-title-box h2 + p {
    font-size: 12px;
  }
}

.shop-category-showcase.shop-main .custom-product-name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
  margin-bottom: 5px;
  position: relative;
}

.shop-category-showcase.shop-main .custom-price {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: inherit;
  margin-bottom: 20px;
  flex-wrap: wrap;
  height: 51px;
  position: relative;
}

.shop-category-showcase.shop-main .custom-price span {
  margin-left: 10px;
}

.shop-category-showcase.shop-main .custom-price span:first-of-type {
  margin-left: 0px;
}

.shop-category-showcase.shop-main .custom-price .uvpprice {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #808080;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.shop-category-showcase.shop-main .custom-price .lowprice {
  width: 100%;
  color: inherit;
  margin-left: 0px;
}

.shop-category-showcase.shop-main .custom-price .lowprice .low {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #808080;
}

.shop-category-showcase.shop-main .custom-price .saleprice {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: inherit;
}

.shop-category-showcase.shop-main .custom-price .hide + .saleprice {
  margin-left: 0px;
}

.shop-category-showcase.shop-main .custom-btn-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.shop-category-showcase.shop-main .custom-btn-row .custom-btn {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-left: 0;
}

.shop-category-showcase.shop-main .custom-btn-row .btn-buy {
  padding: 8px 20px;
  background: #000;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
}

.shop-category-showcase.shop-main .custom-btn-row .btn-buy:hover {
  background: #256fff;
  color: #fff;
}

.shop-category-showcase.shop-main .custom-btn-row .btn-more {
  position: relative;
  color: #000;
  text-decoration: none;
}

.shop-category-showcase.shop-main .custom-btn-row .btn-more::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  right: -12px;
  border-top: 2px solid #353535;
  border-right: 2px solid #353535;
  transition: 0.2s;
  pointer-events: none;
}

.shop-category-showcase.shop-main .custom-btn-row .btn-more:hover::after {
  right: -16px;
}

@media screen and (min-width: 768px) and (max-width: 1439.98px) {
  .shop-category-showcase.shop-main .custom-product-name {
    font-size: 18px;
  }

  .shop-category-showcase.shop-main .custom-price .uvpprice {
    font-size: 12px;
  }

  .shop-category-showcase.shop-main .custom-price .saleprice {
    font-size: 18px;
  }

  .shop-category-showcase.shop-main .custom-price .lowprice {
    margin-left: 0px;
  }

  .shop-category-showcase.shop-main .custom-price .lowprice .low {
    font-size: 12px;
  }

  .shop-category-showcase.shop-main .custom-btn-row .custom-btn {
    font-size: 12px;
  }

  .shop-category-showcase.shop-main .custom-btn-row .btn-buy {
    padding: 6px 14px;
  }

  .shop-category-showcase.shop-main .custom-btn-row .btn-more::after {
    width: 7px;
    height: 7px;
  }

  .shop-category-showcase.shop-main .custom-btn-row .btn-more:hover::after {
    right: -15px;
  }
}

@media screen and (max-width: 767.98px) {
  .shop-category-showcase.shop-main .custom-price {
    margin-bottom: 10px;
    height: 48px;
  }

  .shop-category-showcase.shop-main .custom-product-name {
    font-size: 18px;
  }

  .shop-category-showcase.shop-main .custom-price .saleprice {
    font-size: 18px;
  }

  .shop-category-showcase.shop-main .custom-price .uvpprice {
    font-size: 14px;
  }
}

/* —— Carousel (theme-carousel + arrows, aligned with advice-showcase-slider) —— */
.shop-category-showcase .acs__carousel-stage {
  position: relative;
  width: 100%;
}

.shop-category-showcase .acs__carousel {
  display: block;
  width: 100%;
}

.shop-category-showcase .acs__carousel-inner {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

.shop-category-showcase .acs__track {
  display: flex;
  align-items: stretch;
  padding: 6px 0;
}

.shop-category-showcase .acs__track > .acs__slide {
  min-width: 0;
  flex: 0 0 calc(1400px * 22.215% / 100%);
  width: calc(1400px * 22.215% / 100%);
  min-width: 0;
  margin-right: 20px;
}

.shop-category-showcase .acs__track > .acs__slide:last-child {
  margin-right: 0;
}

.shop-category-showcase .acs__track > .acs__slide.special-slide {
  flex: 0 0 calc(1400px * 22.215% / 100% + var(--scs-gutter));
  width: calc(1400px * 22.215% / 100% + var(--scs-gutter));
}

.shop-category-showcase theme-carousel.acs__carousel .carousel__track.acs__track {
  scroll-snap-type: none;
}

.shop-category-showcase theme-carousel.acs__carousel .carousel__track.acs__track > * {
  scroll-snap-align: none;
}

.shop-category-showcase .acs__arrow {
  position: absolute;
  z-index: 6;
  top: calc(50% - var(--scs-arrow-size) / 2);
  width: var(--scs-arrow-size);
  height: var(--scs-arrow-size);
  padding: 10px;
  margin: 0;
  cursor: pointer;
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  box-shadow: 0px 0px 5px 1px rgba(255, 255, 255, 0.3);
}

.shop-category-showcase .acs__arrow:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.shop-category-showcase .acs__arrow svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
}

.shop-category-showcase .acs__arrow:disabled {
  display: none;
}

.shop-category-showcase .acs__arrow--prev {
  left: calc(var(--scs-gutter) + 12px);
  right: auto;
  transform: scaleX(-1);
}

.shop-category-showcase .acs__arrow--next {
  right: calc(var(--scs-gutter) + 12px);
  left: auto;
}

.shop-category-showcase .acs__slider-bleed .acs__carousel-inner .acs__arrow--prev {
  left: calc(var(--scs-gutter) + 12px);
}

.shop-category-showcase .acs__slider-bleed .acs__carousel-inner .acs__arrow--next {
  right: calc(var(--scs-gutter) + 12px);
}

@media screen and (max-width: 767.98px) {
  .shop-category-showcase .acs__arrow {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(155, 155, 155, 0.3);
  }
}

/* Same as theme-advice-showcase-slider: hide arrows when track has ≤1 slide */
theme-shop-category-showcase .acs__carousel[data-single-slide='true'] .acs__arrow[data-role='acs-arrow'] {
  display: none !important;
}

/* —— Category + product slides (categories-swiper from temp) —— */
.shop-category-showcase .categories-swiper {
  position: relative;
}

/* 分类首卡：外层仅留轨道槽 + gutter；圆角与裁剪在 .scs-card--category */
.shop-category-showcase .categories-swiper .acs__slide--category {
  padding-block: 0;
  padding-inline-end: 0;
  background: transparent;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

/* Product cards: chrome on inner article（与分类 hero 的 .scs-card--category 分离） */
.shop-category-showcase .categories-swiper .scs-card--product {
  border-radius: var(--scs-radius, 24px);
  overflow: hidden;
  padding: 20px;
  background: #f9f9f9;
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 0;
}

.shop-category-showcase .categories-swiper .scs-card--image .top-content {
  height: auto;
  min-height: 0;
}

.shop-category-showcase .categories-swiper .scs-card--image .bottom-content {
  height: auto;
  min-height: 0;
}

.shop-category-showcase .categories-swiper .scs-card--image .content:empty {
  display: none;
}

.shop-category-showcase .categories-swiper .scs-card--category {
  display: block;
  box-sizing: border-box;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border-radius: var(--scs-radius, 24px);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  height: 100%;
}

.shop-category-showcase .category-title {
  font-size: 36px;
  color: #000;
  font-weight: 600;
  line-height: 1.3;
  position: absolute;
  top: 8%;
  left: 5%;
  width: 90%;
  text-align: center;
  margin: 0;
  z-index: 1;
}

.shop-category-showcase .categories-swiper .custom-color-radio {
  margin-bottom: 20px;
}

.shop-category-showcase .categories-swiper .category-image {
  position: relative;
  min-height: 280px;
  height: 100%;
  background-color: #dff7ea;
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  display: block;
}

.shop-category-showcase .categories-swiper .category-image img {
  width: 100%;
  user-select: none;
  display: block;
  vertical-align: bottom;
}

.shop-category-showcase .categories-swiper .content {
  color: #000;
  padding-top: 0px;
}

.shop-category-showcase .categories-swiper .acs__slide:not(.acs__slide--category) .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.shop-category-showcase .categories-swiper .acs__slide:not(.acs__slide--category) .bottom-content {
  margin-top: auto;
}

.shop-category-showcase .categories-swiper .content .top-content {
  height: 110px;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shop-category-showcase .categories-swiper .content .bottom-content {
  height: 125px;
  color: #000;
}

.shop-category-showcase .categories-swiper .product-images {
  overflow: hidden;
}

.shop-category-showcase .categories-swiper .product-images a {
  position: relative;
  text-align: center;
  display: block;
  margin: 20px auto;
}

.shop-category-showcase .categories-swiper .product-images img {
  width: 80%;
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  transition: 0.5s;
  display: inline-block;
  user-select: none;
}

.shop-category-showcase .categories-swiper .product-images img.active {
  position: relative;
  z-index: 2;
  opacity: 1;
  display: inherit;
}

.shop-category-showcase .categories-swiper .custom-color-radio {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media screen and (min-width: 768px) and (max-width: 1439.98px) {
  .shop-category-showcase .categories-swiper .scs-card--product {
    border-radius: 12px;
    padding: 30px 10px 10px;
  }

  .shop-category-showcase .categories-swiper .scs-card--category {
    border-radius: 12px;
  }

  .shop-category-showcase .categories-swiper .content .top-content {
    height: 100px;
  }

  .shop-category-showcase .category-title {
    font-size: 24px;
    top: 22%;
  }
}

@media screen and (max-width: 767.98px) {
  .shop-category-showcase .category-title {
    font-size: 30px;
    top: 10%;
  }

  .shop-category-showcase .categories-swiper .content {
    padding-top: 0px;
  }

  .shop-category-showcase .categories-swiper .acs__slide {
    flex: 0 0 300px;
    width: 300px;
  }

  .shop-category-showcase .categories-swiper .acs__slide.special-slide {
    flex: 0 0 calc(300px + var(--scs-gutter));
    width: calc(300px + var(--scs-gutter));
  }

  .shop-category-showcase .categories-swiper .scs-card--product {
    border-radius: 12px;
  }

  .shop-category-showcase .categories-swiper .scs-card--category {
    border-radius: 12px;
  }

  .shop-category-showcase .categories-swiper .product-images a {
    margin: 20px auto 0px;
  }

  .shop-category-showcase .categories-swiper .content .top-content {
    height: 90px;
  }

  .shop-category-showcase .categories-swiper .content .bottom-content {
    height: 100px;
  }
}

.shop-category-showcase .custom-special-discount {
  position: absolute;
  user-select: none;
  left: 20px;
  top: 20px;
}

.shop-category-showcase .custom-special-discount ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-category-showcase .custom-special-discount .custom-type-capsule {
  border-radius: 50px;
  padding: 4px 12px;
  position: relative;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  background: #b30202;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.shop-category-showcase .custom-special-discount .custom-type-coupon {
  padding: 4px 12px;
  border-radius: 5px;
  position: relative;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  background: #b30202;
  text-align: center;
}

.shop-category-showcase .custom-special-discount .custom-type-coupon::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  left: -4.5px;
  background: #f9f9f9;
  border-radius: 50%;
}

.shop-category-showcase .custom-special-discount .custom-type-coupon::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  right: -4.5px;
  background: #f9f9f9;
  border-radius: 50%;
}

.shop-category-showcase .custom-special-discount li {
  margin-right: 10px;
  margin-bottom: 10px;
}

.shop-category-showcase .custom-special-discount li:last-of-type {
  margin-right: 0px;
}

.shop-category-showcase .custom-special-discount.type-color-blue .custom-type-capsule {
  background-color: #256fff;
}

.shop-category-showcase .custom-special-discount.type-color-blue .custom-type-coupon {
  background-color: #256fff;
}

@media screen and (min-width: 768px) and (max-width: 1439.98px) {
  .shop-category-showcase .custom-special-discount {
    left: 20px;
    top: 20px;
  }

  .shop-category-showcase .custom-special-discount .custom-type-capsule {
    font-size: 10px;
    padding: 4px 10px;
  }

  .shop-category-showcase .custom-special-discount .custom-type-coupon {
    font-size: 10px;
    padding: 4px 10px;
  }
}

@media screen and (max-width: 767.98px) {
  .shop-category-showcase .custom-special-discount {
    top: 10px;
    left: 10px;
  }

  .shop-category-showcase .custom-special-discount .custom-type-capsule {
    font-size: 10px;
  }

  .shop-category-showcase .custom-special-discount .custom-type-coupon {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
  }
}
