.product-card-skeleton {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);

  &__cover {
    width: 180px;
    height: 126px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  &__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  &__title {
    height: 20px;
    border-radius: 4px;
  }

  &__specs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  &__spec-item {
    height: 24px;
    width: 60px;
    border-radius: 12px;
  }

  &__price {
    height: 18px;
    width: 60%;
    border-radius: 4px;
  }
}

.skeleton-item {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  display: block;
  position: relative;
  overflow: hidden;

  &--animated {
    animation: skeleton-loading 1.5s ease-in-out infinite;
  }
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

// 网格布局中的产品卡片骨架屏样式调整
.product-grid-wrapper {
  .product-card-skeleton {
    min-width: unset;
    width: 100%;
  }
}

// 列表布局中的产品卡片骨架屏样式调整
.product-list-wrapper {
  .product-card-skeleton {
    width: 100%;
  }
}