// NewCard.scss
.new-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  .usps {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: var(--accent-color3);
    width: auto;
    color: white;
    letter-spacing: 1px;
    font-size: 11px;
    padding: 5px 10px 5px 10px;
    border-radius: 5px;
  }
  .usps1 {
    background-color: var(--accent-color1);
    top: 35px;
  }
  &__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  &__content {
    padding: 5px 16px 16px 16px;
  }

  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .updated {
      font-size: 14px;
      font-weight: bold;
      color: var(--accent-color1);
      //   color: gray;
    }
  }

  &__title {
    font-size: 20px;
    font-weight: 500;
    margin: 2px 0;
  }

  &__details {
    font-size: 14px;
    color: gray;
    margin-bottom: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    svg {
      font-size: 16;
    }
  }
  .price {
    font-size: 17px;
    font-weight: 500;
  }
  &__button-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    button {
      margin: 2px;
      font-size: 12px;
      flex: 1;
      margin: 0 4px;
      padding: 10px;
      border: none;
      border-radius: 4px;
      background-color: #e5f0f5;
      color: black !important;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 2px;
      justify-content: center;
      svg {
        color: #003152;
        font-size: 16px;
      }

      &:hover {
        background-color: #003152;
        color: white !important;
        svg {
          color: white !important;
        }
      }
    }
  }
}
