﻿.owlshine-product-series-carousel {
  background-color: var(--color-bg-primary);
  overflow: hidden;
}

.owlshine-product-series-carousel__inner {
  flex-direction: column;
  gap: 40px;
}

@media (max-width: 959px) {
  .owlshine-product-series-carousel__inner {
    gap: 24px;
  }
}

.owlshine-product-series-carousel__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--color-text-primary);
  text-transform: uppercase;
  margin: 0;
  padding-top: 60px;
  padding-bottom: 60px;
}

.owlshine-product-series-carousel__carousel-wrapper {
  position: relative;
  width: 100%;
}

.owlshine-product-series-carousel__carousel {
  position: relative;
  width: 100%;
}

.owlshine-product-series-carousel__track {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.owlshine-product-series-carousel--no-carousel .owlshine-product-series-carousel__carousel {
  overflow: visible;
}

.owlshine-product-series-carousel--no-carousel .owlshine-product-series-carousel__track {
  overflow: visible !important;
  justify-content: center;
}

@media (min-width: 960px) {
  .owlshine-product-series-carousel--no-carousel .owlshine-product-series-carousel__track {
    grid-template-columns: repeat(var(--desktop-columns), 1fr) !important;
  }
}

@media (max-width: 959px) {
  .owlshine-product-series-carousel--no-carousel .owlshine-product-series-carousel__track {
    grid-template-columns: repeat(var(--mobile-columns), 1fr) !important;
  }
}

.owl-product-series-card {
  list-style: none;
}

.owl-product-series-card__link {
  display: block;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
}

.owl-product-series-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: transparent;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.owl-product-series-card__link:hover .owl-product-series-card__inner {
  box-shadow: none;
}

.owl-product-series-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f5f5f5;
}

.owl-product-series-card__image img,
.owl-product-series-card__image svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.owl-product-series-card__link:hover .owl-product-series-card__image img,
.owl-product-series-card__link:hover .owl-product-series-card__image svg {
  transform: scale(1.05);
}

/* ========== 光束扫过效果（CSS 变量方案） ========== */
.owl-product-series-card__image::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: var(--beam-size, 60%);
  height: 100%;
  background: linear-gradient(
    calc(var(--beam-angle, -15deg) + 110deg),
    transparent 0%,
    rgba(var(--beam-color-rgb, 255, 255, 255), 0) 25%,
    rgba(var(--beam-color-rgb, 255, 255, 255), var(--beam-opacity, 0.28)) 50%,
    rgba(var(--beam-color-rgb, 255, 255, 255), 0) 75%,
    transparent 100%
  );
  transform: skewX(var(--beam-angle, -15deg));
  filter: blur(6px);
  pointer-events: none;
  z-index: 2;
}

.owlshine-product-series-carousel__carousel-wrapper[data-beam-style="soft-light"] .owl-product-series-card__image::after {
  mix-blend-mode: soft-light;
}
.owlshine-product-series-carousel__carousel-wrapper[data-beam-style="screen"] .owl-product-series-card__image::after {
  mix-blend-mode: screen;
}
.owlshine-product-series-carousel__carousel-wrapper[data-beam-style="overlay"] .owl-product-series-card__image::after {
  mix-blend-mode: overlay;
}
.owlshine-product-series-carousel__carousel-wrapper[data-beam-style="none"] .owl-product-series-card__image::after {
  mix-blend-mode: normal;
}

/* ── 悬停触发 ── */
.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="hover"][data-beam-direction="left-to-right"] .owl-product-series-card__link:hover .owl-product-series-card__image::after {
  left: 110%;
  transition: left var(--beam-speed, 1.4s) cubic-bezier(0.22, 0.61, 0.36, 1);
}

