.pisell-product-select {
  &__product-category {
    padding: 4px 0;

    &[data-index='0'] {
      padding-top: 0px;
    }
    .category-title {
      color: var(--ps-category-text-color, #000);
      font-size: 18px;
      font-style: normal;
      font-weight: 600;
      line-height: 24px;
    }
  }

  &__product-card {
    user-select: none;
    cursor: pointer;
    border-radius: 12px;
    background: var(--ps-card-bg, #fff);
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1),
      0px 1px 2px 0px rgba(0, 0, 0, 0.06);
    padding: 8px;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
    min-height: 142px;
    height: 100%;
    align-items: center;
    box-sizing: border-box;

    // 只在非触摸设备上启用hover效果
    @media (hover: hover) {
      &:hover {
        background: var(--ps-card-hover-bg, #eaecf0);
      }
    }

    &.selected {
      background: var(--ps-card-selected-bg, #8157d5);

      .card-right {
        .title,
        .subtitle,
        .price {
          color: var(--ps-card-selected-text-color, #ffffff);
        }

        .spec-item,
        .original-price,
        .stock {
          color: var(
            --ps-card-selected-secondary-text-color,
            rgba(255, 255, 255, 0.7)
          );
        }
      }
    }

    .marketing-tags-wrapper {
      position: absolute;
      top: 0;
      left: 0;
      pointer-events: none;
      user-select: none;
      z-index: 1;

      .marketing-tags {
        display: flex;
        flex-direction: column;
        row-gap: 6px;
      }

      .marketing-tag-item {
        display: flex;
        padding: 6px 10px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 0 12px 12px 0;
        background: var(--Error-100, #fee4e2);
        color: var(--Error-700, #b42318);
        text-align: center;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;

        &:nth-of-type(1) {
          border-radius: 0 0 12px 0;
        }
      }
    }

    .card-left {
      flex-shrink: 0;

      img {
        border-radius: 8px;
        background: lightgray 50% / cover no-repeat;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .text-cover {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #dedede;
        color: #6c6c6c;
        font-size: 60px;
        font-weight: 600;
        text-align: center;
        line-height: 1;
        letter-spacing: 1px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      }
    }

    .card-right {
      display: flex;
      flex-direction: column;
      row-gap: 8px;
      min-height: 92px;
      overflow: hidden;
      flex: 1;

      .title {
        color: var(--ps-color-text, #1b1b1b);
        font-size: 18px;
        font-style: normal;
        font-weight: 600;
        line-height: 28px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .subtitle {
        color: var(--ps-color-text, #1b1b1b);
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .stock,
      .specs {
        overflow: hidden;
        color: var(--ps-color-text-secondary, #4e4e4e);
        text-overflow: ellipsis;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;

        .spec-item {
          margin-top: 8px;

          &:nth-of-type(1) {
            margin-top: 0;
          }
        }
      }

      .tags {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;

        .tag-item {
          display: flex;
          padding: 4px 12px;
          align-items: center;
          border-radius: 16px;
          border: 1px solid var(--Error-200, #fecdca);
          background: var(--Error-50, #fef3f2);
          mix-blend-mode: multiply;
          color: var(--Error-700, #b42318);
          text-align: center;
          font-size: 14px;
          font-style: normal;
          font-weight: 500;
          line-height: 20px;
        }
      }

      .price-info {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: unset;
      }

      .price {
        color: var(--ps-color-text, #1b1b1b);
        font-size: 18px;
        font-style: normal;
        font-weight: 600;
        line-height: 28px;
        overflow: hidden;
        margin-right: 8px;
      }

      .original-price {
        color: var(--ps-color-text-secondary, #4e4e4e);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        position: relative;
        overflow: hidden;

        &::before {
          content: '';
          display: block;
          position: absolute;
          top: 50%;
          left: 0;
          width: 100%;
          height: 1px;
          background-color: #4e4e4e;
          transform: translateY(-50%);
        }

        > span {
          vertical-align: middle;
        }
      }

      .remark {
        color: var(--Warning-600, #dc6803);
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
      }
    }
  }
}
