/** Shopify CDN: Minification failed

Line 293:2 Unexpected "0%"
Line 296:2 Unexpected "50%"
Line 299:2 Unexpected "100%"
Line 302:0 Unexpected "}"

**/
/* ========================================
   Custom Product Grid Section Styles
   ======================================== */

.custom-product-grid-wrapper {
  width: 100%;
  margin: 0 auto;
  background-color: #fff;
  padding: 0px 0 100px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(100px, auto);
  margin: 0 auto;
}

.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  min-height: 200px;
  -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
  user-select: none; /* 防止文本选中 */
}

/* ========================================
   媒体内容
   ======================================== */

.product-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.product-card__img,
.product-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.08);
  filter: brightness(1);
}

/* ========================================
   遮罩层 - 斜切渐变 (使用双层实现平滑过渡)
   ======================================== */

.product-card__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* 默认遮罩层 */
.product-card__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 74%, rgba(0,0,0,0.65) 100%);
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* 悬停时的遮罩层 */
.product-card__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 80%, rgba(0,0,0,0.2) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover .product-card__overlay::before {
  opacity: 0;
}

.product-card:hover .product-card__overlay::after {
  opacity: 1;
}

/* ========================================
   纯文本内容卡片
   ======================================== */

.product-card__text-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.product-card__text-title {
  font-size: clamp(1.5rem, 6vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color:#fff;
}

.product-card__text-subtitle {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 300;
  opacity: 0.8;
  line-height: 1.5;
}

/* ========================================
   产品信息区域 - 斜向排列 (默认显示，悬停时隐藏)
   ======================================== */

.product-card__info {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 2rem;
  text-align: right;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 80%;
  z-index: 11;
  color: #fff;
}

/* 悬停时信息内容向右移出并淡出 */
.product-card:hover .product-card__info-content {
  opacity: 0;
  transform: translateX(30px);
}

.product-card__info-content {
  margin-bottom: 1.5rem;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card__title {
  font-size: clamp(1.25rem, 2.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0;
  color: #fff;
}

.product-card__price {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  opacity: 0.7;
  color: #fff;
  margin-bottom: 0.5rem;
}

.product-card__price-compare {
  text-decoration: line-through;
  opacity: 0.4;
  margin-right: 0.75rem;
  font-size: 0.85em;
}

/* ========================================
   加购按钮
   ======================================== */

.product-card__atc {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  z-index: 20;
  pointer-events: auto;
}

.product-card__atc-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.product-card__atc-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: all 0.3s ease;
}

.product-card__atc-text {
  padding-right: 1.5rem;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card__atc:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.product-card__atc:active:not(:disabled) {
  transform: translateY(0);
}

.product-card__atc:hover .product-card__atc-text {
  max-width: 150px;
  opacity: 1;
}

.product-card__atc:hover .product-card__atc-icon {
  transform: rotate(90deg);
}

.product-card__atc:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 加载状态 */
.product-card__atc.is-loading .product-card__atc-icon svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 成功状态 */
.product-card__atc.is-success .product-card__atc-icon {
  background: #10b981;
}

.product-card__atc.is-success .product-card__atc-icon svg:first-child {
  opacity: 0;
}

.product-card__atc.is-success .product-card__atc-icon svg:last-child {
  opacity: 1;
  transform: scale(1);
}

.product-card__atc-icon svg:last-child {
  position: absolute;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  color: #fff;
}
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ========================================
   装饰元素
   ======================================== */

/* 索引编号 */
.product-card__index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  opacity: 0.5;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: left top;
  z-index: 2;
  color: #fff;
}

/* 标签 */
.product-card__tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  z-index: 2;
}

/* 角落装饰 */
.product-card__corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(255,255,255,0.75);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

.product-card__corner--tl {
  top: 4rem;
  right: 4rem;
  border-left: none;
  border-bottom: none;
  transform: translate(-15px, -15px);
}

.product-card__corner--br {
  bottom: 4rem;
  left: 4rem;
  border-right: none;
  border-top: none;
  transform: translate(15px, 15px);
}

.product-card:hover .product-card__corner {
  opacity: 1;
  transform: translate(0, 0);
}

/* 悬浮边框 */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  z-index: 10;
  pointer-events: none;
  transition: border-color 0.3s ease;
  border-radius: 12px;
}

.product-card:hover::before {
  border-color: rgba(255,255,255,0.2);
}

/* ========================================
   链接覆盖层
   ======================================== */

.product-card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-decoration: none;
  cursor: pointer;
}

.product-card__link-overlay:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

/* ========================================
   响应式布局
   ======================================== */