.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="hover"][data-beam-direction="right-to-left"] .owl-product-series-card__image::after {
  left: auto;
  right: -70%;
}
.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="hover"][data-beam-direction="right-to-left"] .owl-product-series-card__link:hover .owl-product-series-card__image::after {
  right: 110%;
  transition: right var(--beam-speed, 1.4s) cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 扫回来：鼠标移出时回到起点 */
.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="hover"][data-beam-sweep-back="true"] .owl-product-series-card__image::after {
  transition: left var(--beam-speed, 1.4s) cubic-bezier(0.22, 0.61, 0.36, 1);
}
.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="hover"][data-beam-sweep-back="true"][data-beam-direction="right-to-left"] .owl-product-series-card__image::after {
  transition: right var(--beam-speed, 1.4s) cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 不扫回来：鼠标移出时瞬间复位 */
.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="hover"][data-beam-sweep-back="false"] .owl-product-series-card__image::after {
  transition: left 0s;
}
.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="hover"][data-beam-sweep-back="false"][data-beam-direction="right-to-left"] .owl-product-series-card__image::after {
  transition: right 0s;
}

/* ── 自动触发（循环播放） ── */
.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="auto"] .owl-product-series-card__image::after {
  left: -70%;
  transition: none;
}
.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="auto"][data-beam-direction="right-to-left"] .owl-product-series-card__image::after {
  left: auto;
  right: -70%;
}

/* JS class-toggle 触发的同步扫光 */
.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="auto"].beam-flash .owl-product-series-card__image::after {
  left: 110%;
  transition: left var(--beam-speed, 1.4s) ease-in-out;
}
.owlshine-product-series-carousel__carousel-wrapper[data-beam-trigger="auto"][data-beam-direction="right-to-left"].beam-flash .owl-product-series-card__image::after {
  left: auto;
  right: 110%;
  transition: right var(--beam-speed, 1.4s) ease-in-out;
}

.owl-product-series-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

.owl-product-series-card__link:hover .owl-product-series-card__content {
  transform: translateY(-4px);
}

.owl-product-series-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #000000;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owl-product-series-card__link:hover .owl-product-series-card__title {
  color: #333333;
}

.owl-product-series-card__description {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 2px);
  color: #333333;
  line-height: 1.6;
  font-size: 13px;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: opacity 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.owl-product-series-card__link:hover .owl-product-series-card__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: none;
  padding-top: 8px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  opacity: 1;
}

/* 始终展示模式 */
.owlshine-product-series-carousel__carousel-wrapper[data-description-display="always"] .owl-product-series-card__description {
  position: static;
  max-height: none;
  opacity: 1;
  padding: 0;
  color: #333333;
  background: none;
  transition: none;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: calc(13px * 1.6 * 3);
}

.owlshine-product-series-carousel__carousel-wrapper[data-description-display="always"] .owl-product-series-card__link:hover .owl-product-series-card__description {
  background: none;
}

.owl-product-series-card__button {
  display: inline-block;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid #000000;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
  width: fit-content;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
}

.owl-product-series-card__link:hover .owl-product-series-card__button {
  color: #333333;
  border-color: #333333;
}

.owlshine-product-series-carousel__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0;
}

.owlshine-product-series-carousel__arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all 0.3s ease;
  color: #333333;
}

.owlshine-product-series-carousel__arrow:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.owlshine-product-series-carousel__arrow--prev:hover {
  transform: scale(1.05);
}

.owlshine-product-series-carousel__arrow--next:hover {
  transform: scale(1.05);
}

.owlshine-product-series-carousel__arrow:disabled {
  visibility: hidden;
  pointer-events: none;
}

.owlshine-product-series-carousel__arrow svg {
  width: 24px;
  height: 24px;
}

.owlshine-product-series-carousel__arrow--prev {
  margin-left: -80px;
}

.owlshine-product-series-carousel__arrow--prev svg {
  transform: rotate(90deg);
}

.owlshine-product-series-carousel__arrow--next {
  margin-right: -80px;
}

.owlshine-product-series-carousel__arrow--next svg {
  transform: rotate(-90deg);
}

@media (max-width: 959px) {
  .owlshine-product-series-carousel__arrow {
    width: 40px;
    height: 40px;
  }

  .owlshine-product-series-carousel__arrow--prev {
    margin-left: -12px;
  }

  .owlshine-product-series-carousel__arrow--next {
    margin-right: -12px;
  }

  .owl-product-series-card__inner {
    max-width: 100%;
  }

  .owl-product-series-card__content {
    padding: 12px;
  }
}