/* 平板 (≤1024px) */
@media (max-width: 1024px) {
  .product-card {
    grid-column: span var(--card-width-tablet, 6) !important;
    grid-row: span var(--card-height-tablet, 5) !important;
  }

  /* 隐藏价格 */
  .product-card__price {
    display: none;
  }

  /* 信息区域改为底部两端对齐 */
  .product-card__info {
    left: 0;
    right: 0;
    max-width: 100%;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
  }

  .product-card__info-content {
    margin-bottom: 0;
  }

  .product-card__title {
    margin-bottom: 0;
  }

  .product-card__overlay {
    background: linear-gradient(180deg, transparent 90%, rgba(0,0,0,0.75) 100%);
  }
  .product-card__overlay::before{
    background: none !important;
  }
}

/* 触摸设备保持默认显示状态，不应用悬停效果 */
@media (hover: none) and (pointer: coarse) {
  .product-card__info {
    transform: translateY(0) !important;
  }
  
  .product-card__overlay::before {
    opacity: 1 !important;
  }
  
  .product-card__overlay::after {
    opacity: 0 !important;
  }
  
  .product-card__info-content {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  
  /* 移动端按钮点击效果 */
  .product-card__atc:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
  }
}

/* 手机 (≤680px) */
@media (max-width: 680px) {
  .product-card {
    grid-column: span var(--card-width-mobile, 12) !important;
    grid-row: span var(--card-height-mobile, 4) !important;
  }

  /* 缩小产品标题 */
  .product-card__title {
    font-size: 1.7rem;
  }

  /* 按钮变为圆形购物车图标 */
  .product-card__atc {
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    border: none;
    transition: transform 0.2s ease;
  }
  
  .product-card__atc:active:not(:disabled) {
    transform: scale(0.9);
  }
  
  /* 移动端成功状态 */
  .product-card__atc.is-success {
    background: #10b981;
  }

  .product-card__atc-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    color: #000;
    position: relative;
  }

  .product-card__atc-icon svg {
    display: none;
  }

  .product-card__atc-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  /* 移动端成功状态 - 显示对勾图标 */
  .product-card__atc.is-success .product-card__atc-icon::before {
    width: 1.5rem;
    height: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  }

  .product-card__atc-text {
    display: none;
  }

  .product-card__atc:hover {
    background: #fff;
  }

  .product-card__atc:hover .product-card__atc-icon {
    transform: none;
  }

  /* 角落装饰在手机上隐藏 */
  .product-card__corner {
    display: none;
  }
}


/* ========================================
   视频样式
   ======================================== */

.product-card__video-wrapper {
  cursor: pointer;
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.product-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: auto;
}

/* 视频播放器模态框 */
.cpg-video-player {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cpg-video-player.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cpg-video-player__backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(15px);
  cursor: pointer;
}

.cpg-video-player__container {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  z-index: 1;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cpg-video-player.is-open .cpg-video-player__container {
  transform: scale(1);
}

.cpg-video-player__video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* 自定义控制条 */
.cpg-video-player__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0 0 12px 12px;
}

.cpg-video-player__play,
.cpg-video-player__volume,
.cpg-video-player__fullscreen {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.cpg-video-player__play:hover,
.cpg-video-player__volume:hover,
.cpg-video-player__fullscreen:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.cpg-video-player__play svg,
.cpg-video-player__volume svg,
.cpg-video-player__fullscreen svg {
  width: 2rem;
  height: 2rem;
}

/* 关闭按钮 - 视频内右上角 */
.cpg-video-player__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  z-index: 10;
}

.cpg-video-player__close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: rotate(90deg);
}

.cpg-video-player__close svg {
  width: 2.125rem;
  height: 2.125rem;
}

.cpg-video-player__progress {
  flex: 1;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0.25rem;
  cursor: pointer;
  position: relative;
}

.cpg-video-player__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: #fff;
  width: 0%;
  border-radius: 0.25rem;
  pointer-events: none;
}

@media (max-width: 680px) {
  .cpg-video-player__container {
    width: 95vw;
  }

  .cpg-video-player__controls {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .cpg-video-player__play,
  .cpg-video-player__volume,
  .cpg-video-player__fullscreen {
    width: 2rem;
    height: 2rem;
  }

  .cpg-video-player__play svg,
  .cpg-video-player__volume svg,
  .cpg-video-player__fullscreen svg {
    width: 2rem;
    height: 2rem;
  }

  .cpg-video-player__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
  }

  .cpg-video-player__close svg {
    width: 0.875rem;
    height: 0.875rem;
  }
}
